

//BASE URL
// From include/commonjsvars
var cp878509 = 'http://cdn.eyewonder.com/100125/750818/878509/';
		

//TRACKING VARIABLES
// From include/tracking	
	

var ew878509_startTime = ew_getTime878509();



var ew878509_imgArray = new Array();
var ew878509_imgArrayCounter = 0;
function ew_addImage878509(img)
{
	ew878509_imgArray[ew878509_imgArrayCounter] = new Image();
	ew878509_imgArray[ew878509_imgArrayCounter].src = img;
	ew878509_imgArrayCounter++;
}

function ew878509_otrk(img, extra)
{
	return '<div style="position:absolute;top:0x;left:0px;z-index:0"><img src="'+cp878509+img+'?noCache='+new Date().getTime()+''+extra+'" border="0" width="1" height="1"></div>';
}

function ew878509_ctrk(type, info)
{ 
    var img = 'http://cdn.eyewonder.com/100125/trk1.gif?sys=cdn'
		+ '&id=878509&type='+type
		+ '&info='+info+'&nocache='+new Date().getTime();
	ew_addImage878509(img);
}


function ew_getTime878509() { var ew_t = new Date(); return ew_t.getTime();}



function onLoadTracker878509() { var ew_t = ew_getTime878509()-ew878509_startTime; ew878509_ctrk('onload',ew_t); return ew878509_otrk('ewtrack_onload.gif','&info='+ew_t); }
function flashTracker878509() { ew878509_ctrk('creative',''); return ew878509_otrk('ewtrack_v.gif',''); }
	
function impressionTracker878509() { ew878509_ctrk('impression',''); return ew878509_otrk('ewtrack.gif',''); }
function flashfailoverTracker878509() { ew878509_ctrk('failover_flash',''); return ew878509_otrk('ewtrack_ff.gif',''); }
function failoverTracker878509() {  ew878509_ctrk('failover_img',''); return ew878509_otrk('ewtrack_f.gif',''); }
function failoverReasonBrowserTracker878509() {  ew878509_ctrk('fail_reason_browser',''); return ew878509_otrk('ewtrack_rb.gif',''); }
function failoverReasonFlashTracker878509() { ew878509_ctrk('fail_reason_flash',''); return ew878509_otrk('ewtrack_rf.gif',''); }
function flashSupportTracker878509(verStr) { ew878509_ctrk('flash_support_'+verStr,''); return ew878509_otrk('ewtrack_'+verStr+'.gif',''); }
function weSupportTracker878509() { var ew_t = ew_getTime878509()-ew878509_startTime; ew878509_ctrk('wesupport',ew_t); return ew878509_otrk('ewtrack_wesupport.gif','&info='+ew_t); }


// Expiration count versions of the _f, _ff, and _v trackers for AIM and ICQ cookie versions
function flashTrackerCache878509(expCount) { ew878509_ctrk('creative_aim_exposure',expCount); return ew878509_otrk('ewtrack_v'+expCount+'.gif',''); }
function flashfailoverTrackerCache878509(expCount) { ew878509_ctrk('failover_flash_aim_exposure',expCount); return ew878509_otrk('ewtrack_ff'+expCount+'.gif',''); }
function failoverTrackerCache878509(expCount) {  ew878509_ctrk('failover_img_aim_exposure',expCount); return ew878509_otrk('ewtrack_f'+expCount+'.gif',''); }


// Send out the current location
function ew_urlTracker()
{
	var currentURL;
	if (typeof(ew_isIFrame) != "undefined" && ew_isIFrame==true)
		currentURL = escape(document.referrer);
	else
		currentURL = escape(window.location.toString());
	ew878509_ctrk('url',currentURL);
	return ew878509_otrk('ewtrack_url.gif','&id=878509&url='+currentURL);
}


document.writeln(impressionTracker878509());

// Log the URL for troubleshooting purposes
document.writeln(ew_urlTracker());



//DESIGN VARIABLES
var ew_adFile_Proxy = cp878509+"exp_TestAndShow.html";

