var dynimages=new Array()
dynimages[0]=["images/lastcowboy/First_Light_bgm.jpg", "First Light"]
dynimages[1]=["images/lastcowboy/First_Light_bgp.jpg", "First Light"]
dynimages[2]=["images/lastcowboy/A_Long_Road_to_Travel_bgm.jpg", "A Long Road to Travel"]
dynimages[3]=["images/lastcowboy/A_Long_Road_to_Travel_bgp.jpg", "A Long Road to Travel"]


var descArray=new Array()
descArray[0]="IL Ranch, Nevada"
descArray[1]="IL Ranch, Nevada"
descArray[2]="IL Ranch, Nevada"
descArray[3]="IL Ranch, Nevada"


//Preload images ("yes" or "no"):
var preloadimg="no"

//Set image border width:
var imgborderwidth=0

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"


if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}
function clearinnerHTML(obj) {
while(obj.firstChild) obj.removeChild(obj.firstChild);
}

function returnimgcode(theimg){
var imghtml=""
imghtml='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
return imghtml
}
function modifyimage(loadarea,imgindex){
if (document.getElementById) {
var imgobj=document.getElementById(loadarea)
if (imgindex==0 || imgindex==1) {
document.getElementById("dynloadarea").style.height="375px"}
if (imgindex==0 || imgindex==1) {
document.getElementById("dynloadarea").style.width="600px"}

if (imgindex==2 || imgindex==3) {
document.getElementById("dynloadarea").style.height="185px"}
if (imgindex==2 || imgindex==3) {
document.getElementById("dynloadarea").style.width="718px"}

if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()

clearinnerHTML(document.getElementById("imgbkgrnd"));
}
var titleelem=document.createElement("p")
var pictitle=document.createTextNode(dynimages[imgindex][1])
titleelem.appendChild(pictitle);
titleelem.style.color="#650203";
titleelem.style.fontWeight="200";

document.getElementById("imgbkgrnd").appendChild(titleelem);

var descelem=document.createElement("p")
var descript=document.createTextNode(descArray[imgindex])
descelem.appendChild(descript);
descelem.style.color="#999";
descelem.style.fontWeight="normal";
document.getElementById("imgbkgrnd").appendChild(descelem);

return false
}






