function HVcentreren() {
var needWidth = 992, needHeight = 496, 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;
}
if(myWidth<needWidth) {
	document.getElementById('container').style.left = Math.round((needWidth-myWidth)/2)+"px";
} else {
	document.getElementById('container').style.left = "0px";
}
if(myHeight<needHeight) {
	document.getElementById('container').style.top = Math.round(needHeight/2)+"px";
} else {
	document.getElementById('container').style.top = Math.round(myHeight/2)+"px";
}
}

function over(id) {
if(document.getElementById) {
	document.getElementById(id).src = "images/"+id+"_focus.gif";
}
}

function out(id) {
if(document.getElementById) {
	document.getElementById(id).src = "images/"+id+".gif";
}
}



function over2(id) {
if(document.getElementById) {
	document.getElementById(id).src = "images/"+id+"_focus.gif";
}
}

function out2(id) {
if(document.getElementById) {
	document.getElementById(id).src = "images/"+id+".gif";
}
}



function fokus(nav, item) {
id1 = item + "_";
switch(item) {
	case "nav": checkitem = navitem; break;
	case "titel": checkitem = titelitem; break;
}
if(nav!=checkitem) {
	id = id1 + nav;
	elem = document.getElementById(id);
	s = elem.src;
	elem.src = s.substr(0,s.length-4) + "_focus" + s.substr(s.length-4,4);
}
}

function outfokus(item, ar) {
id1 = item + "_";
for(i=0; i<ar.length; i++) {
	id = ar[i];
	elem = document.getElementById(id);
	elem.src = "images/" + id + ".gif";
}
switch(item) {
	case "nav": checkitem = navitem; break;
	case "titel": checkitem = titelitem; break;
}
if(checkitem.length>0) {
	id = item + "_" + checkitem;
	elem = document.getElementById(id);
	elem.src = "images/" + id + "_focus.gif";
}
}

function outfokus_oud(item) {
var ar = new Array();
id1 = item + "_";
switch(item) {
	case "nav": ar[0] = "nav_portfolio"; ar[1] = "nav_klanten"; ar[2] = "nav_links"; ar[3] = "nav_contact"; checkitem = navitem; break;
	case "titel": ar[0] = "titel_advertenties"; ar[1] = "titel_brochures"; ar[2] = "titel_huisstijlen"; ar[3] = "titel_info-bladen"; ar[4] = "titel_directmail"; ar[5] = "titel_diversen"; checkitem = titelitem; break;
}
for(i=0; i<ar.length; i++) {
	id = ar[i];
	elem = document.getElementById(id);
	elem.src = "images/" + id + ".gif";
}
if(checkitem.length>0) {
	id = id1 + checkitem;
	elem = document.getElementById(id);
	elem.src = "images/" + id + "_focus.gif";
}
}


function plaatsflash(subject) {
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"990\" height=\"320\" id=\"2DZoomMenu_FL8\" align=\"middle\">");
document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
document.write("<param name=\"movie\" value=\"images/presentatie.swf?config=config_"+subject+".xml\" />");
document.write("<param name=\"menu\" value=\"false\" />");
document.write("<param name=\"quality\" value=\"high\" />");
document.write("<param name=\"bgcolor\" value=\"#ffffff\" />");
document.write("<embed src=\"images/presentatie.swf?config=config_"+subject+".xml\" menu=\"false\" quality=\"high\" bgcolor=\"#ffffff\" width=\"990\" height=\"320\" name=\"2DZoomMenu_FL8\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
document.write("</object>");
}