if (typeof(ew_disableIFrameDetection) == "undefined" || ew_disableIFrameDetection != true)
{
var ew_isIFrame = (window!=top); //determine if served in iframe or not
		
} 
else
{
var ew_isIFrame = false;
var ew_interimFile = "";
}

	



if(typeof(inDapIF) == "undefined") // Added to not throw undefined errors if it's not defined.
    var inDapIF = false;  
if(inDapIF)
    ew_isIFrame = false;
		    
var ew878509_DynIF;
	
// From include/commonjsvars
	
	var ew878509_bannerWidth = 300;
	var ew878509_bannerHeight = 250;
	var ew878509_fullWidth = 500;
	var ew878509_fullHeight = 250;
	
	
	
if (ew_isIFrame)
{

	var ew878509_iFrameQueryStringExtra = "";
}

if (ew_isIFrame)
{
	var ew_containsHTTP = (( ew_interimFile.indexOf("http://") > -1 ) || 
				( ew_interimFile.indexOf("https://") > -1 ));
	if (!ew_containsHTTP)
	{	
		var ref = document.referrer;
		var host='';
		if(ref == '') {
			host = 'http://'+document.domain; 
		}
		else {
			var pos1 = ref.indexOf("://");
			if (pos1 != -1) {
				pos2 = ref.indexOf("/", pos1+3);
				host = ref.substring(0, pos2);
			}
		}
	
		if(ew_interimFile.indexOf('/')==0) {
			ew_interimFile = host+ew_interimFile; 
		}
		else {
			ew_interimFile = host+'/'+ew_interimFile;
		}

	}
}

//AUTHENTICATION
// From include/authentication
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 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 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 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 (isSafari)
{
    webkitVersion = parseInt(ua.substr(ua.indexOf('applewebkit')+12,4));

}
var weSupport = false;
var failReason = "browser";	// Reason we failed over

var plugin = false;	// Flash 7 or up
var isFlash8up = false;
var isFlash9up = false;
var isFlashFailover = false;	// Flash 6

// Check Flash info

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	plugin = (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin);

if (plugin)
{
	plugin = navigator.plugins["Shockwave Flash"];
	var ver = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1));
	isFlash9up = (ver>=9);
	isFlash8up = (ver>=8);
	plugin = (ver>=7);
	isFlashFailover = (ver>=6);
}
else if(isIe && isWin)
{
	document.writeln('<SCR'+'IPT LANGUAGE="VBScript"\>'); // Hide this from IE4.5 Mac by splitting the tag
	document.writeln('On Error Resume Next');
	document.writeln('isFlash9up=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))');
	document.writeln('isFlash8up=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))');
	document.writeln('plugin=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))');
	document.writeln('isFlashFailover=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))');
	document.writeln('</SCR'+'IPT\>');
	
	if (isFlash8up){
		var swf = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.8").GetVariable("$version");
		var ver = parseInt(swf.substring(swf.indexOf(",")-1));
		isFlash8up = (ver>=8);
	}

}
else
	plugin = false;

	
	
// Do a an exclusive check for support to protect page contents for rare and untested browsers
if(isGecko || isSafari || (isIe && isWin && ieVersion >= 5.5) || (isOpera && operaVersion >= 7)) 
{
	// Support Mozilla-based browsers (i.e. Firefox), Safari Mac, 
	// and IE browsers (IE 5.5+/Win and AOL Explorer), and Opera > 7
	failReason = "none";
	weSupport = true;

	// Do we support Flash 7?
	if (!plugin)
	{
		weSupport = false;
		failReason = "flash";
	}
}
else
{
	// Still attempt a flash failover if browser isn't supported
	failReason = "browser"
	weSupport = false;
}




if (isFlash8up)
	document.writeln(flashSupportTracker878509("8"));

if (isFlash9up)
	document.writeln(flashSupportTracker878509("9"));

	


// We support expandables in Opera 8+ for JS ads & Opera 9+ for Iframe Ads
if (isOpera)
{
	failReason = "browser";
	weSupport = false;
	if ((operaVersion >= 8 && !ew_isIFrame) || (operaVersion >= 9))
	{
		weSupport = true;
		failReason = "none";
	}
}
// Flash doesn't currently honor clipping on *nix browsers (Q1 2006)
if (!isWin && !isMac)
{
    failReason = "flash";
    weSupport = false;
}


