

	function rollOverMenu(id){
		document.getElementById(id).style.background="url(img/roll3.gif) repeat-x";
		document.getElementById(id).style.color="#FFFFFF";
		document.getElementById(id).style.cursor="hand";
	}
	function rollOutMenu(id, pic){
		document.getElementById(id).style.background="url("+pic+") repeat-x";
		document.getElementById(id).style.color="#FFFFFF";
		document.getElementById(id).style.cursor="hand";
	}

	var FLASH_HEADER_HEIGHT = 104;

	function callLink(url, name) {
		showFrame(url);
	}

	function setFlashMax() {
		removeFrame();
		maximizeHtmlContainer();
	}

	function activateMinHeight(minHeight) {
		document.getElementById("container").style.height = minHeight + "px";
	}

	var frameId = "";
	function showFrame(url) {
		document.getElementById("container").style.height = FLASH_HEADER_HEIGHT + "px";

		frameId = "ext" + new Date().getTime();
		var flashContainerFrame = document.createElement("IFRAME");
			flashContainerFrame.frameBorder = "0";
			flashContainerFrame.id = frameId;
			flashContainerFrame.src = url;
			flashContainerFrame.style.height = YAHOO.util.Dom.getViewportHeight() - FLASH_HEADER_HEIGHT + "px";

		document.getElementsByTagName("BODY")[0].appendChild(flashContainerFrame);
	}

	function removeFrame() {
		document.getElementsByTagName("BODY")[0].removeChild(document.getElementById(frameId));
	}

	function maximizeHtmlContainer() {
		document.getElementById("container").style.height = YAHOO.util.Dom.getViewportHeight() + "px";
		document.getElementById("container").style.width = "100%";
	}

	function resizeDivHeights() {
		if(document.getElementById(frameId))
			document.getElementById(frameId).style.height = YAHOO.util.Dom.getViewportHeight() - FLASH_HEADER_HEIGHT + "px";
		else
			document.getElementById("container").style.height = YAHOO.util.Dom.getViewportHeight() + "px";
	}
	window.onresize=resizeDivHeights;

	function returnPageHeight(){
		return YAHOO.util.Dom.getViewportHeight();
	}

	function _init(){
		var loader = new YAHOO.util.YUILoader({
			require: ["dom"],
			loadOptional: true,
			onSuccess: function(){
				maximizeHtmlContainer();
			}
		});
		loader.insert();
	}

   function loadLink(url) {
   	var flashContainerFrame = document.getElementById(frameId);
      flashContainerFrame.src = url;
	}