//

// TNavigationPrint
function TNavigationPrint(){
	var myNavIndex = XML.getFirstItem("Config").getFirstItem("NavigationIndex").getValue()
	if(!(myNavIndex=="null"||myNavIndex=="")){
		navigation[parseInt(myNavIndex)].active = true;
		if(navigation[parseInt(myNavIndex)].parentId!=null) navigation[navigation[parseInt(myNavIndex)].parentId].open = true;
		};
	var rString = '<TABLE class="CATLINKS1STPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" >';
	for(var i=0;i<navigation.length;i++) if(navigation[i].parentId==null){
		rString += navigation[i].print();
		if(navigation[i].active==true||navigation[i].open==true){
			rString += "</TABLE>"
			rString += '<TABLE class="CATLINKS2NDPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" ><TR valign="top">';
			for(var j=0;j<navigation.length;j++) if(navigation[j].parentId==navigation[i].id){
				rString += navigation[j].print();
				};
			rString += "</TABLE>"
			rString += '<TABLE class="CATLINKS1STPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" >';
			};
		};
		rString += "</TABLE>"
	return(rString);
	};
// TNavElemprint
function TNavElemPrint(){
	var rString = '<TR valign="top">';
	with(this){
		if(active){
			if(parentId!=null) rString += '<TD class="ACTIVECATEGORY" ><IMG SRC="../assets/images/spacer.gif" width="14" height="1"></TD>'
			rString += '<TD class="ACTIVECATEGORY" ><img src="../assets/images/bulletcatact.gif" width="14" height="11" alt="BulletCatAct.gif" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
			}
		else{
			if(parentId!=null){
				rString += '<TD class="CATLINKS2NDBULLET" ><IMG SRC="../assets/images/spacer.gif" width="14" height="1"></TD>';
				rString += '<TD class="CATLINKS2NDBULLET" ><img src="../assets/images/bulletcat2nd.gif" width="14" height="11" alt="BulletCat2nd.gif" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>';
				}
			else{
				rString += '<TD class="CATLINKS1STBULLET" >';
				if(!open) rString += '<img src="../assets/images/bulletcat1st.gif" width="14" height="11" alt="BulletCat1st.gif" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
				else rString += '<img src="../assets/images/bulletcat1stcls.gif" width="14" height="11" alt="BulletCat1stCls.gif" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>';
				};
			};
		if(active) rString += '<TD nowrap class="ACTIVECATEGORY"  width="100%">'
		else{
			if(parentId!=null) rString += '<TD nowrap class="CATLINKS2NDCAPTION"  width="100%">'
			else rString += '<TD nowrap colspan="2" class="CATLINKS1STCAPTION"  width="100%">'
			};
		rString += "<a href=\"javascript: changeLoc(" + this.id + ",'" + this.linkUrl + "')\" class=\"wagrunav\">";
		rString += caption;
		rString += "</a>";
		rString += "</TD>"
		rString += "</TR>";
		};
	return rString; 
	};

//

// navElem
function navElem(id,caption,linkUrl,parentId){
	this.id = id;
	this.caption = caption;
	this.linkUrl = linkUrl;
	this.parentId = parentId;
	this.print = TNavElemPrint;
	this.active = false;
	this.open = false;
	};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"Watches","pi1167691248.htm",null);
navigation[1] = new navElem(1,"WAC","pi1169257977.htm",0);
navigation[2] = new navElem(2,"WG","pi292516550.htm",0);
navigation[3] = new navElem(3,"WK477","pi-1621183077.htm",0);
navigation[4] = new navElem(4,"WK536","pi-1095196351.htm",0);
navigation[5] = new navElem(5,"WK563","pi-938991270.htm",0);
navigation[6] = new navElem(6,"WK565","pi308472582.htm",0);
navigation[7] = new navElem(7,"WK575","pi1868498802.htm",0);
navigation[8] = new navElem(8,"WK576","pi797778590.htm",0);
navigation[9] = new navElem(9,"WK577","pi-1959776641.htm",0);
navigation[10] = new navElem(10,"WK591","pi-581070728.htm",0);
navigation[11] = new navElem(11,"WKA","pi-2060119857.htm",0);
navigation[12] = new navElem(12,"WKB","pi-2144473500.htm",0);
navigation[13] = new navElem(13,"WKD","pi1900068757.htm",0);
navigation[14] = new navElem(14,"WKH","pi-792622286.htm",0);
navigation[15] = new navElem(15,"WKI","pi-409705525.htm",0);
navigation[16] = new navElem(16,"WKN","pi1115548848.htm",0);
navigation[17] = new navElem(17,"WKP","pi-1899447567.htm",0);
navigation[18] = new navElem(18,"WKR","pi947741278.htm",0);
navigation[19] = new navElem(19,"WKS","pi-706036089.htm",0);
navigation[20] = new navElem(20,"WKW","pi-1070544964.htm",0);
navigation[21] = new navElem(21,"WKXA","pi-553253875.htm",0);
navigation[22] = new navElem(22,"WKY","pi502424650.htm",0);
navigation[23] = new navElem(23,"WKZ","pi708189443.htm",0);
navigation[24] = new navElem(24,"WM","pi2069089160.htm",0);
navigation[25] = new navElem(25,"WMD","pi1169102901.htm",0);
navigation[26] = new navElem(26,"WVK","pi815199977.htm",0);

// changeLoc
function changeLoc(id,linkUrl){
	XML.getFirstItem("Config").getFirstItem("NavigationIndex").putValue(id.toString());
	safeData();
	location.href = linkUrl;
	};

