var width = "95"; var border = "0"; var offsetx = 2; var offsety = 2; var fcolor = "#004080"; var backcolor = "#004080"; var textcolor = "#ffffff"; var capcolor = "#FFFFFF"; var closecolor = "#99FF99"; var IE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0; var NS = (navigator.appName == "Netscape") ? 1 : 0; var versao = " "; var browser = " "; var browserver = " "; browser = navigator.appName; browserver = parseInt(navigator.appVersion); if (browser == "Netscape" && browserver >= 4) versao = "n4"; if (browser == "Netscape" && browserver < 4) versao = "n3"; if (browser == "Microsoft Internet Explorer" && browserver >= 4) versao = "ie4"; if (browser == "Microsoft Internet Explorer" && browserver < 4) versao = "ie3"; // if (top.location != location) top.location.href = location.href; // var hoje = new Date(); // var expires = new Date(); // expires.setTime(hoje.getTime() + 1000*60*60*24*365); // document.cookie = "aguas de lindoia" + "=" + ("acessado em: " + hoje) + ("; expires= " + expires.toGMTString()); // Today's Date var now = new Date(); var mes = mName = now.getMonth() + 1; var dName = now.getDay() + 1; var dia = dayNr = now.getDate(); if (dayNr <=9){dayNr="0"+dayNr} var ano = yearNr = now.getYear(); if (yearNr < 2000) yearNr = 1900 + yearNr; if(dName==1) Day = "Domingo"; if(dName==2) Day = "Segunda-feira"; if(dName==3) Day = "Terça-feira"; if(dName==4) Day = "Quarta-feira"; if(dName==5) Day = "Quinta-feira"; if(dName==6) Day = "Sexta-feira"; if(dName==7) Day = "Sábado"; if (mName <=9){mName = "0"+mName}; // String to display current date. var todaysDate =(" " + Day + ", " + dayNr + "/" + mName + "/" + yearNr); function vai(onde){ window.open(onde,'popup','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,top=0,left=0'); } function imagem(onde,largura,altura){ window.open(onde,'popup',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+largura+',height='+altura+',top=0,left=0"); } function menu(form){ var result=(form.drop_down.options[form.drop_down.selectedIndex].value); if (result == ""){ return; } location.href=result; } function AbreJanela(URL,largura,altura) { OpenWin=window.open(URL,'OpenWin','toolbar=no,status=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,top=3,left=3,width='+largura+',height='+altura+''); if (OpenWin.focus) OpenWin.focus(); } function AbreJanelaP(URL,largura,altura) { JanSec=window.open(URL,"JanSec", "toolbar=no,status=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width='+largura+',height='+altura+',top=0,left=0"); if ((navigator.appName == "Netscape") && (navigator.appVersion.substring(0,2) != "2.")) JanSec.focus(); } function DisplayJanela(pagina,janela,w,h,scrolling) { if (!scrolling) { scrolling='yes' } resultado = window.open(pagina,janela,'width='+w+',height='+h+',scrollbars='+scrolling+',toolbar=no,location=no,status=no,menubar=no,resizable=no,left=0,top=0') } function submit_form() { document.select.submit(); } /* Floating image script By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620) Permission granted to Dynamicdrive.com to feature it in it's archive For 100's of FREE DHTML scripts and components, Visit http://dynamicdrive.com */ var chip1; var chip2; var chip3; //add or delete more variables, depending on how many images you're using function pagestart() {checkbrOK(); chip1=new Chip("chip1",60,80); chip2=new Chip("chip2",60,80); chip3=new Chip("chip3",60,80); //add or delete more of the above, depending on how many images you're using if(brOK) { movechip("chip1"); movechip("chip2"); movechip("chip3"); //add or delete more of the above, depending on how many images you're using } } // Rollover dos menus function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; } } function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; } } function mClk(src) { if(event.srcElement.tagName=='TD'){ src.children.tags('A')[0].click(); } } /* function RandomNumber() { var today = new Date(); var num= Math.abs(Math.sin(today.getTime()/1000)); return num; } var x = 33 * RandomNumber(); if (x < 10) x*=2;if (x > 20) x*=3;if (x > 99) x/=3,9;if (x < 10) x*=4,3;if (x == 10) x*=5; var y = 66 * RandomNumber(); if (y < 30) y*=3;if (y > 30) y*=1,5;if (y > 99) y/=3,5;if (y < 10) y*=2,9; var z = 99 * RandomNumber(); if (z > 90) z/=2;if (z > 66 && x < 99) z/=3;if (z > 99) z/=2;if (z < 10) z*=2,5; // x = x / 2; var hr = parseInt(x); var hg = parseInt(y); var hb = parseInt(z); var color = "#"+hr+hg+hb; document.bgColor = color; //document.write(color); */