/******************************************************************
** standard.js
** Standard funky funcs and fly vars for the webernet.
********************************************************************/

//--------------------------
// poptour() - window popper
//--------------------------
function poptour(url) {
	// Build the options string
	strOptions = ",resizable=yes, status=1, toolbar=0, location=0, menubar=0, scrollbars=0";
	// Launch the URL
	window.open(url,"tour","width=745,height=585" + strOptions);
}



function popper(_url,_width,_height) {
	window.open(_url, "popperwin", "width="+_width+",height="+_height+",resizable=1,toolbar=0,menubar=0,status=0,scrollbars=1,left=0,top=0");
}

function WriteSwfObject(strSwfFile, nWidth, nHeight, strAlign, strQuality, strBgColor, strFlashVars)
{
	var strHtml = "";

	if (!strFlashVars)
	{
		strFlashVars = "";
	}

	strHtml += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0' width='" + nWidth + "' height='" + nHeight + "' align='" + strAlign + "'>";
	strHtml += "<param name='allowScriptAccess' value='sameDomain' />"
	strHtml += "<param name='movie' value='" + strSwfFile + "' />"
	strHtml += "<param name='quality' value='" + strQuality + "' />";
	strHtml += "<param name='bgcolor' value='" + strBgColor + "' />";
	strHtml += "<param name='flashvars' value='" + strFlashVars + "' />";
	strHtml += "<embed src='" + strSwfFile +"' flashvars='" + strFlashVars + "' quality='" + strQuality + "' bgcolor='" + strBgColor + "' width='" + nWidth + "' height='" + nHeight + "' align='" + strAlign + "' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	strHtml += "</object>";

	document.write(strHtml);

}
