$(document).ready(function(){
// Uncomment this alert and change the message as needed.
// alert ("CLF SYSTEM ALERT! \nSorry, our systems are currently down. \nWe are working to fix the problem and it \nshould all be working again shortly."); 
$("#logo").corner("10px");
$("#foot-whatsnew").css("display","none");
$(".newsdates").corner("5px");
$(".slidetabs a").corner("5px");
$("#news-menu").corner();
$("#footer-menu").corner();
$("#maincontent").corner();

//var promoEndDate = new Date(2011, 7 - 1, 1); - for a general day end date
//var promoEndDate = $.countdown.UTCDate( 0, 2011, 7-1, 1, 9, 30, 0, 0); - for a specific time
var promoEndDate = $.countdown.UTCDate( 0, 2012, 2-1, 29, 5, 30, 0, 0);
$('#promoCountdown').countdown({until: promoEndDate, layout: '{dn} {dl} {sep} {hn} {hl} {sep} {mn} {ml} {sep} {sn} {sl}'});
$('#promoCountdownDays').countdown({until: promoEndDate, layout: '{dn} {dl} {desc}', description: 'left with our current promotions!'});

// SLIDES on front page
$(".slidetabs").tabs(".images > div", {
	effect: 'fade',
	fadeOutSpeed: "slow",
	rotate: true
}).slideshow({
interval: 8000,
autoplay: true,
autopause: false,
clickable: false
});

// OPACITY HOVER
$('.newsbutton img').css({opacity: 0.7});
$('.newsbutton').hover(function(){
  $('img', this).css({opacity: 1});
 }, function() {
  $('img', this).css({opacity: 0.7});
 });
// OPACITY HOVER ANYWHERE
$('.fadehover img').css({opacity: 0.7});
$('.fadehover').hover(function(){
  $('img', this).css({opacity: 1});
 }, function() {
  $('img', this).css({opacity: 0.7});
 });

});
