$(document).ready(    
	function(){	  		
				
		// ie6 png fix
		$(".item").pngFix(); 
				
		// search box - remove text on focus
		$('input.searchbox').each(function() {
			var default_value = this.value;
			$(this).focus(function() {
				if(this.value == default_value) {
					this.value = '';
				}
			});
			$(this).blur(function() {
				if(this.value == '') {
					this.value = default_value;
				}
			});
		});								  		  
		  
		  // news slider
		  $('ul.recent-news').children().hide();
		  $('ul.recent-news').cycle({
				fx:     'fade',
				speed:  'fast',
				timeout: 0,
				next:   '#nextBtn',
				prev:   '#prevBtn'
			});

		// go button - do hover
		$("input.searchbtn").val(" "); 
		$("input.searchbtn").hover(
		  function () {
			$(this).addClass("searchbtn-over");
		  }, 
		  function () {
			$(this).removeClass("searchbtn-over")
		  }
		);
		  
		/*  --------------------- START: NEW 1/7/2011 ------------------------------*/		  
		// show login when dropdown item selected
		$("li.login ul li").hover(
		  function () {
			 $("li.login a.link").addClass("active");
		  }, 
		  function () {	 
			 $("li.login a.link").removeClass("active");
		  }
		);	
		/*  --------------------- END: NEW 1/7/2011 ------------------------------*/
		
		// show main nav when sub-nav item selected
		$("#main-nav li:not(.selected)").hover(
		  function () {
			 	$("#main-nav li.selected").addClass("special");
				$(this).find("a.main").addClass("active");
		  }, 
		  function () {	 
			  	$("#main-nav li.selected").removeClass("special");			  
				$(this).find("a.main").removeClass("active");
		  }
		);		
		// show sub nav when sub-sub-nav item selected
		$("ul.sub-sub-nav").hover(
		  function () {
				$(this).parent().find("a.sub-nav").addClass("selected");
		  }, 
		  function () {	 		  
				$(this).parent().find("a.sub-nav").removeClass("selected");
		  }
		);					
					
});
