ballon2_lijn = new Image(46,1);
ballon2_lijn.src = "img/ballon2_lijn.gif";
ballon2 = new Image(46,155);
ballon2.src = "img/ballon2_lijn.gif";
pix = new Image(1,1);
pix.src = "img/pix.gif";	

function resizeBallon(){		
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	document.getElementById('lijn').style.width = 46;
	document.getElementById('lijn').style.height = myHeight - 214; //60 + 154 (ballon pijl height)
	//document.getElementById('binnen').style.height = myHeight - 64;
	if(document.getElementById('tekstvlak')){
		document.getElementById('tekstvlak').style.height = myHeight - 64;
	}
}

function onLoadsel(){
	document.getElementById('laden_menu').style.display = 'none';
	document.getElementById('menu').style.display = '';
	resizeBallon();
}

function fotoGroot(serie,fid,titel){
	document.getElementById('fotoBallon').style.display = '';
	document.getElementById('fotoTitel').innerHTML = titel;
	document.getElementById('fotoGroot').innerHTML = "<img src='foto/"+serie+"/"+fid+".jpg' alt='"+titel+"' title='"+titel+"'><img src='img/pix.gif' width='1' height='100'>";
}
/*function fotoThumb(where,serie,fid,titel,enlarge){
	if(enlarge=="nee"){
		document.getElementById(where).innerHTML = "<img class='thumb' src='foto/"+serie+"/"+fid+".jpg' alt='"+titel+"' title='"+titel+"'>";
	}else{
		document.getElementById(where).innerHTML = "<a href='javascript:void(0)' onclick='fotoGroot(\'"+serie+"\',\'"+fid+"\',\'"+titel+"\')'><img class='thumb' src='foto/"+serie+"/"+fid+".jpg' alt='"+titel+"' title='"+titel+"'></a>";
	}
}*/

function swapBg(naardit){
	document.getElementById('body').style.background = naardit;
}


window.onresize = resizeBallon;