jQuery(document).ready(function() {
			//superfish menu
			if ($("nav .sf-menu").length) {
			jQuery('nav .sf-menu').superfish({			
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation             
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows      
			});
			}
			
			
			//prettyPhoto
			if ($("a[rel^='prettyPhoto'], a[rel^='lightbox']").length) {
	 		jQuery("a[rel^='prettyPhoto'], a[rel^='lightbox']").prettyPhoto({
			"theme": 'light_square' 																
			});
			}
			
			//coin slider
			if ($('#slideshow').length) {
			jQuery('#slideshow').coinslider( {width: 914, height: 295, navigation: true,effect: 'random'});
			jQuery('#slideshow').css("display", "block");
			jQuery('#nav').css("display", "block");	
			}
				
			//jCycle slider
			if ($('.slideshow').length) {
			jQuery('.slideshow').after('<div id="nav">')
			jQuery('.slideshow').cycle({
				fx: 'fade',
				timeout: 6000,
				pager: '#nav',
				speed: 500,
				pagerEvent: 'click',
    			pauseOnPagerHover: true,
				cleartypeNoBg: true,
				pause: 1 });
			jQuery('.slideshow').css("display", "block");
			jQuery('#nav').css("display", "block");
			}
			
});
	  


jQuery(function () {
			jQuery('.loader  img').hide();
			});
			var i = 0;
			var int=0;
			jQuery(window).bind("load", function() {
				var int = setInterval("imgLoader(i)",300);
			});
			
			function imgLoader() {
				var images = jQuery('.loader  img').length;
				if (i >= images) {
					clearInterval(int);
					jQuery('.loader  img').css('background', 'none');
			}
			jQuery('.loader  img:hidden').eq(0).fadeIn(300)
			i++;
		}


jQuery('h4.tog').click(function () {
	jQuery(this).next('div.togcont').toggle(300);
	});
	
	jQuery('h4.tog').toggle(
	function () { jQuery(this).addClass('bounce'); },
	function () { jQuery(this).removeClass('bounce');; }
	);
	



jQuery('.txtlist li').hover(function(){
  jQuery(this).stop().animate({ paddingLeft: "10px" }, 300);
}, function(){
    jQuery(this).stop().animate({ paddingLeft: "5px" }, 150); 
});


