

//GENERATION TIME VARIABLE
/* Generated: 11/30/2007  09:33 AM EST. EW Web Code Version: 11.4.1 */

		


if (inDapIF && inDapMgrIf) {
	if ((navigator.userAgent.toLowerCase()).indexOf('gecko/') > 0)
	{
		document.close();	
		document.close();	
		delete document.close;
		document.close();	
		document.open();
	}
}	

var ew1388211_isIFrame = false;
var ew1388211_functionWindow = window;

 
 

//COMMON VARIABLES
// From include/commonjsvars
var cp1388211 = "http://cdn.eyewonder.com/100125/adWdrDemos/1388211/";

		// From include/commonjsvars
	
var ew1388211_bannerWidth = 160;
var ew1388211_bannerHeight = 600;
var ew1388211_fullWidth = 160;
var ew1388211_fullHeight = 600;

var ew_cacheBuster = new Date().getTime();
var ew_cacheBusterReplaceArray = new Array("\\[timestamp\\]", "\\[cachebuster\\]", "\\[random\\]", "\\[randnum\\]"); 	


function ew_getProtocol(cp)
{
	if (cp.indexOf("https://") != -1)
		return "https://";
	else
		return "http://";
}
var ew1388211_protocol = ew_getProtocol("http://cdn.eyewonder.com/100125/adWdrDemos/1388211/");
	
	

//RESEARCH TAGS


//TRACKING VARIABLES
// From include/tracking	
	

var ew1388211_startTime = ew_getTime1388211();



var ew1388211_imgArray = new Array(); 
var ew1388211_imgArrayCounter = 0; 

function ew_addImage1388211(img)
{
	ew1388211_imgArray[ew1388211_imgArrayCounter] = document.createElement("img");
	ew1388211_imgArray[ew1388211_imgArrayCounter].setAttribute("src", img); 
	ew1388211_imgArrayCounter++; 
}

function ew1388211_otrk(img, extra)
{
	ew_addImage1388211(cp1388211+img+'?ewbust='+new Date().getTime()+extra);
	return '';
}

function ew1388211_otrk_nobust(img, extra)
{
	ew_addImage1388211(cp1388211+img+'?ewbust=0'+extra);
	return '';
}

function ew1388211_ctrk(type, info)
{ 

}

function ew1388211_ctrk_nobust(type, info)
{ 

}

function ew_thirdpartytrackingcachebust1388211(trkURL)
{
	
	for(var i = 0; i < ew_cacheBusterReplaceArray.length; i++)
	{
		trkURL = trkURL.replace(new RegExp(ew_cacheBusterReplaceArray[i],"gi"), ew_cacheBuster); 
	}
	
	return trkURL;
}


function ew_getTime1388211() { var ew_t = new Date(); return ew_t.getTime();}



function onLoadTracker1388211() { var ew_t = ew_getTime1388211()-ew1388211_startTime; ew1388211_ctrk('onload',ew_t); return ew1388211_otrk('ewtrack_onload.gif','&info='+ew_t); }
function flashTracker1388211() { ew1388211_ctrk('creative',''); return ew1388211_otrk('ewtrack_v.gif',''); }
	
function impressionTracker1388211() { ew1388211_ctrk('impression',''); return ew1388211_otrk('ewtrack.gif',''); }

function flashfailoverTracker1388211() { ew1388211_ctrk('failover_flash',''); return ew1388211_otrk('ewtrack_ff.gif',''); }
function failoverTracker1388211() {  ew1388211_ctrk('failover_img',''); return ew1388211_otrk('ewtrack_f.gif',''); }

function failoverReasonBrowserTracker1388211() {  ew1388211_ctrk('fail_reason_browser',''); return ew1388211_otrk('ewtrack_rb.gif',''); }
function failoverReasonFlashTracker1388211() { ew1388211_ctrk('fail_reason_flash',''); return ew1388211_otrk('ewtrack_rf.gif',''); }
function flashSupportTracker1388211(verStr) { ew1388211_ctrk('flash_support_'+verStr,''); return ew1388211_otrk('ewtrack_'+verStr+'.gif',''); }
function weSupportTracker1388211() { var ew_t = ew_getTime1388211()-ew1388211_startTime; ew1388211_ctrk('wesupport',ew_t); return ew1388211_otrk('ewtrack_wesupport.gif','&info='+ew_t); } 


