isfixed = false
/*
window.onload = function() {
	rewrite('flash')
}

function rewrite(id) {
	var div = document.getElementById(id)
	div.innerHTML = div.innerHTML
}
*/


function getFlashMovieObject(movieName) {
 	if (window.document[movieName]) {
	//alert(window.document[movieName].id)
		return window.document[movieName];
	}
		
	if (navigator.appName.indexOf("Microsoft Internet")==-1) {
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName]; 
	} else  {
		return document.getElementById(movieName);
	}
}



function loadMovie(name) {
	var flashMovie = getFlashMovieObject("demoxml")
	flashMovie.SetVariable("_root.pano.source","images/" + name)
}

function load360(num) {
	document.PanoramaViewer.newPanoFromList(num);	
}


var disp = new Array();
var vt_num;

function loadPic(num) {
 if (disp[num]==3) {
		//Spherical VR player
			document.location = '360a.php?p=' + num
	} 
}
/*
function goNext() {
	if (nextpic>0) 
		loadPic(nextpic)	
}

function goPrev() {
	if (prevpic>0)
		loadPic(prevpic)
}
*/
