function showQT( identifier ) 
{
	globalIdentifier = identifier;
	var isIE = navigator.appVersion.indexOf("MSIE") != -1;
	
	document[ "player" ].style.visibility = "hidden";
	document.getElementById( "quicktimeContainer" ).style.visibility = "inherit";
	
	var qt = QT_GenerateOBJECTText_XHTML( 
				"files/" + identifier + ".mov", "720", "592", "",
				"autoplay", "true", 
				"bgcolor", "000000", 
				"controller", "true", 
				"enablejavascript", "false", 
				"showlogo", "true", 
				"name", "quicktimePlayerObject", 
				"type", "video/quicktime" );
	if ( !isIE )
	{
		document.getElementById( "quicktimePlayer" ).innerHTML = qt;
	}
	else
	{
		document.getElementById( "quicktimePlayer" ).innerHTML = 
			'<iframe src="" width="768" height="592" scrolling="no" frameborder="0" border="0" marginwidth="0" marginheight="0"></iframe>';
		document.frames[0].document.open();
		document.frames[0].document.write( '<html><body style="background: black; margin: 0px; padding: 0px; overflow: hidden">' );
		document.frames[0].document.write( qt );
		document.frames[0].document.write( '</body><html>' );
		document.frames[0].document.close();
	}
	
	setTimeout( 'getMovie( "topplayer" ).setIdentifier( "' + identifier + '" )', 500 );
}

function getMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    } else {
        return document[movieName];
    }
}


function closeQT()
{
	if( document[ "quicktimePlayerObject" ] )
		document[ "quicktimePlayerObject" ].Stop();
	document.getElementById( "quicktimePlayer" ).innerHTML = '';
	document[ "player" ].style.visibility = "inherit";
	document.getElementById( "quicktimeContainer" ).style.visibility = "hidden";	
}
