var dynimages=new Array()
dynimages[0]=["images_personal/Comparsas_Spain_bgm.jpg", "Comparsas"]
dynimages[1]=["images_personal/Comparsas_Spain_bgp.jpg", "Comparsas"]
dynimages[2]=["images_personal/Coffee_House_bgm.jpg", "Coffee House"]
dynimages[3]=["images_personal/Coffee_House_bgp.jpg", "Coffee House"]
dynimages[4]=["images_personal/Barber_Singapore_bgm.jpg","Barber"]
dynimages[5]=["images_personal/Barber_Singapore_bgp.jpg", "Barber"]
dynimages[6]=["images_personal/Policemen_Nassau_bgm.jpg", "Policemen"]
dynimages[7]=["images_personal/Policemen_Nassau_bgp.jpg", "Policemen"]
dynimages[8]=["images_personal/Food_Line_USSR_bgm.jpg", "Food Line"]
dynimages[9]=["images_personal/Food_Line_USSR_bgp.jpg", "Food Line"]
dynimages[10]=["images_personal/Wedding_USSR_bgm.jpg", "Wedding"]
dynimages[11]=["images_personal/Wedding_USSR_bgp.jpg", "Wedding"]
dynimages[12]=["images_personal/Newlyweds_USSR_bgm.jpg", "Newlyweds"]
dynimages[13]=["images_personal/Newlyweds_USSR_bgp.jpg", "Newlyweds"]
dynimages[14]=["images_personal/Toast_Factory_bgm.jpg", "Toast in an Olive Oil Factory"]
dynimages[15]=["images_personal/Toast_Factory_bgp.jpg", "Toast in an Olive Oil Factory"]

var descArray=new Array()
descArray[0]="Spain"
descArray[1]="Spain"
descArray[2]="Spain"
descArray[3]="Spain"
descArray[4]="Singapore"
descArray[5]="Singapore"
descArray[6]="Nassau"
descArray[7]="Nassau"
descArray[8]="USSR"
descArray[9]="USSR"
descArray[10]="USSR"
descArray[11]="USSR"
descArray[12]="USSR"
descArray[13]="USSR"
descArray[14]="Yugoslavia"
descArray[15]="Yugoslavia"

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



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="#B3B3B3";
descelem.style.fontWeight="normal";
document.getElementById("imgbkgrnd").appendChild(descelem);

return false
}

