function AjustaMargem() {
	objConteudo = document.getElementById("divMain") ;
	
	if (document.body.offsetWidth) {
		pageWidth = document.body.offsetWidth;
		pageHeight = document.body.offsetHeight;
	}
	else if (Document.body.scrollWidth) {
		pageWidth = Document.body.scrollWidth;
		pageHeight = Document.body.scrollHeight;
	}
	else {
		pageWidth = document.offsetWidth;
		pageHeight = document.offsetHeight;
	}

	if (pageWidth > 1440) {
		marginLeft = (pageWidth - 1440) / 2 ;
		objConteudo.style.left = marginLeft + "px" ;
	}
	else {
		marginLeft = (1440 - pageWidth) / 2 ;
		objConteudo.style.left = - marginLeft + "px" ;
	}

	if (pageHeight > 900) {
		marginTop = (pageHeight - 900) / 2 ;
		objConteudo.style.top = marginTop + "px" ;
	}
	else {
		marginTop = (900 - pageHeight) / 2 ;
		objConteudo.style.top = - marginTop + "px" ;
	}

}

function AplicaSWF() {
	
	if (document.body.offsetWidth) {
		pageWidth = document.body.offsetWidth;
		pageHeight = document.body.offsetHeight;
	}
	else if (Document.body.scrollWidth) {
		pageWidth = Document.body.scrollWidth;
		pageHeight = Document.body.scrollHeight;
	}
	else {
		pageWidth = document.offsetWidth;
		pageHeight = document.offsetHeight;
	}

	if (pageHeight < 900) {
		AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wmode','transparent','width','1280','height','800','src','swf/crisRoberto_2010_1_preLoader','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/crisRoberto_2010_1_preLoader' ); //end AC code	
	}
	else {
		AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wmode','transparent','width','1440','height','900','src','swf/crisRoberto_2010_1_preLoader','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/crisRoberto_2010_1_preLoader' ); //end AC code			
	}

}
