/* ==================================================== */

function mOver(aObj){
	imgObj = aObj.getElementsByTagName('img');
	
	imgObj[0].src = imgObj[0].src.replace("_normal.","_over.");
	
	aObj.onmouseout = function()
	{
		imgObj[0].src = imgObj[0].src.replace("_over.","_normal.");
	}
}
/* ========= popupwindow function   ================ */


function openInNewWindow(aObj,w,h,attr)
{
	var aURL
	var aTarget = aObj.target;
	
	if(aObj.href)
	{
		aURL = aObj.href;
	}
	else
	{
		aURL="about:blank";
	}
	
	x=(screen.availWidth-w)/2
	y=(screen.availHeight-h)/2
	if(aObj.popUpWin)
	{
		aWindow = aObj.popUpWin
		if(!window.aWindow.closed)
		{ 
			window.aWindow.close();
		}
	}
	aWindow = window.open(aURL,aTarget,"width="+w+",height="+h+",left="+x+",top="+y+","+(attr ? attr : "location=no,status=yes,menubar=no,scrollbars=yes,resizable=no"))
	aObj.popUpWin = aWindow;
	return false;
}
/* ============================================= */


/* ==================================================== */
/*
	browserchecks
	
		IS_MOZ
		IS_IE
		IS_SAFARI
		
		IS_OPERA
		
		IS_WIN
			VERSION_IS
		IS_MAC
			IS_OSX
*/
/* ==================================================== */
var inCMSMode;

if(navigator)
{
	user = navigator;
	IS_MOZ = (user.appName.toLowerCase().indexOf("netscape") != -1);
	IS_IE = (user.appName.toLowerCase().indexOf("internet") != -1);
	IS_SAFARI = (user.userAgent.toLowerCase().indexOf("safari") != -1);
	
	IS_OPERA = (user.appName.toLowerCase() == "opera");
	
	if(user.userAgent.indexOf("Opera")>-1)
	{
		IS_IE = false;
		IS_OPERA = true;
	}
	// browser version
	if (user.appVersion)
	{  // don't try to parseInt a string (NA = "")
		VERSION_IS = parseInt(user.appVersion);
		if (IS_IE)
		{  
			VERSION_IS = parseFloat(user.userAgent.split("MSIE")[1].split(";")[0]);
		}
	}
	if (user.userAgent && user.appVersion)
	{
		agt = user.userAgent.toLowerCase();  
		IS_WIN = ((agt.indexOf("win") != -1) || (agt.indexOf("16bit") != -1));
		IS_MAC = (agt.indexOf("mac") != -1);
		
		IS_OSX = IS_MAC && (agt.indexOf("os x") != -1);
	}
}	

// ==========================================================

if(IS_MAC && IS_IE)
{
	document.writeln("<style>");
	document.writeln("	html{height:auto;}");
	document.writeln("	#container{height:auto;}");
	document.writeln("	div.contentBlock {height:525px;}");
	document.writeln("	div.zwHeader {padding-bottom:3px;}");
	document.writeln("	div.indexKop div.intro {height:131px;}");
	document.writeln("	div.reclameBody {background-color:transparent;}");
	document.writeln("	select.select {height:16px;}");
	document.writeln("	body.lm #container div.mainKop {width:507px;}");
	document.writeln("	body.lm #container div.inleiding {width:502px;}");
	document.writeln("</style>");
}

if(IS_MAC)
{

	document.writeln("<style>");
	document.writeln("	#items {top:8px;}");
	document.writeln("	div.navigatie {padding-top:2px;}");
	document.writeln("	input.typeText {height:16px;margin:1px 0 1px 0;}");
	document.writeln("</style>");
}
// ==========================================================

