ns4 = false;
ie4 = false;
if (navigator.appName == "Netscape") {
 winWidth = window.innerWidth;
 winHeight = window.innerHeight;
 tblWidth = winWidth-100;
 tblHeight = (winHeight-160);
 tbltoppix = ((winHeight*80/100)-116)/2;
 leftpixel = (winWidth*34/100)-225;
 toppixel = tbltoppix-5;
 if (winWidth < 860) { tblWidth = 765 }
 if (winHeight > 900) { tbltoppix = (tbltoppix + (tblHeight*3/100)); }
 if (winHeight < 600) { 
 toppixel = 170; 
 tblHeight = (winHeight-150);
 }
 if (winWidth < 830) { leftpixel = leftpixel+10; }
}
if (navigator.appName == "Microsoft Internet Explorer"){
 winWidth = document.body.offsetWidth;
 winHeight = document.body.offsetHeight;
 tblWidth = winWidth-100;
 tblHeight = (winHeight-160);
 tbltoppix = ((winHeight*80/100)-116)/2;
 leftpixel = (winWidth*34/100)-225;
 toppixel = tbltoppix-5;
 if (winWidth < 860) { tblWidth = 765 }
 if (winHeight > 900) { tbltoppix = (tbltoppix + (tblHeight*3/100)); }
 if (winHeight < 600) { 
 toppixel = 170; 
 tblHeight = (winHeight-150);
 }
 if (winWidth < 830) { leftpixel = leftpixel+10; }
}
// Sjekker Opera
var useragent = navigator.userAgent;
var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName;
if(bName == 'Opera'){
 screenW = screen.availWidth;
 screenH = screen.availHeight-115;
 if(screenW>1000) {
 winWidth = 1015;//screenW
 winHeight = 830;//screenH;
 }else{
 winWidth = 790;//screenW
 winHeight = 400;//screenH;
 tbltoppix = ((winHeight*80/100)-116)/2;
 leftpixel = (winWidth*35/100)-241;
 tblWidth = winWidth-100;
 tblHeight = (winHeight-200);
 if (winWidth > 1400) { tblWidth = 1200 }
 if (winWidth < 820) { tblWidth = 765 }
 if (winHeight > 526) { toppixel = tbltoppix-5; }else{ toppixel = 135; }
 if (winWidth < 830) { leftpixel = leftpixel+10; }
 }
}