// Expiration count versions of the _f, _ff, and _v trackers for AIM and ICQ cookie versions
function flashTrackerCache1388211(expCount) { ew1388211_ctrk('creative_aim_exposure',expCount); return ew1388211_otrk('ewtrack_v'+expCount+'.gif',''); }
function flashfailoverTrackerCache1388211(expCount) { ew1388211_ctrk('failover_flash_aim_exposure',expCount); return ew1388211_otrk('ewtrack_ff'+expCount+'.gif',''); }
function failoverTrackerCache1388211(expCount) {  ew1388211_ctrk('failover_img_aim_exposure',expCount); return ew1388211_otrk('ewtrack_f'+expCount+'.gif',''); }



// Out of band tracker request for Flash to call through External Interface
function ew1388211_outOfBandTrackRequest(url)
{
	ew_addImage1388211(url);
}

// Send out the current location
function ew_urlTracker()
{

	return '';
}


document.writeln(impressionTracker1388211());	


// Log the URL for troubleshooting purposes
document.writeln(ew_urlTracker());


	
	// Third Party Impression Tracking


function ew_thirdpartytracking1388211()
{	
	for (var i = 0; i < ew1388211_thirdPartyTrackers.length ; i++)
	{
		if (ew1388211_thirdPartyTrackers[i] != "")
		ew_addImage1388211(ew_thirdpartytrackingcachebust1388211(ew1388211_thirdPartyTrackers[i]));
	}
}

var ew1388211_thirdPartyTrackers = new Array("","","","","","");

ew_thirdpartytracking1388211();

	

	

//DESIGN VARIABLES


if (typeof(clickTagFramePrepend) == "undefined")
	var clickTagFramePrepend = "[ewclickthru]";
clickTagFramePrepend = clickTagFramePrepend.replace("[%ewclickthru%]", "[ewclickthru]");	// Legacy conversion for tags prior to 7/24/2006

var ew_mpUsedClickthruMagic = false;


if (ew_mpUsedClickthruMagic == false)
{
var failclickTag = clickTagFramePrepend.replace("[ewclickthru]","http://www.logansshadow.com");
var	clickTag1 = clickTagFramePrepend.replace("[ewclickthru]","http://www.logansshadow.com");
}





function ew_clickTagCacheBust(_ct)
{
	
	for(var i = 0; i < ew_cacheBusterReplaceArray.length; i++)
		_ct = _ct.replace(new RegExp(ew_cacheBusterReplaceArray[i],"gi"), ew_cacheBuster); 
	if (_ct.indexOf("ord=") >= 0)
		_ct = _ct.split("ord=")[0] + "ord=" + ew_cacheBuster;
	return _ct;
}

clickTag1 = ew_clickTagCacheBust(clickTag1);
failclickTag = ew_clickTagCacheBust(failclickTag);



if (typeof(failclickTag) == "undefined")
	var failclickTag = "http://www.logansshadow.com";	//define it anyway because it is referenced (even if not really used)
	
	
/*** Begin include/sitespecific/msn:MSN_DAP_SETVARS ***/
if(typeof(inDapIF) == "undefined") // Added to not throw undefined errors if it's not defined.
    var inDapIF = false;  
if(inDapIF)
    ew_isIFrame = false;
if(typeof(inDapMgrIf) == "undefined") // Added to not throw undefined errors if it's not defined.
    var inDapMgrIf = false;  

		    
var ew1388211_MSNDAP_DynIF;	
var ew1388211_MSNDAP_DynIFOrigParent;	
var ew1388211_MSNDAP_DynIFOrigNextChild; 

/*** End include/sitespecific/msn:MSN_DAP_SETVARS ***/


//AUTHENTICATION

	
/*** Begin include/authentication:AUTHENTICATION_SHORT ***/

var ua = ' ' + navigator.userAgent.toLowerCase();
var isIe = (ua.indexOf('msie') >= 0);
var isNav4 = ((ua.indexOf('mozilla') >= 0) && (ua.indexOf('compatible') == -1) && (parseInt(navigator.appVersion) < 5));
var isWin = (ua.indexOf('win') >= 0);
var isWinVista = false;
var isMac = (ua.indexOf('mac') >= 0);
//Opera
var isOpera = (ua.indexOf('opera') > 0);
if (isOpera)	// Opera's string is almost identical to IE's
	isIe = false;
//KHTML browsers
var ew_isSafari = (ua.indexOf('applewebkit') > 0);
var isKonqueror = (ua.indexOf('konqueror')>0);
// GECKO(Mozilla) browsers
// isGecko will also include Netscape 6+, Epiphany, Galeon, Camino, K-Meleon, etc
// safari says (like gecko) in it's UA string, but safari uses KHTML engine
var isGecko = (ua.indexOf('gecko/') > 0);
var isCamino = (ua.indexOf('camino/') > 0);

