
function getViewportSize() { 
			var size = [0, 0]; 
			if (typeof window.innerWidth != "undefined") { 
				size = [window.innerWidth, window.innerHeight];
			} 
			else if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0) {
				size = [document.documentElement.clientWidth, document.documentElement.clientHeight]; 
			}
			else {
				size = [document.getElementsByTagName("body")[0].clientWidth, document.getElementsByTagName("body")[0].clientHeight]; 
			}
			return size; 
		}
		
		function createFullBrowserFlash() {
			swfobject.createCSS("html", "height:100%;");
			swfobject.createCSS("body", "height:100%;");
			swfobject.createCSS("#container", "margin:0; width:100%; height:100%; min-width:990px; min-height:620px; background-color:#000000;");
			
			
			var size = getViewportSize();
			
			if(size[1] < 620){
					swfobject.createCSS("body", "overflow:auto;");
				}else{
					swfobject.createCSS("body", "overflow:hidden;");
				}
			
			window.onresize = function() {
				var el = document.getElementById("container");
				var size = getViewportSize(); 
 				el.style.width = size[0] < 990 ? "990px" : "100%";
				el.style.height = size[1] < 620 ? "620px" : "100%";
				
				if(size[1] < 620){
					swfobject.createCSS("body", "overflow:auto;");
				}else{
					swfobject.createCSS("body", "overflow:hidden;");
				}
			};
			
			
			window.onresize();
		}
		
		var flashvars = {};
		flashvars.domain = "*";
		flashvars.language = "0";

		var params = {};
		params.menu = "false";
		params.bgcolor = "#000000";
		params.allowFullScreen = "true";
		params.wmode = "opaque";
		
		var attributes = {};
		attributes.id = "flashswf";
		attributes.name = "flashswf";
		
		swfobject.embedSWF("index.swf", "flashcontent", "100%", "100%", "9.0.124", "expressInstall.swf", flashvars, params, attributes);
		if (swfobject.hasFlashPlayerVersion("9.0.124")) {
			swfobject.addDomLoadEvent(createFullBrowserFlash);
		}

function segnaVisita($link){
	
	
			if(SWFAddress.getTitle()!=''){
				
				if($link.indexOf('.html')!=-1 || $link=='/' ){
					_gaq.push(['_setAccount', 'UA-16733713-1']);
	  				_gaq.push(['_setDomainName', 'none']);
	  				_gaq.push(['_setAllowLinker', true]);
	 				 _gaq.push(['_trackPageview',$link]);
				}
			
			}
}


function isIpad(){
	if(navigator.userAgent.match(/iPad/i) != null){
		return true;
	}else{
		return false;
	}
}


if (isIpad()){
	location.href="http://www.bisazza.it/ipad/";
}



