function visaBild(bild){
	document.getElementById('storBild').src="/proffs/images/produkter/200/"+bild;
	document.getElementById('bildTarget').href="/proffs/images/produkter/orginal/"+bild;
}

function visaProdInfo(org){
	document.getElementById('tabFalt').innerHTML=document.getElementById(org).innerHTML;
}

function emptyTF(el,txtvalue){
	if(trim(el.value)==txtvalue){el.value="";}	
}

function fillTF(el,txtvalue){
	if(trim(el.value).length==0){el.value=txtvalue;}
}


function trim(str) {
	var	str = str.replace(/^\s\s*/, ''),
		ws = /\s/,
		i = str.length;
	while (ws.test(str.charAt(--i)));
	return str.slice(0, i + 1);
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("prodmenu");
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;
