jQuery(document).ready(function($) {
			
$(document).ready(function(){
	
	$(".logintext").focus(function(){
		$(this).val("");
	})
	
	$(".searchspfsubmit").focus(function(){
		$(this).val("");
	})
	
	$("#loginlink").mouseover(function(){
		$("#loginmenubox").fadeIn("slow");
	});
	
	
/*
	$("#contactus").click(function(){
		$("#contactusForm").fadeIn("");
		return false;
	});
*/
	
	$("#closeForm").click(function(){
		$("#contactusForm").fadeOut("");
		return false;
	});

	$('#cssdropdown li.headlink').hover(
		function() { $('ul', this).css('display', 'block'); },
		function() { $('ul', this).css('display', 'none'); });
	});


	    $(".cycle").cycle({
			pager: "#carusellcontrols",
			pagerEvent: 'mouseover',
			timeout: 10000,
			pause: 1,
			next: "#nextslide",
			after: function()
			{
				var next = $(this).next();
			
				if (next.length == 0)
					next = $(this.parentNode).children().eq(0);
			
				$("#nextslide").html($("h2", next).text());
			     
			}
		});
			
		$('#pauseButton').click(function() { 
		   
            $('.cycle').cycle('pause'); 
             $('#pauseButton').hide();
             $('#playButton').show(); 
        });
        
        $('#playButton').click(function() { 
            $('.cycle').cycle('resume'); 
             $('#playButton').hide();
             $('#pauseButton').show(); 
        });
        
        $('#playButton').hide();
        $('#pauseButton').show();
	
			
});