xoffset = 3;
yoffset = 17;



function HM_Menu0()
{
	return [
		[100,xoffset+5,yoffset],
		["Johan -85",    "galleri_edis.asp"],
		["CaptGT -82",    "galleri_CaptGT.asp"],
		["Tobbe -86",    "galleri_tobias.asp"],
		["Anders -87",    "galleri_bierfeldt.asp"]
	];
}
function HM_Menu1()
{
	return [
		[110,xoffset+105,yoffset],
		["Antal tillverkade",  "fakta_tillverkade.asp"],
		["Bultcirkel",  "fakta_bult.asp"],
		["Däck & Lagar",  "fakta_dack.asp"],
		["Färger 81-84",  "fakta_farger81.asp"],
		["Färger 85-88",  "fakta_farger85.asp"],
		["Quattro",  "fakta_quattro.asp"],
		["Säkerhet",  "fakta_security.asp"],
		["Historia",  "fakta_history.asp"]
	];
}
function HM_Menu2()
{
	return [
		[110,xoffset+195,yoffset],
		["Styling Invändigt",  "tips_styling_inv.asp"],
		["Styling Utvändigt",  "tips_styling_utv.asp"],
		["Trim",  "tips_trim.asp"],
		["Beg.guide",        "tips_begagnat.asp"]
	];
}

function HM_Menu3()
{
	return [
		[70,xoffset+265,yoffset],
		["Säljes",  "kopsalj_default.asp"],
		["Köpes",  "kopsalj_kopes.asp"],
		["Annonsera",  "kopsalj_add.asp"]
	];
}
function HM_Menu4()
{
	return [
		[50,xoffset+385,yoffset],
		["1981",  "info_1981.asp"],
		["1982",  "info_1982.asp"],
		["1983",  "info_1983.asp"],
		["1984",  "info_1984.asp"],
		["1985",  "info_1985.asp"],
		["1986",  "info_1986.asp"],
		["1987",  "info_1987.asp"],
		["1988",  "info_1988.asp"]
	];
}
function HM_Menu5()
{
	return [
		[90,xoffset+450,yoffset],
		["Forum",  "forum_index.asp"],
		["Gästbok",  "gastbok_gastbok.asp"],
		["Länkar",   "links_linkz.asp"]
	];
}
function HM_Menu6()
{
	return [
		[110,xoffset+530,yoffset],
		["Startsidan igen",  "default.asp"],
		["Backspegeln.com",  "http://www.backspegeln.com"]
	];
}
function HM_Menu7()
{
	return [
		[90,xoffset+688,yoffset],
		["Forum",   "forum_index.asp"],
		["Gästbok",   "gastbok_gastbok.asp"],
		["FAQ",   "FAQ_faq.asp"],
		["Strular det?",   "tips_strul.asp"],
		["Skiljetips",   "tips_skilj.asp"],
		["Service", "tips_service.asp"],
		["Länkar", "links_linkz.asp"]
	];
}
function HM_Menu8()
{
	return [
		[80,xoffset+689,yoffset],
		["Säljes",   "kopsalj_default.asp"],
		["Köpes",   "kopsalj_kopes.asp"],
		["Lägg till",   "kopsalj_add.asp"],
		["från 1916",   "annonser_1916.asp"],
		["från 1927",   "annonser_1927.asp"],
		["från 1928",   "annonser_1928.asp"],
		["från 1929",   "annonser_1929.asp"],
		["från 1930",   "annonser_1930.asp"],
		["från 1935",   "annonser_1935.asp"],
		["från 1936",   "annonser_1936.asp"],
		["från 1937",   "annonser_1937.asp"]
	];
}
function HM_Menu9()
{
	return [
		[100,xoffset+690,yoffset],
		["Ledigt",   "/search/"]
	];
}


//Pop-it menu- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

// function showmenu(e,which,fixedX,fixedY)

function showmenu(e,name) {

s = "menus = " + name + "();";
eval(s);

width  = menus[0][0];
fixedX = menus[0][1];
fixedY = menus[0][2];

which = "";
for (i=1; i < menus.length; i++)
	{
	txt = menus[i][0];	
	url = menus[i][1];	
	sub = menus[i][2];	
	html = "<div class='menuitems'><a href='" + url + "'>";
	html = html + txt + "</a></div>";
	which += html;
	}

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (width)
	menuobj.thestyle.width=width;

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

if (fixedX && fixedY)
{
	menuobj.thestyle.left = fixedX + "px";
	menuobj.thestyle.top = fixedY + "px";
}
else
{
	//if the horizontal distance isn't enough to accomodate the width of the context menu
	if (rightedge<menuobj.contentwidth)
		//move the horizontal position of the menu to the left by it's width
		menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
	else
		//position the horizontal position of the menu where the mouse was clicked
		menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

	//same concept with the vertical position
	if (bottomedge<menuobj.contentheight)
		menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
	else
		menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
}

menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}
if (ie4||ns6)
document.onclick=hidemenu
