var dynimages=new Array()
dynimages[0]=["images_studio/Olsen_and_Nolte_bgm.jpg", "Olsen and Nolte Saddle and Chaps"]
dynimages[1]=["images_studio/Olsen_and_Nolte_bgp.jpg", "Olsen and Nolte Saddle and Chaps"]
dynimages[2]=["images_studio/Bohlin_Pistol_Box_bgm.jpg", "Bohlin Pistol Box"]
dynimages[3]=["images_studio/Bohlin_Pistol_Box_bgp.jpg", "Bohlin Pistol Box"]
dynimages[4]=["images_studio/Colonial_Bit_Spanish_bgm.jpg","Colonial Spanish Bit"]
dynimages[5]=["images_studio/Colonial_Bit_Spanish_bgp.jpg", "Colonial Spanish Bit"]
dynimages[6]=["images_studio/Saddle_bgm.jpg", "Saddle"]
dynimages[7]=["images_studio/Saddle_bgp.jpg", "Saddle"]
dynimages[8]=["images_studio/Braide_Reata_bgm.jpg", "Braide Reata"]
dynimages[9]=["images_studio/Braide_Reata_bgp.jpg", "Braide Reata"]
dynimages[10]=["images_studio/Coenan_Brast_Collar_bgm.jpg", "Coenan Brast Collar"]
dynimages[11]=["images_studio/Coenan_Brast_Collar_bgp.jpg", "Coenan Brast Collar"]


var descArray=new Array()
descArray[0]=" "
descArray[1]=" "
descArray[2]=" "
descArray[3]=" "
descArray[4]=" "
descArray[5]=" "
descArray[6]=" "
descArray[7]=" "
descArray[8]=" "
descArray[9]=" "
descArray[10]=" "
descArray[11]=" "


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

//Set image border width:
var imgborderwidth=3

//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==2 || imgindex==3) {
document.getElementById("widedynloadarea").style.height="434px"}
if (imgindex==0 || imgindex==1 || imgindex==4 || imgindex==5 || imgindex==6 || imgindex==7 || imgindex==8 || imgindex==9 || imgindex==10 || imgindex==11) {
document.getElementById("widedynloadarea").style.height="500px"}



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";
if (imgindex==0 || imgindex==1) {
titleelem.style.padding="0 0 0 64px"};
if (imgindex==4 || imgindex==5) {
titleelem.style.padding="0 0 0 67px"};
if (imgindex==6 || imgindex==7 || imgindex==8 || imgindex==9) {
titleelem.style.padding="0 0 0 69px"};
if (imgindex==10 || imgindex==11) {
titleelem.style.padding="0 0 0 70px"};

if (imgindex==12 || imgindex==13) {
titleelem.style.padding="0 0 0 72px"};

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
}

