$(document).ready(function(){
	// tabs for asr fondsen
	$("div.tab a").click(function () {
		// check which of the tabs was clicked
		pos = this.id
		
		// fix the active link
		$("div.tab a").removeClass("active");
		$(this).addClass("active");
		
		// hide tabs
		$("div#tab-1").css("display","none");
		$("div#tab-2").css("display","none");
		
		// show tab
		$("div#tab-" + pos).css("display","block");
	});
	
	// default setting
	$("a#1").addClass("active");
	$("div#tab-2").css("display","none");
});

function CreateBookmarkLink(title, url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) {
		window.external.AddFavorite( url, title);
	} else if(window.opera && window.print) {
		return true;
	}
}

function Goto(page) {
	$("tr.highlight").click(function (event) {
		if ($(event.target).is('td')) {
			document.location.href = page;
		}
	});
}

function ShowAlert(message) {
	alert(message)
}