// Check for Vista
if(isWin)
{
	isWinVista = (ua.indexOf('windows nt 6.0') >= 0);
}

/*** End include/authentication:AUTHENTICATION_SHORT ***/

	

/*** Begin include/authentication:AUTHENTICATION ***/

// Check how old the gecko version is for the part following "gecko/" in the UA string
var geckoDate;
var geckoRevisionString;
var geckoRevision;
var geckoRevisionMajor;
var geckoRevisionMinor;

var webkitVersion;
if (isGecko)
{
	function ew_getGeckoRevisionString(ua)	// Keep temp variables from being placed into window object
	{
		var tempStr = ua.split("rv:");
		return tempStr[1].split(")")[0];
	}

	geckoRevisionString = ew_getGeckoRevisionString(ua);
	geckoRevision = parseFloat(geckoRevisionString);
	geckoRevisionMajor=parseFloat(geckoRevisionString.split(".")[0] )
	geckoRevisionMinor=parseFloat(geckoRevisionString.split(".")[1]+ "." + geckoRevisionString.split(".")[2])
	geckoDate = parseInt(ua.substr(ua.indexOf('gecko/')+6,8));
}
var ieVersion;
if (isIe)
{
	ieVersion = ua.substr(ua.indexOf('msie')+5,4);
	if (ieVersion.indexOf(';') > 0)
		ieVersion = ieVersion.substr(0,3);
}
var operaVersion
if (isOpera)
{
	operaVersion = ua.substr(ua.indexOf('opera')+6,4);
}
if (ew_isSafari)
{
    webkitVersion = parseInt(ua.substr(ua.indexOf('applewebkit')+12,4));

}
var ew1388211_weSupport = false;
var failReason = "browser";	// Reason we failed over
 
	
/*** Begin include/authentication:AUTHENTICATION_FLASH ***/

var isFlash7up = false;	
var isFlash8up = false; 
var isFlash9up = false; 
var isFlashFailover = false; 
var isFlash9Pre28 = false;	

var ew1388211_flashVersion = new Array(0,0,0);
var ew1388211_flashVersionMajor = 0;
var ew1388211_flashVersionMinor = 0;

// Check Flash info
function ew1388211_getFlashVersion()
{

	if(isIe)
	{
		var checkStr = "ShockwaveFlash.ShockwaveFlash.7";
		if (isWinVista)
			checkStr = "ShockwaveFlash.ShockwaveFlash.9";
		try {
			var swf = new ActiveXObject(checkStr.toString()).GetVariable("$version");
			var ver = swf.substring(swf.indexOf(" "));
			ew1388211_flashVersion = ver.split(",");
		} catch ( e )
		{
			ew1388211_flashVersion = new Array(0,0,0); // Below Flash 7
		}
	} else if( isGecko || isOpera || ew_isSafari )
	{
		ver = new Array();
		var desc = navigator.plugins["Shockwave Flash"].description;
		desc = desc.split(" ");
	
		ver[0] = desc[2].split(".")[0];
		ver[1] = desc[2].split(".")[1];
		ver[2] = desc[desc.length-1].split("r")[1]; // Last element of array.. compensates in differences between Mac + Windows
		
		if( ver[0] >= 7 ) ew1388211_flashVersion = ver;
	}
	
	ew1388211_flashVersionMajor = ew1388211_flashVersion[0] + "." + ew1388211_flashVersion[1];
	ew1388211_flashVersionMinor = ew1388211_flashVersion[2];
}


if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	var navPlugin = (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin);

if (navPlugin || (isIe && isWin))
{
	ew1388211_getFlashVersion();
	isFlash9up = (ew1388211_flashVersionMajor>=9);
	isFlash8up = (ew1388211_flashVersionMajor>=8);
	isFlash7up = (ew1388211_flashVersionMajor>=7);
	isFlashFailover = (ew1388211_flashVersionMajor>=6);
	isFlash9Pre28 = (ew1388211_flashVersionMajor == 9 && ew1388211_flashVersionMinor < 28);

	if( isWinVista && isFlash9up && isFlash9Pre28 && isIe) 
	{ 
		// Vista requires 9,0,28,0 and up for proper behavior in IE
		ew1388211_weSupport = false;
		failReason = "vistaflash";		
	}
}
else
	isFlash7up = false;
	
/*** End include/authentication:AUTHENTICATION_FLASH ***/

	
	