//CUSTOM FUNCTIONS
// Cover both basis since variables were named both prescinfo and prescInfo in clicktags on different trafficked tags
if (typeof(prescInfo) == "undefined" && typeof(prescinfo) != "undefined")
{
	var ew878509_flashvarsExtra = "&prescInfo=" + escape(prescinfo);
	var prescInfo = prescinfo;
}
else if (typeof(prescinfo) == "undefined" && typeof(prescInfo) != "undefined")
{
	var ew878509_flashvarsExtra = "&prescinfo=" + escape(prescInfo);
	var prescinfo = prescInfo;
}

// FLASH
var ew878509_flvNames = "Viagra_Pullback_Intro_300x225_v2,Viagra_Pullback_Guys_300x225_v2,Viagra_Pullback_Question_1_300x225,Viagra_Pullback_Question_2_300x225_v2,Viagra_Pullback_Question_3_300x225,Viagra_Pullback_Recap_300x225,Viagra_Pullback_Intro_Talking_500x195,Viagra_Pullback_Testimonial_1_Tom_L_255x191,Viagra_Pullback_500x195_Return_2,Viagra_Pullback_Testimonial_2_Mark_255x191,Viagra_Pullback_500x195_Return_1,Viagra_Pullback_Testimonial_3_Tom_C_255x191,Viagra_Pullback_500x195_Return_3,Viagra_Pullback_Intro_Standing_500x195";
var ew878509_creativeName = "300x250_pullbackXP_main_v1_fl7.swf";
var ew878509_swfVersion = 7;



if (isFlash8up)
    ew878509_swfVersion = 8;

function ew_getfNames()
{
	var flvvideos = new String("Viagra_Pullback_Intro_300x225_v2,Viagra_Pullback_Guys_300x225_v2,Viagra_Pullback_Question_1_300x225,Viagra_Pullback_Question_2_300x225_v2,Viagra_Pullback_Question_3_300x225,Viagra_Pullback_Recap_300x225,Viagra_Pullback_Intro_Talking_500x195,Viagra_Pullback_Testimonial_1_Tom_L_255x191,Viagra_Pullback_500x195_Return_2,Viagra_Pullback_Testimonial_2_Mark_255x191,Viagra_Pullback_500x195_Return_1,Viagra_Pullback_Testimonial_3_Tom_C_255x191,Viagra_Pullback_500x195_Return_3,Viagra_Pullback_Intro_Standing_500x195").split(',');
	var flashBool = new String("true,true,true,true,true,true,true,true,true,true,true,true,true,true").split(',');
	ew878509_creativeName = "300x250_pullbackXP_main_v1_fl8.swf";
	
	for(var i = 0; i < flashBool.length; i++)
	{
		if(flashBool[i] == "true")
			flvvideos[i] = "fl8_" + flvvideos[i];

	}
	
	ew878509_flvNames = flvvideos.join(",");

}

if (isFlash8up)
	ew_getfNames();





var ew878509_adMode = "prog";
var ew878509_videoPath = "http://cdn.eyewonder.com/100125/video/";




var ew878509_videoID = '2997,2996,2912,3000,2914,2911,2947,2923,2949,2918,2948,2920,2950,2952';



if (typeof(isIFrameContent) != "undefined" && isIFrameContent)
	ew_qaReportUUID = topWin.ew_qaReportUUID;
	
if (typeof(ew_qaReportUUID)=="undefined")
	ew_qaReportUUID = "common";
	



var ewclicktags878509 = ''
	+ '&clickTag1='+escape(clickTag1)
	+ '&visitSite='+escape(visitSite)
	+ '&getInfo='+escape(getInfo)
	+ '&prescinfo='+escape(prescinfo)
	+ '&findDoctors='+escape(findDoctors);
	

if( typeof( ew878509_flashvarsExtra ) == "undefined" )
	var ew878509_flashvarsExtra = "";


