var ie	= document.all?1:0
var n	= document.layers?1:0
var ns6	= document.getElementById&&!document.all?1:0


var siteWidth		= 740
var menyWidth		= 245
var contentWidth	= siteWidth - menyWidth

var topHeight		= 77
var contentHeight	= 260	//only Netscape 4
var bottomHeight	= 80
var varPrivat		="07_meny2.gif" //markera menu-privat
var varBli		="08_meny_1.gif"


function layoutCssForNetscape()
{
var strTemp 

	strTemp  = "#top {position:absolute; left: 0px; top: 0px; width: " + siteWidth + "px; height: " + topHeight + "px; }"
	strTemp += "#menu {position:absolute; left: 0px; top: " + (topHeight -1 ) + "px; width: " + menyWidth + "px; height: " + (contentHeight + 2)+ "px; }"
	strTemp += "#bottom {position:absolute; left: 0px; top: " + (topHeight + contentHeight) + "px; width: " + siteWidth + "px; height: " + bottomHeight + "px; }"
	
	return strTemp
}


function getTopBefore(login)
{
	var strTemp
	//IE using full screen.
	if (n)
	{
		strTemp = "<table border=0 cellspacing=0 cellpadding=0 height=422 width=" + siteWidth + ">";
		strTemp += "<tr><td height=" + topHeight + " colspan=2>";
	}
	else
	{
		//strTemp = "<table border=0 cellspacing=0 cellpadding=0 height=422 width=" + siteWidth + ">"
		strTemp = "<table border=0 cellspacing=0 cellpadding=0 height=100% width=" + siteWidth + ">"
		strTemp += "<tr><td height=" + topHeight + " colspan=2>"
		
	}
	if(!login){
		strTemp += "<a href=http://www.skandia.se ><img SRC=" + backgroundImgPath + "01_logga.jpg border=0 vspace=0 hspace=0></a><img SRC=" + backgroundImgPath + "02_blank.jpg border=0 vspace=0 hspace=0><br><img src=" + backgroundImgPath + "04_blank.gif width=222 height=17><img src=" + backgroundImgPath + "08_blank.gif width=20 height=17><img name=menuitem1 border=0 src=" + backgroundImgPath + "06_meny.gif width=74 height=17><img src=" + backgroundImgPath + "08_blank.gif width=9 height=17><img ID=imgP name=menuitem2 border=0 src=" + backgroundImgPath + varPrivat + " width=66 height=17><img name=menuitem3 border=0 src=" + backgroundImgPath + "05_meny.gif width=103 height=17><img src=" + backgroundImgPath + "08_blank.gif width=24 height=17><img ID=imgB name=menuitem4 border=0 src=" + backgroundImgPath + varBli + " width=124 height=17><img name=minasidor border=0 src=" + backgroundImgPath + "09_menyknapp_1.gif width=97 height=17>";
	}else{
		strTemp += "<a href=http://www.skandia.se ><img SRC=" + backgroundImgPath + "01_logga.jpg border=0 vspace=0 hspace=0></a><img SRC=" + backgroundImgPath + "02_blank.jpg border=0 vspace=0 hspace=0><br><img src=" + backgroundImgPath + "04_blank.gif width=222 height=17><img src=" + backgroundImgPath + "08_blank.gif width=20 height=17><img name=menuitem1 border=0 src=" + backgroundImgPath + "06_meny.gif width=74 height=17><img src=" + backgroundImgPath + "08_blank.gif width=9 height=17><img ID=imgP name=menuitem2 border=0 src=" + backgroundImgPath + varPrivat + " width=66 height=17><img name=minasidor border=0 src=" + backgroundImgPath + "logga_ut_off.gif width=81 height=17>";
	}
	return strTemp
}
/*
function getTopBefore(login)
{
	var strTemp
	//IE using full screen.
	if (n)
	{
		strTemp = "<table border=0 cellspacing=0 cellpadding=0 height=422 width=" + siteWidth + ">";
		strTemp += "<tr><td height=" + topHeight + " colspan=2>";
	}
	else
	{
		//strTemp = "<table border=0 cellspacing=0 cellpadding=0 height=422 width=" + siteWidth + ">"
		strTemp = "<table border=0 cellspacing=0 cellpadding=0 height=100% width=" + siteWidth + ">"
		strTemp += "<tr><td height=" + topHeight + " colspan=2>"
		
	}
	if(!login){
		strTemp += "<a href=http://www.skandia.se ><img SRC=" + backgroundImgPath + "01_logga.jpg  border=0 vspace=0 hspace=0></a><img SRC=" + backgroundImgPath + "02_blank.jpg border=0 vspace=0 hspace=0><br><img src=" + backgroundImgPath + "04_blank.gif width=222 height=17><img src=" + backgroundImgPath + "08_blank.gif width=20 height=17><a href=javascript:foretag(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem1','','" + backgroundImgPath + "06_meny2.gif',1)><img name=menuitem1 border=0 src=" + backgroundImgPath + "06_meny.gif width=74 height=17></a><img src=" + backgroundImgPath + "08_blank.gif width=9 height=17><a href=javascript:privat(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem2','','" + backgroundImgPath + "07_meny2.gif',1)><img ID=imgP name=menuitem2 border=0 src=" + backgroundImgPath + varPrivat + " width=66 height=17></a><a href=javascript:omskandia(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem3','','" + backgroundImgPath + "05_meny2.gif',1)><img name=menuitem3 border=0 src=" + backgroundImgPath + "05_meny.gif width=103 height=17></a><img src=" + backgroundImgPath + "08_blank.gif width=24 height=17><a href=javascript:bli(2); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem4','','" + backgroundImgPath + "08_meny_2.gif',1)><img ID=imgB name=menuitem4 border=0 src=" + backgroundImgPath + varBli + " width=124 height=17></a><a href=javascript:loggain(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('minasidor','','" + backgroundImgPath + "09_menyknapp_2.gif',1)><img name=minasidor border=0 src=" + backgroundImgPath + "09_menyknapp_1.gif width=97 height=17></a>";
	}else{
		strTemp += "<a href=http://www.skandia.se ><img SRC=" + backgroundImgPath + "01_logga.jpg  border=0 vspace=0 hspace=0></a><img SRC=" + backgroundImgPath + "02_blank.jpg border=0 vspace=0 hspace=0><br><img src=" + backgroundImgPath + "04_blank.gif width=222 height=17><img src=" + backgroundImgPath + "08_blank.gif width=20 height=17><a href=javascript:foretag(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem1','','" + backgroundImgPath + "06_meny2.gif',1)><img name=menuitem1 border=0 src=" + backgroundImgPath + "06_meny.gif width=74 height=17></a><img src=" + backgroundImgPath + "08_blank.gif width=9 height=17><a href=javascript:privat(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem2','','" + backgroundImgPath + "07_meny2.gif',1)><img ID=imgP name=menuitem2 border=0 src=" + backgroundImgPath + varPrivat + " width=66 height=17></a><a href=javascript:omskandia(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem3','','" + backgroundImgPath + "05_meny2.gif',1)><img name=menuitem3 border=0 src=" + backgroundImgPath + "05_meny.gif width=103 height=17></a><img src=" + backgroundImgPath + "08_blank.gif width=24 height=17><a href=javascript:minaforsakringar(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('menuitem4','','" + backgroundImgPath + "mina_fors_knapp_on.gif',1)><img name=menuitem4 border=0 src=" + backgroundImgPath + "mina_fors_knapp_off.gif width=140 height=17></a><a href=javascript:loggaut(); onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('minasidor','','" + backgroundImgPath + "logga_ut_on.gif',1)><img name=minasidor border=0 src=" + backgroundImgPath + "logga_ut_off.gif width=81 height=17></a>";
	}
	return strTemp
}
*/

