// JavaScript Document


/*KWICKS*/


 function main_kwicks()
 {
	jQuery('.kwicks').kwicks({  
        maxWidth: 390,  
		duration: 800,  
        easing: 'easeOutQuint'  
    });  
}
 
function my_smothscroll(){
jQuery('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
    && location.hostname == this.hostname) {
      var jQuerytarget = jQuery(this.hash);
      jQuerytarget = jQuerytarget.length && jQuerytarget
      || jQuery('[name=' + this.hash.slice(1) +']');
      if (jQuerytarget.length) {
        var targetOffset = jQuerytarget.offset().top;
        jQuery('html,body')
        .animate({scrollTop: targetOffset}, 700);
       return false;
      }
    }
  });

	}
	
 
 jQuery(document).ready(function(){					
	 main_kwicks();
	 my_smothscroll();
});
 
 
 jQuery(document).ready(function(){	
	jQuery('#s1').cycle({timeout:4000, random:1});
});
 
 jQuery(document).ready(function(){	
	jQuery('#s2').cycle({timeout:4000, random:1});
});
 
  jQuery(document).ready(function(){	
	jQuery('.li4').hover(function(){
		jQuery('.li4 ul.drop_dwn').show();
	},
	function()
	{
		jQuery('.li4 ul.drop_dwn').hide();
	});
	});

