// opens window and writes page:
				
function openQTVRpage(title,quality,width,height,mediaFileName) {
var version = "v1.12" // for testing and tracking
var displayWidth = width + 24 // a little space around
var displayHeight= height + 56 // a little space around for logo & instructions

qtvrWindow = window.open("","myQTVRShow","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=" +displayWidth + "," + "height="+displayHeight)

qtvrWindow.document.write("<html><head><title>" + title + " QTVR<\/title><link rel=STYLESHEET href='ih_ss.css' type='text/css'><\/head><body bgcolor='WHITE' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>")     // header

// CONTENT //

qtvrWindow.document.write("<div align='CENTER'>")

qtvrWindow.document.write("<table width='"+width+"' cellpadding='0' cellspacing='0' border='0'><tr><td align=center valign='top' colspan='3'><object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='"+width+"', height='"+height+"' codebase='http:\/\/www.apple.com/qtactivex\/qtplugin.cab'><param name='src' value='media\/"+mediaFileName+"'> <param name='autoplay' value='true'><param name='controller' value='false'><param name='correction' value='none'><param name='cache' value='true'><embed src='media\/" + mediaFileName + "' width='" + width + "', height='" + height + "' type='video/quicktime' autoplay='true' controller='false'  kioskmode='true' cache='true' correction='none' pluginspage='http:\/\/www.apple.com\/quicktime\/download\/'> <\/embed> <\/object> <\/td><\/tr>")

qtvrWindow.document.write("<tr><td align='center' valign='middle'><img src='all_images\/0space.gif' border='0' width='40' height='40' alt=''><\/td><td align=center><span style='font-size: 80%; color: 666688' >Use your mouse to rotate the " + title + "...<\/span><br> <br><a href ='javascript: window.close()'><span style='font-size: 70%; color: AAAAAA' >Close this window.<\/a></span> <\/td><td align='RIGHT' valign='top'><img src='all_images\/logoBlockShade.jpg' border='0' width='40' height='40' alt='In House'><\/td><\/tr>")

//qtvrWindow.document.write("<tr><td colspan ='3' align='center'><span style='font-size: 70%; color: DDDDDD' >" + version + "<\/span><\/td><\/tr>")

qtvrWindow.document.write("<\/table>")

qtvrWindow.document.write("<\/div>")

qtvrWindow.document.write("<\/body><\/html>") // ender

qtvrWindow.document.close()

qtvrWindow.focus()
}

		
	




