function loadIntroducao(){
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		var hasRightVersion = DetectFlashVer(8, 0, 24);
		if(hasRightVersion) {
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
				'width', '1000',
				'height', '403',
				'src', 'introducao',
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'play', 'true',
				'loop', 'true',
				'scale', 'noScale',
				'wmode', 'window',
				'devicefont', 'false',
				'id', 'index',
				'bgcolor', '#000000',
				'name', 'index',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','true',
				'movie', 'introducao',
				'salign', ''
				);
		} else {
			var alternateContent = 'Este site foi desenvolvido utilizando tecnologia Adobe Flash.'
				+ 'Para visuaalizar o conteúdo é necessário o Adobe Flash Player.'
				+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
			document.write(alternateContent);
		}
	}
}

function loadHome(){
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		var hasRightVersion = DetectFlashVer(8, 0, 24);
		if(hasRightVersion) {
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
				'width', '100%',
				'height', '100%',
				'src', 'index',
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'play', 'true',
				'loop', 'true',
				'scale', 'noScale',
				'wmode', 'window',
				'devicefont', 'false',
				'id', 'index',
				'bgcolor', '#000000',
				'name', 'index',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','true',
				'movie', 'index',
				'salign', 'top'
				);
		} else {
			var alternateContent = 'Este site foi desenvolvido utilizando tecnologia Adobe Flash.'
				+ 'Para visuaalizar o conteúdo é necessário o Adobe Flash Player.'
				+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
			document.write(alternateContent);
		}
	}
}
/*function openFullWindow(url) {
	var w = screen.width;
	var h = screen.height;
	leftPosition = 0;
	topPosition = 0;
	if (h<=800){
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no'; //set popup window properties
	} else {
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no'; //set popup window properties
	}
	var popup = window.open(url,'remote',windowprops);
	popup.moveTo(0,0)
	popup.resizeTo(screen.width,screen.height);
}*/
function init(){
	//openFullWindow("index.php?action=abertura");
	openSite();
}

function openSite(){
	var win, name, features, ref, top, left;
	if(screen.width == 1000){
		top = 0;
		left = 0;
	}else{
		top = parseInt(screen.availHeight - 583) / 2;
		left = parseInt(screen.availWidth - 1000) / 2;
	}
	win = "index.php?action=abertura";
	name = "home";
	features = "width=1000, height=583, top="+top+", left="+left+", scrollbars=no";
	ref = window.open(win, name, features);
	ref.focus();
}