/**
* CSS-based Drop Down Menu Code
**/

s1Hover = function() {
	var menuels = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<menuels.length; i++) {
		menuels[i].onmouseover=function() {
			this.className+=" s1hover";
		}
		menuels[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" s1hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", s1Hover);

s2Hover = function() {
	var menuels1 = document.getElementById("nav1").getElementsByTagName("LI");
	for (var i=0; i<menuels1.length; i++) {
		menuels1[i].onmouseover=function() {
			this.className+=" s2hover";
		}
		menuels1[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" s2hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", s2Hover);

/* s3Hover = function() {
	var menuels2 = document.getElementById("nav2");
	
	menuels2.onmouseover=function() {
		this.className += " s3hover";
	}
	
	menuels2.onmouseout=function() {
		this.className=this.className.replace(new RegExp(" s3hover\\b"), "");
	}
}
if (window.attachEvent) window.attachEvent("onload", s3Hover);

s4Hover = function() {
	var menuels3= document.getElementById("shoppingCart");
	menuels3.onmouseover=function() {
		this.className += " s4hover";
	}
	
	menuels3.onmouseout=function() {
		this.className=this.className.replace(new RegExp(" s4hover\\b"), "");
	}
}
if (window.attachEvent) window.attachEvent("onload", s4Hover);*/

function alttable(table_name,rowheader,row1,row2) {	
	//loop over a tags inside tour div 
	rowlist=document.getElementsByName(table_name);	
	for (i=0;i<rowlist.length;i++) {
		if (i/1>0) {		
			if (i%2==1) {		
				rowlist[i].setAttribute('className',row1);
				rowlist[i].setAttribute('class',row1);				
			} else {			
				rowlist[i].setAttribute('className',row2);
				rowlist[i].setAttribute('class',row2);					
/* className is use so ie can read it */				
			}
		} else {
			rowlist[i].setAttribute('className',rowheader);
			rowlist[i].setAttribute('class',rowheader);					
		}
	}
}

function altrow(table_name,rowheader,row1,row2) {	
	//loop over a tags inside tour div 
	rowlist=document.getElementById(table_name);	
	rowlistlinks= rowlist.getElementsByTagName('tr');
	for (i=0;i<rowlistlinks.length;i++) {
		if (i/1>0) {		
			if (i%2==1) {		
				rowlistlinks[i].setAttribute('className',row1);
				rowlistlinks[i].setAttribute('class',row1);				
			} else {			
				rowlistlinks[i].setAttribute('className',row2);
				rowlistlinks[i].setAttribute('class',row2);					
/* className is use so ie can read it */				
			}
		} else {
			rowlistlinks[i].setAttribute('className',rowheader);
			rowlistlinks[i].setAttribute('class',rowheader);					
		}
	}
}

