   /* <![CDATA[ */
    Image1= new Image(85,25)
	Image1.src = "/images/link2.png"

   function HideContent(d) {
   if(d.length < 1) { return; }
   document.getElementById(d).style.display = "none";
   }
   function ShowContent(d) {
   if(d.length < 1) { return; }
   document.getElementById(d).style.display = "block";
   }
   function ReverseContentDisplay(d) {
   if(d.length < 1) { return; }
   if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
   else { document.getElementById(d).style.display = "none"; }
   }
   //------------------------------------------------
   var hideElById = function (id) {
   var el = document.getElementById(id);
   el.style.display = "none";
   }
   var showElById = function (id) {
   var el = document.getElementById(id);
   el.style.display = "block";
   }
   //------------------------------------------------------
   var N_BASEZINDEX = 0;
   var RE_PARAM = /^\s*(\w+)\s*\=\s*(.*)\s*$/;
   //------------------------------------------------------
   var numposts=1;
   Proposte = new Array;
   Eventi = new Array;
   openwinsearch = false;
   //------------------------------------------------------
   function showrecentposts(json) {
      for(var i = 0; i < numposts; i++) {
          var entry = json.feed.entry[i];
          var posttitle = entry.title.$t;
              document.getElementById("article_title").innerHTML = posttitle;
          var posturl;
          if (i == json.feed.entry.length) break;
          for(var k = 0; k < entry.link.length; k++) {
              if(entry.link[k].rel == 'alternate') {
                 posturl = entry.link[k].href;
                 break;
              }
          }
          var postdate = entry.published.$t.substring(0,10);
          var postauthor = entry.author[0].name.$t;
          if("content" in entry){
             var postcontent = entry.content.$t;}
          else
             if("summary" in entry) {
                var postcontent = entry.summary.$t;}
          else var postcontent = "";
          document.getElementById("top-row").innerHTML = postcontent;
      }
   };
   //-------------------------------------------------------------
   function close_search(){
            if(openwinsearch == true){
               HideContent('results');
               openwinsearch = false;
            }
   };
   //-------------------------------------------------------------
   function switch_div(percorso){
            var headID = document.getElementsByTagName("head")[0];
            document.getElementById("top-row").innerHTML = 'Caricamento...';
            filename='http://stradaromantica.blogspot.com/feeds/posts/default/-/' + percorso + '?alt=json-in-script&callback=showrecentposts';
            var newScript = document.createElement('script');
            newScript.type = 'text/javascript';
            newScript.src = filename;
            headID.appendChild(newScript);
   };
   //------------------------------------------
   function makeSlideShow(){
            var headID = document.getElementsByTagName("head")[0];
            //-----------------------------------------------
            document.getElementById("event0").innerHTML = caricamento;
            filename='http://stradaromantica.blogspot.com/feeds/posts/default/-/'+tag_eventi+'?alt=json-in-script&callback=showEventi';
            var JsonEventi = document.createElement('script');
            JsonEventi.type = 'text/javascript';
            JsonEventi.src = filename;
            headID.appendChild(JsonEventi);
            //-----------------------------------------------
            document.getElementById("proposte0").innerHTML = caricamento;
            filename='http://stradaromantica.blogspot.com/feeds/posts/default/-/'+tag_proposte+'?alt=json-in-script&callback=showProposte';
            var JsonProposte = document.createElement('script');
            JsonProposte.type = 'text/javascript';
            JsonProposte.src = filename;
            headID.appendChild(JsonProposte);
            //-----------------------------------------------
            return false;
   };
   //------------------------------------------
   function playVideo(videoHref,img) {
      clearTimeout(photogal);
      document.getElementById('titolo').innerHTML = '<img src="/images/' + img + '" border=0>';
      var videoPlayerDiv = document.getElementById('imageContainer2');
      var html = [];
      html.push('<object width="403" height="337" id=OBJECT1><param name="movie" value="');
      html.push(videoHref);
      html.push('&autoplay=0"></param><param name="wmode" value="transparent">');
      html.push('</param><embed src="');
      html.push(videoHref);
      html.push('&autoplay=0" type="application/x-shockwave-flash" ');
      html.push('wmode="transparent" width="403" height="337"></embed></object>');
      videoPlayerDiv.innerHTML = html.join('');
   };
   //------------------------------------------
   function playgoogleVideo(videoHref,img) {
      clearTimeout(photogal);
      document.getElementById('titolo').innerHTML = '<img src="/images/' + img + '" border=0>';
      var videoPlayerDiv = document.getElementById('imageContainer2');
      var html = [];
      html.push('<object width="403" height="330" id=OBJECT1>');
      html.push('<embed id="VideoPlayback" src="');
      html.push(videoHref);
      html.push('" type="application/x-shockwave-flash" ');
      html.push('width="403" height="337"></embed></object>');
      videoPlayerDiv.innerHTML = html.join('');
   };
   //-----------------------------------------------------
   function externalLinks() {
      if(!document.getElementsByTagName) return;
      var anchors = document.getElementsByTagName("a");
      for(var i=0; i<anchors.length; i++) {
          var anchor = anchors[i];
          if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
             anchor.target = "_blank";
          }
   };
   //-----------------------------------------------------
   function showProposte(json) {
            //-------------------------------------------
            var numposts=3;
            for(var i = 0; i < numposts; i++) {
                var entry = json.feed.entry[i];
                var posturl;
                if(i == json.feed.entry.length) break;
                for(var k = 0; k < entry.link.length; k++) {
                    if(entry.link[k].rel == 'alternate') {
                       posturl = entry.link[k].href;
                       break;
                    }
                }
                //------------------------------------------------------------
                var posttitle = entry.title.$t;
                var postdate = entry.published.$t.substring(0,10);
                var postauthor = entry.author[0].name.$t;
                if("content" in entry){
                   var postcontent = entry.content.$t;}
                else
                   if("summary" in entry) {
                      var postcontent = entry.summary.$t;}
                   else var postcontent = "";
                Proposte[i] = new Array (posttitle, postcontent);
                //-------------------------------------------------------------
                document.getElementById('proposte' + i).innerHTML = '<a href=javascript:switch_div(\"proposte' + i + '\")>' + entry.title.$t + '</>';
                document.getElementById('proposte_content' + i).innerHTML = entry.content.$t ;
            }
   };
   //-----------------------------------------------------
   function showEventi(json) {
            //-------------------------------------------
            var numposts=3;
            for(var i = 0; i < numposts; i++) {
                var entry = json.feed.entry[i];
                var posturl;
                if(i == json.feed.entry.length) break;
                for(var k = 0; k < entry.link.length; k++) {
                    if(entry.link[k].rel == 'alternate') {
                       posturl = entry.link[k].href;
                       break;
                    }
                }
                //------------------------------------------------------------
                var posttitle = entry.title.$t;
                var postdate = entry.published.$t.substring(0,10);
                var postauthor = entry.author[0].name.$t;
                if("content" in entry){
                   var postcontent = entry.content.$t;}
                else
                   if("summary" in entry) {
                      var postcontent = entry.summary.$t;}
                   else var postcontent = "";
                Eventi[i] = new Array (posttitle, postcontent);
                //------------------------------------------------------------
                document.getElementById('event' + i).innerHTML = '<a href=javascript:switch_div(\"eventi' + i + '\")>' + entry.title.$t + '</>';
                document.getElementById('event_content' + i).innerHTML = entry.content.$t ;
            }
   };
   //----------------------------------------------------
    function Left(str, n){
             if(n <= 0)
                return "";
             else if (n > String(str).length)
                return str;
             else
                return String(str).substring(0,n);
    }
    //----------------------------------------------------
    function Right(str, n){
             if(n <= 0)
                return "";
             else if(n > String(str).length)
                     return str;
                  else {
                       var iLen = String(str).length;
                       return String(str).substring(iLen, iLen - n);
             }
    }
    //------------------------------------------------------
    window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);
    var d=document, imgs = new Array(), zInterval = null, current=0, pause=false, photogal = null;
    function so_init() {
             if(!d.getElementById || !d.createElement)return;
             imgs = d.getElementById("imageContainer").getElementsByTagName("img");
             for(i=1;i<imgs.length;i++) imgs[i].xOpacity = 0;
             imgs[0].style.display = "block";
             imgs[0].xOpacity = .99;
             setTimeout(so_xfade,1000);
    }
    //------------------------------------------------------
    function so_xfade() {
             cOpacity = imgs[current].xOpacity;
             nIndex = imgs[current+1]?current+1:0;
             nOpacity = imgs[nIndex].xOpacity;
             cOpacity-=.05;
             nOpacity+=.05;
             imgs[nIndex].style.display = "block";
             imgs[current].xOpacity = cOpacity;
             imgs[nIndex].xOpacity = nOpacity;
             setOpacity(imgs[current]); 
             setOpacity(imgs[nIndex]);
             if(cOpacity<=0) {
                imgs[current].style.display = "none";
                current = nIndex;
                setTimeout(so_xfade,3500);
             } else {
                setTimeout(so_xfade,50);
             }
    }
    //------------------------------------------------------
    function setOpacity(obj) {
             if(obj.xOpacity>.99) {
                obj.xOpacity = .99;
                return;
             }
             obj.style.opacity = obj.xOpacity;
             obj.style.MozOpacity = obj.xOpacity;
             obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")";
    }
    //------------------------------------------------------
    <!-- Original:  Mike Canonigo (mike@canonigo.com) -->
    //------------------Progetto----------------------------
    NewImg = new Array (
             "/images/300.jpg",
             "/images/301.jpg",
             "/images/302.jpg",
             "/images/303.jpg",
             "/images/304.jpg",
             "/images/305.jpg",
             "/images/306.jpg",
             "/images/307.jpg"
    );
    //----------Vezza d Alba--------------------------------
    NewImg2 = new Array (
             "/images/160.jpg",
             "/images/161.jpg",
             "/images/162.jpg",
             "/images/163.jpg",
             "/images/164.jpg"
    );
    //----------Magliano-----------------------------
    NewImg3 = new Array (
             "/images/40.jpg",
             "/images/41.jpg",
             "/images/42.jpg",
             "/images/43.jpg",
             "/images/44.jpg"
    );
    //----------Neive--------------------------------
    NewImg4 = new Array (
             "/images/60.jpg",
             "/images/61.jpg",
             "/images/62.jpg",
             "/images/63.jpg"
    );
    //----------Treiso-------------------------------
    NewImg5 = new Array (
             "/images/170.jpg",
             "/images/171.jpg",
             "/images/172.jpg",
             "/images/173.jpg"
    );
    //----------Trezzo Tinella------------------------
    NewImg6 = new Array (
             "/images/200.jpg",
             "/images/201.jpg",
             "/images/202.jpg",
             "/images/203.jpg",
             "/images/204.jpg",
             "/images/205.jpg",
             "/images/206.jpg"
    );
    //----------Benevello--------------------------------
    NewImg7 = new Array (
             "/images/10.jpg",
             "/images/11.jpg",
             "/images/12.jpg",
             "/images/13.jpg",
             "/images/14.jpg"
    );
    //----------Sinio--------------------------------
    NewImg8 = new Array (
             "/images/100.jpg",
             "/images/101.jpg",
             "/images/102.jpg",
             "/images/103.jpg",
             "/images/104.jpg"
    );
    //----------Cissone--------------------------------
    NewImg9 = new Array (
             "/images/30.jpg",
             "/images/31.jpg",
             "/images/32.jpg",
             "/images/33.jpg"
    );
    //----------Murazzano--------------------------------
    NewImg10 = new Array (
             "/images/50.jpg",
             "/images/51.jpg",
             "/images/52.jpg",
             "/images/53.jpg",
             "/images/54.jpg",
             "/images/55.jpg"
    );
    //----------Mombarcaro--------------------------------
    NewImg11 = new Array (
             "/images/150.jpg",
             "/images/151.jpg",
             "/images/152.jpg",
             "/images/153.jpg",
             "/images/154.jpg",
             "/images/155.jpg"
    );
    //----------Camerana--------------------------------
    NewImg12 = new Array (
             "/images/20.jpg",
             "/images/21.jpg",
             "/images/22.jpg",
             "/images/23.jpg",
             "/images/24.jpg"
    );
    //----------Percorsostart----------------------------
    NewImg13 = new Array (
             "/images/galleria/1.jpg",
             "/images/galleria/2.jpg",
             "/images/galleria/3.jpg",
             "/images/galleria/4.jpg",
             "/images/galleria/5.jpg",
             "/images/galleria/6.jpg",
             "/images/galleria/7.jpg",
             "/images/galleria/8.jpg",
             "/images/galleria/9.jpg",
             "/images/galleria/10.jpg",
             "/images/galleria/11.jpg",
             "/images/galleria/12.jpg",
             "/images/galleria/13.jpg",
             "/images/galleria/14.jpg",
             "/images/galleria/15.jpg",
             "/images/galleria/16.jpg",
             "/images/galleria/17.jpg",
             "/images/galleria/18.jpg",
             "/images/galleria/19.jpg",
             "/images/galleria/20.jpg",
             "/images/galleria/21.jpg",
             "/images/galleria/22.jpg",
             "/images/galleria/23.jpg",
             "/images/galleria/24.jpg",
             "/images/galleria/25.jpg",
             "/images/galleria/26.jpg",
             "/images/galleria/27.jpg",
             "/images/galleria/28.jpg",
             "/images/galleria/29.jpg",
             "/images/galleria/30.jpg",
             "/images/galleria/31.jpg",
             "/images/galleria/32.jpg",
             "/images/galleria/33.jpg",
             "/images/galleria/34.jpg",
             "/images/galleria/35.jpg",
             "/images/galleria/36.jpg",
             "/images/galleria/37.jpg",
             "/images/galleria/38.jpg",
             "/images/galleria/39.jpg",
             "/images/galleria/40.jpg",
             "/images/galleria/41.jpg",
             "/images/galleria/42.jpg",
             "/images/galleria/43.jpg",
             "/images/galleria/44.jpg",
             "/images/galleria/45.jpg",
             "/images/galleria/46.jpg",
             "/images/galleria/47.jpg",
             "/images/galleria/48.jpg",
             "/images/galleria/49.jpg",
             "/images/galleria/50.jpg",
             "/images/galleria/51.jpg",
             "/images/galleria/52.jpg",
             "/images/galleria/53.jpg",
             "/images/galleria/54.jpg",
             "/images/galleria/55.jpg",
             "/images/galleria/56.jpg",
             "/images/galleria/57.jpg",
             "/images/galleria/58.jpg",
             "/images/galleria/59.jpg"
    );
    var ImgNum = 0;
    var ImgLength = NewImg.length - 1;
    var ImgNum2 = 0;
    var ImgLength2 = NewImg2.length - 1;
    var ImgNum3 = 0;
    var ImgLength3 = NewImg3.length - 1;
    var ImgNum4 = 0;
    var ImgLength4 = NewImg4.length - 1;
    var ImgNum5 = 0;
    var ImgLength5 = NewImg5.length - 1;
    var ImgNum6 = 0;
    var ImgLength6 = NewImg6.length - 1;
    var ImgNum7 = 0;
    var ImgLength7 = NewImg7.length - 1;
    var ImgNum8 = 0;
    var ImgLength8 = NewImg8.length - 1;
    var ImgNum9 = 0;
    var ImgLength9 = NewImg9.length - 1;
    var ImgNum10 = 0;
    var ImgLength10 = NewImg10.length - 1;
    var ImgNum11 = 0;
    var ImgLength11 = NewImg11.length - 1;
    var ImgNum12 = 0;
    var ImgLength12 = NewImg12.length - 1;
    var ImgNum13 = 0;
    var ImgLength13 = NewImg13.length - 1;
    function chgImg(direction) {
             if (document.images) {
                ImgNum = ImgNum + direction;
                if (ImgNum > ImgLength) {
                    ImgNum = 0;
                }
                if (ImgNum < 0) {
                   ImgNum = ImgLength;
                }
                document.slideshow.src = NewImg[ImgNum];
             }
    }
    function chgImg2(direction) {
             if (document.images) {
                ImgNum2 = ImgNum2 + direction;
                 if (ImgNum2 > ImgLength2) {
                    ImgNum2 = 0;
                }
                if (ImgNum2 < 0) {
                   ImgNum2= ImgLength2
                }
                document.slideshow2.src = NewImg2[ImgNum2];
             }
    }
    function chgImg3(direction) {
             if (document.images) {
                ImgNum3 = ImgNum3 + direction;
                 if (ImgNum3 > ImgLength3) {
                    ImgNum3 = 0;
                }
                if (ImgNum3 < 0) {
                   ImgNum3 = ImgLength3;
                }
                document.slideshow3.src = NewImg3[ImgNum3];
             }
    }
    function chgImg4(direction) {
             if (document.images) {
                ImgNum4 = ImgNum4 + direction;
                 if (ImgNum4 > ImgLength4) {
                    ImgNum4 = 0;
                }
                if (ImgNum4 < 0) {
                   ImgNum4 = ImgLength4;
                }
                document.slideshow4.src = NewImg4[ImgNum4];
             }
    }
    function chgImg5(direction) {
             if (document.images) {
                ImgNum5 = ImgNum5 + direction;
                 if (ImgNum5 > ImgLength5) {
                    ImgNum5 = 0;
                }
                if (ImgNum5 < 0) {
                   ImgNum5 = ImgLength5;
                }
                document.slideshow5.src = NewImg5[ImgNum5];
             }
    }
    function chgImg6(direction) {
             if (document.images) {
                ImgNum6 = ImgNum6 + direction;
                 if (ImgNum6 > ImgLength6) {
                    ImgNum6 = 0;
                }
                if (ImgNum6 < 0) {
                   ImgNum6 = ImgLength6;
                }
                document.slideshow6.src = NewImg6[ImgNum6];
             }
    }
    function chgImg7(direction) {
             if (document.images) {
                ImgNum7 = ImgNum7 + direction;
                 if (ImgNum7 > ImgLength7) {
                    ImgNum7 = 0;
                }
                if (ImgNum7 < 0) {
                   ImgNum7 = ImgLength7;
                }
                document.slideshow7.src = NewImg7[ImgNum7];
             }
    }
    function chgImg8(direction) {
             if (document.images) {
                ImgNum8 = ImgNum8 + direction;
                 if (ImgNum8 > ImgLength8) {
                    ImgNum8 = 0;
                }
                if (ImgNum8 < 0) {
                   ImgNum8 = ImgLength8;
                }
                document.slideshow8.src = NewImg8[ImgNum8];
             }
    }
    function chgImg9(direction) {
             if (document.images) {
                ImgNum9 = ImgNum9 + direction;
                 if (ImgNum9 > ImgLength9) {
                    ImgNum9 = 0;
                }
                if (ImgNum9 < 0) {
                   ImgNum9 = ImgLength9;
                }
                document.slideshow9.src = NewImg9[ImgNum9];
             }
    }
    function chgImg10(direction) {
             if (document.images) {
                ImgNum10 = ImgNum10 + direction;
                 if (ImgNum10 > ImgLength10) {
                    ImgNum10 = 0;
                }
                if (ImgNum10 < 0) {
                   ImgNum10 = ImgLength10;
                }
                document.slideshow10.src = NewImg10[ImgNum10];
             }
    }
    function chgImg11(direction) {
             if (document.images) {
                ImgNum11 = ImgNum11 + direction;
                 if (ImgNum11 > ImgLength11) {
                    ImgNum11 = 0;
                }
                if (ImgNum11 < 0) {
                   ImgNum11 = ImgLength11;
                }
                document.slideshow11.src = NewImg11[ImgNum11];
             }
    }
    function chgImg12(direction) {
             if (document.images) {
                ImgNum12 = ImgNum12 + direction;
                 if (ImgNum12 > ImgLength12) {
                    ImgNum12 = 0;
                }
                if (ImgNum12 < 0) {
                   ImgNum12 = ImgLength12;
                }
                document.slideshow12.src = NewImg12[ImgNum12];
             }
    }
    function chgImg13(direction) {
             if (document.images) {
                ImgNum13 = ImgNum13 + direction;
                 if (ImgNum13 > ImgLength13) {
                    ImgNum13 = 0;
                }
                if (ImgNum13 < 0) {
                   ImgNum13 = ImgLength13;
                }
                document.slideshow13.src = NewImg13[ImgNum13];
             }
    }
    /* ]]> */
