
var newwin;

function launchwin(winurl,winname,winfeatures)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
	if(javascript_version > 1.0)
	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
 		setTimeout('newwin.focus();',250);
	}
}

//aan te passen
vanaf_links = 100;
vanaf_boven = 100;
grootste_breedte  = 500+20;//afmetingen van het grootste beeld +20
grootste_hoogte = 500+20;  //afmetingen van het grootste beeld +20

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
var optIE='scrollbars=no,width=10,height=10,left='+vanaf_links+',top='+vanaf_boven; // 10,10: aanpassen indien nodig

function popImage(BeeldURL, BeeldTitel){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Bezig met inladen ...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function aanpassen_aan_beeldgrootte(){');writeln('if (isIE){');writeln('window.resizeTo(500,500);'); // 500,500: aanpassen indien nodig
writeln('width=500-(document.body.clientWidth-document.images[0].width);');// 500 aanpassen indien nodig
writeln('height=500-(document.body.clientHeight-document.images[0].height);');// 500 aanpassen indien nodig
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["BeeldNaam"].width;');writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');writeln('</sc'+'ript>');
writeln('</head><body bgcolor=000000 scroll="no" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()" onblur="self.close()">');
writeln('<img name="BeeldNaam" src='+BeeldURL+' style="display:block"></body></html>');
close();
}}

function showBadge() {
	var config_hub_badge = {
		width : 500,
		modules: {},
		pimp: {}
	}
	config_hub_badge.modules[Hyves.badge.module.MEMBER] = {count: 8};
	config_hub_badge.modules[Hyves.badge.module.ABOUT] = false;
	config_hub_badge.pimp['bordercolor'] = '#FF9933';
	config_hub_badge.pimp['background'] = '#FFFFFF';
	config_hub_badge.pimp['header'] = '#FF9933';
	config_hub_badge.pimp['linkcolor'] = '#000000';
	config_hub_badge.pimp['ruler'] = '#000000';
	config_hub_badge.pimp['textcolor'] = '#000000';
    Hyves.connect.badge.overview('00bcd3e912775dda5221a04095ad562457', Hyves.type.HUB, config_hub_badge, 'hub_badge');
}
