function hl(el) {
el.style.filter="alpha(opacity=30)";
el.style.opacity=0.3;
el.style.cursor="hand";
}

function nl(el) {
el.style.filter="alpha(opacity=100)";
el.style.opacity=1;
el.style.cursor="";
}

function showBigPopup (el) {
	
	if (d('shop')) {
		d('shop').style.display="none";
	}
	
	d('bigPopup').style.top=d('topmenu').offsetTop;
	d('bigPopup').style.left=d('topmenu').offsetLeft;
	

	d('bigPopup').style.display='';
	d('BigPopupPicture').src="../../lib/getImageByName.asp?userid=800&ImageName="+ el;
}

function hideBigPopup() {
	
if (d('shop')) {
	d('shop').style.display='';
	}
d('bigPopup').style.display='none';
return false;
}




function showFramePopup(url) {

if (d('framePopup')) {
	//alert(url);
	d('popupFrame').src=url;
	
	d('framePopup').style.top=d('productImage').offsetTop;
	d('framePopup').style.left=d('productImage').offsetLeft;
			
	d('framePopup').style.display='';
	}
}

function hideFramePopup() {
	d('framePopup').style.display='none';
	//d('popupFrame').src='about:blank';
}


function histFramePopup() {
	d('framePopup').style.display='';
}


function d(el) {
	return document.getElementById(el);
}


function updatePrice() {
var n,p,pp,s;

	n=d('shop_amount').value;
	p=d('shop_price');
	
	pp=d('pp').value;
	
	n=Number(n);
	if (n==0){ n=1} ;

	s=n*Number(pp);
	s=''+s;
		
	s=s.replace(new RegExp(/\./g),",");	
	
	p.innerHTML=s;
}
