startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;


function showPic (whichpic) {
	if (document.getElementById) {
		document.getElementById('placeholder')
		.src = whichpic.href;
		if(!document.getElementById('plc')){
			if (whichpic.title) {
				document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
			} 
			else {
				document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
			}
		}
		else{
			if (whichpic.title) {
				var title = whichpic.title.split('|');
				var t = 'Fabric: '+title[1]+'<br />Color: '+title[2]+'<br />Wholesale (USD): '+title[0];
				document.getElementById('desc').innerHTML = t;
			} 
		}
		return false;
	} 
	else {
		return true;
	}
}