// Do a an exclusive check for support to protect page contents for rare and untested browsers
if(isGecko || ew_isSafari || (isIe && isWin && ieVersion >= 6) || (isOpera && operaVersion >= 8)) 
{
	// Support Mozilla-based browsers (i.e. Firefox), Safari Mac, 
	// and IE browsers (IE 6/Win and AOL Explorer), and Opera >= 8
	failReason = "none";
	ew1388211_weSupport = true;

	// Do we support Flash 7?
	if (!isFlash7up)
	{
		ew1388211_weSupport = false;
		failReason = "flash";
	}
}
else
{
	// Still attempt a flash failover if browser isn't supported
	failReason = "browser"
	ew1388211_weSupport = false;
}

if (ew_isSafari)
{
	if (webkitVersion < 400)
	{
		ew1388211_weSupport = false;
		failReason = "browser";
	}
}



	

var ew1388211_turnOffExecution = false;



if (!ew1388211_turnOffExecution && isFlash8up)
	document.writeln(flashSupportTracker1388211("8"));

if (!ew1388211_turnOffExecution && isFlash9up)
	document.writeln(flashSupportTracker1388211("9"));

if (!ew1388211_turnOffExecution && isFlash9up && (isFlash9Pre28==false))
	document.writeln(flashSupportTracker1388211("9_0_28_0"));


/*** End include/authentication:AUTHENTICATION ***/

		

if(typeof(inFIF) == "undefined") // Added to not throw errors if it's not defined.
	var inFIF = false;



//CUSTOM FUNCTIONS

	
weSupport = ew1388211_weSupport; 
ew1388211_turnOffExecutionBackup = ew1388211_turnOffExecution; 
	



var ew1388211_localConnectionUUID;
function ew_setUpLocalConnectionUUID1388211()
{
	var ewwin;
	if ( typeof(topWin) == "undefined")
		ewwin = window;
	else
		ewwin = topWin;
	
	if ( typeof( ewwin.ew_localConnectionUUID ) == "undefined")
	{
            ewwin.ew_localConnectionUUID = (new Date().getTime());
	}
       
	ew1388211_localConnectionUUID = ewwin.ew_localConnectionUUID;
}
ew_setUpLocalConnectionUUID1388211();



var ew1388211_context = window; 
var ew1388211_flashObjectWindow = window;
var ew1388211_mainFunctionWindow = window;	
/* Note: The objects won't be present until the page is fully loaded */

/* Use ew_getSWFTag<id> to return either the object or embed tag depending on the browser  */
function ew_getSWFTag1388211()
{ 
	if (isGecko || isOpera)	
		return ew_getEmbedTag1388211();
	else
		return ew_getObjectTag1388211();
}

/* The two functions below shouldn't generally be used, and ew_getSWFTag<id> should be used instead */
function ew_getObjectTag1388211()
{ 
	if (ew1388211_flashObjectWindow.document.getElementById("ewad1388211"))
		return ew1388211_flashObjectWindow.document.getElementById("ewad1388211");
	else
		return null;
}
function ew_getEmbedTag1388211() 
{
	if (ew1388211_flashObjectWindow.document.getElementById("ewembed1388211"))
		return ew1388211_flashObjectWindow.document.getElementById("ewembed1388211");
	else
		return null;
}

//POSITIONING FUNCTIONS
function findPosX(obj) {
	var curleft = obj.offsetLeft;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			obj = obj.offsetParent;
			if ((isIe || ew_isSafari) && obj.tagName == "BODY") break;
			curleft += obj.offsetLeft;			
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj) {
	var curtop = obj.offsetTop;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			obj = obj.offsetParent;
			if ((isIe || ew_isSafari) && obj.tagName == "BODY") break;
			curtop += obj.offsetTop;			
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}


var ew1388211_debugShowErrors = false;		// Whether to throw errors in JS-Flash functionality when encountered


/* ########################################  BEGIN CUSTOM FUNCTIONS #################################################### */

/* Begin ad-specific custom functions */



/*  End ad-specific custom functions */

/*  ############################################################################################# */

/*  Begin execution-specific custom functions */



/*  End execution-specific custom functions */

/* #########################################  END CUSTOM FUNCTIONS #################################################### */

	

ew1388211_weSupport = weSupport; 
ew1388211_turnOffExecution = ew1388211_turnOffExecutionBackup;
	
	

var ew1388211_errorObject;

