

function writeHeader(source, is_in_sub_dir) {

    var path = "";

    var selected_site1 = new Array("","","","","","","","","","","","","","");

    var selected_site2 = new Array("","","","","","","","","","","","","","");

    

    if (is_in_sub_dir==1) {

        path = "../";

    }

    else if (is_in_sub_dir==2) {

	path = "../../";

    }

    else if (is_in_sub_dir==3) {

	path = "../../../";

    }

    

    if (source>0 && source<15) {

        selected_site1[source-1] = "<u>";

        selected_site2[source-1] = "</u>";

    }

  

    

    with(document) {

        write("<table cellpadding=0 cellspacing=0 border=0 vspace=0 hspace=0>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

        write(        "<img src='"+path+"bilder/pixel.gif' width='105' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"startsida.asp' target='_parent'>"+selected_site1[0]+"Startsida"+selected_site2[0]+"</a>");

        write(    "</td>");

        write(    "</tr>");

	

        write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

        write(        "<img src='"+path+"bilder/pixel.gif' width='105' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"om_skolan/index.html' target='_parent'>"+selected_site1[1]+"Om skolan"+selected_site2[1]+"</a>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

        write(        "<img src='"+path+"bilder/pixel.gif' width='105' height='4' border='0' alt=''><nobr>");

	write(        "<a href='"+path+"dans/index.html' target='_parent'>"+selected_site1[2]+"Inriktning Dans"+selected_site2[2]+"</a>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='130' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"musikal/index.html' target='_parent'>"+selected_site1[3]+"Inriktning Musikal"+selected_site2[3]+"</a>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='140' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"kurser/index.html' target='_parent'>"+selected_site1[4]+"Kurser"+selected_site2[4]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='145' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"personal/index.html' target='_parent'>"+selected_site1[5]+"Personal"+selected_site2[5]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='132' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"produktioner/index.html' target='_parent'>"+selected_site1[6]+"Aktuella produktioner"+selected_site2[6]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='158' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"ansokan/index.html' target='_parent'>"+selected_site1[7]+"Ans&ouml;kan"+selected_site2[7]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='156' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"galleri/index.html' target='_parent'>"+selected_site1[8]+"Galleri"+selected_site2[8]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='159' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"lankar.html' target='_parent'>"+selected_site1[9]+"L&auml;nkar"+selected_site2[9]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='165' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"gastbok/gb.asp' target='_parent'>"+selected_site1[10]+"G&auml;stbok"+selected_site2[10]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='157' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"kontakt.html' target='_parent'>"+selected_site1[11]+"Kontakt"+selected_site2[11]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='141' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"internt/index.asp' target='_parent'>"+selected_site1[12]+"Logga in"+selected_site2[12]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

	write(    "<tr>");

        write(    "<td width=300 height=24 background='"+path+"bilder/pixel.gif' class='brod' align=left valign=top>");

	write(        "<img src='"+path+"bilder/pixel.gif' width='126' height='4' border='0' alt=''><nobr>");

        write(        "<a href='"+path+"faq/index.html' target='_parent'>"+selected_site1[13]+"Vanliga fr&aring;gor"+selected_site2[13]+"</a></nobr>");

        write(    "</td>");

        write(    "</tr>");

	

        write("</table>");

    }

}



function writeMenyKurser(source, is_in_sub_dir) {

    var path = "";

    var selected_site1 = new Array("","");

    var selected_site2 = new Array("","");

    

    if (is_in_sub_dir==1) {

        path = "../";

    }

    else if (is_in_sub_dir==2) {

	path = "../../";

    }

    

    if (source>0 && source<3) {

        selected_site1[source-1] = "<u>";

        selected_site2[source-1] = "</u>";

    }





    with(document) {

        write("<table width='' cellpadding=0 cellspacing=0 border=0 vspace=0 hspace=0 align=right valign=top>");

	

	write(    "<tr>");

	write(    "<td>");

	write(    "<a href='../index.html' target='_parent' class='menyrubbe'>Kurser</a>");

	write(    "</td>");

	write(    "</tr>");

	

	write(    "<tr>");

	write(    "<td>");

	write(    "<table width='100%' cellpadding=5 cellspacing=0 border=1 bgcolor='#FFFFFF' bordercolor='#FFEE1F' vspace=0 hspace=0 align=right valign=bottom>");

	write(    "<tr>");

	write(    "<td>");

	write("<a href='"+path+"nationella_kurser/index.html' target='_parent' class='undermeny'>"+selected_site1[0]+"Nationella kurser"+selected_site2[0]+"</a>&nbsp;| &nbsp;");

	write("<a href='"+path+"lokala_kurser/index.html' target='_parent' class='undermeny'>"+selected_site1[1]+"Lokala kurser"+selected_site2[1]+"</a>");

	write(    "</td>");

	write(    "</tr>");

	write("</table>");

	write("<br><img src='bilder/pixel.gif' width='10' height='16' border='0' alt=''>");

	write(    "</td>");

	write(    "</tr>");



	write("</table>");

    }

}



function reDirect() {

    //alert("reDirect() start");

    var index = document.lang.ch.selectedIndex;

    var destination = document.lang.ch[index].value;

    if (destination == null) {

        // h&auml;nder detta s&aring; &auml;r n&aring;got galet

        // nytt f&ouml;nster skapas och talar om att det blev fel

        var htmlcode="<html>"+

            "<head>"+

            "</HEAD>"+

            "<body bgcolor='#FFFFFF'>"+ 

            "  Sorry, something went wrong. <BR>"+

            "</BODY>"+

            "</HTML>";

        // obs: inga mellanslag i f&ouml;ljande str&auml;ng f&ouml;r att funka i gamla netscape

        var windowFeatures = "resizable=yes,location=yes,status=yes,width=700,height=700,scrollbars=yes"+

                             ",toolbar=yes,menubar=yes,directories=yes";

        var remote = window.open("", "newWin", windowFeatures);

        remote.document.write(htmlcode);

        remote.document.close();

    }

    else if (destination != "") {

        window.location.replace(destination);

        window.parent.location.href=destination;

    }

    //alert("reDirect() end");

}



function openIt(st) {

    if (st==1) {

	window.open('presentationskort/Ingrid_Norrgren.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==2) {

        window.open('presentationskort/Martin_Palmqvist.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

}



function openMe(st) {

    if (st==1) {

	window.open('presentationskort/Karolin_Sahlin.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==2) {

        window.open('presentationskort/Mikael_Gunnarsson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==3) {

	window.open('presentationskort/Lars_Walldov.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==4) {

	window.open('presentationskort/Elena_Franzen.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==5) {

	window.open('presentationskort/Sian_Playsted.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==7) {

	window.open('presentationskort/Martin_Palmqvist.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==8) {

	window.open('presentationskort/Catharina_Mohlin.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==10) {

	window.open('presentationskort/Jonas_Oscarsson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==11) {

	window.open('presentationskort/Jeanette_Adner.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==12) {

	window.open('presentationskort/Irene_Davidsson-Iderberg.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==13) {

	window.open('presentationskort/Christer_Wendel.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==15) {

	window.open('presentationskort/Maria_Johnson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

    else if (st==16) {

	window.open('presentationskort/Katarina_Winberg.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

	else if (st==17) {

	window.open('presentationskort/Kerstin_Lindgren.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

	else if (st==18) {

	window.open('presentationskort/Mikael_Paulsson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

	else if (st==19) {

	window.open('presentationskort/Karin_Nedergaard.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

	else if (st==20) {

	window.open('presentationskort/Helena_Widell.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

	else if (st==21) {

	window.open('presentationskort/Elisabet_Pettersson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }

	else if (st==22) {

	window.open('presentationskort/Jane_Andersson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==23) {

	window.open('presentationskort/Fredrik_Soderstrom.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==24) {

	window.open('presentationskort/Fredrik_Ostrand.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==25) {

	window.open('presentationskort/Therese_Rademark2.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==26) {

	window.open('presentationskort/Donna_Johansson2.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==27) {

	window.open('presentationskort/Aimee_Wentzel.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==28) {

	window.open('presentationskort/Titti_Leboeuf.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==29) {

	window.open('presentationskort/Jack_Abrahamns.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==30) {

	window.open('presentationskort/Christina_Andersson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==31) {

	window.open('presentationskort/Magnus_Harwell.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==32) {

	window.open('presentationskort/Anna_Coster.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==33) {

	window.open('presentationskort/Anders_Bergkvist.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==34) {

	window.open('presentationskort/Marzena_Urbanowicz.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==35) {

	window.open('presentationskort/Annelie_Svensson.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
	else if (st==36) {

	window.open('presentationskort/Maria_Hjorth.html','1','width=512,height=530,toolbar=no,directories=yes,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');

    }
   }