// Default scripts

function lnk(url)
{
	openWin("http://www.google.nl");
	//alert("ok");
	return false;
}

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

function openWin(url)
{
	var w = (screen.width > 1600) ? 1600 : screen.width - 50; 
	var h = (screen.height > 1000) ? 1000 : screen.height - 30; 
	var wl = (screen.width / 2) - (w / 2); 
	var wt = ((screen.height / 2) - (h / 2) - 10);
	var win = window.open(url, "popup", "width=" + w + ",height=" + h + ",menubar=1,resizable=1,location=1,status=1,scrollbars=1,top=" + wt + ",left=" + wl);
}

function checkFrames() {
	if (top.location != location) {
		top.location.href = document.location.href;
	}
}