function ew_throwJSError1388211()
{
	var e = ew1388211_errorObject;
	
	var emsg = "";
	try	{ 
		if (isIe)
		{
			emsg = e.name + ": " + e.description;
		}
		if (isGecko)
		{
			emsg = e.name + ": " + e.message + " in file " + e.fileName + " on line " + e.lineNumber + "\n Stack: \n " + e.stack;
		}
		if (ew_isSafari)
		{
			emsg = e.name + ": " +  e.message + " on line " + e.line;
		}
		if (isOpera)
		{
			emsg = e.message + " on line " + e["opera#sourceloc"];
		}
		ew1388211_debugExternalInterfaceErrorMessage = emsg;
	}
	catch(e)
	{
		ew1388211_debugExternalInterfaceErrorMessage = "Failure in external interface";
	}
	
	if (ew1388211_debugShowErrors == true)
	{
		throw(ew1388211_errorObject);	/* Note: When a custom function causes an error, IE will say the error occurred here, but it didn't :-) The error message will give an idea of where the error is, or check in Firefox */
	}
}


function ew_delegate1388211( functionName )
{
	var ew_args = new Array();
		
	for( var i = 1; i < arguments.length; i++ )
		ew_args[i-1] = arguments[i];
	try
	{
		return ew1388211_mainFunctionWindow[functionName].apply( ew1388211_mainFunctionWindow, ew_args );
	}
	catch (e)
	{
		ew1388211_errorObject = e;
		var dummy = setTimeout(ew_throwJSError1388211, 1);
		return null;
	}
}



function ew_isAvailableExternalInterface1388211()
{
	var flashObj = ew_getSWFTag1388211();
	if (typeof(flashObj) == "undefined" || flashObj == null || typeof(flashObj.ew_isAvailable) == "undefined" || !flashObj.ew_isAvailable())
		return false;
	return true;
}


var ew1388211_debugExternalInterfaceErrorMessage = "";

// Usage: ew_callExternalInterface<id>("functionName","arg1","arg2", ...);
function ew_callExternalInterface1388211(functionName)
{

	if (!ew_isAvailableExternalInterface1388211())
	{
		ew1388211_debugExternalInterfaceErrorMessage = "Object doesn't support External Interface.";
		return null;
	}
	
	var flashObj = ew_getSWFTag1388211();	

	if (typeof(flashObj[functionName]) == "undefined" || flashObj[functionName] == null)
	{
		ew1388211_debugExternalInterfaceErrorMessage = "Object doesn't support this method.";
		return null;
	}

	var ew_args = new Array();
	var ew_argsString = "";
			
	for( var i = 1; i < arguments.length; i++ )
	{
		if (i!=1)
			ew_argsString += ",";
		ew_argsString += "ew_args[" + (i-1) +  "]";
		ew_args[i-1] = arguments[i];
	}
		
	var execString = 'flashObj.'+functionName+'('+ew_argsString+')';
	try {
	return eval(execString);	
	}
	catch (e)
	{
		ew1388211_errorObject = e;
		var dummy = setTimeout(ew_throwJSError1388211, 1);
		return null;
	}	

}
	

// FLASH


/*** Begin include/flash:FLASH8 ***/



var ew1388211_flvNames = "";
var ew1388211_creativeName = "sf_160x600_30k_FL7.swf";
var ew1388211_swfVersion = 7;


/*** Begin include/flash:FLASH8COMMON ***/
function ew_getfNames(flvvideos,flashBool)
{
	for(var i = 0; i < flashBool.length; i++)
	{
		if(flashBool[i] == "true")
		{
			flvvideos[i] = "fl8_" + flvvideos[i];
		}
	}
	return flvvideos.join(",");
}

function ew_setupCreative(flash7Creative, flash8Creative, flash9Creative)
{
	if (isFlash9up && flash9Creative != "" && !isFlash9Pre28)
	{
		ew1388211_swfVersion = 9;
		return flash9Creative;
	}
	else if (isFlash8up && flash8Creative != "")
	{
		ew1388211_swfVersion = 8;
		return flash8Creative;
	}
	else if (isFlash7up && flash7Creative != "")
	{
		ew1388211_swfVersion = 7;
		return flash7Creative;
	}
	else /* no creative. failover */
	{
		ew1388211_weSupport=false;
		failReason = "nocreative";
		return flash7Creative;	// return anyway, even if not used
	}
}
/*** End include/flash:FLASH8COMMON ***/



function ew_setupFlash8Videos()
{
	var flvvideos = new String("").split(',');
	var flashBool = new String("").split(',');
	ew1388211_flvNames = ew_getfNames(flvvideos,flashBool);
}

ew1388211_creativeName = ew_setupCreative("sf_160x600_30k_FL7.swf","sf_160x600_30k_FL8.swf","");

if (isFlash8up && (ew1388211_swfVersion >= 8))
	ew_setupFlash8Videos();

/*** End include/flash:FLASH8 ***/

