// JavaScript Document
function searchString(num) {
var pid = num;
var string1 = window.parent.location.href;
var matchPos1 = string1.search(pid);

if(matchPos1 != -1)
	return true;
else
	return false;
}

function alternate(id){
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);  
   var rows = table.getElementsByTagName("tr");  
   for(i = 0; i < rows.length; i++){          
 //manipulate rows
     if(i == 0){
	 	if (searchString('Catelog.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
		}
     }
	 
	   else if(i == 1){
	 	if (searchString('Newarrivals.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=na&p=1';}
		}
     } 
	 
	 else if(i == 2){
	 	if (searchString('Tops.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=Tops&p=1';}
		}
     } 
	 
	 else if(i == 3){
	 	if (searchString('Bottoms.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=Bottoms&p=1';}
		}
     } 
	 
	 else if(i == 4){
	 	if (searchString('Dresses.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=Dresses&p=1';}
		}
     } 
	 
	 else if(i == 5){
	 	if (searchString('Sportswear.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=sw&p=1';}
		}
     } 
	 
	 else if(i == 6){
	 	if (searchString('Bags.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=Bags&p=1';}
		}
     } 
	 
	 else if(i == 7){
	 	if (searchString('Accessories.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=Accessories&p=1';}
		}
     } 
	 
	 else if(i == 8){
	 	if (searchString('Promotionitems.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='index.asp?c=pi&p=1';}
		}
     } 
	 
	 else if(i == 9){
	 		rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='/files/OrderForm.xls';}
		} 
	 
	 else if(i == 10){
	 	if (searchString('HowToOrder.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='HowToOrder.asp';}
		}
     } 
	 
	 else if(i == 11){
	 	if (searchString('PaymentDetails.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='PaymentDetails.asp';}
		}
     } 
	 
	 else if(i == 12){
	 	if (searchString('TermsAndConditions.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='TermsAndConditions.asp';}
		}
     } 
	 
	 else if(i == 13){
	 	if (searchString('Vip.asp') == true) {
       		rows[i].className = "mouseOver";
			}
		else{
			rows[i].className = "mouseOut";
			rows[i].onmouseover = function() { this.className ='mouseOver'; }
			rows[i].onmouseout = function() { this.className ='mouseOut'; }
			rows[i].onclick = function() { window.parent.location.href='Vip.asp';}
		}
     } 
	 
   }
 }
}

