var pics = new Array()
//set your pictures url, descriptive texts, width, height, and item code below

pics[0]=['full/photo_graphics_3/bloomies.jpg','"Bloomies" San Francisco, CA','300','450','CL-BLSF'];
pics[1]=['full/photo_graphics_3/reflected.jpg','"Reflected SF" San Francisco, CA','338','450','CL-RSSFC'];
pics[2]=['full/photo_graphics_3/jewish-museum2.jpg','"Jewish Museum 2" San Francisco, CA','300','450','CL-JM2SFC'];
pics[3]=['full/photo_graphics_3/grace.jpg','"Grace" San Francisco, CA','314','450','CL-GCSFC'];
pics[4]=['full/photo_graphics_3/sfo.jpg','"SFO" San Francisco, CA','485','350','CL-SFOSFC'];
pics[5]=['full/photo_graphics_3/shape.jpg','"Shape" Mendocino, CA','557','350','CL-SMC'];
pics[6]=['full/photo_graphics_3/elegance.jpg','"Elegance" San Francisco, CA','282','450','CL-ESFC'];
pics[7]=['full/photo_graphics_3/bagel-wall.jpg','"Bagel Wall" Brookline, MA','525','350','CL-BWBM'];


//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
	}
}
}

