var product_pic = "Shoppers_300x300_20061021.jpg";
var width = "300";
var height = "300";
var title = "Shoppers Big Box";
var url = "http://www.shoppersdrugmart.ca/english/flyer/16_ontlond/01.html";
var pdf = "";
var dealer_id = "015716";
var type = "BigBox";
var class_id = "264575";
var creative_path = "creative/banners";

var product_test = /(jpg|gif|png)$/
var flash_test = /swf$/
if (product_test.test(product_pic)) {
// standard link/image
	document.open();  
	document.write('<div align="center">\n');
		if (pdf) {
			document.write('<a href="http://www.lfpress.com/cgi-bin/adtrack.pl?s=Online&d='+type+'&o='+dealer_id+'&url=http://www.lfpress.com/cgi-bin/adsonline.cgi?feature='+class_id+'&d=classifieds&x='+xml+'&s='+template+'"><img src="http://www.lfpress.com/'+creative_path+'/'+product_pic+'" width="'+width+'" height="'+height+'" border="0" alt="'+title+'"></a>\n');
		} else if (url) {
			// alert('IMAGE: <img src="http://www.lfpress.com/creative/banners/'+product_pic+'"  width="'+width+'" height="'+height+'" border="0" alt="'+title+'">\n');
			// alert('URL: http://www.lfpress.com/cgi-bin/adtrack.pl?s=Online&d='+type+'&o='+dealer_id+'&url='+url+'"\n');
			document.write('<a href="http://www.lfpress.com/cgi-bin/adtrack.pl?s=Online&d='+type+'&o='+dealer_id+'&url='+url+'">');
			document.write('<img src="http://www.lfpress.com/creative/banners/'+product_pic+'"  width="'+width+'" height="'+height+'" border="0" alt="'+title+'">');
			document.write("</a>\n");
		} else {
			document.write('<img src="http://www.lfpress.com/creative/banners/'+product_pic+'"  width="'+width+'" height="'+height+'" border="0" alt="'+title+'">\n');
			}
	document.write('</div>\n');
	document.close();
} else if  (flash_test.test(product_pic)) {
// plan for flash
} else {
// shouldn't get here
	document.open();  
	document.write('<div align="center">\n');
	document.write('<a href="http://www.lfpress.com/cgi-bin/adtrack.pl?s=Online&d='+type+'&o='+dealer_id+'&url='+url+'><img src="http://www.lfpress.com/images/spc.gif" width="468" height="60" border="0" alt="'+title+'"></a>\n');
	document.write('</div>\n');
	document.close();	
	
	}

function NewWindow(mypage, myname, w, h, scroll) {
        	var winl = (screen.width - w) / 2;
                var wint = (screen.height - h) / 2;
                winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
                win = window.open(mypage, myname, winprops)
                  	if (parseInt(navigator.appVersion) >= 4) { 
                                win.window.focus(); }
       }