function getTopAfter()
{
	var strTemp
	if (n)
		strTemp = "</td><td rowspan=2><img src='" + backgroundImgPath + "pix.gif' width=1 height=100% vspace='0' hspace='0'></td></tr>";
	else
		strTemp = "</td><td rowspan=2><img src='" + backgroundImgPath + "pix.gif' width=1 height=100% vspace='0' hspace='0'></td></tr>"
	
	return strTemp
}

function getMenuBefore()
{
	var strTemp
	//IE using full screen.
	if (n)
	{
		strTemp  = "<tr><td width=" + menyWidth + " valign=top background=" + backgroundImgPath + "menu_background.gif>"
		strTemp += "<table border=0 height=262 cellspacing=0 cellpadding=0><tr><td valign=top bgcolor='#FFFFFF'><img src='" + backgroundImgPath + "spacer.gif' width='0' height=180 vspace='0' hspace='0'>"
	}
	else
	{
		strTemp  = "<tr><td width=" + menyWidth + " valign=top background=" + backgroundImgPath + "menu_background.gif>"
		strTemp += "<table border=0 cellspacing=0 cellpadding=0 height=100%><tr><td valign=bottom><img src='" + backgroundImgPath + "spacer.gif' width='1' height=180 vspace='0' hspace='0'>"
	}	
		
	return strTemp
}