/*** Begin include/flash:FLASHVARS ***/

var ew1388211_adMode = "prog";


var ew1388211_videoPath = "http://cdn.eyewonder.com/100125/video/";


var ew1388211_videoID = '';



if (typeof(isIFrameContent) != "undefined" && isIFrameContent)
	ew_qaReportUUID = topWin.ew_qaReportUUID;


if(typeof(parseParam)=="undefined")
{	
	function parseParam(name) {
		var query = window.location.search;
		var pos = query.indexOf(name+"=");	
		var pos2 = 0;
		if (pos != -1) {
			pos = pos+name.length+1;
			pos2 = query.indexOf("&", pos);
			if (pos2 != -1) {
				return query.substring(pos, pos2);
			} else {
				return query.substring(pos);
			}
		} else {
			return null;
		}
	}
}
if (typeof(ew_qaReportUUID)=="undefined")
{
	ew_qaReportUUID = parseParam("qaUUID");
	if(ew_qaReportUUID == null)
		ew_qaReportUUID = "common";
}	






function ew_verifyPrepend(url)
{
	var newUrl = url;
	if (url.indexOf("http") != 0 || url.indexOf("ftp") != 0)
	{
		if (url.indexOf("http") != -1)
		{
			newUrl = url.substr(url.indexOf("http"));
		}
		else if (url.indexOf("ftp") != -1)
		{
			newUrl = url.substr(url.indexOf("ftp"));
		}
	}
	return newUrl;
}

var ewclicktags1388211 = ''
	+ '&clickTag1='+escape(ew_verifyPrepend(clickTag1));

if( typeof( ew1388211_flashvarsExtra ) == "undefined" )
	var ew1388211_flashvarsExtra = "";


var ew1388211_browserEngine = "unknown";
if (isGecko)
	ew1388211_browserEngine = "gecko";
else if (isIe)
	ew1388211_browserEngine = "ie";
else if (isOpera)
	ew1388211_browserEngine = "opera";
else if (ew_isSafari)
	ew1388211_browserEngine = "webkit";


var ew1388211_adTypeID = '25';
var ew1388211_adType = 'Banner - Rich Media (Non-Video)';
if (ew1388211_adTypeID=='22' || ew1388211_adType=="Interstitial")
	ew1388211_adTypeID = '5';

if (ew1388211_adTypeID=='30')
	ew1388211_adTypeID = '8';



var ew1388211_customFlashString = ''; 
if (ew1388211_customFlashString != '') 
	{ 
		ew1388211_customFlashString = '&' + ew1388211_customFlashString.replace(/\|/g, '&'); 
	} 


if (typeof(ew1388211_localConnectionUUID) == "undefined")
	ew1388211_localConnectionUUID = (new Date().getTime());






var flashvarsClickTagPrepend = "[ewclickthru]";
if (typeof(clickTagFramePrepend) != 'undefined')
	flashvarsClickTagPrepend = clickTagFramePrepend;
	

var ewflashvars1388211 = 'ewbase='+cp1388211
	+ '&bwfile=bwtest.swf'
	+ '&creative=' + ew1388211_creativeName
	+ '&vLength='
	+ '&bw=56,90,135,300,450,600'
	+ '&buf=5,4,3,2,2,2'
	+ '&flv=' + ew1388211_flvNames
	+ '&flvId=0'
	+ '&formatId='+ew1388211_adTypeID
	+ '&aInit='+''
	+ '&vInit='
	+ '&videoID='+ew1388211_videoID
	+ '&videoPath='+ew1388211_videoPath
	+ '&adId=1388211'
	+ '&adMode=' + ew1388211_adMode
	+ '&trkUrl=http://cdn.eyewonder.com/100125/'
	+ '&swfVersion=' + ew1388211_swfVersion
	+ '&browserEngine=' + ew1388211_browserEngine // ie, gecko, webkit, or opera
	+ '&qaReportUUID=' + ew_qaReportUUID
	+ '&localConnectionUUID=' + ew1388211_localConnectionUUID
	+ '&edgeDetect=none' 
	+ '&clickTagPrepend=' + escape(flashvarsClickTagPrepend)
	+ ew1388211_flashvarsExtra
	+ ew1388211_customFlashString
 + ewclicktags1388211;

/*** End include/flash:FLASHVARS ***/



//EYEWONDER FLASH OBJECT
var flashHTML1388211 ='<span id="ew_BannerDiv1388211" style="visibility: visible; overflow: hidden; width:160px; height:600px;">'
+'<img src="'+cp1388211+'dot.gif" border="0" id="ew_initFrame1388211">'
	+'</span>';