var ewflashvars878509 = 'ewbase='+cp878509
	+ '&bwfile=bwtest.swf'
	+ '&creative=' + ew878509_creativeName
	+ '&vLength=30,39,22.3,19.1,21,19.1,13,114.5,23,134.5,15,111.6,22,16'
	+ '&bw=56,90,135,300,450,600'
	+ '&buf=5,4,3,2,2,2'
	+ '&flv=' + ew878509_flvNames
	+ '&flvId=0'
	+ '&aInit='+'user'
	+ '&vInit=host'
	+ '&videoID='+ew878509_videoID
	+ '&videoPath='+ew878509_videoPath
	+ '&adId=878509'
	+ '&adMode=' + ew878509_adMode
	+ '&trkUrl=http://cdn.eyewonder.com/100125/'
	+ '&swfVersion=' + ew878509_swfVersion
	+ '&qaReportUUID=' + ew_qaReportUUID
	+ ew878509_flashvarsExtra
	+ ewclicktags878509;


	


//EXPAND FUNCTIONS
var ew878509_isOverflowHidden = false;

var ew_maxZIndex = 2147483647;	



        var ew878509_minZIndex = 10000;
    


var ew878509_saveZIndex;

function ew_checkOverflowHidden878509() 
{
 		
 	var tempNode = document.getElementById("ew_BannerDiv878509").parentNode;
	
	while (tempNode!=null && (tempNode.tagName != "BODY"))
	{
		var computedOverflow;
		if (isIe)
			computedOverflow = tempNode.currentStyle.overflow;
		else
			computedOverflow = document.defaultView.getComputedStyle(tempNode,"").getPropertyValue("overflow");
		if (computedOverflow == "hidden")
			return true;
		 tempNode = tempNode.parentNode;
	}
	
	return false;
}



function ew_modifyOverflow878509()
{
	   
	var tempNode = document.getElementById("ew_BannerDiv878509").parentNode;
	   
	if (isGecko)	// This workaround doesn't work yet in IE 5.5 and Safari 1.3
	{
		while (tempNode!=null && (tempNode.tagName != "BODY"))
		{
			var computedDisplay;
			if (isIe)
				computedDisplay = tempNode.currentStyle.display;
			else
				computedDisplay = document.defaultView.getComputedStyle(tempNode,"").getPropertyValue("display");
			if ((computedDisplay == "block") || (computedDisplay == "table-cell"))
			{
				var computedOverflow;
				if (isIe)
					computedOverflow = tempNode.currentStyle.overflow;
				else
					computedOverflow = document.defaultView.getComputedStyle(tempNode,"").getPropertyValue("overflow");
				if (computedOverflow == "hidden")
				{
					// Change overflow
					tempNode.style.overflow="visible";
				}
			}
			tempNode=tempNode.parentNode;
   		}
	}
}


function ew_modifyZIndex878509()
{
	
    if (isIe)
    {
		var count = 0;
		var tempElement = document.getElementById("ew_BannerDiv878509").parentElement; 
		// Safari also handles parentElement DOM object, unfortunately
		if (tempElement!=null) 
		{
		      // ew878509_saveZIndex is used to save the z-indexes before they are changed
			ew878509_saveZIndex = new Array();
			while (tempElement!=null && tempElement.tagName != "BODY")
			{
				computedDisplay = tempElement.currentStyle.display;
				if ((computedDisplay == "block") || (computedDisplay == "table-cell"))
				{
					if (tempElement.currentStyle.zIndex==0)
					{
						// Save the z-index here
						var tempPair=new Array(2);
						tempPair[0] = tempElement;
						tempPair[1] = tempElement.currentStyle.zIndex;
						ew878509_saveZIndex[count] = tempPair;
						count++;
						// Now change it
						tempElement.style.zIndex=1;
					}
				}
				tempElement=tempElement.parentElement;
			}
		}

	}
}

