jQuery.ajaxSetup({type: "POST"});



jQuery(document).ready(function() {
	
	prev_class = jQuery("#womenWrap").children().attr("class");

	//jQuery("#womenWrap").children().css({display:"none"}).fadeIn(1800);
	
	//$("p").fadeOut("slow");
	//$("p").fadeIn("slow");
					
	jQuery(".img").mouseover(
		function() {
			jQuery(this).parent(".imgWrap").addClass("itemFocus");
		}
	);
	
	jQuery(".img").mouseout(
		function() {
			jQuery(this).parent(".imgWrap").removeClass("itemFocus");
		}
	);
	
	jQuery(".zoom").mouseover(
		function() {		
			jQuery(this).prev().prev(".imgWrap").addClass("itemFocus");		
		}
	);

	jQuery(".zoom").mouseout(
		function() {
			jQuery(this).prev().prev(".imgWrap").removeClass("itemFocus");
		}
	);
	
  


	jQuery("#mainNavigation a").mouseover(
	
		function() {
			//current_stage = jQuery(this).prev().attr("class");
			//current_stage = jQuery(this).prev().attr("class");
			new_class = jQuery(this).parent().attr("class");
			
			/*			
			if(new_class != prev_class) {		
				
				jQuery('#womenWrap .' + prev_class).animate({ 
        	opacity: "0",
        	display:"none"
      	}, 300
      );
			*/
      
			if(new_class != prev_class) {		
      /*
			jQuery("#womenWrap").children().animate({ 
					opacity:"0",
      	}, 300, 
				function(){
					jQuery("#womenWrap").children().attr("class",new_class).fadeIn(800);
					}
      );
			*/
			
			if(window.time)
      clearTimeout(window.time);
			
			jQuery("#womenWrap").children().fadeOut(150,function () {
			jQuery("#womenWrap").children().attr("class",new_class).fadeIn(800);			
			});
			
			//jQuery("#womenWrap").children().css({display:"none"});
				
			/*jQuery("#womenWrap").children().css({display:"none"});
			jQuery("#womenWrap").children().attr("class",new_class).fadeIn(800);
			*/
			
											
			}
		}
	);
	
	
	jQuery("#mainNavigation a").mouseout(
	
		function() {
			//current_stage = jQuery(this).prev().attr("class");
			//current_stage = jQuery(this).prev().attr("class");
			//current_stage = jQuery(this).parent().attr("class");			
			//prev_class = jQuery("#womenWrap").children().attr("class");
			
			//jQuery("#womenWrap").children().attr("class", prev_class);			
				//jQuery("#womenWrap").children().css({display:"none"});
				
				//jQuery("#womenWrap").children().fadeOut(100);
				
			
			if(new_class != prev_class) {		
			
				time = setTimeout(function(){													
					jQuery("#womenWrap").children().fadeOut(150,function () {
					jQuery("#womenWrap").children().attr("class",prev_class).fadeIn(800);
					});
					//jQuery("#womenWrap").children().attr("class",prev_class);
					//jQuery("#womenWrap").children().css({display:"none"});
					//jQuery("#womenWrap").children().attr("class",prev_class).fadeIn(800);									
				},600);
			
			
			}
			
			/*
			if(new_class != prev_class){
				jQuery("#womenWrap").children().fadeOut(150,function () {
				jQuery("#womenWrap").children().attr("class",prev_class).fadeIn(800);																											
			});
			}
			*/
									
		}
	);
	
	
	/*counter*/
	//var counter = '<img src=\'http://counter.yadro.ru/hit?r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random()+"\' width=1 height=1 alt=\'\' />';
	
	var counter = "<img src='http://counter.yadro.ru/hit?r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random()+"' width=1 height=1 alt=''>";	
	jQuery("#counter").append(counter);
	
	/*
	<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<img src='http://counter.yadro.ru/hit?r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' width=1 height=1 alt=''>")//--></script><!--/LiveInternet-->	
*/	
	/*	
	jQuery("#mainNavigation .services").mouseover(
		function() {
			//jQuery("#womenWrap").addClass("itemFocus");
			//jQuery("#womenWrap").removeClass("selected");
			
			prev_img = jQuery("#womenWrap").children().attr("class");
			
			jQuery("#womenWrap").children().attr("class","women_services")
			//alert(prev_img);
			//prev_img = jQuery("#womenWrap").children();
			//prev_img = jQuery("#womenWrap").children();
			
			//prev_img.
		}
	);
	
	jQuery("#mainNavigation .services").mouseout(
		function() {			
			//alert (prev_img);
			jQuery("#womenWrap").children().attr("class",prev_img)
			//jQuery(this).parent(".imgWrap").removeClass("itemFocus");
		}
	);
	*/
	
});