var pics = new Array()
//set your pictures url, descriptive texts, width, height, and item code below
pics[0]=['full/photo_graphics_2/jewish_museum.jpg','"Jewish Museum"  San Francisco, CA','359','450','CL-JMSF'];
pics[1]=['full/photo_graphics_2/door-next-to-cube.jpg','"Door Next To Cube"   San Francisco, CA','300','450','CL-DNCSF'];
pics[2]=['full/photo_graphics_2/deyoung.jpg','"DeYoung Museum"  San Francisco, CA','300','450','CL-DYSF'];
pics[3]=['full/photo_graphics_2/curve.jpg','"Curve"  San Francisco, CA','547','350','CL-CVSF'];
pics[4]=['full/photo_graphics_2/Blue-Yellow-Green.jpg','"Blue-Yellow-Green"   Mendocino, CA','525','350','CL-BYGMC'];
pics[5]=['full/photo_graphics_2/breakfast-room-flower.jpg','"Breakfast Room Flower"  Berkeley, CA','369','450','CL-BRFBC'];
pics[6]=['full/photo_graphics_2/smokey-joes.jpg','"Smokey Joe\'s Cafe"   Berkeley, CA','525','350','CL-SMCBC'];
pics[7]=['full/photo_graphics_2/colony.jpg','"Colony"  Miami, FL','337','450','CL-CMF'];


//no need to modify below
function showH(n){
var oDiv=document.getElementById('pic');
oDiv.innerHTML='';
var ah=document.getElementById('lin').getElementsByTagName('a');
for(var i=0;i<ah.length;i++){
	if(ah[i]==n){
	var item_title=escape(pics[i][1]);

	var oPic=document.createElement('img');
	oPic.setAttribute('src',pics[i][0]);
	oPic.setAttribute('id','img_brdr');
	oPic.setAttribute('width',pics[i][2]);
	oPic.setAttribute('height',pics[i][3]);
	oPic.setAttribute('alt',pics[i][1]);
	var oBr=document.createElement('br');

	var oTxt=document.createTextNode(pics[i][1]);
	var purchaseLink=document.createElement('a');
	var purchaseText=document.createTextNode('purchase information');

// add the text as a child of the link
   purchaseLink.appendChild(purchaseText);
	
// set the href to # and call picker when clicked or tabbed to  
purchaseLink.setAttribute('href','order.php?sku='+pics[i][4]+'&title='+item_title);
purchaseLink.setAttribute('onClick','popUp(this.href); return false;');

	var pTxt=document.createTextNode(' | ');
	oDiv.appendChild(oPic);
	oDiv.appendChild(oBr);
	oDiv.appendChild(oTxt);
	oDiv.appendChild(pTxt);
	oDiv.appendChild(purchaseLink);
	break
	}
}
}

