



function ebAd_58347()
{
	this.strDefaultImage = ebResourcePath + "Site-1094/Type-0/{6B3A3C85-EFFC-4758-841F-A7642917553E}.gif";
	this.strDefaultFlash = ebResourcePath + "Site-1094/Type-2/{66C7F241-6129-4C5C-8D30-6BDDE17A33C0}.swf";
		
	this.flFlashVer = "6";
	this.fShowSinglePanel = 1;
	this.fPreLoadPanels = 1;
	
	//	Hide dropDowns and Iframes
	this.fHideDropDowns = ("0" == "1");
	this.fHideIframes = ("0" == "1");
	this.fHideFlash = ("0" == "1");
	this.fHhideApplet = ("0" == "1");

	if ("1" == "0")					// All Browsers
		this.nHideIframeIn = 0xffffffff;
	else										//	IE5 (original and AOL) and NN6.x
		this.nHideIframeIn = 0x1 | 0x40 | 0x8 | 0x10;
	
	this.fAutoSetDHTML = 0;
	
	//flag indicates if this banner should be cross frames.
	var browser = new ebCBrowserCheck();
	var isIE5 = ((browser.getEbBrowser() == 1)||(browser.getEbBrowser() == 64));
	
	
	//copy the additional resources array.
	this.arrAdditionalRes = new Array();
	
	initPanels(this);
	
	function initPanels(objRef)
	{
		
		
		//this array is used for converting the wmode value from the admin(0,1,2)
		//to the actual value.
		var arrWmodeVals = new Array("transparent","opaque","window");
		
		// copy the panels array to the client
		var arr = new Array();
		
				arr[0] = new Array();
		
				arr[0][0] = "over";
		
				arr[0][1] = "Site-1094/Type-2/{02843345-C372-4569-BB35-A463090090BE}.swf";
		
				arr[0][2] = "760";
		
				arr[0][3] = "464";
		
				arr[0][4] = "1";
		
				arr[0][5] = "-280";
		
				arr[0][6] = "263";
		
				arr[0][7] = "3";
		
				arr[0][8] = "0";
		
				arr[0][9] = "118895";
		
				arr[0][10] = "6848";
		
				arr[0][11] = "1";
		
				arr[0][12] = "30476";
		
				arr[0][13] = "0";
		
				arr[0][14] = "3";
		
		
		// Order of values is the pannels buffer from the server is as follows:
		//	0 - Panel Name
		//	1 - Flash Url
		//	2 - Panel width
		//	3 - Panel height
		//	4 - Positioning Type (currently only relative to banner is supported)
		//	5 - Xpos
		//	6 - Ypos
		//	7 - Corner To Align (1:Top-Left 2:Top-Right 3:Bottom-Left 4:Bottom-Right)
		//	8 - Enable Scroll Bars (not supported yet).
		//	11 - transparent.
		objRef.panels = new Object();
		for (var i=0; i<arr.length; i++)
		{
			var strName = arr[i][0];
			var lowerName = strName.toLowerCase();
			var panel = new ebCPanel(strName);
			panel.src = ebResourcePath + arr[i][1];
			panel.nWidth = arr[i][2];
			panel.nHeight = arr[i][3];
			panel.nPosType = 1;					//arr[i][4];
			panel.nXPos = arr[i][5];
			panel.nYPos = arr[i][6];
			panel.nCorner = arr[i][7];
			panel.fScroll = false;				//arr[i][8];
			panel.strAdditionalRes = objRef.strAdditionalRes;
			
			//set the pannels wMode
			var fTransparent;
			if(typeof(arr[i][11]) == "undefined")	//backward compatability
				fTransparent = true;							//if there is no wMode attribute
			else									//we treat it as "transparent"
				fTransparent = (arr[i][11] == "1");
	
			if(fTransparent)
				panel.strWmode = "transparent";
			else
				panel.strWmode = "window";
			panel.fAutoExpand = (arr[i][13] == 1);
			panel.fRetractOffAd = (arr[i][14] == 1);
			panel.fRetractOffThisPanel = ((arr[i][14] == 2) && !isIE5);
			
			if((arr[i][14] < 3) && isIE5)
				panel.fRetractOffAd = true;

			objRef.panels[lowerName] = panel;
		}
	}
	
	



	//	Update Remote Servers
	this.playRS = new ebCRemoteServers();
	this.playRS.strNUrl = "";
	this.playRS.strAUrl = "http://ad.doubleclick.net/ad/N815.nytimes/B1341048.8;sz=1x1;ord=[timestamp]?";
	
	//	Update Interactions
	this.interactions = new Object();
	
	//set the Default Interaction - "_eyeblaster"
	setDefaultInteraction(this);
	setInteractions(this);
	
	//		TODO ...
	//if (linkFlag.toLowerCase() == "true")
	//	gebInteractionBuffer[0].jumpURL = "http://www.ibm.com/servers/eserver/zseries/40years/?ca=040704&me=A&met=exba&re=banner";
	//else
	//gebInteractionBuffer[0].jumpURL = "";

	function setDefaultInteraction(objRef)
	{
		objRef.interactions["_eyeblaster"] = new ebCInteraction("_eyeblaster");
		var inter = objRef.interactions["_eyeblaster"];
	
		inter.fCloseFlag = 1;
		inter.strJumpUrl = "http://www.ibm.com/servers/eserver/zseries/40years/?ca=040704&me=A&met=exba&re=banner";
		if (inter.strJumpUrl != "")
			objRef.fLink = true;
		else
			objRef.fLink = false;
		inter.strTarget = "_blank";
		inter.RS.strNUrl = "";
		inter.RS.strAUrl = "http://ad.doubleclick.net/clk;7800361;9023031;u?http://www.ibm.com/servers/eserver/zseries/40years/?ca=040704&me=A&met=exba&re=banner";
		inter.fCountAsClick = 1;
		inter.jumpWin.strPosX = "";
		inter.jumpWin.strPosY = "";
		inter.jumpWin.strWidth = "";
		inter.jumpWin.strHeight = "";
		inter.jumpWin.strAddressBar = "0";
		inter.jumpWin.strMenuBar = "0";
	}
	


	//function setInteractions
	//	this function build all the interactions that came from the admin as objects
	//	in the interactions object.
	//	the interactions data that come from the admin is set in array in the folowing order:
	///////////////////////////
	//	0 : InteractionName
	//	1 : CloseFlag
	//	2 : JumpURL
	//	3 : JumpWinPosX
	//	4 : JumpWinPosY
	//	5 : JumpWinWidth
	//	6 : JumpWinHeight
	//	7 : JumpWinAddressBar
	//	8 : JumpWinMenuBar
	//	9 : NetworkTrackingURL
	// 10 :	AgencyTrackingURL
	// 11 : JumpTarget
	// 12 : CountAsClick
	// 13 : nType
	/////////////////////////////
	function setInteractions(objRef)
	{
		
	}
	
	

}

//	Mark this ad as loaded
ebScriptLoaded("ebAd_58347");