var flashHTMLonLoad1388211 ='<span id="ew_FlashDiv1388211" style="visibility: visible; width:160px; height:600px;" onmouseout="ew_onmouseout1388211()">'
	+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + ew1388211_protocol + 'fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="160" height="600" id="ewad1388211">'

	+'<param name="allowScriptAccess" value="always">'
	+'<param name="movie" value="'+cp1388211+ew1388211_creativeName+'">'
	+'<param name="quality" value="high">'
	+'<param name="bgcolor" value="#FFFFFF">'
	+'<param name="base" value="'+cp1388211+'">'
	+'<param name="wmode" value="opaque" />'
	+'<param name="FlashVars" value="'+ewflashvars1388211+'" />'
	+'<embed id="ewembed1388211"  src="'+cp1388211+ew1388211_creativeName+'" base="'+cp1388211+'" wmode="opaque" quality="high" bgcolor="#FFFFFF" width="160" height="600" name="ewad1388211" FlashVars="'+ewflashvars1388211+'" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="' + ew1388211_protocol + 'adobe.com/go/getflashplayer">'
	+'</object>'
	+'</span>'


//EYEWONDER FLASH FAILOVER OBJECT
var flashfailoverHTML1388211 ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + ew1388211_protocol + 'fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="160" height="600" id="ewfaildesign" align="middle">'

	+'<param name="allowScriptAccess" value="always">'
	+'<param name="movie" value="'+cp1388211+'">'
	+'<param name="quality" value="high">'
	+'<param name="bgcolor" value="#FFFFFF">'
	+'<param name="wmode" value="opaque">'
	+'<param name="FlashVars" value="clickTag='+escape(failclickTag)+'" />'
	+'<embed id="ewembed1388211"  src="'+cp1388211+'"  flashvars="clickTag='+escape(failclickTag)+'" quality="high" bgcolor="#FFFFFF" width="160" height="600" name="ewfaildesign" align="middle" allowScriptAccess="always" wmode="opaque"  type="application/x-shockwave-flash" base="'+cp1388211+'" pluginspage="' + ew1388211_protocol + 'adobe.com/go/getflashplayer">'
	+'</object>';


//EYEWONDER FAILOVER
var failoverHTML1388211 = '<a href="http://www.eyewonderlabs.com/ct.cfm?ewbust=0&file=http://cdn.eyewonder.com/100125/adWdrDemos/1388211/failover.jpg&eid=1388211&name=Clickthru-failover&num=1&time=0&diff=0&click='+escape(failclickTag)+'" target="_blank"><img src="'+cp1388211+'failover.jpg" border="0"></a>';



var ew1388211_onLoadWasCalled = false; //Protects against multiple of the same execution being loaded in the same page

// ew_expand, ew_contract, ew_reset and ew_resize functionality doesn't exist for banner ads (still defined to prevent errors)
function ew_contract1388211() {}
function ew_expand1388211() {}
function ew_resize1388211(newWidth, newHeight, offsetX, offsetY) {}
function ew_reset1388211() {}

// The below method only works with AW8.2 and up, Flash 8+ due to technical reasons
function ew_onmouseout1388211()
{
	try {
	var swfTag = ew_getSWFTag1388211();
	if (typeof(swfTag) == "undefined" || swfTag == null)
		return;
	if (typeof(swfTag.ew_rolloff) != "undefined")
		swfTag.ew_rolloff();
	}
	catch(e)
	{}
}

var ew1388211_onLoadWasCalled = false; //Protects against multiple of the same execution being loaded in the same page

//appends flash ad div to the banner div (called on page load)
function ew_onLoad1388211() {

	if (typeof(ew1388211_onLoadWasCalled) != 'undefined' && ew1388211_onLoadWasCalled == true)
		return;
		
	ew1388211_onLoadWasCalled = true;	
		
	 

		try
		{
			document.getElementById('ew_BannerDiv1388211').innerHTML=flashHTMLonLoad1388211;
		}
		catch(e)
		{
			ew1388211_onLoadWasCalled = false;
			setTimeout(ew_onLoad1388211, 500);
			return;
		}

	
	if (ew1388211_isIFrame)
	{
		document.getElementById('ew_BannerDiv1388211').style.position = "absolute";
		document.getElementById('ew_BannerDiv1388211').style.top = "0px";
		document.getElementById('ew_BannerDiv1388211').style.left = "0px";
		try
		{
		if (parent.document.domain.indexOf("mail.live.com") != -1)
			frameElement.contentWindow.ew_onmouseout1388211 = ew_onmouseout1388211;
		}
		catch(e) {  }
	}
		
	flashHTMLonLoad1388211 += onLoadTracker1388211();

	 

	
	if ((inDapIF && inDapMgrIf) || ew1388211_isIFrame)
		document.close();
}







	/*** Begin include/sitespecific/msn:MSN_DAP_MAIN_COMMON ***/

		
