//window.resizeTo(1024,600);

SlideshowPic = new Array ("/maps/slideshow1.gif","/maps/slideshow2.gif","/maps/slideshow3.gif");

function slideshow(pic) {
        slideshow_pic.src=SlideshowPic[pic];
        slideshow_pic.alt=SlideshowPic[pic];
        i=i+1;
        if(i>=SlideshowPic.length) { i=0; }
        //for(i=0;i<SlideshowPic.length;i++) {
        //        window.setTimeout("slideshow(i)",2000);
        //}
}

MainSlideshowPic = new Array ("/maps/01.jpg","/maps/02.jpg","/maps/03.jpg","/maps/04.jpg","/maps/05.jpg", "/maps/06.jpg");

function mainslideshow(pic) {
        slideshow_pic.src=MainSlideshowPic[pic];
        slideshow_pic.alt=MainSlideshowPic[pic];
        i=i+1;
        if(i>=MainSlideshowPic.length) { i=0; }
        //for(i=0;i<SlideshowPic.length;i++) {
        //        window.setTimeout("slideshow(i)",2000);
        //}
}

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}

function SetCookie (name, value) {
var c=name + "=" + escape (value);
document.cookie = c;
}

