 
// -------------------  stdRollOver ---------------------

if (document.images) {        
button1on = new Image();      // Std MouseOver Images
button1on.src = "els/buttonWht.gif";
button2on = new Image();
button2on.src = "els/buttonWht.gif";
button3on = new Image();
button3on.src = "els/buttonWht.gif";
arrowLon = new Image();
arrowLon.src = "els/arrowL-over.gif";
arrowRon = new Image();
arrowRon.src = "els/arrowR-over.gif";


button1off = new Image();
button1off.src = "els/button.gif ";        // Std MouseOut Images
button2off = new Image();
button2off.src = "els/button.gif "; 
button3off = new Image();
button3off.src = "els/button.gif "; 
arrowLoff = new Image();
arrowLoff.src = "els/arrowL.gif";
arrowRoff = new Image();
arrowRoff.src = "els/arrowR.gif";

blank = new Image();
blank.src = "els/spacer.gif "; 

}


function imgOn(imgName) {        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
 }}

function imgOff(imgName) {        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
}}


// ------------------- portfolio scripts ------------------


function hang(imgName,imgPlace) {
picNum = imgName.substr(2,2);
document[imgPlace].src = eval(imgName + "pic");
document.getElementById("title").innerHTML = eval(imgName + "title");
document.getElementById("media").innerHTML = eval(imgName + "media");
document.getElementById("size").innerHTML = eval(imgName + "size");
document.getElementById("thumb").style.visibility = "hidden";
document.getElementById("wall").style.visibility = "visible";
document.getElementById("numc").innerHTML = picNum;
 }

function thumbs() {
document['show'].src = "els/spacer.gif ";
document.getElementById("wall").style.visibility = "hidden";
document.getElementById("thumb").style.visibility = "visible";
 }

function next(direction){


if ((direction == 0)&&(picNum >= 1)){
picNum --;
}
if ((direction == 0)&&(picNum < 1)){
picNum = picCount;
}
if ((direction == 1)&&(picNum <= picCount)){
picNum ++;
}
if ((direction == 1)&&(picNum > picCount)){
picNum = 1;
}
document.getElementById("numc").innerHTML = picNum;

imgNam = eval("'tn' + picNum");
hang(imgNam,'show');

}

//------------------------------------------------------------------------


function varText(docID,textID)
{
document.getElementById(docID).innerHTML = textID;
}


