// JavaScript Document
function closeTour()
{
	tourw = document.getElementById("tourpopup");
	tourw.style.display = "none";
	tourw.style.left = "0";
	tourw.style.top = "0";
}

function showTour(movie)
{
    tourw = document.getElementById("tourpopup");
	
	width = screen.availWidth;
	height = screen.availHeight; 
	
	if (width >= 790 && height >= 656)
	{
		scape = (width - 790)/2;
		tourw.style.left = scape+50+"px"; 
		tourw.style.top = 230+"px";  
	}
	
	output = "<div style=\"height:380px; width:420px;\">"; 
	output = "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"420\" height=\"375\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">"
	output += "<param name=\"autoplay\" value=\"true\" />";
	output += "<param name=\"controller\" value=\"true\" />";
	output += "<param name=\"pluginspage\" value=\"http://www.apple.com/quicktime/download/indext.html\" />";
	output += "<param name=\"target\" value=\"myself\" />";
	output += "<param name=\"type\" value=\"video/quicktime\" />";
	output += "<param name=\"src\" value=\""+movie+"\" />";
	output += "<embed src=\""+movie+"\" width=\"420\" height=\"375\" autoplay=\"true\" controller=\"true\" border=\"0\" pluginspage=\"http://www.apple.com/quicktime/download/indext.html\" target=\"myself\"></embed>";
    output += "</object>"; 
	output += "</div><div style=\"width:420px; margin-top:3px; \">";
	output += "<div style=\"width:320px; font-size: 12px; float:left;\">Click and drag image in any direction</div>";
	output += "<div style=\"width:100px; font-size: 12px; float:left; text-align: right; \">"; 
    output += "<a href=\"javascript:closeTour()\"><img src=\"images/close-btn.gif\" alt=\"Close\" border=\"0\" align=\"absmiddle\" /></a>"; 
	output += "</div></div>";
	
	tourw.innerHTML = output;  
	
	tourw.style.display = "block"; 
	
}