// Master JavaScript for Pharmacopoeia-Art.net// globalsvar pathToPieces = 'sections/artworks/pieces/';// array holding names of pieces' folders:var piece = new Array();piece = ['001.agoraphobic.piece','001.another.piece','001.armour.piece','001.beekeepershat.piece','001.cautionary.piece','001.charnley.piece','001.comedancing.piece','001.cradletograve.piece','001.diclofenac.piece','001.headache.piece','001.hearno.piece','001.hiphip.piece','001.joesdecks.piece','001.jubilee.piece','001.leftovers.piece','001.migraine.piece','001.missessex.piece','001.mrminckton.piece','001.mrspatel.piece','001.nicecowl.piece','001.onefortheroad.piece','001.otcveil.piece','001.overnightbag.piece','001.packetaweek.piece','001.rawmaterials.piece','001.recoil.piece','001.resistance.piece','001.sweetie.piece','001.tabletalk.piece','001.thepits.piece','001.thewaitinglist.piece','001.underwraps.piece','001.veiloftears.piece','001.vitaminnecklace.piece','001.whichones.piece','001.whitepain.piece'];// array holding respective namesvar name = new Array();name = ["Agoraphobic\'s Handbag","A.N.Other",'Armour','Beekeeper\'s Hat','A Cautionary Tale','Charnley Collection','Come Dancing','Cradle To Grave','Diclofenac','Headache Turban','Hear No, See No, Speak No','Hip Hip','Joe\'s Decks','Jubilee','Leftovers','Migraine Tiara','Miss Essex','Mr. Minckton','Mrs. Patel','N.I.C.E.','One For The Road','O.T.C. Veil','Overnight Bag','A Packet a Week','Raw Materials','Recoil','Resistance','Sweetie','Table Talk','The Pits','The Waiting List','Under Wraps','Veil of Tears','Vitamin Necklace','Which Ones Have You Taken?','White Pain'];// convenience functionsfunction dw(string){	document.write(string);	return;}// Write a <div> layer tag with certain attributesfunction makeRelativeLayer(name, left, top, width, height, z, overflow, style){	dw('<div');	dw(' id="' + name + '"');	dw(' style="position:relative;  left:'+left+';  top:'+top+';  width:'+width+';  height:'+height+';');	dw(' z-index:'+z+';  overflow:'+overflow+';" class="'+style+'">');	return;}function makeLayer(name, left, top, width, height, z, overflow, style){	dw('<div');	dw(' id="' + name + '"');	dw(' style="position:absolute;  left:'+left+';  top:'+top+';  width:'+width+';  height:'+height+';');	dw(' z-index:'+z+';  overflow:'+overflow+';" class="'+style+'">');	return;}