var HTML, Gwin = null, pic = new Array(); 
var path = 'http://www.vansity.com/pageimages/'; //images directory

/* URLS below, as shown */ 

pic[0] = { 
src: '/Designs/AgeAgainstTheMachine/ShirtLarge.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[1] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest1.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[2] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest2.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[3] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest3.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[4] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest4.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[5] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest5.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[6] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest6.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[7] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest7.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[8] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest8.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[9] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest9.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[10] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest10.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[11] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest11.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[12] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest12.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[13] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest13.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[14] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest14.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[15] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest15.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[16] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest16.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[17] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest17.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[18] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest18.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[19] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest19.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
pic[20] = { 
src: '/Gallery/AgeAgainstTheMachine/GLargest20.jpg', 
obj: null, 
width: null, 
height: null, 
title: 'Age Against The Machine', 
loaded: false 
} 
//preloader 
for (var i=0; i<pic.length; ++i) { 
pic[i].obj = new Image();
pic[i].obj.onload = new Function(
'pic['+i+'].width=this.width;' +
'pic['+i+'].height=this.height;' +
'pic['+i+'].loaded=true;'
);
pic[i].obj.src = path + pic[i].src; 
} 

function graphwin(picObj) { 
if (Gwin && !Gwin.closed) Gwin.close(); 
if (!arguments.length) return; 
if (picObj.loaded) { 
HTML = ''; 
HTML += '<html><head><title>'+picObj.title+'</title><script type="text/javascript">'; 
HTML += 'onblur=function(){setTimeout("self.focus()",1000)};'; 
HTML += 'onload=function(){self.focus()};'; 
HTML += '<\/script><style type="text/css">'; 
HTML += 'a.c{font:200 10px arial;color:white;text-decoration:none;}'; 
HTML += 'a:hover{color:#ffff00;background:#0000aa;}</style></head>'; 
HTML += '<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#2A0000">'; 
HTML += '<img border="0" width="'+picObj.width+'" height="'+picObj.height+'" '; 
HTML += 'src="'+ path + picObj.src+'">'; 
HTML += '<table width="100%" cellspacing="0" cellpadding="0" border="1"><tr>'; 
HTML += '<td align="center" bgcolor="2a0000">'; 
HTML += '<a class="c" href="javascript:self.close()">close</a>'; 
HTML += '</td></tr></table></body></html>'; 
Gleft = screen.availWidth/2 - picObj.width/2; 
Gtop = screen.availHeight/2 - picObj.height/2; 
var attr = 'width='+picObj.width+',height='+(picObj.height+16); 
attr += ',left='+Gleft+',top='+Gtop+',status=0'; 
Gwin = window.open('javascript:opener.HTML','Gwin',attr); 
} 
} 
