function popupWindow(wName, goLocation, wW, wH, ScroolBar, StatusBar, NotCenter) {
	if (NotCenter == 1)
	{
		wbx = 0;
		wby = 0;
	}
	else
	{
		sw = screen.width;
		sh = screen.height;
		wbx = Math.round((sw - wW) / 2);
		wby = Math.round((sh - wH) / 2);
	}

	NewWindow = window.open(goLocation, wName, 'left='+wbx+', top='+wby+', directories=no, height='+wH+', width='+wW+', location=no, menubar=no, resitable=no, scrollbars='+ScroolBar+', status='+StatusBar+', toolbar=no');
	NewWindow.focus();
}

function pr_disscus(art)
{
  var zz = 420;
  var xx = 300;
  var wsss = 0;
  var hsss = 0;

  popupWin = window.open('disscus_price.php?art='+art, "imageWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+zz+",height="+xx+",left="+ wsss +",top="+ hsss +"");
}

function loadFlash(objectId, url, width, height, desturl)
{
	var so = new SWFObject(url,"f"+objectId,width,height,"9");
	so.addParam("quality", "high");
	so.addParam("wmode", "transparent");
	so.write(objectId);

	if (desturl != '') {
		var bannerDiv = document.getElementById(objectId);
		var bannerA = document.createElement("A");
		bannerA.setAttribute("href", desturl);
		bannerA.setAttribute("class", "swfhover");
		bannerA.innerHTML = "&nbsp;";
		bannerDiv.appendChild(bannerA);
	}
}