function ew_restoreZIndex878509()
{

	// IE6/5.5 restore the values saved in ew_expand
	if (ew878509_saveZIndex != null)
	{
		// restore the backed up zIndex values
		for (i = 0; i < ew878509_saveZIndex.length; i++)
		{
			var tempPair = ew878509_saveZIndex[i];
			var tempElement = tempPair[0];
			var tempZIndex = tempPair[1];
			//alert("resetting z-index to " + tempZIndex);
			if (tempElement != null)	// Is the element still on the page?
			{
				tempElement.style.zIndex = tempZIndex;
			}
		}

		ew878509_saveZIndex = null;	// delete the array
	}
}

function ew_contract878509()
{
	ew_reset878509();
		
	if (isIe)
		ew_restoreZIndex878509();
				
	if(isIe)
		document.getElementById('ew_shim878509').style.clip = "rect(0px 500px 250px 200px)";
	document.getElementById('ew_FlashDiv878509').style.clip = "rect(0px 500px 250px 200px)";
    
}

function ew_expand878509()
{
	ew_reset878509();
	
	if (isIe)
		ew_modifyZIndex878509();

	if(isIe)
		document.getElementById('ew_shim878509').style.clip = "rect(0px 500px 250px 0px)";	
	document.getElementById('ew_FlashDiv878509').style.clip = "rect(0px 500px 250px 0px)";
	document.getElementById('trackingImage878509').src = cp878509+'ewtrack_m.gif?noCache='+new Date().getTime();
    
}





function ew_reset878509()
{
	ew_changeHeight878509(250);
}

function ew_onmouseout878509()
{
	ew_changeHeight878509(251);
}

var ew878509_embed;
var ew878509_ewad;

function ew_changeHeight878509(newHeight)
{
	// Define variables only once to speed up execution
	if (typeof(ew878509_ewad) == "undefined")
	{
		ew878509_ewad = document.getElementById("ewad878509");
		if (isGecko || isOpera)
		{
			ew878509_embed = ew878509_ewad.firstChild;
			while (ew878509_embed.nodeName != "EMBED")
				ew878509_embed = ew878509_embed.nextSibling;
		}
	}


	if (isIe || isSafari)
	{
		ew878509_ewad.style.height=newHeight + "px";
	}

	if (isGecko || isOpera)
	{
		var ew878509_embed = ew878509_ewad.firstChild;
		while (ew878509_embed.nodeName != "EMBED")
			ew878509_embed = ew878509_embed.nextSibling;
		ew878509_embed.height = newHeight;
		ew878509_embed.style.height = newHeight + "px";
	}
}




var flashHTML878509='<div id="ew_BannerDiv878509" style="visibility: visible; position: relative; width:300px; height:250px; z-index: ' + ew878509_minZIndex + '">'

		+'<img src="'+cp878509+'preloader.gif" border="0">'
	
	+'</div>';

//EYEWONDER FLASH OBJECT
var flashHTMLonLoad878509='<div id="ew_FlashDiv878509" onmouseout="ew_onmouseout878509()" style="visibility: visible; position: absolute; top: -0px; left: -200px; width:500px; height:250px; clip: rect(0px 500px 250px 200px); z-index: ' + (ew878509_minZIndex+2) + '">'
	+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="500" height="250" id="ewad878509" align="middle">'
	+'<param name="allowScriptAccess" value="always">'
	+'<param name="movie" value="'+cp878509+ew878509_creativeName+'">'
	+'<param name="quality" value="high">'
	+'<param name="bgcolor" value="#FFFFFF">'
	+'<param name="base" value="'+cp878509+'">'
	+'<param name="wmode" value="transparent">'
	+'<param name="FlashVars" value="'+ewflashvars878509+'" >'
	+'<embed src="'+cp878509+ew878509_creativeName+'" base="'+cp878509+'" wmode="transparent" quality="high" bgcolor="#FFFFFF" width="500" height="250" name="ewad878509" FlashVars="'+ewflashvars878509+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+'</object>'
	+'</div>'
	+'<div style="position:absolute;top:0px;left:0px;z-index:0"><img src="'+cp878509+'dot.gif" id="trackingImage878509" width="1" height="1" border="0"></div>';

