
function show(layer,imgNum,txt)
{
var div = document.getElementById("lyr" + layer);
div.style.visibility = "visible";
div.innerHTML = txt;

}


function switchImage(writeImg2,i,write2) 
{
 var imagepath = ssdata[i];

if (document.images) 
{
  document.images[writeImg2].src = imagepath;
  document.getElementById(write2).innerHTML = txtdata[i]; 
}
 else alert("Browser Not Supported");
}








function swopImage(writeImg2,i) 
{
 var imagepath = ssdata[i];

if (document.images) 
{
  document.images[writeImg2].src = imagepath;
}
 else alert("Browser Not Supported");
}









function showLayer(ssLayer)
{
document.getElementById(ssLayer).style.visibility = "visible";
}


function swapTxtImg(picUrl,id) 
{
document.getElementById('rightbox').src = picUrl.href;
document.getElementById(id).childNodes[0].nodeValue = picUrl.title;
}

function ChangeTxt(txt) 
{ 
document.getElementById('lyr1').innerHTML = txt; 
} 


function ChangeTxt2(i,layerId) 
{ 
document.getElementById(layerId).innerHTML = txtdata[i]; 
} 



function change_location(i)
{
window.location = pages[i];
}

function change_location2(i,ssLayer)
{
window.location = pages[i];
document.getElementById(ssLayer).style.visibility = "hidden";
}
