
var zzpixie = new Image();



var zzStr = "s=167;u=unknown;z=" + Math.random();

var zzDate = new Date(); 
if (typeof zzCustom =='undefined'){var zzIdxCustom ='';}
else{var zzIdxCustom = zzCustom;}
if (typeof zzTrd =='undefined'){var zzIdxTrd ='';}
else{var zzIdxTrd = zzTrd;}



/*





*/




// Tremor Network, Inc.

// EDIT THE FOLLOWING --------------------------------
 
// flash files
// initial (unexpanded)

var unexpandedSWF = "http://c5.zedo.com//OzoDB/k/w/195202/V1/amex_bluesky_728_unexp_1_30sec.swf?";
var uwidth = 728;
var uheight = 90;
var strFormat = "728x90";

var autoHideTime = 8000; //in milliseconds


strFormat = strFormat.toUpperCase();

var expandedSWF = "http://c5.zedo.com//OzoDB/k/w/195202/V1/amex_bluesky_728_2x_exp_SB_1.swf?";

var strFormat;
var strExp;

var eheight = 180;

var eBGcolor = '339e35';
var closeGIF = "http://c5.zedo.com//OzoDB/k/w/195202/V1/amex_bluesky_close_728.gif";
var etop = 89;
var eleft = 0


var noBorderedPopup = 0;
var ewidth = 728;

// auto expand
// If set to '0' below, this will not auto expand - to turn auto expand on, set to '1'
var autoExpand = 0;
var autoExpandTimeMS = 5000; // milliseconds

// click through - expanded flash must do a getURL(url)
// enter destination URL - special characters must be URL Encoded when passed to Flash
var destURL = 'http://xads.zedo.com//ads2/c?a=195202;x=3597;g=0,0;c=437001267,437001267;i=0;n=437;s=167;g=172;m=227;w=23;u=unknown;p=6;f=245503;k=http://http300.edge.ru4.com/smartserve/textlink?placement=pt-1941-136'
target="_blank";

// STOP EDITING HERE --------------------------------

// special AOL stuff
var nua = navigator.userAgent; 
var a5 = 'AOL 5.0; Windows NT'; 
var a6 = 'AOL 6.0; Windows NT';
var a56 = (nua.indexOf(a5)!=-1 || nua.indexOf(a6)!=-1);
//
var href = window.location.href;

// ie50 or less check
var ie50 = 0;
var ie50i = href.indexOf("&ie50");
if (ie50i >= 0) 
{ 
  ie50 = 1;
  // at end of string - remove
  href = href.substring(0,ie50i);
}

// get siteid, adid, mb, tr from query string
var siteid = 0;
var adid = 0;
var mb = '';
var tr = '';
var qi = href.indexOf("?");

if (qi >= 0)
{
  qs = href.substring(qi+1);
  var si = qs.indexOf("siteid=");
  var ai = qs.indexOf("adid=");
  var mi = qs.indexOf("mb=");
  var ci = qs.indexOf("tr=");
  //
  siteid = qs.substring(si+7,ai-1);
  adid = qs.substring(ai+5,mi-1);
  mb = qs.substring(mi+3,ci-1);
  tr = qs.substring(ci+3);
}

// URL encode - kind of
var expandedClickTrack = escape(destURL);
regD = /\./g;
expandedClickTrack = expandedClickTrack.replace(regD, "%2E"); 
///////


function popupCommand(command, args)
{
	if (command == "close")
	{
		this.popup.hide();
	}
}
// 
var popupCreated = 0;

//

