jQuery(document).ready(function() {
						   
		
	/*---HOVER-DEL-MENU---*/
	
	jQuery(".menu .menu_in table tr td").hover(function(){ 			        
		
		jQuery(this).children("a").css({color:'#323232'});
		jQuery(this).children("a.position").css({color:'#323232'});
		//jQuery(this).children("ul").slideDown('fast').animate({opacity: 1},{queue:false,duration:500});
		jQuery(this).children("ul").slideDown('fast');
		
	},function(){
		
		//jQuery(this).children("ul").slideUp('fast').animate({opacity: 0},{queue:false,duration:500});
		jQuery(this).children("ul").slideUp('fast');
		jQuery(this).children("a").css({color:'#FFFFFF'});
		jQuery(this).children("a.position").css({color:'#323232'});
		
		
	});
	
	/*---END-HOVER-DEL-MENU---*/
	
	
	/*---HOVER-DEL-SUBMENU---*/
	
	jQuery(".menu .menu_in table tr td ul li").hover(function(){ 			        

		//jQuery(this).children("ul").slideDown('fast').animate({opacity: 1},{queue:false,duration:500});
		jQuery(this).children("ul").slideDown('fast');
		jQuery(this).children('a').css({color:"#666666"});
		
	},function(){
		
		//jQuery(this).children("ul").slideUp('fast').animate({opacity: 0},{queue:false,duration:500});
		jQuery(this).children("ul").slideUp('fast');
		jQuery(this).children('a').css({color:"#FFFFFF"});
		
	});
	
	/*---END-HOVER-DEL-SUBMENU---*/
	

	
	/*---CLICK-QUESTION---*/
	
	jQuery('a.showAnswer').click(function(){
	
		//alert(jQuery(this).attr('href'));
		//alert(jQuery(this).attr('href'));
		var id = jQuery(this).attr('href');
		if(jQuery("#ans"+id).css('display') == 'none'){
			
			jQuery('.all_ans').slideUp('fast'); 
			jQuery("#ans"+id).slideDown('fast'); 
						
			
		}else{
			
			jQuery("#ans"+id).slideUp('fast');		
		
		}
		return false;
	
	});
			
	/*---END-CLICK-QUESTION---*/
	
	
	/*---ACCORDION POR CLICK---*/
	
	jQuery(".acc_click").find("a.click_a").each(function(){

    	jQuery(this).click(function(){

        	if(jQuery(this).siblings("ul").css("display") == 'none'){
				
				jQuery('.odm_menu ul li').css('background','none');
				jQuery(this).parent('li').css('background','#E6E6E6');
				jQuery(".menu_b").slideUp("normal");
				jQuery(this).siblings("ul").slideDown("normal");
			
				return false;

			}else{
				
				jQuery('.odm_menu ul li').css('background','none');
				jQuery(".menu_b").slideUp("normal");
				jQuery(this).siblings("ul").slideUp("normal");
			

				return false;
			}

		});

	});
	
	/*---END-ACCORDION POR CLICK---*/
	
	
	
	
						  
						   
	jQuery('.menu .menu_in table tr td:first-child').css({background:'none'});
	
	jQuery('.wishlist .right_wish .down .down_prod_wish table tr td:last-child').css('border-right','none');
	
	jQuery('.check_method ul li .box_active .cont_end .table_in_b table tr td:last-child').css('border-right','none');
	
	jQuery('.shop_cart .table .down table tr td:last-child').css('border-right','none');
	
	jQuery('.check_method .box .down table tr td:last-child').css('border-right','none');
	
	jQuery('.menu .menu_in table tr td.collection ul.col li:last-child').css('background','none');




	//Conservationīs rotation (next)
    jQuery('.img').eq(0).css({display:"block"});
	
	if(time != 0)
	{
		actNextWay = setTimeout(nextImg,5000);
	}

}); // end document.ready...


	// shadowbox 3.0
	Shadowbox.init({
		language:   "es",
		players:    ["swf","img"]
	});
	// end shadowbox 3.0




//START HEADER IMAGES' ROTATOR ...
//Define Global vars for nextNews
a = 0;
time = 8000;
img = '.img_rotate .img';
var actNextImg;
//End Define Global vars for nextNews

function nextImg()
{
    var amountImg = jQuery(img).length;
    if(amountImg > a+1)//amount > that number order (i+1) of .content
							{
									jQuery(img).eq(a).fadeOut(2000);

                                    jQuery(img).eq(a+1).fadeIn(2000);

									a++;
									clearTimeout(actNextImg);
							}
							else
							{
									jQuery(img).eq(a).fadeOut(2000);

                                    jQuery(img).eq(0).fadeIn(2000);
                                    
									a = 0;
									clearTimeout(actNextImg);
							}
   if(time != 0) actNextImg = setTimeout(nextImg,time);
}



