 /* in no conflict mode */
$(document).ready(function () {  


 /* ColorBox Video Launcher */
$(".lzVideoLaunch").colorbox({inline:true,innerWidth:715, innerHeight:405,scrolling:false, href: function() { var url = $(this).attr('id') +'Div'; return '#' + url ; } });
 
$(".youTubeColorbox").colorbox({iframe:true, innerWidth:560, innerHeight:349});
$(".normalColorbox").colorbox({maxWidth:"90%"});
$(".htmlColorbox").colorbox({iframe:true, innerWidth:900, innerHeight:750});
$(".colorbox").colorbox({maxWidth:"90%"});

 /* Drop Down Menu */
       $('#topSecondayMenu ul li, #topMainMenu ul li').hoverIntent(  
        function () {  
            //show its submenu  
            $('ul', this).slideDown(250);  
          },   
        function () {  
            //hide its submenu  
            $('ul', this).slideUp(150);           
        }  
    	);     

/*add padding on text box - done here to work in IE */
	$('input[type="text"]').css('padding','5px');


/* IMAGE SWAPS  example of usage: give img the .buttonswap class and make sure to get the on (mouse on) and off (mouse off) */
	$(".buttonSwap").hover(
	function()
	 {this.src = this.src.replace("_up","_down");},
	 function()
	 {this.src = this.src.replace("_down","_up");}
	);


/* Fade images on rollover */
	$(".fadeImage,.gotoPictureOne,.gotoPictureTwo,.gotoPictureThree,.gotoPictureFour,.gotoPictureFive,.gotoPictureSix").hover(function(){
	    $(this).stop().animate({"opacity": .4},200);
	},function(){
	    $(this).stop().animate({"opacity": 1},600);
	});
	
	
/* code to clear input box of label when clicked in */
jQuery('.default-value').each(function() {
       var default_value = this.value;
       jQuery(this).focus(function(){
               if(this.value == default_value) {
                       this.value = '';
               }
       });

       jQuery(this).blur(function(){
               if(this.value == '') {
                       this.value = default_value;
               }
       });
});
	
	

/* home page image rotation */
	$('#splashSlideShow').cycle({ 
		timeout: 3000,
		delay:-2000, 
		speed:   1500,
		pause: 1,
		fastOnEvent: 1 ,
		startingSlide: 0});

/* CSS for old IE */
	$(".productMatrixBox:nth-child(3n+3)").css("margin",0);
	$("#topMainMenu ul.sub-menu li:last-child a").css("border-bottom","none");
	$("#topSecondayMenu ul.sub-menu li:last-child a").css("border-bottom","none");
	$(".sideMenuBox ul li:last-child a").css("border-bottom","none");
	$(".lzVideoThumbnail:nth-child(3n+3)").css("margin",0);

});
