// JavaScript By Hem Singh

var tapsMixers=new Array(), tapsMixersVal=new Array();
var showers=new Array(), showersVal=new Array();
var bathAccess=new Array(), bathAccessVal=new Array();
var i, newObj, proValue;

function hemsingh(selObj, targObj, restore, targWin)
{
tapsMixers[1]="Kubel";			tapsMixersVal[1]="kubel.html";
tapsMixers[2]="Ebony";			tapsMixersVal[2]="ebony.html";
tapsMixers[3]="Riveau";			tapsMixersVal[3]="riveau.html";
tapsMixers[4]="Signature";		tapsMixersVal[4]="signature.html";
tapsMixers[5]="Ocean";			tapsMixersVal[5]="ocean.html";
tapsMixers[6]="Affair";			tapsMixersVal[6]="affair.html";
tapsMixers[7]="Vintage City";	tapsMixersVal[7]="vint_city.html";
tapsMixers[8]="Vintage";		tapsMixersVal[8]="vintage.html";
tapsMixers[9]="Angel";			tapsMixersVal[9]="angel.html";
tapsMixers[10]="Sequel";		tapsMixersVal[10]="sequel.html";
tapsMixers[11]="Crystal";		tapsMixersVal[11]="crystal.html";
tapsMixers[12]="Eco";			tapsMixersVal[12]="eco.html";

showers[1]="Rain Showers";		showersVal[1]="showers_rain.html";
showers[2]="Arm Showers";		showersVal[2]="showers_arm.html";
showers[3]="Telephonic Showers";showersVal[3]="showers_tele.html";

bathAccess[1]="Comfort Collection";		bathAccessVal[1]="comfort.html";
bathAccess[2]="Elegance Collection";	bathAccessVal[2]="elegance.html";

		proValue=selObj.options[selObj.selectedIndex].value;
//			subproValue=document.ss.proSubMenu.options;
for(i=1;i<tapsMixers.length;i++)
	{
		newObj=new Option();
		//		newObj.text=targObj.options.text;
		//		newObj.value=targObj.options.value;
		targObj.options[i]=newObj;

		if(proValue=="tapsMixers")
		{
			targObj.options[i].text=tapsMixers[i];
			targObj.options[i].value=tapsMixersVal[i];
			targObj.options.length=13;
		}
		 else if(proValue=="showers")
		{
			targObj.options[i].text=showers[i];
			targObj.options[i].value=showersVal[i];
			targObj.options.length=4;
		}
		else if(proValue=="bathAccess")
		{
			targObj.options[i].text=bathAccess[i];
			targObj.options[i].value=bathAccessVal[i];
			targObj.options.length=3;
		}
		else if(proValue=="sfa"){
			eval("parent.location='productcat.html#sfa'");
			}
		else{	targObj.options.length=1;	}
	}
//	if(restore)	selObj.selectedIndex=0;
	if(restore)	selObj.selectedIndex=selObj.selectedIndex;
}

/******************************/
function hsJumpMenu(targ, selObj, restore)
{
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//	if(restore)	selObj.selectedIndex=0;
	if(restore)	selObj.selectedIndex=selObj.options[selObj.selectedIndex].value;
}

/******************************/
function MM_openBrWindow(theURL,winName,features) { //v2.0
  hs=window.open('',winName,features);
 hs.document.write("<html><head><title>"+winName+"</title> <link href='images/main_css.css' rel='stylesheet' type='text/css' /></head><body> <img src="+theURL+" /> </body></html>");
}

//<div id='close_win'> <a href='javascript:void(0);' onClick='window.close();'>Close</a> </div>