function expand()
{
  var movie = expandedSWF+'url=' + expandedClickTrack;
	
  // ie5.5 or higher
  if (ie50 == 0) 
  {
	// 
	var html = '';
	
	html += '<OBJ'+'ECT CLASSID=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\'';
	html += ' ID=Expanded ';
	html += ' WIDTH='+ewidth+' HEIGHT='+ (eheight) +'>';
	
	html += '<PARAM NAME=movie VALUE=' + movie + ' >';

	html += '<PARAM NAME=loop VALUE=true>';
	html += '<PARAM NAME=menu VALUE=false >';
	html += '<PARAM NAME=bgcolor VALUE='+eBGcolor +' >';
	html += '<PARAM NAME=quality VALUE=high >';
	html += '<PARAM NAME=AllowScriptAccess VALUE=always>';
	html += '</OBJ'+'ECT>';
	
	html += '<br><ta' + 'ble border="0" cellpadding="0" cellspacing="0"><tr><td>';
	html += '<im' + 'g src='+closeGIF+' onclick="parent.popup.hide();"></td></tr></ta' + 'ble>';


	//for fscommand("close")
	html+='<sc'+'ript defer language="VBScript">';
	html+='Function Expanded_FSCommand(ByVal command,ByVal args)\n';
	html+='parent.document.all.exImgCmd.exCmd=command\n';
	html+='parent.document.all.exImgCmd.src="http://www.beat-the-game.com/tremor/white1x1.gif"\n';
	html+='End Function';
	html+='</sc'+'ript>';

        //
	this.popup = window.createPopup();
	//
	popupCreated = 1;
	//
//	this.popup.document.body.innerHTML = html;
// *******************  NEW CODE ADDED AS PER INSTRUCTIONS FROM ZEDO RE: FLASH ERROR ***********************

	this.popup.document.open();
	this.popup.document.write('<body marginwidth=0 marginheight=0 leftmargin=0 scrolling=no topmargin=0 style="border:0;background-color:transparent;overflow:hidden">' + html + '</body>');
	this.popup.document.close();

// *******************  END NEW CODE ***********************************************************************

	//
	unexpanded = document.all("FlashUES");

	this.popup.show(eleft,etop,ewidth,parseInt(eheight+20),unexpanded);
	
	window.setTimeout('this.popup.hide()', autoHideTime);
	
 }
  else
  {
    // ie5.0 or lower
    if (noBorderedPopup == 0)
    {
	if (a56)
    	{
		ewindow = window.open(movie,"ewindow","height=" + eheight + ",width=" + ewidth + ",left=0,top=0,alwaysRaised=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
	}
	else
	{
    		ewindow = window.open(movie,"ewindow","height=" + eheight+ ",width=" + ewidth + ",left=" + eleft + ",top=" + etop + ",alwaysRaised=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
	}
    }
  }
}


function FlashUES_DoFSCommand(command, args)
{

	if (command == "expand")
	{
	   	expand();
	}
	else if (command == "close")
	{
		//
		if (popupCreated == 1)
		{
			popup.hide();
		}
	}

}

var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


if (browser != "Netscape Navigator" || OS != "Windows"){
	document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('ShockMode = (IsObject(CreateObject(ieflash)))\n');
	document.write('Sub FlashUES_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call FlashUES_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCR'+'IPT> \n');
	document.write('<OBJECT classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\'');
	document.write(' codebase=http://active.macromedia.com/flash/cabs/swflash.cab');
	document.write(' ID=FlashUES WIDTH=' + uwidth + ' HEIGHT=' + uheight + '>');
	document.write(' <PARAM NAME=movie VALUE=' + unexpandedSWF + 'url=' + expandedClickTrack +' >');
	document.write(' <PARAM NAME=loop VALUE=true> ');
	document.write(' <PARAM NAME=menu VALUE=0> ');
	document.write(' <PARAM NAME=Xwmode VALUE=transparent > ');
	document.write(' <PARAM NAME=quality VALUE=high> ');
	document.write(' <PARAM NAME=AllowScriptAccess VALUE=always> ');
	document.write('</OBJECT>');
	document.write('<IMG exCmd="" id=exImgCmd width=1 height=1 border=0 align=right onload=popupCommand(exCmd)>');
}
else{

	document.write('<OBJECT classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\'');
	document.write(' codebase=http://active.macromedia.com/flash/cabs/swflash.cab');
	document.write(' ID=FlashUES WIDTH=' + uwidth + ' HEIGHT=' + uheight + '>');
	document.write(' <PARAM NAME=movie VALUE=' + unexpandedSWF + 'url=' + expandedClickTrack +' >');
	document.write(' <PARAM NAME=loop VALUE=true> ');
	document.write(' <PARAM NAME=menu VALUE=0> ');
	document.write(' <PARAM NAME=Xwmode VALUE=transparent > ');
	document.write(' <PARAM NAME=quality VALUE=high> ');
	document.write(' <PARAM NAME=AllowScriptAccess VALUE=always> ');
	document.write(' <PARAM NAME=flashvars value=url=' + expandedClickTrack + '>');
	document.write(' <emb' + 'ed src=' + unexpandedSWF + 'quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width='+uwidth+' height='+uheight+' flashvars=url=' + expandedClickTrack + ' ></embed> ');
	document.write('</OBJECT>');
}

if ((autoExpand == 1) && (noBorderedPopup == 0))
{
	var a = window.setTimeout('expand();',autoExpandTimeMS);
}
var objCurrentDate = new Date();
var objCurrentTime = objCurrentDate.getTime();

document.write('<IMG SRC="http://http300.edge.ru4.com/smartserve/ad?placement=pt-1941-135&invocation=4000&rid=INSERT_RANDOM_NUMBER&click=' + objCurrentTime + '?" BORDER=0 WIDTH=1 HEIGHT=1 ALT="Click Here">');









