﻿var nowShowing = null;

function showDiv(theEvent, divId){
	var document = window.document;
	if (document && !nowShowing) {
	    nowShowing = document.getElementById(divId);
	    if (nowShowing && nowShowing.style.visibility == "hidden") {
	        nowShowing.style.left = String(theEvent.clientX - 194) + "px";
	        nowShowing.style.top = String(theEvent.clientY - 150) + "px";
	        nowShowing.style.visibility = "visible";
	    }
	}
}

function hideDiv(){
	if (nowShowing) {
	    nowShowing.style.visibility = "hidden";
	    nowShowing = null;
    }
}

function flashObject(moviePath, width, height) {
    return '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '">'+
          '<param name="movie" value="' + moviePath  + '" />'+
          '<param name="quality" value="high" />'+
          '<param name="menu" value="false" />'+
          '<param name="loop" value="true" />'+
          '<param name="wmode" value="opaque" />'+
          '<embed src="' + moviePath  + '" width="' + width + '" height="' + height + '" loop="true" wmode="opaque" quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>'+
        '</object>';
}

function documentWriteln(output) {
    document.writeln(output);
}