//
//Knapper til FLO/IKT Hovemoen sin driftsside
//

//Public
function locate_top(side)
{location=side + "#top"}

function locate_intern(bookmark)
{location=bookmark}

var windowsprops_pop = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=450,height=250";
var windowsprops800 = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=800,height=700";
var windowsprops800_ = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=800,height=700";
var windowsprops950 = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=950,height=700";
var windowsprops1024 = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=1024,height=600";
var windowsprops1024_ = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=1024,height=850";
var windowsprops1200 = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=1200,height=850";

var windows = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=400,height=400";
var windows_spiller = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=600,height=400";
//---------------------------------------------------------------------------------------
//------------------DOKUMENTASJONSSIDE---------------------------------------------------
//---------------------------------------------------------------------------------------
function open_800(side)
        {window.open(side,"Pop800",windowsprops800)}
function open_950(side)
        {window.open(side,"Pop950",windowsprops950)}
function open_800_(side)
        {window.open(side,"Pop800_",windowsprops800_)}
function open_1024(side)
        {window.open(side,"Pop1024",windowsprops1024)}
function open_1024_(side)
        {window.open(side,"Pop1024_",windowsprops1024_)}
function open_1200(side)
        {window.open(side,"Pop1200",windowsprops1200)}

function locate_init()
{location="init.html"}

function locate_tjenester()
{location="tjenester.html"}

function locate_referanser()
{location="referanser.html"}

function locate_kontakt()
{location="kontakt.html"}

function open_pop(side)
        {window.open(side,"Pop",windows)}

function open_spiller(spillernavn)
        {window.open("spillere/"+spillernavn+".html","Spillerstall",windows_spiller)}

function open_forum()
 {window.open("http://www.lekestue.no/phpBB2/","Diskusjonsforum","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=1024,height=600")}


// First, declare the variables
var mover = null
var object = "menu"

// Check if browser is Netscape. If it is, assign a certain value to "mover"
if (navigator.appName.indexOf("Netscape") != -1) {
    var mover = "document.menu.top = window.pageYOffset"
}

// If the browser is not Netscape, assign a different value to "mover"
else {
    var mover = "menu.style.pixelTop = document.body.scrollTop"

}

// Now the function
function check() {
    object = "menu"
    eval(mover)
    setTimeout("check()", 10) // The number after "check()" is in milliseconds (lower number = less lag time)
}


function les_mer(file)
{window.open(file,"driftsmelding",windowsprops)}

function open_servere()
{window.open("AslkSjg_lsgKQuerMaNjadfv/doc_servere.htm","Servere", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=800,height=600")}


function location_stopp()
{location="doc_drift.htm#nedetid_stromstans"}

function open_daglig()
{window.open("../check/hurtiginfo.html","Dagligsjekk","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=1024,height=600")}


//LOGIN
<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();

if (username=="drift" && password=="master") { frames.window.location="AslkSjg_lsgKQuerMaNjadfv/index.shtml"; done=1; }

if (username=="" && password=="") { alert("Manglende Brukernavn/Passord"); done=1; }

if (done==0) { alert("Ugyldig Brukernavn/Passord"); }
}
// End -->




//OPEN WINDOW MAL
function openwindow()
{window.open("dr_mld/m1.htm","my_new_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=800,height=400")}
