function browser_switch (w, h)
{
	var iWidth = w;
	var iHeight = h;
	var aDim = new Array(2);
	
	/**
	* MACINTOSH
	*/
	if(navigator.userAgent.indexOf("Mac") != -1 ) {
		/**
		* SAFARI
		*/
		if(navigator.appVersion.indexOf("Safari") != -1) {
			iWidth = iWidth - 2;
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
		/**
		* INTERNET EXPLORER
		*/
		else if(navigator.appVersion.indexOf("MSIE") != -1) {
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
		/**
		* ALLE ANDEREN
		*/
		else {
			iWidth = iWidth - 2;
			iHeight = iHeight + 18;
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
	}
	
	/**
	* WINDOWS
	*/
	if ( navigator.userAgent.indexOf("Mac") == -1 ) {
		/**
		* MOZILLA & NETSCAPE
		*/
		if ( ( navigator.appName.indexOf("Netscape") != -1 ) && ( parseFloat(navigator.appVersion) > 4.7 ) ) {
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
		/**
		* OPERA
		*/
		else if ( navigator.appName.indexOf("Opera") != -1 ) {
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
		/**
		* INTERNET EXPLORER
		*/
		else if ( navigator.appName.indexOf("Explorer") != -1 ) {
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
		/**
		* ALLE ANDEREN
		*/
		else {
			iWidth = iWidth + 100;
			iHeight = iHeight + 100;
			aDim[0] = iWidth;
			aDim[1] = iHeight;
			return aDim;
		}
	}
}

function pop_content (file, w, h)
{
	var aDim = browser_switch(w, h);
	var ref = window.open(file, "popcontent", "status=no,scrollbars=no,scrolling=0,resizable=no,width="+aDim[0]+",height="+aDim[1]+",top=10,left=10,locationbar=no");
}