<!--
//Javascript for interface stuff
var BackgroundColor="#FFF";
var LoadingText="Carregando..."
//----------------------------------------------------------
//Preloading content
//window.onload=function(){
//LoadContent('fs_worldcup_n_p_efe.html','EFEContainer','#FFF');
//LoadContent('fs_worldcup_n_p_lancenet.html','LancenetContainer','#FFF');
//LoadContent('fs_worldcup_n_p_reuters.html','ReutersContainer','#FFF');
//LoadContent('fs_worldcup_n_p_placar.html','PlacarContainer','#FFF');
//LoadContent('fs_worldcup_n_p_all.html','AllContainer','#FFF');
//}
//----------------------------------------------------------
//Ajax Reloading
//Creating the xmlhttp object
function CreateXMLHttpRequest(){
 try{
 var xmlhttp = new XMLHttpRequest();
 }catch(ee){
 try{
 var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 }catch(e){
 try{
 var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 }catch(E){
 var xmlhttp = false;
 }
 }
 }
 return xmlhttp;
}
//----------------------------------------------------------
function GetContent(filepath,container_id,color_background){
 var xmlhttp= CreateXMLHttpRequest();
 var target=filepath;

 //Loading feature
 var container=document.getElementById(container_id);
 container.innerHTML='<div class="loading">'+ LoadingText +'</div>';
 //Open the content
 xmlhttp.open("GET", escape(target) ,true);
 xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=iso-8859-1;')
 //
 xmlhttp.onreadystatechange=function() {
 if (xmlhttp.readyState==4){
 var container=document.getElementById(container_id);
 var text=xmlhttp.responseText;
 text=unescape(text);
 container.innerHTML=text;
 }
 }
 xmlhttp.send(null);
}
//---------------------------------------------------------------
function LoadContent(filepath,container_id,color_background){
 var xmlhttp= CreateXMLHttpRequest();
 var target=filepath;
 //Loading feature
 var container=document.createElement("div");
 container.id=container_id;
 container.style.display='none';
 var parentobj=document.getElementById('NewsProvidersList');
 parentobj.appendChild(container);
 container.innerHTML='<div class="loading">'+ LoadingText +'</div>';
 //Open the content
 xmlhttp.open("GET", escape(target) ,true);
 xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=iso-8859-1;')
 //
 xmlhttp.onreadystatechange=function() {
 if (xmlhttp.readyState==4){
 var text=xmlhttp.responseText;
 text=unescape(text);
 container.innerHTML=text;
 }
 }
 xmlhttp.send(null);
}
//-----------------------------------------------------------------------------
function SetContent(origin_id,target_id){
 var originobj=document.getElementById(origin_id);
 var targetobj=document.getElementById(target_id);
 targetobj.innerHTML=originobj.innerHTML;
}
//---------------------------------------------------------------
function HideElement(obj_id){
 var obj=document.getElementById(obj_id);
 obj.style.display="none";
}
function ShowElement(obj_id){
 var obj=document.getElementById(obj_id);
 obj.style.display="block";
}
-->
