﻿// JavaScript Document
function fncGotoSelectedLanguage(url)
{
	document.location.href = "http://www.ipaper.dk/"+url;
}
function showFullscreen(url)
{
	height = screen.availHeight;
	width = screen.availWidth;
	
	// Windows 2k fix
	if(navigator.userAgent.indexOf('Windows NT 5.0') != -1)
	{
		height = height - 20;
		width = width - 10;
	}

	try{
		tmp = window.open(url, 'tmp', "height=" + height + "px,width=" + width + "px,top=0,left=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0");
		tmp.resizeTo(width, height);
	}
	catch(e) {;}
}

function showNormal(url)
{
	tmp = window.open(url, '', "height=" + screen.availHeight + "px,width=" + screen.availWidth + "px,top=0,left=0,location=1,menubar=1,resizable=1,scrollbars=1,toolbar=1");
	tmp.resizeTo(screen.availWidth,screen.availHeight);
}