function show(section) 
{

	newwindow=window.open('http://www.oh.be/pictures/' + section,'','width=640, height=480, scrollbars=0, resizable, dependent');
	newwindow.moveTo(0,1);
	newwindow.resizeTo(window.screen.availWidth,window.screen.availHeight-1);

}



function cd(id)

{

	newwindow=window.open('cd/' + id,'','width=470,height=500,scrollbars=1');

}



function mailing()

{

	newwindow=window.open('mailing','','width=300,height=90,scrollbars=0');

}



function lidkaart()

{

	alert('The membershipcard registration is currently offline...\n\nIf you don\'t have a membershipcard you can buy one at our entrance desk (2EURO) every Saturdaynight and every night before a Holiday.');

}



function nye()

{

	newwindow=window.open('Partyupdate/nye.html','','width=842,height=615,scrollbars=0');

}

function a2b()

{

	newwindow=window.open('A2B/a2b.html','','width=826,height=599,scrollbars=1,toolbar=yes');

}



function flyer()

{

	//pu('visit-our-second-room.jpg','421','595');

}



function pedroh()

{

	alert("You're on Pedroh!'s site");

}

function html(file, breedte, hoogte)

{

	newwindow=window.open(file,'','width='+breedte+', height='+hoogte+', scrollbars=0');

}



function avator(imageURL){

imgWin=window.open('about:blank','','width=150, height=150, scrollbars=0');

with (imgWin.document){

writeln('<html><head><title>. Club the Oh!</title><style>body{margin:0px;}</style>');

writeln('</head><body bgcolor=000000 scroll="no" onload="self.focus()" onblur="self.close()">');

writeln('<div align="center"><img name="Oh" src="http://users.telenet.be/theOh/Avators/'+imageURL+'" style="display:block"></div></body></html>');

close();		

}}



function pu(pic, breedte, hoogte){

imgWin=window.open('about:blank','','width='+breedte+', height='+hoogte+', scrollbars=0');

with (imgWin.document){

writeln('<html><head><title>. Club the Oh!</title><style>body{margin:0px;}</style>');

writeln('</head><body bgcolor=000000 scroll="no" onload="self.focus()" onblur="self.close()">');

writeln('<img name="Oh" src="http://www.djpedroh.net/agenda/flyers/'+pic+'" style="display:block"></body></html>');

close();		

}}



function cd(pic, breedte, hoogte){

imgWin=window.open('about:blank','','width='+breedte+', height='+hoogte+', scrollbars=0');

with (imgWin.document){

writeln('<html><head><title>. Club the Oh!</title><style>body{margin:0px;}</style>');

writeln('</head><body bgcolor=000000 scroll="no" onload="self.focus()" onblur="self.close()">');

writeln('<img name="Oh" src="Cd/'+pic+'" style="display:block"></body></html>');

close();		

}}



//Goed resize script IE7 compatibel!

PositionX = 10;

PositionY = 10;

defaultWidth = 600;

defaultHeight = 400;

var AutoClose = true;



function popImage(imageURL,imageTitle){

var imgWin = window.open('','_blank','scrollbars=no,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);

if( !imgWin ) { return true; } //popup blockers should not cause errors

imgWin.document.write('<html><head><title>'+imageTitle+'<\/title><script type="text\/javascript">\n'+

'function resizeWinTo() {\n'+

'if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }'+

'var oH = document.images[0].height, oW = document.images[0].width;\n'+

'if( !oH || window.doneAlready ) { return; }\n'+ //in case images are disabled

'window.doneAlready = true;\n'+ //for Safari and Opera

'var x = window; x.resizeTo( oW + 200, oH + 200 );\n'+

'var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\n'+

'if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\n'+

'else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\n'+

'else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\n'+

'if( window.opera && !document.childNodes ) { myW += 16; }\n'+

'x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\n'+

'var scW = screen.availWidth ? screen.availWidth : screen.width;\n'+

'var scH = screen.availHeight ? screen.availHeight : screen.height;\n'+

'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\n'+

'}\n'+

'<\/script>'+

'<\/head><body onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>'+

(document.layers?('<layer left="0" top="0">'):('<div style="position:absolute;left:0px;top:0px;display:table;">'))+

'<img src='+imageURL+' alt="Loading image ..." title="" onload="resizeWinTo();">'+

(document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');

imgWin.document.close();

}
