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

pics[0]=['full/photo_graphics_1/brookline.jpg','"Brookline"  Brookline, MA','540','350','CL-BBM'];
pics[1]=['full/photo_graphics_1/glass.jpg','"Glass"  San Francisco, CA','336','504','CL-GSFC'];
pics[2]=['full/photo_graphics_1/union-gough.jpg','"Union And Gough"  San Francisco, CA','300','450','CL-UGSF'];
pics[3]=['full/photo_graphics_1/elmwood-window.jpg','"Elmwood Window"   Oakland, CA','300','450','CL-EWOC'];
pics[4]=['full/photo_graphics_1/metreon.jpg','"Metreon"  San Francisco, CA','525','350','CL-MTSF'];
pics[5]=['full/photo_graphics_1/opticals.jpg','"Opticals"  Oakland, CA','300','450','CL-OPOC'];
pics[6]=['full/photo_graphics_1/vertical.jpg','"Vertical Space"  Berkeley, CA','305','450','CL-VSBC'];
pics[7]=['full/photo_graphics_1/red-balls.jpg','"Red Balls"  Albany, CA','368','450','CL-RBAC'];


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

