// User Settings



var cgiScript = "/cgi-bin/deluxPhoto/frame.cgi";

var scrollSpd = 1;   // specify speed of scroll (greater=faster)

var proWidth  = 300; // initial progress popup window width

var proHeight = 150; // initial progress popup window height



// Zoom to full image

function imageZoom(id,sb) {

  if(!sb) {sb = document.all?0:1;} // browser scrollbars (keep off for IE; on for all other browsers)

  if(sb) {proWidth += 20;} // extra padding for scrollbar

  leftPos = (screen.availWidth - proWidth)/2;

  topPos = ((screen.availHeight - proHeight)/2);

window.open(cgiScript+"?full="+id,"","scrollbars="+sb+",width="+proWidth+",height="+proHeight+",left="+leftPos+",top="+topPos);

}



// Info Popup Display

function hidebox(pop) {

  pop.filters.revealTrans.apply();

  pop.style.visibility="hidden";

  pop.filters.revealTrans.play();

}

function showbox(pop) {

  pop.filters.revealTrans.apply();

  pop.style.visibility="visible";

  pop.filters.revealTrans.play();

}



// User Credit Page Popup Window

function popwin(url,sb,wd,ht) {

  var day = new Date();

  var id = day.getTime();

  var left = (screen.availWidth-wd)/2;

  var top = ((screen.availHeight-ht)/2);

  eval("page"+id+"=window.open(url,'"+id+"','scrollbars="+sb+",width="+wd+",height="+ht+",left="+left+",top="+top+"');");

}



// Text Scroller Routines (IE and NS6+ only)

var crossObj;

var containerHT;

var contentHT;

var moveDownVar;

var moveUpVar;



function moveDown() {

  if(parseInt(crossObj.style.top)>=(contentHT*(-1)+containerHT)) { 

    crossObj.style.top=parseInt(crossObj.style.top)-scrollSpd;

    moveDownVar=setTimeout("moveDown()",20);

    }

}



function moveUp() {

  if(parseInt(crossObj.style.top)<=0) {

    crossObj.style.top=parseInt(crossObj.style.top)+scrollSpd;

    moveUpVar=setTimeout("moveUp()",20);

    }

}

function show() {document.getElementById?document.getElementById("container").style.visibility="visible":crossObj.style.visibility="visible";}

function hide() {document.getElementById?document.getElementById("container").style.visibility="hidden":crossObj.style.visibility="hidden";}



window.onload=function initScroller() {

  crossObj=document.getElementById?document.getElementById("container"):document.all.container;

  containerHT=crossObj.offsetHeight;

  crossObj=document.getElementById?document.getElementById("content"):document.all.content;

  contentHT=crossObj.offsetHeight;

}



function nada() {

  // do nothing

}
