	//yoni and matt's s jquery stuff for shes the first (c) 2009-11
	//yoni@social-ink.net
	
	var $j = jQuery.noConflict(); //declare this cause of problems with WP
	
	$j(function(){
	
		//cycle frontpage
		$j('#innershow')
		
		.cycle({
			fx:       	'fade',
			speed: 500,
			delay: 5000,
			timeout:   	5000,
			pager: '#slideshow_nav',
			pause:   	1 		
		});
		
		//menubar hover
		$j("#menubar img").hover(function() {
				var src = $j(this).attr("src").replace("_normal", "_hover");
				$j(this).attr("src", src);					
			}, function() {
				var src = $j(this).attr("src").replace("_hover", "_normal");
				if(!$j(this).parents('li').hasClass('current_master_cat'))
					$j(this).attr("src", src);								
		}); 		
		

		//imput clearing function	
			var clearMePrevious = '';						
			// clear input on focus			
			$j('.clearMeFocus').focus(function()			
				{				if($j(this).val()==$j(this).attr('title'))				
				{					clearMePrevious = $j(this).val();					
				$j(this).val('');				}			
			});						
			
			// if field is empty afterward, add text again			
			$j('.clearMeFocus').blur(function()			
				{				if($j(this).val()=='')				
				{					$j(this).val(clearMePrevious);				}			
			});
		

		
	});