if(isIe)
	flashHTMLonLoad878509 +='<iframe id="ew_shim878509" src="about:blank" noresize="true" scrolling="no" display="none" frameborder=0 marginheight=0 marginwidth=0 style="filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);visibility: visible;position:absolute;top: -0px; left: -200px; width:500px; height:250px;clip: rect(0px 500px 250px 200px);z-index: ' + ew878509_minZIndex + '"></iframe>';


//EYEWONDER FLASH FAILOVER OBJECT
var flashfailoverHTML878509 ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="300" height="250" id="ewfailad878509" align="middle">'
	+'<param name="allowScriptAccess" value="always">'
	+'<param name="movie" value="'+cp878509+'">'
	+'<param name="quality" value="high">'
	+'<param name="bgcolor" value="#FFFFFF">'
	+'<param name="FlashVars" value="clickTag='+escape(failclickTag)+'" >'
	+'<embed src="'+cp878509+'" quality="high" bgcolor="#FFFFFF" width="300" height="250" name="ewfaildesign" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" base="'+cp878509+'" pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+'</object>';

//EYEWONDER FAILOVER
var failoverHTML878509 = '<a href="http://www.eyewonderlabs.com/ct.cfm?noCache=0&file=http://cdn.eyewonder.com/100125/750818/878509/failover.jpg&eid=878509&name=Clickthru-failover&num=1&time=0&diff=0&click='+escape(failclickTag)+'" target="_blank"><img src="'+cp878509+'failover.jpg" border="0"></a>';

//IFRAME HTML (if ad served in IFrame)
if(ew_isIFrame) { 
	var attributesExtra = "";
	var styleExtra = "";

	if (isIe)
		attributesExtra = 'allowtransparency="true"';
	var iframeHTML878509 = '<iframe id="ew_expAd" border="0"  width="1" height="1" noresize'
	+ ' style="position: absolute; top: 0px; left: 0px; ' + styleExtra + '" ' + attributesExtra
	+ ' scrolling="No" frameborder="0" marginheight="0" marginwidth="0" src="'
	+ ew_interimFile+'?url='+cp878509+'exp_Inc.js'
	+ '?interim='+escape(ew_interimFile)
		+ '&clickTag1='+escape(clickTag1)
				+ '&visitSite='+escape(visitSite)
				+ '&getInfo='+escape(getInfo)
				+ '&prescinfo='+escape(prescinfo)
				+ '&findDoctors='+escape(findDoctors)
				+ '&failclickTag='+escape(failclickTag)

	+ '&iframeURL='+escape(document.URL)
	+ '&cp='+escape(cp878509)
	+ '&extra='+escape(ew878509_iFrameQueryStringExtra)
	+ '&stime='+escape(ew878509_startTime)
	+ '"></iframe>';
}

// MSN DYNAMIC IFRAME SUPPORT

function ew878509_GetDynIframe()
{
	var iframes = parent.document.getElementsByTagName("iframe");

    var iframe;
        
    for(var i = 0; i < iframes.length; i++)
    {
      if(!isSafari && window == iframes[i].contentWindow)
         iframe = iframes[i];
      else if(iframes[i].contentDocument == window.document)
          iframe = iframes[i];
    }
    
    ew878509_DynIF = iframe;
	
	var parentnode = iframe.parentNode;
	var nextchild = iframe.nextChild;
    
    var posX = -200;
	 var posY = -0;
    
    posX += parseInt(findPosX(iframe), 10);
    posY += parseInt(findPosY(iframe), 10);
	
	parent.document.body.appendChild( iframe );
    
    var filler = parent.document.createElement("DIV");
    filler.style.width = 300 + "px";
    filler.style.height = 250 + "px";
    
    document.body.style.backgroundColor = "transparent";
    
    parentnode.appendChild( filler );
    
    if (nextchild == null)
        parentnode.appendChild(filler);
    else
        parentnode.insertBefore(nextchild, filler);
    
    iframe.setAttribute("allowTransparency", "true");
    iframe.setAttribute("background-color", "transparent");
    
    
    iframe.style.position = "absolute";
    iframe.style.left = posX + "px";
    iframe.style.top = posY + "px";
    ew878509_DynIF.style.width = 500 + "px";
    ew878509_DynIF.style.height = 250 + "px";
	
	document.getElementById('ew_BannerDiv878509').style.position = "relative";
	document.getElementById('ew_BannerDiv878509').style.left = 200 + "px";
	document.getElementById('ew_BannerDiv878509').style.top = 0 + "px";
    

}

