
/* Anbringelse af sideoverskrifter i layer, som tilpasser sig vinduesstørrelsen    */

function Is() {
    agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns    = ((agent.indexOf('mozilla')   !=   -1) && ((agent.indexOf('spoofer')   ==   -1) && (agent.indexOf('compatible') ==   -1)));
    this.ns4   = (this.ns && (this.major      ==    4));
    this.ns6   = (this.ns && (this.major      >=    5));
    this.ie    = (agent.indexOf("msie")       !=   -1);
    this.ie3   = (this.ie && (this.major      < 4));
    this.ie4   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   ==   -1));
    this.ie5   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   !=   -1));
    this.ie55  = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.5")   !=   -1));
    this.ie6  = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}

var is = new Is();

function layerObject(id,position,left,top,visibility) {
if (is.ie5|| is.ie55||is.ie6|| is.ns6){
this.obj = document.getElementById(id).style;
this.obj.position = position;
this.obj.left = left;
this.obj.top = top;
this.obj.visibility = visibility;
return this.obj;
}
}

function layerSetup() {
centerLyr = new layerObject('centerLayer','absolute', (page_width-762)/2+15,30,'visible'); 
}

function follelayerSetup() {
centerLyr = new layerObject('folle','absolute', (page_width-800)/2+20,240,'visible');
}

function folle2layerSetup() {
centerLyr = new layerObject('folle2','absolute', (page_width-800)/2+20,481,'visible');
}
function folle3layerSetup() {
centerLyr = new layerObject('folle3','absolute', (page_width-800)/2+20,722,'visible');
}
function folle4layerSetup() {
centerLyr = new layerObject('folle4','absolute', (page_width-800)/2+20,963,'visible');
}
function folle5layerSetup() {
centerLyr = new layerObject('folle5','absolute', (page_width-800)/2+20,1244,'visible');
}
function folle6layerSetup() {
centerLyr = new layerObject('folle6','absolute', (page_width-800)/2+20,660,'visible');
}
function folle7layerSetup() {
centerLyr = new layerObject('folle7','absolute', (page_width-800)/2+20,900,'visible');
}
