		isSafari3 = false;
		if(window.devicePixelRatio) isSafari3 = true;
		//if(isSafari3) alert("Safari browser not yet supported.");
		
		function resize_main_div() {
			correctheight = 300;
			var main_divh = document.getElementById('main_content').offsetHeight;
			var menu_divh = document.getElementById('second_navagation').offsetHeight;
			if (main_divh < correctheight) {
				newheight = main_divh - correctheight;
				document.getElementById("main_content").style.height = main_divh - newheight + 34 + "px";
			}
			
			//main_divh = document.getElementById('main_content').offsetHeight;
			
			if (main_divh > menu_divh) {
				document.getElementById("second_navagation").style.height = main_divh - 20 + "px";
			}
		}
		
		function menu_drop(menuID, dropID, xoffset) {
			mymenu = document.getElementById(menuID);
			drop = document.getElementById(dropID);
			var y = 0; 
			var x = 0;

			tmpmenu = mymenu;
			while (tmpmenu) { 
				x += tmpmenu.offsetLeft; 
				tmpmenu = tmpmenu.offsetParent; 
			}
			
			tmpmenu = mymenu;
			while (tmpmenu) { 
				y += tmpmenu.offsetTop; 
				tmpmenu = tmpmenu.offsetParent; 
			} 
			
			tmpmenu = mymenu;
			y += tmpmenu.offsetHeight;
			x += xoffset;
			
			drop.style.left=x + "px";
			drop.style.top=y + "px";
			drop.style.display="block";
		}
		
		function menu_close(objID) {
			obj = document.getElementById(objID);
			obj.style.display="none";
		}
		
		function flash_switch(flash_file) {
			obj = document.getElementById("theflash");
			newcode = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='558' height='123' id='flash-main' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='wmode' value='opaque'><param name='allowFullScreen' value='false' /><param name='movie' value='flash/" + flash_file + "' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='flash/" + flash_file + "' wmode='opaque' quality='high' bgcolor='#ffffff' width='558' height='123' name='flash-main' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>"; 
			obj.innerHTML = newcode;
		}