//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

FastInit.addOnLoad(function()
{
	$$('div.storeProductThumbnail').each(function(div)
	{
		var html = div.down('img').up().innerHTML;
		html = html.replace(/150x100/g,'280x280');
		var opts = {
			contentDivStyle: 'background-color: #fff',
			width: 283, 
			height: 284,
			tabY: 116, 
			zIndex: 900, 
			parentElement: div
		};
		
		html = '<table width="300" height="300" cellspacing="0" cellpadding="0" border="0"><tr><td valign="middle" align="center">'+html+'</td></tr></table>';
		
		var popin = new JPopinDiv(-345,-150,html,opts);
		div.observe('mouseover',popin.show.bind(popin));
		div.observe('mouseout',popin.hide.bind(popin));
		
		$(popin.div_id).observe('click',function(){ window.location = div.down('a').href; });
	});
});
