<!--
$(document).ready(function(){

   // - Best Sellers Box
   $("#bestsellers-box-button").click(function() {
	  strTitle = $(this).attr("title"); 
	  if(strTitle=="BEST-SELLERS-SHOW") {
		   $(".bestsellers-box-container").slideToggle("slow");
			strTitle = $(this).attr("title","BEST-SELLERS-HIDE"); 
			$(this).css({ "background-position": "right -81px"}); 
	  }else{
		   $(".bestsellers-box-container").slideToggle("slow");
			strTitle = $(this).attr("title","BEST-SELLERS-SHOW"); 
			$(this).css({ "background-position": "right 3px"}); 
	  }
	});

 

   // - Best Sellers
   $("#bestsellers-button").click(function() {
	  strTitle = $(this).attr("title"); 
	  if(strTitle=="BEST-SELLERS-SHOW") {
		   $(".bestsellers-container-main").slideToggle("slow");
			strTitle = $(this).attr("title","BEST-SELLERS-HIDE"); 
			$(this).css({ "background-position": "right -84px"}); 
	  }else{
		   $(".bestsellers-container-main").slideToggle("slow");
			strTitle = $(this).attr("title","BEST-SELLERS-SHOW"); 
			$(this).css({ "background-position": "right 0px"}); 
	  }
	});

 

	
	// -  Event
	$(function() {
	   $('.shadeColoritemDiv').hover( function(){
											   
			jQuery(".shadeColoritemOnstateDiv", this).show();
			$(this).css('background-color', '#E7EEEB');
			strColor=jQuery(".shadeColoritemImgDiv", this).attr('title');
			$("#shadeColorViewImgDiv").css('background',strColor);
			strName=jQuery(".shadeColoritemTxtDiv", this).attr('title');
			$("#shadeColorViewTxtDiv").html(strName);
			
	   },
	   function(){
		jQuery(".shadeColoritemOnstateDiv", this).hide();
		$(this).css('background-color', '#ffffff');
		  
	   });
	});

	// - Shade MultiColor

	$(function() {
	   $('.shadeColoritemDivMulti').hover( function(){
			strNameOfShade = this.id;
			strIdOfShade = strNameOfShade.replace("shadeColoritemDivMulti","");
			//alert(strIdOfShade);
			$(this).css('background-color', '#E7EEEB');
			jQuery("#shadeThumbLineMulti"+strIdOfShade, this).css('border','2px solid #85a095');
			$("div[id^=shadeThumbImageMulti]",this).each(function() {
				strIdName = this.id;
				strColor = $(this).css("background-color");

				strNumber = strIdName.replace("shadeThumbImageMulti","");

				//strDivViewColorMulti += '<div style="background-color:'+strColor+';width:73px; float:left; overflow:hidden;" id="shadeImageShowMulti'+strNumber+'"><img src="/content/shade_type/2-pic2.png" width="73" height="60"></div>';
				
				
				$('#shadeImageShowMulti'+strNumber).css("background",strColor);
			});
			
			//strDivViewColorMulti += '<strong><div id="shadeColorViewTxtDivMulti"></div></strong>';
			//$('#shadeGenImageViewColorMulti').html(strDivViewColorMulti);


			strName=jQuery(".shadeColoritemTxtDivMulti", this).attr('title');
			$("#shadeColorViewTxtDivMulti").html(strName);

			//pgnFixAgain();

	   },
	   function(){
			$(this).css('background-color', '#ffffff');
			//strDivViewColorMulti = "";
			jQuery("#shadeThumbLineMulti"+strIdOfShade, this).css('border','2px solid #FFFFFF');
	   });
	});


});



function showTab(id,activeId){
     if(!activeId){activeId=id;}
	$("#producttab li").removeClass("selected");
	$("#producttab li").eq(activeId).addClass("selected");

	$(".product_content_tab").hide();
	$(".product_content_tab").eq(id).show();
}

function ChangeTab(id,activeId,bodywidth,bodyheight){
     if(!activeId){activeId=id;}
	$("#headingtab li").removeClass("selected");
	$("#headingtab li").eq(activeId).addClass("selected");

	$(".bodytab").hide();
	$(".bodytab").eq(id).show();
	$(".bodytab").eq(id).css("width",bodywidth);
	$(".bodytab").eq(id).css("height",bodyheight);
}

//-->
