<!--

MM_preloadImages('/graphics/design/shortcuts/color/galleries.jpg','/graphics/design/shortcuts/color/email_me.jpg','/graphics/design/shortcuts/color/slide_show.jpg','/graphics/design/shortcuts/color/light_box.jpg');

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


<!--
/* This script copyrighted 2000 to Marcus Fridholm.
   You may use it freely as long as you do not delete this copyright notice.
   contacts: marcus@widham.se url: www.widham.se
   This script is provided as is, suggestions and feedback are welcome however. */ 

var ns=(document.layers);
var ie=(document.all);
var future=((document.getElementById) && (!navigator.userAgent.indexOf('Opera') != -1));
var old=(parseInt(navigator.appVersion) <=3);

function makeCss(){
	this.textColor = "#FFFFFF";
	this.textHover = "#FFFF00";
	this.bgColor = "#000000";
	this.bgHover = "#0000CC";
	this.menuFont = "Arial, Verdana, Geneva, Helvetica, sans-serif";
	this.menuPaddingTop = "0";
	this.menuFontSize = '8';
	this.borderColor = "#000000";
	this.writeCss = writeCss;
}

var myCss = new makeCss( );

function makeMenu(idref,labelText, itemZ){
	this.idref = idref;
	this.labelText = labelText;
	this.itemZ = itemZ;

	this.posTop = '0';
	this.posLeft = '0';

	this.itemWidth = '100';
	this.itemHeight = '20';
	
	this.addMenuItem = addMenuItem;
	this.writeMenu = writeMenu;
	this.showMenu = showMenu;
	this.hideMenu = hideMenu;
	this.items = new Array( );
	this.subUrl = new Array( );
}

function addMenuItem(subLabel,subUrl){
	this.items[this.items.length] = subLabel;
	this.subUrl[this.subUrl.length] = subUrl;
}

function writeMenu( ){
	var myHtmlRef = "";
	var subHeight = eval((parseInt(this.itemHeight)*parseInt(this.items.length))+10);
	if (ns){
		myHtmlRef += "<layer class=\'menyRubrik\' id=\'"+this.idref;
		myHtmlRef +="\' left=\'"+(parseInt(this.posLeft))+"px";
		myHtmlRef +="\' top=\'"+(parseInt(this.posTop))+"px";
		myHtmlRef +="\' width=\'"+this.itemWidth;
		myHtmlRef +="\' height=\'"+this.itemHeight;
		myHtmlRef +="\' bgColor=\'"+myCss.bgColor;
		myHtmlRef +="\' z-index=\'"+this.itemZ;
		myHtmlRef +="\' onMouseOver=\'showMenu(\"sub"+this.idref+"\")\'";
		myHtmlRef +=" onMouseOut=\'hideMenu(\"sub"+this.idref+"\")\'>";
		myHtmlRef +="<font color=\'"+myCss.textColor+"\'>";
		myHtmlRef +="&nbsp;"+this.labelText+"</font>";
		myHtmlRef +='</layer>';
		myHtmlRef += "<layer class=\'item\' id=\'sub"+this.idref;
		myHtmlRef +="\' left=\'"+((parseInt(this.posLeft))+(parseInt(this.itemWidth)))+"px";
		myHtmlRef +="\' top=\'"+eval(parseInt(this.posTop));
myHtmlRef +="\' width=\'"+170+"px";
		//myHtmlRef +="\' width=\'"+(parseInt(this.itemWidth)+40)+"px";
		myHtmlRef +="\' height=\'"+subHeight;
		myHtmlRef +="\' bgColor=\'"+myCss.bgColor;
		myHtmlRef +="\' visibility=\'hide\'";
		myHtmlRef +=" z-index=\'"+eval(this.itemZ+1)+"\'";
		myHtmlRef +=" onMouseOver=\'showMenu(\"sub"+this.idref+"\")\'";
		myHtmlRef +=" onMouseOut=\'hideMenu(\"sub"+this.idref+"\")\'>";

		for (var i=0; i<this.items.length; i++) {
		if(this.items[i].indexOf("<hr>")!=-1){
		 myHtmlRef += "<hr color=\'#000000\' width=\'95%\' noshade>";
		}else{
 		myHtmlRef += "&nbsp;";
		 if(this.subUrl[i].indexOf("http://")!=-1){
 		  myHtmlRef += "<a href=\'"+this.subUrl[i]+"\' class=\'item\' target=\'blank\'>";
		 }else{
 		  myHtmlRef += "<a href=\'"+this.subUrl[i]+"\' class=\'item\'>";
		 }
		myHtmlRef += "<font color=\'"+myCss.textColor+"\' face=\'"+myCss.menuFont+"\'>";
		myHtmlRef += this.items[i]+"</font></a><br>";
		}
		}
		myHtmlRef += "</layer>";
				
	}else if( ie || future ){

		myHtmlRef += "<div id=\'"+this.idref;
		myHtmlRef +="\' class=\'menyRubrik\' style=\'position: absolute;";
		myHtmlRef +=" left: "+(parseInt(this.posLeft))+"px;";
		myHtmlRef +=" top: "+this.posTop+"px;";
		myHtmlRef +=" width: "+this.itemWidth+"px;";
		myHtmlRef +=" padding-top: "+myCss.menuPaddingTop+"px;";
		myHtmlRef +=" height: "+this.itemHeight+"px;";
		myHtmlRef +=" z-index: "+this.itemZ+";\'";
		myHtmlRef +=" onMouseOver=\'showMenu(\"sub"+this.idref+"\")\'";
		myHtmlRef +=" onMouseOut=\'hideMenu(\"sub"+this.idref+"\")\'>";
		myHtmlRef +="&nbsp;"+this.labelText;
		myHtmlRef +="</div>";
		myHtmlRef += "<div  class=\'item\' id=\'sub"+this.idref;
		myHtmlRef +="\' style=\'position: absolute;";
		myHtmlRef +=" left: "+(parseInt(this.posLeft)+(parseInt(this.itemWidth)))+"px;"; 	//XXXXXXXXXXXXXXX 
		myHtmlRef +=" top: "+eval(parseInt(this.posTop))+"px;";
		myHtmlRef +=" width: "+170+"px;";
		//myHtmlRef +=" width: "+(parseInt(this.itemWidth)+40)+"px;";
		myHtmlRef +=" height: "+subHeight+"px;";
		myHtmlRef +=" background-color: "+myCss.bgColor+";";
		myHtmlRef +=" visibility: hidden;";
		myHtmlRef +=" z-index: "+eval(this.itemZ+1)+";\'";
		myHtmlRef +=" onMouseOver=\'showMenu(\"sub"+this.idref+"\")\'";
		myHtmlRef +=" onMouseOut=\'hideMenu(\"sub"+this.idref+"\")\'>";
//myHtmlRef +=" <img src=\'/grafik/meny_topp.gif\'>";
//myHtmlRef +=" <div style=\'background-color:"+myCss.bgColor+"; border-left:1px solid #000000";
		myHtmlRef +="<span style=\'height: 4px; font-size: 2pt;\'>&nbsp;</span>";

		for (var i=0; i<this.items.length; i++) {
		if(this.items[i].indexOf("<hr>")!=-1){
		myHtmlRef += "<hr color=\'#000000\' width=\'95%\' style=\'height:1px\' noshade>";
		}else{
		if(this.subUrl[i].indexOf("http://")!=-1){
 		myHtmlRef += "<a href=\'"+this.subUrl[i]+"\' class=\'item\' target=\'blank\'>";
		}else{
 		myHtmlRef += "<a href=\'"+this.subUrl[i]+"\' class=\'item\'>";
		}
myHtmlRef += "<span style=\'width:"+170+"px\'>&nbsp;";
		//myHtmlRef += "<span style=\'width:"+(parseInt(this.itemWidth)+40)+"px\'>&nbsp;"
		myHtmlRef += this.items[i]+"</span></a><br>";
		}
            }
//myHtmlRef +=" </div><img src=\'/grafik/meny_botten.gif\'>";
		myHtmlRef += "</div>";
		
	}
		//document.write("<!--")
         document.write(myHtmlRef);
		 //document.write("-->")
}