function findPosX(obj) {
	var curleft = obj.offsetLeft;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			obj = obj.offsetParent;
			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;
			curtop += obj.offsetTop;			
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}


var ew878509_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_onLoad878509() {

	flashHTMLonLoad878509 += onLoadTracker878509();
	
	if (ew878509_onLoadWasCalled == true)
		return;
	
	ew878509_onLoadWasCalled = true;

    if(inDapIF && weSupport)
        ew878509_GetDynIframe();

	if (isGecko && geckoRevisionMajor < 1)	// ew_CheckOverflowHidden doesn't work in Mozilla < 1.0
	{
		failReason = "browser"
		weSupport = false;
	}
	/* document.write is asynchronous, so the div has to be written before we can do
		document.getElementById in ew_checkOverflowHidden#### */
	if (weSupport)
		ew878509_isOverflowHidden = ew_checkOverflowHidden878509();
	// We don't support expandables when overflow:hidden is set on anything but Gecko
	// browsers (Mozilla >= 1.0 and Firefox, etc) and IE >= 6.0
	if (ew878509_isOverflowHidden && !(isGecko  || (isIe && (ieVersion >= 6.0)) || (isOpera && (operaVersion >= 8))))
	{
		failReason = "browser"
		weSupport = false;
	}
	if (weSupport)	// Do we still support the expandable?
	{
		if (ew878509_isOverflowHidden == true)	
			ew_modifyOverflow878509();
		// Note: Don't do two innerHTML statements or IE will give an error when hovering
		document.getElementById('ew_BannerDiv878509').innerHTML+=flashHTMLonLoad878509;
        
        
        if (isCamino)
            document.getElementById('ew_BannerDiv878509').addEventListener("mouseout",ew_onmouseout3074,true);
	}
	else
	{
		var failReasonTracker = "";
		// Reason for failover
		if (failReason == "browser")
			failReasonTracker = failoverReasonBrowserTracker878509();
		else if (failReason == "flash")
			failReasonTracker = failoverReasonFlashTracker878509();
		// Replace, don't append innerHTML (innerHTML= not innerHTML+=) to write out failovers because they are inline content
		if(isFlashFailover&&false) 
		{
			document.getElementById('ew_BannerDiv878509').innerHTML=flashfailoverHTML878509+flashfailoverTracker878509()+failReasonTracker;
		}
		else 
		{
			document.getElementById('ew_BannerDiv878509').innerHTML=failoverHTML878509+failoverTracker878509()+failReasonTracker;
		}
	}		
}
	
//SERVE THE APPROPRIATE FILE
if (weSupport) {
	document.writeln(weSupportTracker878509());
	if(ew_isIFrame) { 
		//serve the IFrame ad
		document.writeln(flashHTML878509);
		document.writeln(iframeHTML878509);
	}
	else {
		if(inDapIF)
		{
			if (window.addEventListener) parent.addEventListener("load",ew_onLoad878509,false);
			else if (window.attachEvent) parent.attachEvent("onload",ew_onLoad878509);
		}
		else
		{
			if (window.addEventListener) window.addEventListener("load",ew_onLoad878509,false);
			else if (window.attachEvent) window.attachEvent("onload",ew_onLoad878509);
		}
		document.writeln(flashHTML878509);
		document.writeln(flashTracker878509());
	}
}
else { //serve failover
	
	if(isFlashFailover&&false) {
		document.writeln(flashfailoverHTML878509);
		document.writeln(flashfailoverTracker878509());
	}
	else {
		document.writeln(failoverHTML878509);
		document.writeln(failoverTracker878509());
	}
	// Reason for failover
	if (failReason == "browser")
		document.writeln(failoverReasonBrowserTracker878509());
	else if (failReason == "flash")
		document.writeln(failoverReasonFlashTracker878509());
}



