taborty = 0;
tabortx = 0;
hopp = 0;
var storlek = 14;
// if (top.location == this.location) window.location="http://www.fiskekortet.com/default.htm";

function era(siffra) {
storlek = storlek + siffra;
if (storlek == 1){
alert('Du kan inte få mindre text');
}else{
document.getElementById('tecken').style.fontSize = storlek;
document.getElementById('storlek').innerHTML= storlek
	}
}

function trycka() {
//if((event.altKey)&&(event.shiftKey)) {
//storlek = storlek + 1;
//}else if((event.altKey)&&(event.ctrlKey)){
//if (storlek == 1){
//alert('Du kan inte få mindre text');
//}else{
//storlek = storlek - 1;
//	}
//}
//document.getElementById('tecken').style.fontSize = storlek;
//document.getElementById('storlek').innerHTML= storlek
}

function test() {
lasare = navigator.appName;
if (lasare == "Microsoft Internet Explorer"){
alert('Din webbläsare har stöd för Fiskekortets steglösa inställning av text storlek\nTryck på alt + Shift för större tecken\nTryck på alt + ctrl för mindre tecken')
}
}

function stang() {
lasare = navigator.appName;
if (lasare == "Microsoft Internet Explorer"){
document.getElementById('tip').style.visibility = "hidden"
}else{
document.getElementById('tip').style.zIndex="-1"
}
}

function oppna() {
lasare = navigator.appName;
if (lasare == "Microsoft Internet Explorer"){
document.getElementById('tip').style.visibility = "visible";
document.getElementById('tip').style.top = document.body.scrollTop+event.y+30;   //NY RAD
document.getElementById('tip').style.left = document.body.scrollLeft+event.x;  //NY RAD
}else{
document.getElementById('tip').style.zIndex="1"
}
}

function noll(val) {
taborty=document.all.tip.style.top
taborty=(taborty.replace("px", ""));
taborty=taborty-document.body.scrollTop
taborty= event.y-taborty;
tabortx=document.all.tip.style.left
tabortx=(tabortx.replace("px", ""));
tabortx=tabortx-document.body.scrollLeft
tabortx = event.x - tabortx;

if(val == "1") {
document.onmousemove = dra;
hopp = 1;
}else{
hopp = 0;
}
}

function dra() {
if (hopp == "1") {
document.all.tip.style.top = event.y+document.body.scrollTop-taborty;
document.all.tip.style.left = event.x+document.body.scrollLeft-tabortx;
}
}

function skroll() {
document.getElementById('isar').style.top = document.body.scrollTop;   //NY RAD
document.getElementById('isar').style.left = document.body.scrollLeft;  //NY RAD
document.getElementById('trans').style.top = document.body.scrollTop;   //NY RAD
document.getElementById('trans').style.left = document.body.scrollLeft+106;  //NY RAD
//document.getElementById('God').style.top = document.body.scrollTop+200;   //NY RAD
//document.getElementById('God').style.left = document.body.scrollLeft+300;  //NY RAD
}

function trans() {
remote = window.open("http://localhost/cgi-bin/oversattare.cgi?sprak=eng", "fjarr", "resizable=yes,status=no,scrollbars=yes,width=450,height=200");
}