function PopWindow(url)
{
	windowHandle = window.open (url,null,"height=550,width=685, resizable=yes ,scrollbars=yes, toolbar=np,location=no, directories=no, status=no,menubar=no, top=10, left=10");
	windowHandle.focus() ;
}

function showpano(vtid){
var settings='width=375,height=500,top=5,left=5,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
//var win=window.open('http://display.maxvr.com/carnival/shipviewer.asp?id=' + vtid,'vrxviewer',settings);
var win=window.open('http://www.carnivalcruise.ca/shipviewer.aspx?id=' + vtid,'vrxviewer',settings);
win.focus();
}

function showpano2(vtid,culture){
var settings='width=375,height=500,top=5,left=5,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
//var win=window.open('http://display.maxvr.com/carnival/shipviewer.asp?id=' + vtid,'vrxviewer',settings);
var win=window.open('http://www.carnivalcruise.ca/shipviewer.aspx?id=' + vtid + '&l=' + culture,'vrxviewer',settings);
win.focus();
}

function getPano() {
	w = document.forms["Form1"].qtvr.selectedIndex;
	p = document.forms["Form1"].qtvr.options[w].value;
	showpano(p);
}

// perform slideshow
function doSlideShow(){
	if (!document.images) return;

	// If the browser is IE 4.x+
	if (document.all) document.forms["Form1"].slideShow.filters.blendTrans.apply();
	
	document.forms["Form1"].slideShow.src=eval("img_" + step + ".src");
	
	// If the browser is IE 4.x+
	if (document.all) document.forms["Form1"].slideShow.filters.blendTrans.play();
	
	if (step < img_count)
		step++;
	else
		step = 1;

	setTimeout("doSlideShow()", speed)
}
