22
| <![CDATA[<script type="text/javascript">
window.addEvent('domready', function() {
SqueezeBox.initialize({});
$$('a.modal').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});
</script>]]>
|
50
| <![CDATA[<script>
// CODIGO DO REDIRECIONAMENTO
// VARIAVEIS DE CONFIGURACAO
var GOVCE_SECRETARIA = "Portal Receba"; // TAMANHO M?XIMO: 15 caracteres
var GOVCE_ENDERECO = "www.ceara.gov.br"; /// FIXO - NAO ALTERAR
// VERIFICA SE O REMETENTE VEIO DO PORTAL DO GOVERNO
var sRemetente = document.referrer;
if (sRemetente.indexOf(GOVCE_ENDERECO) > 0) {
GerarCookie("GOVCERedir", "1", 1);
}else{
// NAO VEIO DO GOVERNO. Tenta obter Cookie de configuracao
var sVerificaRedir = LerCookie("GOVCERedir");
if (sVerificaRedir != "1") {
GerarCookie("GOVCERedir", "1", 1);
// Cria endereco com todas as informa??es necess?rias (servidor, url, e possiveis variaveis query)
var sUrlGovCe = location.href;
// Redireciona para o portal do governo, passando o endere?o montado para poss?vel retorno
location.href = "http://" + GOVCE_ENDERECO + "?secretaria=" + GOVCE_SECRETARIA + "&endereco=" + sUrlGovCe;
}
}
// Funcao para criar o cookie.
// Para que o cookie seja destru?do quando o browser for fechado, basta passar 0 no parametro lngDias.
function GerarCookie(strCookie, strValor, lngDias)
{
var dtmData = new Date();
if(lngDias)
{
dtmData.setTime(dtmData.getTime() + (lngDias * 10 * 60 * 60 * 1000));
var strExpires = "; expires=" + dtmData.toGMTString();
}
else
{
var strExpires = "";
}
document.cookie = strCookie + "=" + strValor + strExpires + "; path=/";
}
// Funcao para ler o cookie.
function LerCookie(strCookie)
{
var strNomeIgual = strCookie + "=";
var arrCookies = document.cookie.split(';');
for(var i = 0; i < arrCookies.length; i++)
{
var strValorCookie = arrCookies[i];
while(strValorCookie.charAt(0) == ' ')
{
strValorCookie = strValorCookie.substring(1, strValorCookie.length);
}
if(strValorCookie.indexOf(strNomeIgual) == 0)
{
return strValorCookie.substring(strNomeIgual.length, strValorCookie.length);
}
}
return null;
}
//final redirecionamento
</script>]]>
|
145
| <![CDATA[<script>dataAtual()</script>]]>
|
155
| <![CDATA[<script>
function goMenu(){
var valor = document.getElementById('menuTopo').options[ document.getElementById('menuTopo').selectedIndex ].value;
if( valor != '' ){
document.location.href = valor;
}
}
</script>]]>
|
241
| <![CDATA[<script type="text/javascript">
function gothere(){
var link = document.form_wlcombo_plus.select_wlcombo_plus.options[document.form_wlcombo_plus.select_wlcombo_plus.selectedIndex].value;
if ((link != "") && (link.search(/http:/)!=-1)) {
window.open(link,"mywindow");
}
}
</script>]]>
|
259
| <![CDATA[<script>
function goMenuCombo(param_menuID){
var valor = document.getElementById(param_menuID).options[ document.getElementById(param_menuID).selectedIndex ].value;
if( valor != '' ){
document.location.href = valor;
}
}
</script>]]>
|
365
| <![CDATA[<script language="javascript">
function show(whichOne,vmax){
var num = new Number(whichOne);
for(var nLink = vmax ; nLink > 0 ; nLink--){
if( document.getElementById('link'+nLink) ){
document.getElementById('link'+nLink).className = '';
}
if( document.getElementById('div'+nLink) ){
document.getElementById('div'+nLink).style.opacity = 0;
document.getElementById('div'+nLink).style.display = 'none';
}
}
if(vmax == 1){
document.getElementById('div1').style.display = '';
document.getElementById('div1').style.opacity = '';
return false;
}
if(num == vmax){
vDiv = "div"+vmax;
tDiv = "div1";
}
else{
vDiv = "div" + num;
tDiv = "div" + (num + 1);
}
if(whichOne == 1){
if( document.getElementById('link'+vmax) ){
document.getElementById('link'+vmax).className = '';
}
document.getElementById('link1').className = 'activeSlide';
}
else{
document.getElementById('link'+ (num - 1)).className = '';
document.getElementById('link'+whichOne).className = 'activeSlide';
}
if($(tDiv).fx){$(tDiv).fx.stop();}
if($(vDiv).fx){$(vDiv).fx.stop();}
$(tDiv).fx = $(tDiv).effect("opacity", {duration: 1500}).start(0);
$(vDiv).fx = $(vDiv).effect("opacity", {duration: 1500}).start(1);
$(tDiv).style.display = 'none';
$(vDiv).style.display = '';
}
var randomBanner = {
cont: 0,
timeOut: null,
change: function(num){
var that = this;
if( this.cont == 7){
this.cont = 0;
}
if( num > 0 && typeof num != 'undefined' ){
this.cont = num;
}
else{
this.cont++;
}
show(this.cont,7)
this.timeOut = setTimeout(
function(){
that.change();
},
3500
);
},
changeCont: function(num){
var that = this;
this.cont = num;
},
stopLoop: function(){
clearTimeout( this.timeOut );
}
}
function changeBanner(num2){
num2 = parseInt(num2);
randomBanner.stopLoop();
show(num2,7);
if( num2 == 7){
num2 = 1;
}
else{
num2 = num2 + 1 ;
}
}
function sleep(tempo){
var start = new Date().getTime();
for(var i = 0; i < 1e7 ; i++){
if( (new Date().getTime() - start) > tempo ){
break;
}
}
}
</script>]]>
|
524
| <![CDATA[<script>randomBanner.change();</script>]]>
|
531
| <![CDATA[<script language="javascript" type="text/javascript" ><!--
function navLoaded(elem, modid){
var myspan = document.getElementById("testspan"+modid);
var modbody = myspan.parentNode;
modbody.innerHTML=elem.innerHTML;
}
function callNavigation(link){
var body = document.getElementsByTagName('body')[0];
if (!document.getElementById('calnav')){
myiframe = document.createElement('iframe');
myiframe.setAttribute("name","calnav");
myiframe.setAttribute("id","calnav");
myiframe.style.display = "none";
}
body.appendChild(myiframe);
myiframe.setAttribute("src",link);
}
//--></script>]]>
|