﻿function GLoad() {
}

function GUnload() {
}

$(function() {
    $('#photogallery a').lightBox();
    $('.linkgalleryInfo').lightBox();
});

var index =0;
var Testate = new Array(<%=m_strTestate %>);

function FadeTestate(){
if(Testate.length>1){
    $(document).ready(function() {
        index=index+1;
        if(index>=Testate.length){
            index=0;
        } 
        document.getElementById("idTestata").parentNode.style.backgroundImage="url('"+Testate[index]+"')";
        $("#idTestata").fadeOut(1000);
        
        setTimeout("CambiaSrcTestata()",1000);
    });}
}
function CambiaSrcTestata(){
    $("#idTestata").css({'background-image' : "url('"+Testate[index]+"')"});
    $("#idTestata").fadeIn("slow");
    setTimeout("FadeTestate()",5000);
}    