﻿//this funciton moves  content for the hover over on emergency_room.aspx
	(function($) {
	    var speedIn = 250;
	    var speedOut = 500;
	    var debounceTimeout = 100;
	    var debounce = [];



	    $(function() {
	        $('#erroom_map div.erroom_tips > *')
		.hover(function() {
		    var $tip = $(this).closest('.erroom_tips');
		    clearTimeout(debounce[$tip.attr('id')]);
		    $tip.children('table').fadeIn(speedIn)
		}, function() {
		    var $tip = $(this).closest('.erroom_tips');
		    clearTimeout(debounce[$tip.attr('id')]);
		    debounce[$tip.attr('id')] = setTimeout(function() {
		        $tip.children('table').fadeOut(speedOut);
		    }, debounceTimeout);
		})

	    });
	})(jQuery);

//this function plays a quick time view  on the same page.
 function  Play360View()
{ document.write('<object classid="clsid: 02BF25D5..." \n');
    
    document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="494" HEIGHT="311" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">\n');
 document.write('<param name="src" value="emergency_room360view.mov" />\n');
 document.write('<PARAM name="AUTOPLAY" VALUE="true">\n');
 document.write('<PARAM name="CONTROLLER" VALUE="true">\n');
document.write('<EMBED SRC="emergency_room360view.mov" WIDTH="494" HEIGHT="311" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">\n');
document.write('</EMBED>\n');
    document.write('</object>\n');
}

// this function checks version of quicktime codes to be 7.0 or greater use it for on load event for form? 
function CheckQuickTime (strVersion, strMessage)
{
document.write('Iam super cool')

}
