// JavaScript Document
var vHeaderText="";
var vRoot = "/ultraclubnp";
var vCgi  = "/brand";
var vCookie = "bodek96";
var vHomeDir = "";
var vLoggedIn=getCookie("loggedIn" + vCookie);
var vSponsor="000006";
var vSelectedOption=getCookie("selectedOpt"+vCookie);
var vURL=document.location.toString();
var vImageDir = vRoot + "/images";

function clearBox(vText) {
  vText.value = "";
}

function resetBox(vText) {
 if (vText.value == "")
 vText.value = "Keyword search...";
}

vHeaderText += '<link href="' + vRoot + '/styles/header.css" rel="stylesheet" type="text/css">';

vHeaderText += '<table class="siteTable" align="center" border="0" cellpadding="0" cellspacing="0">';
vHeaderText += '<tbody>';
vHeaderText += '<tr bgcolor="#ffffff" valign="top">';
vHeaderText += '	<td align="right" valign="top" width="100%">';
vHeaderText += '		<table border="0" cellspacing="0" cellpadding="0" width="100%">';
/*vHeaderText += '			<tr><td colspan="4" align="right"><img src="images/wishlist_bar.gif"></td></tr>';*/
vHeaderText += '			<tr><td background="' + vImageDir + '/uc_navbar.gif" width="100%" height="57" align="right" style="background-repeat: no-repeat;">';
vHeaderText += '<form name="wordsearch" style="margin: 0 0 0 0;" action="/cgi-bin' + vCgi + '/site.w?location=olc/cobrand-search.w&frames=no&target=main&sponsor=' + vSponsor + '&text_qualifier=and&searchtype=word&from=navbar" method="post">';
vHeaderText += '				<table border="0" cellspacing="0" cellpadding="0" width="100%">';
vHeaderText += '					<td align="left" width="600"><a href="'+ vRoot +'"><img src="'+ vRoot + '/images/spacer.gif" width="215" height="52"></a></td>';
vHeaderText += '					<td id="keywordSearch" width="80" align="left"><input type="text" name="textsearch" class="searchBox" value="Keyword search..." size="150" onfocus="clearBox(this);" onBlur="resetBox(this);" style="width: 150px;"></td>';
vHeaderText += '					<td id="keywordButton" ><input type="image" src="' + vImageDir  + '/arrowbut.gif" width="20"></td>';
vHeaderText += '				</table>';
vHeaderText += '</form>';
vHeaderText += '			</td>';
//vHeaderText += '			<tr><td height="5"></td></tr>';
vHeaderText += '		</table>';
vHeaderText += '	</td>';
vHeaderText += '</tr>';
vHeaderText += '<tr><td valign="top">';
/* ************************* start top navigation bar ************************************************************************ */
var vUrl = document.location.href;
var vQueryString= vUrl.substring(vUrl.indexOf("?") + 1,vUrl.length);
var Params = vQueryString.split("&");
for (var i=0; i<Params.length; i++){
 var vName=Params[i].substr(0,Params[i].indexOf("="));
  var vEntry=Params[i].substr(Params[i].indexOf("=")+1,Params[i].length);

   if(vName=="category"){ 
   		vCategory=vEntry;
             break; }     
              else
                  vCategory="none";
                  }

                  if (vCategory == "none" )
                  {                
					
					vHeaderText += '		<table border="0" cellspacing="0" cellpadding="0" width="100%">';
					vHeaderText += '		<tr>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=2\',\'main\')" onmouseover="polos.src=\'' + vImageDir  + '/menu/1polos_x.gif\'" onmouseout="polos.src=\'' + vImageDir  + '/menu/1polos.gif\'"><img src="' + vImageDir  + '/menu/1polos.gif" name="polos"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=W\',\'main\')" onmouseover="dress.src=\'' + vImageDir  + '/menu/2casual_x.gif\'" onmouseout="dress.src=\'' + vImageDir  + '/menu/2casual.gif\'"><img src="' + vImageDir  + '/menu/2casual.gif" name="dress"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=3\',\'main\')" onmouseover="tees.src=\'' + vImageDir  + '/menu/3tshirts_x.gif\'" onmouseout="tees.src=\'' + vImageDir  + '/menu/3tshirts.gif\'"><img src="' + vImageDir  + '/menu/3tshirts.gif" name="tees"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=1\',\'main\')" onmouseover="fleece.src=\'' + vImageDir  + '/menu/4fleece_x.gif\'" onmouseout="fleece.src=\'' + vImageDir  + '/menu/4fleece.gif\'"><img src="' + vImageDir  + '/menu/4fleece.gif" name="fleece"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=4\',\'main\')" onmouseover="outerwear.src=\'' + vImageDir  + '/menu/5outerwear_x.gif\'" onmouseout="outerwear.src=\'' + vImageDir  + '/menu/5outerwear.gif\'"><img src="' + vImageDir  + '/menu/5outerwear.gif" name="outerwear"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=7\',\'main\')" onmouseover="bags.src=\'' + vImageDir  + '/menu/6bags_x.gif\'" onmouseout="bags.src=\'' + vImageDir  + '/menu/6bags.gif\'"><img src="' + vImageDir  + '/menu/6bags.gif" name="bags"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=6\',\'main\')" onmouseover="head.src=\'' + vImageDir  + '/menu/7head_x.gif\'" onmouseout="head.src=\'' + vImageDir  + '/menu/7head.gif\'"><img src="' + vImageDir  + '/menu/7head.gif" name="head"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=A\',\'main\')" onmouseover="aprons.src=\'' + vImageDir  + '/menu/8aprons_x.gif\'" onmouseout="aprons.src=\'' + vImageDir  + '/menu/8aprons.gif\'"><img src="' + vImageDir  + '/menu/8aprons.gif" name="aprons"></a></td>';
					/*vHeaderText += '			<td class="topNavCell"><a href="" onmouseover="aprons.src=\'images/menu/aprons_r.gif\'" onmouseout="aprons.src=\'images/menu/aprons.gif\'"><img src="images/menu/aprons.gif" name="aprons"></a></td>';
					*/vHeaderText += '		</tr>';
					vHeaderText += '		<tr><td colspan="9" height="4" style="padding: 0;"><img style="display: block; padding:0;" src="' + vImageDir + '/bluebar.gif"></td></tr>';
					//vHeaderText += '		<tr><td colspan="9" height="3"></td></tr>';
					vHeaderText += '		</table>';
				  				  
					}else{
                        if (vCategory == "2"){
                            vCatImg1 = "1polos_x.gif";
                        }else{
                            vCatImg1 = "1polos.gif";
						}
                       	if (vCategory == "W"){ 
	     					vCatImg2 = "2casual_x.gif";
	                  	}else{
	                        vCatImg2 = "2casual.gif";
						}
	                    if (vCategory == "3"){
	                        vCatImg3 = "3tshirts_x.gif";
	                    }else{
	                        vCatImg3 = "3tshirts.gif";
						}
		  			 	if (vCategory == "1"){
		           			vCatImg4 = "4fleece_x.gif";
		                }else{
		                    vCatImg4 = "4fleece.gif";
						}
		                if (vCategory == "4"){
		                    vCatImg5 = "5outerwear_x.gif";
		                }else{
			   				vCatImg5 = "5outerwear.gif";
						}
			         	if (vCategory == "7"){ 
							vCatImg6 = "6bags_x.gif";
			            }else{
			                vCatImg6 = "6bags.gif";
						}
			            if (vCategory == "6"){ 
							vCatImg7 = "7head_x.gif";
			            }else{
			                vCatImg7 = "7head.gif";
						}
				     	if (vCategory == "ot"){ 
							vCatImg8 = "8aprons_x.gif";
				        }else{
				            vCatImg8 = "8aprons.gif";
						}
						
					vHeaderText += '		<table border="0" cellspacing="0" cellpadding="0" width="100%">';
					vHeaderText += '		<tr>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=2\',\'main\')" onmouseover="polos.src=\'' + vImageDir  + '/menu/1polos_x.gif\'" onmouseout="polos.src=\'' + vImageDir  + '/menu/' + vCatImg1 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg1 + '" name="polos"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=W\',\'main\')" onmouseover="dress.src=\'' + vImageDir  + '/menu/2casual_x.gif\'" onmouseout="dress.src=\'' + vImageDir  + '/menu/' + vCatImg2 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg2 + '" name="dress"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=3\',\'main\')" onmouseover="tees.src=\'' + vImageDir  + '/menu/3tshirts_x.gif\'" onmouseout="tees.src=\'' + vImageDir  + '/menu/' + vCatImg3 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg3 + '" name="tees"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=1\',\'main\')" onmouseover="fleece.src=\'' + vImageDir  + '/menu/4fleece_x.gif\'" onmouseout="fleece.src=\'' + vImageDir  + '/menu/' + vCatImg4 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg4 + '" name="fleece"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=4\',\'main\')" onmouseover="outerwear.src=\'' + vImageDir  + '/menu/5outerwear_x.gif\'" onmouseout="outerwear.src=\'' + vImageDir  + '/menu/' + vCatImg5 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg5 + '" name="outerwear"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=7\',\'main\')" onmouseover="bags.src=\'' + vImageDir  + '/menu/6bags_x.gif\'" onmouseout="bags.src=\'' + vImageDir  + '/menu/' + vCatImg6 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg6 + '" name="bags"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=6\',\'main\')" onmouseover="head.src=\'' + vImageDir  + '/menu/7head_x.gif\'" onmouseout="head.src=\'' + vImageDir  + '/menu/' + vCatImg7 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg7 + '" name="head"></a></td>';
					vHeaderText += '			<td class="topNavCell"><a href="javascript:golink(\'olc/catalog-browse.w?category=A\',\'main\')" onmouseover="aprons.src=\'' + vImageDir  + '/menu/8aprons_x.gif\'" onmouseout="aprons.src=\'' + vImageDir  + '/menu/' + vCatImg8 + '\'"><img src="' + vImageDir  + '/menu/' + vCatImg8 + '" name="aprons"></a></td>';
					/*vHeaderText += '			<td class="topNavCell"><a href="" onmouseover="aprons.src=\'images/menu/aprons_r.gif\'" onmouseout="aprons.src=\'images/menu/aprons.gif\'"><img src="images/menu/aprons.gif" name="aprons"></a></td>';
					*/vHeaderText += '		</tr>';
					vHeaderText += '		<tr><td colspan="9" height="4" style="padding: 0;"><img style="display: block; padding:0;" src="' + vImageDir + '/bluebar.gif"></td></tr>';
					vHeaderText += '		<tr><td colspan="9" height="3"></td></tr>';
					vHeaderText += '		</table>';
						
						
				 }

/* ************************* end top navigation bar ************************************************************************ */



vHeaderText += '<table width="784" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top">';
//vHeaderText += '		<tr><td colspan="9" height="3" class="nav_bottom_bar"><img src="images/spacer.gif" width="784" height="3"></td></tr>';
document.write(vHeaderText);
