function movewin () {
	//alert ("moveWIN called by onLoad");
	window.innerWidth = screen.width;
	window.innerHeight = screen.height;
	window.screenX = 0;
	window.screenY = 0;
	self.resizeTo(screen.availWidth, screen.availHeight);
	self.moveTo(0,0);
}

function getFlashMovie(movieName) {

   var isIE = navigator.appName.indexOf('Microsoft') != -1;
   return (isIE) ? window[movieName] : document[movieName];
	

}

function showhotspot ( $path ) {
	//alert("hotspot called " + $path);
    // call same method at flash ExternalInterface callback
    getFlashMovie('hotspot_hd').showHotSpotFlash($path);
}

function showmetadata ( $path ) {
	//alert("metadata called " + $path);
    // call same method at flash ExternalInterface callback
	//var movie = getFlashMovie('metadataflash_hd');
	//alert ("got the flash movie " + movie);
    getFlashMovie('metadataflash_hd').showMetaDataFlash($path);
}

function openwin ( path, w, h ) {

	//alert("openwin rec " + path + " " + w + " " + h );
	window.open( path,'popup','width='+ w +',height='+ h +',scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');

}
