// JavaScript Document
//attachEventListener(window, "resize", sendScreenInfo, false);
function fl(movieName) {
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}
function fechamapa(){
	document.getElementById("mapa").style.display = "none";
}
function printmapa(){
	window.open("printmapa.htm",null, "height=522,width=600,status=no,toolbar=no") 
}
function abremapa(){
	document.getElementById("mapa").style.display = "block";
}

function sendScreenInfo()
{	
  var theWidth = getBrowserWidth();
  //alert(theWidth);
  if (theWidth > 1100){
  	document.getElementById('fla').style.margin = '0px 0px 0px 0px';
  }
}

function printFlash()
{	
  var theWidth = getBrowserWidth();
  var flash;
  if (theWidth < 800){
  	flash = '<div id="fla" class="flash800"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" data="Comics.swf" name="Comics" type="application/x-shockwave-flash" width="100%" height="380">'
	+ '<embed src="comics.swf" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="100%" height="380" />'
  }else{
	flash = '<div id="fla" class="flash"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" data="Comics.swf" name="Comics" type="application/x-shockwave-flash" width="1004" height="485">'
	+ '<embed src="comics.swf" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="1004" height="485" />'
  }  
  flash = flash + '<param name="movie" value="Comics.swf" />'
  +	'<param name="menu" value="false" />'
  + '<param name="quality" value="high" />'
  +	'<param name="scale" value="exactfit" />'
  + '<param name="wmode" value="transparent" />'  
  + '</object>'
  +	'</div>'
  document.write(flash);
}

function getBrowserWidth()
{
	if (window.innerWidth)
	{
		return window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth != 0)
	{
		return document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		return document.body.clientWidth;
	}
	
	return 0;
};
function fl(movieName) {
  //if (navigator.appName.indexOf ("Microsoft") !=-1) {
 //   return window[movieName]
 // } else {
    return document[movieName]
	
 // }
}