function showMenu(lyr){
	if (ns)	eval("document.layers['"+lyr+"'].visibility='show'");
	if (ie) eval(lyr+".style.visibility='visible'");
	if (future){
	 colSelects = document.getElementsByTagName("select");
	 for(intSel=0;intSel<colSelects.length;intSel++){
	 	colSelects[intSel].style.visibility="hidden";
	 }
	 eval("document.getElementById('"+lyr+"').style.visibility='visible'");
	 }
}

function hideMenu(lyr){
	if (ns) eval("document.layers['"+lyr+"'].visibility='hide'");
	if (ie) eval(lyr+".style.visibility='hidden'");
	if (future){
	 colSelects = document.getElementsByTagName("select");
	 for(intSel=0;intSel<colSelects.length;intSel++){
	 	colSelects[intSel].style.visibility="visible";
	 }
	 eval("document.getElementById('"+lyr+"').style.visibility='hidden'");
	}
}

function writeCss(){
var newCss = "<style type='text/css'> \n";
	newCss += "<!-- \n";
	newCss += "A.item { \n";
	newCss += "font-family: "+myCss.menuFont+";\n"; 
	newCss += "font-size: "+eval(parseInt(this.menuFontSize))+"pt; \n"; 
	newCss += "font-weight: bold; \n"; 
	newCss += "color: "+this.textColor+"; \n";
	newCss += "background-color: "+this.bgColor+"; \n"; 
	newCss += "text-decoration: none; \n";
	if (ie || future) newCss += "cursor: hand \n";
	newCss += "} \n";
//newCss += "div.item {border-left: 1px solid white; border-top: 1px solid white; border-right: 1px solid black; border-bottom: 1px solid black;} \n";
	newCss += "div.item {border: 1px solid "+this.borderColor+";} \n";
	newCss += ".menyRubrik { \n";
//newCss += "border-left:1px solid white; border-top:1px solid white; border-right:1px solid black; border-bottom:1px solid black;\n"; 
	newCss += "font-family: "+this.menuFont+"; \n"; 
	newCss += "font-size: "+this.menuFontSize+"pt; \n"; 
	newCss += "font-weight: bold; \n";
//newCss += "color: #DFD0BB; \n"; 
	newCss += "color: "+this.textColor+"; \n";
//newCss += "background-color: #205898; \n";
	newCss += "background-color: "+this.bgColor+"; \n";
	if (ie || future) newCss += "cursor: hand \n";
	newCss += "} \n";
	newCss += "A.item:link { \n";  
	newCss += "text-decoration: none \n";
	newCss += "} \n";
	newCss += "span.item:visited { \n";  
	newCss += "text-decoration: none \n";
	newCss += "} \n";
	newCss += "A.item:hover { \n"; 
	newCss += "text-decoration: none ; \n";
newCss += "font-weight: bold ; \n";  
	newCss += "color: "+this.textHover+"; \n";
	newCss += "background-color: "+this.bgHover+"; \n";
	newCss += "} \n";
	newCss += "--> \n";
	newCss += "</style> \n";

document.write(newCss);
}

// -->