var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var pause=false;
var autoloop=true;
var firstpage="page_1";
var currentpage="page_1";
var pause=false;

function goback() {
 window.location.href=document.referrer;
}

function goto(page)
{
 which=eval(page);
 eval(currentpage).filters.revealTrans.Apply();
 eval(currentpage).style.visibility="hidden";
 eval(currentpage).filters.revealTrans.Play();
 which.filters.revealTrans.Apply();
 which.style.visibility="visible";
 which.filters.revealTrans.Play();
 currentpage=page;
 if (currentfeature) eval(currentfeature).style.visibility="hidden";
 if (autoloop) if (which.nextpage) setTimeout("goto('"+which.nextpage+"')",2000);
}

function toggleauto()
{
 if (autoloop) autoloop=false; else autoloop=true;
 if (autoloop) window.status="Play"; else window.status="Pause";
 if (autoloop==false) pause=true;
 if (autoloop) if (eval(currentpage).nextpage) goto(eval(currentpage).nextpage); else goto(firstpage);
}


var style = ((NS4 && document.test) || IE4) ? 1 : 0;

var timerID = null;


function fade()
{
 eval(intro).filters.blendTrans.Apply();
 eval(intro).style.visibility="hidden";
 eval(intro).filters.blendTrans.Play();
 eval(mainpage).filters.blendTrans.Apply();
 eval(mainpage).style.visibility="visible";
 eval(mainpage).filters.blendTrans.Play();
}

function Testimonial(test)
{
    testimonials.innerHTML='';
    testimonials.filters.item(0).Apply();
    testimonials.innerHTML='"'+eval(test).text+'"';
    testimonials.filters.item(0).Play();
    setTimeout("Testimonial('"+eval(test).next+"')",8000);
}

setTimeout("Testimonial('test2')",5000);

