function openPopup(Imagename)
{
	window.open('popup.asp?Imagename='+Imagename,'_blank','width=600,height=500');

}

function open_news_img(s_showcase)
{
	window.open('open_big_news.asp?showcase=' + escape(s_showcase),'','scrollbars=yes,resizable=yes,width=640,height=450');
}

function open_product_img(s_showcase)
{
	window.open('open_big_product.asp?showcase=' + escape(s_showcase),'','scrollbars=yes,resizable=yes,width=640,height=450');
}

function confirmClearCart(varURL, varFrame)
{
	if (window.confirm("Are you sure you want to clear the shopping cart ?"))
		window.open(varURL, varFrame);
}

function DisplayTel(sDiv, sTel, objE)
{
	var objDiv = MM_findObj(sDiv);
	
	if (objDiv != null)
	{
		objDiv.style.display 	= "";
		objDiv.style.top 		= objE.clientY;
		objDiv.style.left 		= objE.clientX;
		objDiv.innerHTML		= "<b>Tel</b>: "+ sTel;
		objDiv.style.visibility = "visible";
	}
}

function HideTel(sDiv)
{
	var objDiv = MM_findObj(sDiv);
	
	if (objDiv != null)
	{
		objDiv.style.display 	= "none";
		objDiv.style.visibility = "hidden";
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function ChangeBG(obj,varBGColor)
{
	obj.style.backgroundColor 	= varBGColor;
}
function ChangeTxt(obj,varBGColor)
{
	obj.style.color 	= varBGColor;
}


function ShowHideSpecial()
{
	var specialsObj = MM_findObj("specials")
	specialsObj.style.visibility = 'hidden';
}


var clickmessage="Right click disabled on images!"

function disableclick(e) 
{
if (document.all) 
	{
	if (event.button==2||event.button==3) 
		{
			if (event.srcElement.tagName=="IMG")
			{
				//alert(clickmessage);
				return false;
			}
		}
	}
else if (document.layers) 
	{
		if (e.which == 3) 
			{
			//alert(clickmessage);
			return false;
			}
	}
else if (document.getElementById)
	{
		if (e.which==3&&e.target.tagName=="IMG")
		{
			//alert(clickmessage)
			return false
		}
	}
}

function associateimages()
{
	for(i=0;i<document.images.length;i++)
		document.images[i].onmousedown=disableclick;
}

if (document.all)
	document.onmousedown=disableclick
else if (document.getElementById)
	document.onmouseup=disableclick
else if (document.layers)
	associateimages()

