$(document).ready(function(){
//search infield effect
$("#searchform label").inFieldLabels(); 
//menu_top
$(function(){

    var config = {    
         sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
         interval: 100,  // number = milliseconds for onMouseOver polling interval    
         over: doOpen,   // function = onMouseOver callback (REQUIRED)    
         timeout: 200,   // number = milliseconds delay before onMouseOut    
         out: doClose    // function = onMouseOut callback (REQUIRED)    
    };
   /* function outslide(){ 
	 
	  $(this).hide("slide", { direction: "up"}, 300);
	
	}
 function inslide(){ 
	 
	  $(this).show("slide", { direction: "down"}, 300);
	
	}*/

    function doOpen() {
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
       // $('ul:first',this).hoverIntent(inslide,outslide);
		
    }
 
    function doClose() {
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    }

    $("#menu_top_area ul li").hoverIntent(config);
//  $("#menu_top_area a:last").css('border','none');
//    $("#menu_top_area ul li ul li:has(ul)").find("a:first").prepend('<span class="arr_left">&nbsp;</span>');
//	 $("#menu_top_area ul li:has(ul)").find("a:first").css('padding-right','10px');
 //   $("#menu_top_area ul li:has(ul)").find("a:first").prepend('<span class="arr_down">&nbsp;</span>');*/

});
//slideshow_home
$('#slideshow_area ul') 
.before('<div id="nav">') .cycle({ 
   
    speed:  'fast', 
    timeout: 4000, 
    pager:  '#nav',
	context: false,
	tabs: false,
	timeout: 7000,      // time before next slide appears (in ms)
	slideSpeed: 1000,   // time it takes to slide in each slide (in ms)
	tabSpeed: 1000,      // time it takes to slide in each slide (in ms) when clicking through tabs
	fx: 'fade',   // the slide effect to use
	pauseOnPagerHover: true,
    pause: true


});


});
