function browser(){
   if ((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Windows") != -1)){
	   return "WMSIE";
   }
}
function play(themovie){
   var tour = document.getElementById(themovie);
   if (tour.style.display != "block"){
	   tour.style.left = getLeft() + "px";
	   if (browser() == "WMSIE"){
		   var scrollpos = getScrollingPosition();
		   tour.style.top = scrollpos[1] + 100 + "px";
	   }
	   tour.style.display = "block";
   } else {
	   stop(themovie);
   }
}
function stop(themovie){
   document.getElementById(themovie).style.display = "none";
}
function getLeft(){
   if (document.all){
	   screen_width = 800
   } else {
	   screen_width = window.innerWidth
   }
   return Math.round(screen_width/2 - 165);
}
function getScrollingPosition(){
 var position = [0, 0];
 if (typeof window.pageYOffset != 'undefined') {
   position = [
	   window.pageXOffset,
	   window.pageYOffset
   ];
 } else if (typeof document.documentElement.scrollTop != 'undefined'
	 && document.documentElement.scrollTop > 0) {
   position = [
	   document.documentElement.scrollLeft,
	   document.documentElement.scrollTop
   ];
 } else if (typeof document.body.scrollTop != 'undefined'){
   position = [
	   document.body.scrollLeft,
	   document.body.scrollTop
   ];
 }
 return position;
}
