// JavaScript Document

			var isVisited = false;
			function showInteractive(){
				if(!isVisited){
					isVisited = true;
					var flashvars = {};
					var params = {};
					params.quality = "high";
					params.scale = "allowscale";
					params.wmode = "transparent";
					params.allowScriptAccess ="sameDomain";
					params.allowFullScreen ="true";
					var attributes = {};
					swfobject.embedSWF("http://www.haasgroupintl.com/Haas-Int-Main.swf" + location.search, "my_flash", "1235", "850", "10.0.0",false, flashvars, params, attributes);
					//swffit.fit("my_flash" ,1000,625,1240,0,true,true);
				
					try{document.getElementById("mosaic-slideshow").style.zIndex = 5000;}catch(error){};
					document.getElementById("intlinklayer").style.zIndex = 5001;
					document.getElementById("my_flash").style.zIndex = 5002;
					try{document.getElementById("interactiveGetFlash").style.display = "block";}catch(error){};
					
				} else {
					try{document.getElementById("mosaic-slideshow").style.zIndex = 5000;}catch(error){};
					document.getElementById("intlinklayer").style.zIndex = 5001;
					document.getElementById("my_flash").style.zIndex = 5002;
					try{document.getElementById("my_flash").style.display = "block";}catch(error){};
					try{document.getElementById("interactiveGetFlash").style.display = "block";}catch(error){};
				}
				clearSlideInt();
			}
			
			var flashvars = {};
			flashvars.webversion = "false";
   			var params = {};
   			params.quality = "high";
   			params.scale = "noscale";
   			params.wmode = "transparent";
			params.allowFullScreen ="true";
			params.allowScriptAccess ="sameDomain";
			var attributes = {};
			swfobject.embedSWF("http://www.haasgroupintl.com/interactiveIcon.swf", "intlinklayer", "192", "182", "10",false, flashvars, params, attributes);
			//swffit.fit("intlinklayer" ,600,300,300,600,false,true);
			
function closeFlashWarning(){
	try{document.getElementById("interactiveGetFlash").style.display = "none";}catch(error){};
	try{document.getElementById("my_flash").style.display = "none";}catch(error){};
}
function hideFlash() {
	
         //alert("ActionScript says: ");
		 document.getElementById("my_flash").style.display = "none";
		 startSlideInt();
		 thisMovie("intlinklayer").jsReplayAnim(null);
		 //$('.mosaic-slide').startSlideInt();
		
     }		
function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
         }
     }		
	
