var obflash;
var tfont = 14;
var isIE = navigator.appName.indexOf("Microsoft") != -1;
var tfcorpo = 12;
var tftit = 18;
var ch;
var cw;
//
//window.onload = function(){}
/* function pop(){
    var fdivm = document.createElement("div");
	document.body.appendChild(fdivm);
	fdivm.id = "floatLayerMenu";
    //fdivm.align = "center";
    fdivm.style.position = "absolute";
    fdivm.style.top = "100px";
    fdivm.style.left = "330px";
    //fdivm.style.float="center";
    //
    var re = new SWFObject("../../swf/popup.swf", "pop", "260", "270", "8", "#ffffff");
    re.addParam("quality", "high");
    re.addParam("wmode", "transparent");
    re.write("floatLayerMenu");
    //
    //ch = document.body.clientHeight;
    //cw = document.body.clientWidth;
    var lx = 120;//(cw/2)-(260/2);
    var tx = 20;//(ch/2)-(505/2);
    fdivm.style.left = lx+"px";
    fdivm.style.top = tx+"px";
    //
} */
/**/
function fecharpopini(){
    var pop = document.getElementById("popupini");
    pop.style.display = "none";
}
function popupini(){
    var p = new SWFObject("../../swf/popup_linhadotempo.swf", "pop", "444", "169", "9", "#ffffff");
    p.addParam("quality", "high");
    p.addParam("wmode", "transparent");
    p.write("popupini");
    //
    ch = document.body.clientHeight;
    cw = document.body.clientWidth;
    // /*  */
    var pop = document.getElementById("popupini");
    pop.style.display = "block";
    var esq = (cw-444)/2;
    //pop.style.left = esq+"px";
}
/**/
function popup(){
    ch = document.body.clientHeight;
    cw = document.body.clientWidth;
    var pop = document.getElementById("popup");
    pop.style.display = "block";
    var fundo = document.getElementById("fundopop");
    fundo.style.display = "block";
    document.getElementById("fundopop").style.height = ch+"px";
    if(isIE){
        pop.style.marginLeft = "0px";
        pop.style.width = "770px";
        pop.style.left = ((cw-770)/2)+"px";;
    }
    fundo.onclick = function(){
     fecharpopup();
    }
}
function fecharpopup(){
    document.getElementById("popup").style.display = "none";
    document.getElementById("fundopop").style.display = "none";
}
//
//
function amais(){
    if(tfcorpo<20){
        tfcorpo+=2;
        tftit+=2;
    }
    aatualiza();
}
function amenos(){
    if(tfcorpo>10){
        tfcorpo-=2;
        tftit-=2;
    }
    aatualiza();
}
function aatualiza(){
    var ps = document.getElementsByTagName("p");
    for(var c=0;c<ps.length;c++){
        if(ps[c].className=="popp"){
            ps[c].style.fontSize = tfcorpo+"px";
        }
    }
    var as = document.getElementsByTagName("a");
    for(var c=0;c<as.length;c++){
        if(as[c].parentNode.className=="popp"){
            as[c].style.fontSize = tfcorpo+"px";
        }
    }
    var spans = document.getElementsByTagName("span");
    for(var cc=0;cc<spans.length;cc++){
       if(spans[cc].id=="ttl"){
            spans[cc].style.fontSize = tftit+"px";
       }
    }
}
//
function conceitual(){
    var ac = new SWFObject("../../swf/topo_home_t.swf", "aconceitual", "765", "318", "8", "#ffffff");
    ac.addParam("quality", "high");
    ac.addParam("wmode", "transparent");
    ac.write("conceitual_area");
    //obflash = (isIE) ? window["aconceitual"] : document["aconceitual"];
}