function getMenuAfter()
{
	var strTemp
	//First comes the menu cell.
	if(n){
		strTemp = "<img src='" + backgroundImgPath + "pix.gif' width='220' height=1 vspace='0' hspace='0'></td></tr>"
	}else{
		strTemp = "<img src='" + backgroundImgPath + "pix.gif' width='220' height=1 vspace='0' hspace='0'></td></tr>"
	}
	return strTemp
}

function getTipBefore(){
	var strTemp
	//Add bottom stuff here...
	if (n){
		strTemp = "<tr><td valign=top height=70 bgcolor='#FFFFFF' class='morkgralight'>"
		strTemp += "<img src='" + backgroundImgPath + "spacer.gif' width='0' height=9 vspace='0' hspace='0'>"
		
	}else{
		strTemp = "<tr valign=top><td valign=top height=70 bgcolor='#FFFFFF' width='220' class='morkgralight'>"
		strTemp += "<img src='" + backgroundImgPath + "spacer.gif' width='0' height=9 vspace='0' hspace='0'>"
	}
	strTemp += "<table border=0 cellspacing=0 cellpadding=0 width=200><tr><td><img src='" + backgroundImgPath + "spacer.gif' width='9'></td><td>"
	return strTemp;
}

function getTipAfter(){
	var strTemp
	strTemp = "</td></tr></table>"
	strTemp += "</td></tr><tr><td valign=bottom align='middle' bgcolor='#FFFFFF'>"
	strTemp += "<IMG SRC='" + backgroundImgPath + bild + "' vspace='0' hspace='0'></td>"
	strTemp += "</tr></table>"
	strTemp += "</td>"
	
	return strTemp;
}

function getContentBefore()
{
	var strTemp
	
	if (n)
	{
		//strTemp = windows.divStart 
		strTemp = "<td width=" + contentWidth + ">";
		strTemp +="<table border=0 cellspacing=0 cellpadding=0 align=left width=100%>";			
		strTemp +="<tr><td align=left>";
	}
	else
	{
		strTemp = "<td width=" + contentWidth + ">";
		strTemp += "<div style='overflow: auto; height: 100% ; width:100%'>";
		
	}
		
	return strTemp
		
}
function getContentAfter()
{
	var strTemp
	
	if (n){
	//	strTemp = windows.divEnd
		strTemp = "</td><td align=right valign=top width=1 background='" + backgroundImgPath + "pix.gif'><IMG SRC='" + backgroundImgPath + "spacer.gif' width=1 ></td></tr></table>";
		strTemp += "</td></tr>"
		}
	else
	{
		strTemp = "</div>"
		strTemp += "</td></tr>"
	}
	
	return strTemp
}

function getBlinkLinkBefore(){
	var strTemp;
	if (n||!window.linkcontent||linkcontent.length==0){
		strTemp="";
	}else{
		strTemp='<div id="lscroller" style="width:'+lwidth+';padding:2px"></div>';//without height
	}
	return strTemp;
}

function getBlinkLinkAfter(){
	var strTemp="";
	if(window.linkcontent){
		strTemp='<ilayer id="lscrollerns" width="&amp;{fwidth};" height="&amp;{fheight};">'; 
		strTemp+='<layer id="lscrollerns_sub" width="&amp;{fwidth};" height="&amp;{fheight};" left="0" top="0"></layer>';
		strTemp+='</ilayer>';
	}
	return strTemp;
}

function getBottomBefore()
{
	var strTemp
	
	if (n)
		//strTemp = "<div id=bottom>"
		strTemp = "<tr><td height=" + bottomHeight + " colspan=2 valign=top>"
	else
		strTemp = "<tr><td height=" + bottomHeight + " colspan=2 valign=top>"
		
	strTemp += "<IMG SRC='" + backgroundImgPath + "16_rand.gif' width=100% height=1><br>"
		
	return strTemp
		
}
function getBottomAfter()
{
	var strTemp
	//IE full screen
	if (n)
		//strTemp = "</div>"
		strTemp = "</td></tr></table>"
	else
	{
		strTemp = "</td></tr><tr><td><img src=" + backgroundImgPath + "spacer.gif width=12></td></tr></table>"
	}
	
	return strTemp
}



