function getScrollTop2(){

var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return scrOfY;
}

function getClientWidth2(){
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight2(){
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}
	
function openwindow(cid, ct) {
	dest = 'http://new.darissimo/popup_prod.php?folder=products_pictures&name=' + cid + '&ct='+ ct;
	
	dest = '/popup_prod.php?folder=products_pictures&name=' + cid + '&ct='+ ct;
	wid = 'prod_' + cid;
	
	popupWindow(dest);
	
	sIdFrame = 'pupwnd1';
	wdth = 825;
	hght = 500;
	
	curtainLeft =  - (wdth/6);
	curtainTop =  - (hght/6);
	curtainWidth = (wdth/3);
	curtainHeight = (hght/3);

	maxWidth = wdth;
	maxHeight = hght;
	gsIdFrame = sIdFrame;

	scrl = getScrollTop2();
	
//	alert(scrl);

	document.getElementById(sIdFrame).style.border = '0px solid black';
	document.getElementById(sIdFrame).style.width = wdth+'px';
//	document.getElementById(sIdFrame).style.height = hght+'px';
	document.getElementById(sIdFrame).style.left = (wdth/2 - 160) + 'px';
	document.getElementById(sIdFrame).style.top = (hght/2 + scrl - 50) + 'px';
	
}

