

/** Standard popup window open
 * The first parameter will be the new URL.
 * Subsequent parameters will be (if supplied) the width and height.
 * If not specified the width and height will be 955 and 755 respectively.
 */
function openWin()
{
	var url, width=955, height=750, screenX=0, screenY=0, toolbar="no", menubar="no", scrollbars="yes", resizable="yes";
	var args = arguments;

	url = args[0];
	if (args.length>1)
	{
		width=args[1];
	}
	if (args.length>2)
	{
		height=args[2];
	}

	window.open (url, '_blank', 'width='+width+',height='+height+',screenX='+screenX+',screenY='+screenY+',scrollbars='+scrollbars+',toolbar='+toolbar+',menubar='+menubar+',resizable='+resizable);

	return false;
}

/* Function getAdSpot calls Dart's ad for ETF depending of the language received by parameter. */
function getAdSpot(site, language, tile, width, height) {

	if (language != undefined && language != "") {
		var zone = language.toLowerCase() == "fr" ? "french" : "_default";
			//alert("AdSpot(" + site + ", " + zone + ", " + tile + ", " + width + ", " + height + ");");
		AdSpot(site, zone, tile, width, height);
	}
}


