if (parent.location.href === self.location.href) {
	window.location.href = '../index.asp';
}

function boka() {
	window.location.href ='../REGULJARBOKNING/PRIVATBOKN/PrivatBokn.asp';
}

function dimbackgr() {
	document.body.style.backgroundColor="#222222";
	document.getElementById("headbox").style.backgroundColor="#555555";
	document.getElementById("headbox").style.filter='alpha(opacity=30)';
	document.getElementById("headbox").style.opacity='.3';
}

function fartygsdata(id) {
  	switch (id) {
  		case 1:
  			window.location.href="fartyg_kust_info.htm";
  			break;
  		case 2:
  			window.location.href="fartyg_rano_info.htm";
  			break;
  		case 3:
  			window.location.href="fartyg_ronja_info.htm";
  			break;
  		case 4:
  			window.location.href="fartyg_curir_info.htm";
  			break;
  		default:
  			break;
  	}
}

function position(id) {
		popurl="../ais/realposition.asp?ID=" + id;
		winpops=window.open(popurl,"","scrollbars=no,width=650,height=500,top=240,left=200");
}

function ppup(dest) {
	dimbackgr();
	document.getElementById("tbox").style.display='block';
	switch (dest) {
		case 0:
			document.getElementById("turl").style.width='566px';
			document.getElementById("turl").src="../turlistor/ulvon_turl.asp?returnto=2";
			break;
		case 1:
			document.getElementById("turl").style.width='565px';
			document.getElementById("turl").src="../turlistor/hogb_turl.asp?from=3";
			break;
		default:
			break;
	}
}
	
