function ini(){
	//$('log').set('html',"<img src='/gfx/logo.png' alt='HEDY d'ANCONA PRIJS voor excellente zorgarchitectuur 2010 ' width='301' height='349'>");
}
iid=0;
function sh(id){
	if($(id))$(id).setStyle('display',(($(id).getStyle('display')=='none')?'block':'none'));
}
function hrm(n){
	id='f_'+n;
	$$('.hid').each(function(itm){itm.setStyle('display', 'none');});
	if(id!=iid){$(id).setStyle('display','block');iid=id}else{iid=0};
}
function si(pt){
	$('iw').set('html','<img src="/content/'+pt+'" id="zi">');
	$('pp').setStyle('display','block');$('pp').setStyle('top','0');
	$('pp').addEvents({
		'mouseup':function(e){sp(e);},'mousemove':function(e){sp(e);},
		'click':function(e){$('pp').removeEvents();$('pp').setStyle('display','none');}
	});
}

function sp(e){
	w=$('pp').getStyle('width').toInt();h=$('pp').getStyle('height').toInt();if(w==100){gs();}
	var iw=$('zi').getStyle('width').toInt();var ih=$('zi').getStyle('height').toInt();
	if(iw){
		$('iw').setStyle('left',((iw>w)?((e.client.x/w)*(w-iw)):((w-iw)/2)));
		$('iw').setStyle('top',((ih>h)?((e.client.y/h)*(h-ih)):((h-ih)/2)));
	}
}
function gs() {
	// IE patch
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    w = window.innerWidth;
    h = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    w = document.documentElement.clientWidth;
    h = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    w = document.body.clientWidth;
    h = document.body.clientHeight;
  }
 return Array(w, h);
}
if (top.location != location) {top.location.href = document.location.href;}
window.addEvent('domready',ini);
