






function setmyintratuin( id )
{
	if( confirm("Wanneer je deze vestiging tot 'jouw Intratuin' maakt, dan komt links onder in beeld altijd \n\rspecifieke informatie van die vestiging te staan, zodat je alle gegevens meteen bij de hand hebt.\n\r Alle algemene (landelijke) informatie blijft uiteraard bereikbaar.\n\r Bij een volgend bezoek is 'jouw Intratuin' standaard ingesteld." ) )
	{
		document.location.href = "/mijnintratuin.asp?id="+id;
	}
}

/* ====================================================================== */

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.");
	}
}
function mOverButton(inpObj){
	
	inpObj.src = inpObj.src.replace("_normal.","_over.");
	
	inpObj.onmouseout = function()
	{
		this.src = this.src.replace("_over.","_normal.");
	}
}
/* =================================================== */
// POPUP =============================================
/*   <a href="printbon.html" onclick="openInNewWindow(this,450,450);return false;"> INDIEN nieuw venster */
var windowObjList = {}

function openInNewWindow(aElm,wWidth,wHeight, returnFalse)
{
	var url;
	var targetName;
	
	var wLeft=(screen.availWidth-wWidth)/2;
 	var wTop=(screen.availHeight-wHeight)/2;
		
	if(typeof(aElm)=="string")
	{
		url = aElm;
		targetName = "_blank";
	}
	else
	{
		url = aElm.href;
		targetName =  aElm.target;
	}
	
 	if(windowObjList[url])
 	{
 		aWindow = windowObjList[url];
 		if(!window.aWindow.closed)
 		{ 
 			window.aWindow.close();
 		}
 	}
 	windowObjList[url] = window.open(url,targetName,"width="+wWidth+",height="+wHeight+",left="+wLeft+",top="+wTop+",location=no,status=no,menubar=no,scrollbars=auto,resizable=yes");
 	// Kieb: returnFalse nodig voor de flash Popup
	if (returnFalse != "off"){
 		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("	div.mainColl {margin:0px 162px 0 165px;}");
	document.writeln("</style>");
}
if(IS_MAC)
{

	document.writeln("<style>");
	document.writeln("	.borderBlockDertig {margin-right:15px;}");
	document.writeln("	.kaartNL {min-height:400px;overflow:hidden;}");
	document.writeln("	.headerbalk select {margin-right:15px;}");
	document.writeln("</style>");
}
if(IS_SAFARI)
{

	document.writeln("<style>");
	document.writeln("	div.mainColl {margin:0px 162px 0 165px;}");
	document.writeln("	.borderBlockDertig {margin-right:15px;}");
	document.writeln("	.kaartNL {min-height:400px;overflow:hidden;}");
	document.writeln("</style>");
}

// show / hide div#afleveradres
function toggleLayer(whichLayer){
	if (document.getElementById) {
		var divStyle = document.getElementById(whichLayer).style;
		divStyle.display = divStyle.display? "":"block";
	} 
}