function ew_delegate( functionName )
{
	var ew_args = new Array();
		
	for( var i = 1; i < arguments.length; i++ )
		ew_args[i-1] = arguments[i];
	try
	{
		return ew1388211_mainFunctionWindow[functionName].apply( ew1388211_mainFunctionWindow, ew_args );
	}
	catch (e)
	{
		ew1388211_errorObject = e;
		var dummy = setTimeout(ew_throwJSError1388211, 1);
		return null;
	}
}	


function ew1388211_MSNDAP_isWLM()
{
	try {
		if (parent.document.domain.indexOf("mail.live.com") != -1)
		{
			return true;
		}
	}
	catch(e) {}
	
	return false;
}
	
var ew1388211_MSNDAP_executionPath = "none";
function ew1388211_MSNDAP_weSupport()
{

	
	if(isIe && parent.document.readyState == 'complete') // page is already finished loading?
		ew_onLoad1388211();
	else
	{
		
		ew1388211_MSNDAP_executionPath = "none";	// For debugging purposes only
		try // Attempt to bust out of iframe
		{
			var ew_test_bustout = parent.document.body;
			ew1388211_MSNDAP_executionPath = "try";
		}
		catch(e)
		{
			if (window.addEventListener) parent.addEventListener("load",ew_onLoad1388211,false);
			else if (window.attachEvent) parent.attachEvent("onload",ew_onLoad1388211);
				ew1388211_MSNDAP_executionPath = "catch";
		}
		finally
		{
			ew_onLoad1388211();
			ew1388211_MSNDAP_executionPath = "finally";
		}
	}	
}



if (inDapMgrIf)
	document.writeln('<div id="MSNDAPADVANCED_MAIL_searchDiv" style="position: absolute; width: 1px; height: 1px; left: 0px; top: 0px;"></div>');	

function ew1388211_MSNDAPADVANCED_MAIL_Workaround_Firefox_Throbber()
{
	if (isGecko)
	{
		try{
			if (inDapIF && typeof(parent.ew_MSNDAP) == "undefined")	
			{
				parent.ew_MSNDAP = new Object();
			}

						
			parent.eval(ew_getEvalFunction1388211("firefoxClose"));		

		}
		catch(e)
		{
			if (typeof(parent.ew_MSNDAP.fc) != "undefined")	
				delete parent.ew_MSNDAP.fc;
			parent.ew_MSNDAP.caughtError = e;
			var dummy = setTimeout(ew1388211_MSNDAPADVANCED_MAIL_Workaround_Firefox_Throbber, 500);	
		}
	}
}





/*** End include/sitespecific/msn:MSN_DAP_MAIN_COMMON ***/
	

//SERVE THE APPROPRIATE FILE
if (ew1388211_weSupport) 
{
	document.writeln(flashHTML1388211);
	document.writeln(weSupportTracker1388211());	
	document.writeln(flashTracker1388211());

	if(!inDapIF)
	{
		if (!ew1388211_isIFrame)
		{
			if(isIe && document.readyState == 'complete') // page is already finished loading?
				ew_onLoad1388211();
			else
			{
				if (window.addEventListener) window.addEventListener("load",ew_onLoad1388211,false);
					else if (window.attachEvent) window.attachEvent("onload",ew_onLoad1388211);
					if (inFIF)
						window.setTimeout(ew_onLoad1388211, 2000); 
			}
		}
		else
		{
			window.setTimeout(ew_onLoad1388211, 3000); 
		}
	}	
	else
		ew1388211_MSNDAP_weSupport();
}
else { //serve failover
	
	 if(!ew1388211_turnOffExecution&&isFlashFailover&&false) {
		document.writeln(flashfailoverHTML1388211);
		document.writeln(flashfailoverTracker1388211());
	}
	else {
		document.writeln(failoverHTML1388211);
		if(!ew1388211_turnOffExecution)
			document.writeln(failoverTracker1388211());
		else
			document.writeln(failoverTurnOffExecutionTracker1388211());
	}
	// Reason for failover
	if (failReason == "browser")
		document.writeln(failoverReasonBrowserTracker1388211());
	else if (failReason == "flash")
		document.writeln(failoverReasonFlashTracker1388211());
}
	

