// cookie functions//function setCookie(name, value, expires, path, domain, secure){    var curCookie = name + "=" + escape(value) +      (expires ? "; expires=" + expires.toGMTString() : "") +      (path ? "; path=" + path : "") +      (domain ? "; domain=" + domain : "") +      (secure ? "; secure" : "");    return document.cookie = curCookie;}function getCookie(name){    var dc = document.cookie;    var prefix = name + "=";    var begin = dc.indexOf("; " + prefix);    if (begin == -1)    {        begin = dc.indexOf(prefix);        if (begin != 0) return null;    }    else    {        begin += 2;    }    var end = document.cookie.indexOf(";", begin);    if (end == -1)    {        end = dc.length;    }    return unescape(dc.substring(begin + prefix.length, end));}//*****//if (!getCookie('currentImageIndex')){    var now = new Date();    now.setMinutes(now.getMinutes() + 1);    setCookie('currentImageIndex', -1, now, null, null, null);}// JSON Object// (http://www.json.org/js.html)//// This is where you add more images//var slideShow = { "bindings":                    [                        { "imageUrl": "http://www.adamdabrowskiart.com/images/Rapeex1.jpg", "linkLocation": "http://www.adamdabrowskiart.com/portfolio" },                        { "imageUrl": "http://www.adamdabrowskiart.com/images/Wheatex1.jpg", "linkLocation": "http://www.adamdabrowskiart.com/portfolio" },                        { "imageUrl": "http://www.adamdabrowskiart.com/images/Who-are-we.jpg", "linkLocation": "http://www.adamdabrowskiart.com/portfolio" }                    ]                };//*****//function ChangeImage() {    var now = new Date();    now.setMinutes(now.getMinutes() + 1);    var currentImageIndex = parseInt(getCookie('currentImageIndex'), 10);    currentImageIndex++;        if (currentImageIndex >= slideShow.bindings.length) {        currentImageIndex = 0;    }    setCookie('currentImageIndex', currentImageIndex, now, null, null, null);    var currentSlide = slideShow.bindings[currentImageIndex];return document.write('<a href="' + currentSlide.linkLocation + '" title="' +                                     currentSlide.linkTitle + '"><img src="' +                                     currentSlide.imageUrl + '" border="0" width="700px" height="568px"/></a>');}// Force IE 7 to refresh//// This is only for IE7 browser. FF & Opera don't need this.function refresh() {    var sURL = unescape(window.location.pathname);    window.location.href = sURL; }function forceIE7_Refresh() {    var longTime = 80000*1000    setTimeout( "refresh()", longTime );}window.onload = forceIE7_Refresh;