
	function openPopup(url,scroll)
	{
		if(!scroll) {scroll=0}
		var pop;
		if (self.screen)
		{
			sw = screen.width;
			sh = screen.height;
			w = sw - 10; // to center: use desired width
			h = sh - 70; // to center: use desired height
			cx = 0;  // to center: (.5*sw) - (w*.5)
			cy = 0; // to center: (.5*sh) - (h*.5)
	
			var opt="width="+w+",height="+h+",screenX="+cx+",screenY="+cy+",left="+cx+",top="+cy+",toolbar=0,status=0,fullscreen=0,menubar=0,scrollbars="+scroll+",resizable=0";
	
			if (screen.width>900)
			{
				pop=window.open(url,"","toolbar=0,location=0,fullscreen=1,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=0");
			}
			else
			{
				pop=window.open(url,"",opt);
			}
			pop.focus();
		}
	}

		function fWriteSwf(url, width, height, allowDomain) {
		if (allowDomain = "") {
			allowDomain = false;
		}
		try {
			document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
			document.write('<param name="movie" value="' + url + '">');
			if (allowDomain = true) {
				document.write('<param name="allowScriptAccess" value="sameDomain"/>');
			}
			document.write('<param name="quality" value="high">');
			document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
			document.write('</object>');
		} catch(E){}
	}

	function fWriteDisplay()
	{
		document.write('<OBJECT id=iMBCDisplay style="WIDTH: 0; HEIGHT: 0" codebase="http://wdrm.imbc.com/iMBCDisplay.ocx#version=1,0,0,2" classid="clsid:45D5C05D-99A4-4327-865F-22B81382FA0E" name=iMBCDisplay></OBJECT>');
	}