/* Generated: 05/23/2008  01:47 PM EST. EW Web Code Version: 11.8.0 */


//TRACKING VARIABLES

var cp975759 = "http://cdn1.eyewonder.com/200125/adWdrDemos/2842629/";

var ew975759_startTime = ew_getTime975759();

var ew_cacheBuster = new Date().getTime(); 
var ew_cacheBusterReplaceArray = new Array("\\[timestamp\\]", "\\[cachebuster\\]", "\\[random\\]", "\\[randnum\\]"); 	

var ew975759_imgArray = new Array();
var ew975759_imgArrayCounter = 0;

function ew_addImage975759(img)
{
	ew975759_imgArray[ew975759_imgArrayCounter] = document.createElement("img");
	ew975759_imgArray[ew975759_imgArrayCounter].setAttribute("src", img);
	ew975759_imgArrayCounter++;
}

function ew975759_otrk(img, extra)
{
	ew_addImage975759(cp975759+img+'?ewbust='+new Date().getTime()+extra);
	return '';
}

function ew975759_otrk_nobust(img, extra)
{
	ew_addImage975759(cp975759+img+'?ewbust=0'+extra);
	return '';
}


function ew_thirdpartytrackingcachebust975759(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_getTime975759() { var ew_t = new Date(); return ew_t.getTime();}

function onLoadTracker975759() { var ew_t = ew_getTime975759()-ew975759_startTime;  return ew975759_otrk('ewtrack_onload.gif','&info='+ew_t); }
function flashTracker975759() {  return ew975759_otrk('ewtrack_v.gif',''); }
	
function impressionTracker975759() {  return ew975759_otrk('ewtrack.gif',''); }

function failoverTracker975759() {   return ew975759_otrk('ewtrack_f.gif',''); }

function failoverReasonBrowserTracker975759() {  return ew975759_otrk('ewtrack_rb.gif',''); }
function failoverReasonFlashTracker975759() {  return ew975759_otrk('ewtrack_rf.gif',''); }
function flashSupportTracker975759(verStr) {  return ew975759_otrk('ewtrack_'+verStr+'.gif',''); }
function weSupportTracker975759() { var ew_t = ew_getTime975759()-ew975759_startTime;  return ew975759_otrk('ewtrack_wesupport.gif','&info='+ew_t); }

function flashTrackerCache975759(expCount) {  return ew975759_otrk('ewtrack_v'+expCount+'.gif',''); }
function failoverTrackerCache975759(expCount) {  return ew975759_otrk('ewtrack_f'+expCount+'.gif',''); }

function ew975759_outOfBandTrackRequest(url)
{
	ew_addImage975759(url);
}

document.writeln(impressionTracker975759());	

//Third Party Impression Tracking
function ew_thirdpartytracking975759()
{
	for (var i = 0; i < ew975759_thirdPartyTrackers.length ; i++)
	{
		if (ew975759_thirdPartyTrackers[i] != "")
		ew_addImage975759(ew_thirdpartytrackingcachebust975759(ew975759_thirdPartyTrackers[i]));
	}
}

var ew975759_thirdPartyTrackers = new Array("","","","","","");

ew_thirdpartytracking975759();

//COMMON VARIABLES

var ew975759_bannerWidth = 300;
var ew975759_bannerHeight = 250;
var ew975759_fullWidth = 300;
var ew975759_fullHeight = 250;

function ew_getProtocol(cp) 
{
	if (cp.indexOf("https://") != -1)
		return "https://";
	else
		return "http://";
}
var ew975759_protocol = ew_getProtocol("http://cdn1.eyewonder.com/200125/adWdrDemos/2842629/");

function parseParam(name) {
	try {
	 	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; }
	} catch(e) { return null; }
}

if (parseParam("ew_pubVars") != null)
	var ew_pubVars = parseParam("ew_pubVars");
if (parseParam("ew_clickPrepend") != null)
{
	var clickTagFramePrepend = parseParam("ew_clickPrepend") + "[ewclickthru]";

	if (clickTagFramePrepend == "%%C%%?[ewclickthru]") 
		clickTagFramePrepend = "[ewclickthru]";
}

//RESEARCH TAGS

//DESIGN VARIABLES

if (typeof(clickTagFramePrepend975759) != 'undefined')
	clickTagFramePrepend = clickTagFramePrepend975759;

if (typeof(clickTagFramePrepend) == "undefined")
	var clickTagFramePrepend = "[ewclickthru]";
clickTagFramePrepend = clickTagFramePrepend.replace("[%ewclickthru%]", "[ewclickthru]"); 

if (clickTagFramePrepend == "%%C%%?[ewclickthru]") 
	clickTagFramePrepend = "[ewclickthru]";

var ew_mpUsedClickthruMagic = false;

if (ew_mpUsedClickthruMagic == false)
{

}

function ew_clickTagCacheBust(_ct) 
{
if (typeof(_ct)=='undefined') return '';
	
	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;
}

if (typeof(failclickTag) == "undefined")
	var failclickTag = "";

//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 isWinVista = false;
var isLinux = (ua.indexOf('linux') >= 0);
var isMac = (ua.indexOf('mac') >= 0);
var isOpera = (ua.indexOf('opera') > 0);
if (isOpera) isIe = false;
var ew_isSafari = (ua.indexOf('applewebkit') > 0);
var isKonqueror = (ua.indexOf('konqueror')>0);
var isGecko = (ua.indexOf('gecko/') > 0);
var isCamino = (ua.indexOf('camino/') > 0);
if(isWin) isWinVista = (ua.indexOf('windows nt 6.0') >= 0);
var ew975759_operatingSystem = "other";
if (isMac) ew975759_operatingSystem = "mac";
if (isLinux) ew975759_operatingSystem = "linux";
if (isWin) ew975759_operatingSystem = "windows";
if (isWinVista) ew975759_operatingSystem = "winvista";
var geckoDate;
var geckoRevisionString;
var geckoRevision;
var geckoRevisionMajor;
var geckoRevisionMinor;
var ew975759_browserEngineVersion = "-1";

var webkitVersion;
if (isGecko)
{
	function ew_getGeckoRevisionString(ua)
	{
		var tempStr = ua.split("rv:");
		return tempStr[1].split(")")[0];
	}
	geckoRevisionString = ew_getGeckoRevisionString(ua);
	ew975759_browserEngineVersion = geckoRevisionString;
	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);
	ew975759_browserEngineVersion = ieVersion.toString();
}
var operaVersion;
if (isOpera)
{
	operaVersion = ua.substr(ua.indexOf('opera')+6,4);
	ew975759_browserEngineVersion = operaVersion.toString();
}
if (ew_isSafari)
{
    webkitVersion = parseInt(ua.substr(ua.indexOf('applewebkit')+12,4));
	ew975759_browserEngineVersion = webkitVersion.toString();
}
	
var ew975759_weSupport = false;
var failReason = "browser";
 
var isFlash7up = false;	
var isFlash8up = false; 
var isFlash9up = false; 
var isFlashFailover = false; 
var isFlash9Pre28 = false;	
var ew975759_flashVersion = new Array(0,0,0);
var ew975759_flashVersionMajor = 0;
var ew975759_flashVersionMinor = 0;

function ew975759_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(" "));
			ew975759_flashVersion = ver.split(",");
		} catch ( e )
		{
			ew975759_flashVersion = new Array(0,0,0);
		}
	} else if (isGecko || isOpera || ew_isSafari || isKonqueror)
	{
		ver = new Array();
		var desc = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin.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]; 
		if( ver[0] >= 7 ) ew975759_flashVersion = ver;
	}

	ew975759_flashVersionMajor = ew975759_flashVersion[0] + "." + ew975759_flashVersion[1];
	ew975759_flashVersionMinor = ew975759_flashVersion[2];
}

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	var navPlugin = (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin);

if (navPlugin || (isIe && isWin))
{
	ew975759_getFlashVersion();
	isFlash9up = (ew975759_flashVersionMajor>=9);
	isFlash8up = (ew975759_flashVersionMajor>=8);
	isFlash7up = (ew975759_flashVersionMajor>=7);
	isFlashFailover = (ew975759_flashVersionMajor>=6);
	isFlash9Pre28 = (ew975759_flashVersionMajor == 9 && ew975759_flashVersionMinor < 28);

	if( isWinVista && isFlash9up && isFlash9Pre28 && isIe) 
	{ 
		ew975759_weSupport = false;
		failReason = "flash";
	}
}
else
	isFlash7up = false;

if(isGecko || ew_isSafari || isKonqueror || (isIe && isWin && ieVersion >= 6) || (isOpera && operaVersion >= 8)) 
{ 
	failReason = "none";
	ew975759_weSupport = true;
	if (!isFlash7up) 
	{
		ew975759_weSupport = false;
		failReason = "flash";
	}
}
else
{ 
	failReason = "browser";
	ew975759_weSupport = false;
}

if (ew_isSafari)
{
	if (webkitVersion < 400)
	{
		ew975759_weSupport = false;
		failReason = "browser";
	}
}

var ew975759_turnOffExecution = false;

if (!ew975759_turnOffExecution && isFlash8up)
	document.writeln(flashSupportTracker975759("8"));

if (!ew975759_turnOffExecution && isFlash9up)
	document.writeln(flashSupportTracker975759("9"));

if (!ew975759_turnOffExecution && isFlash9up && (isFlash9Pre28==false))
	document.writeln(flashSupportTracker975759("9_0_28_0"));
	
var ew975759_inFIF = false;

var inDapIF = false;

var ew975759_isLeaderboard=false;
var ew975759_isSkyscraper=false;
var ew975759_isRectangle=true;

var ew_isIFrame = false;
if (window!=top && window!=parent)
{
var ew975759_tagName = "";
	try { ew975759_tagName = frameElement.tagName; }
	catch(e) { ew_isIFrame = true; }
	if (ew975759_tagName.toUpperCase()=="IFRAME") ew_isIFrame = true;
}

var ew975759_forceLoad = false;
var ew975759_afterLoadTimer = 1500;
if (isLinux && isFlash8up) ew975759_weSupport = true;
var centerTag1=""; var centerTag2="";
if (typeof(ew975759_positionCorrect) == 'undefined' || ew975759_positionCorrect == null)
	var ew975759_positionCorrect = "";

//CUSTOM FUNCTIONS

weSupport = ew975759_weSupport; 
ew975759_turnOffExecutionBackup = ew975759_turnOffExecution; 

var ew975759_localConnectionUUID;
function ew_setUpLocalConnectionUUID975759()
{
	var ewwin;
	if ( typeof(topWin) == "undefined")
		ewwin = window;
	else
		ewwin = topWin;

	if ( typeof( ewwin.ew_localConnectionUUID ) == "undefined")
		ewwin.ew_localConnectionUUID = (new Date().getTime());

	ew975759_localConnectionUUID = ewwin.ew_localConnectionUUID;
}
ew_setUpLocalConnectionUUID975759();

var ew975759_context = window; 
var ew975759_flashObjectWindow = window;
var ew975759_mainFunctionWindow = window;	

function ew_getSWFTag975759()
{
	if (isGecko || isOpera)
		return ew_getEmbedTag975759();
	else
		return ew_getObjectTag975759();
}

function ew_getObjectTag975759()
{
	if (ew975759_flashObjectWindow.document.getElementById("ewad975759"))
		return ew975759_flashObjectWindow.document.getElementById("ewad975759");
	else
		return null;
}

function ew_getEmbedTag975759() 
{
	if (ew975759_flashObjectWindow.document.getElementById("ewembed975759"))
		return ew975759_flashObjectWindow.document.getElementById("ewembed975759");
	else
		return null;
}

var ew975759_debugShowErrors = false;

/* ###########				  BEGIN CUSTOM FUNCTIONS 					########### */
/* Begin ad-specific custom functions */

/*  End ad-specific custom functions */
/*  Begin execution-specific custom functions */

//if (isIe) 
//var maxPgWidth = 972;
//else 
var maxPgWidth = 950;
var isMacFF3 = (isMac && ua.indexOf("firefox/3") != -1);
if (isMacFF3) maxPgWidth=1000;
var windowWidth = 0;
var windowHeight = 0;
var scrollTopPx = 0;
var scrollWidthPx = 0;
var pageWidth = 0;
var pageHeight = 0;
var xPos = 0;
var yPos = 0;
var extraWidth = 0;
var extraHeight = 0;
var newHt = 0;
var newWidth = 0;
var htDiff = 0;
var wdDiff = 0;
var targetSize = false;
var origHeight = 0;
var origWidth = 0;
var maxWidth = 0;
var maxHt = 0;
var xDiff = 0;
var yDiff = 0;
var shrinkTimer = 300;
var pgShrinkTimer;
var srchObj = null;
var origX = 0;
var origY = 0;
var is_restored = false;
var is_adShrinking = false;
var resizedHt = 600;
var resizedWidth = 800;

function restoreSize()
{
	/*if (isMacFF3)
	{
	document.getElementById("testAd").style.left = "0px";
	} 
	if (isGecko) {
			document.getElementById("testAd").style.position="relative";
			document.getElementById("testAd").style.left="-40px";
	}*/
	if (is_restored) return;
	if (ew_isShaking==true)
	{
	window.setTimeout(restoreSize, 500);
	return;
	}
	restoreSizeSlowly();
}

var restoredVert = false;
var restoredHoriz = false;
function restoreSizeSlowly()
{
	if (is_restored) return;
	if (ew_isSafari) 
	{
	restoreSize2();
	return;
	}
	if (restoredVert==false)
	{
		if (!isIe)
		{
		currX = window.screenX;
		} else {
		currX = window.screenLeft;
		}
		try {
		window.moveTo(currX,origY);
		window.resizeTo(newWidth,origHeight);
		restoredVert = true;
		} catch(e) { }
		setTimeout(restoreSizeSlowly,3000);
		return;
	}
	if (restoredHoriz==false)
	{
	restoredHoriz = true;
	restoreSize2();
	return;
	}
}

function restoreSize2()
{
	try {
	is_adShrinking = false;
	if (is_restored) return;
	is_restored = true;
	targetSize = false;
	isTimedOut = false;
	startShrinkCalled = false;
	shrinkTimer = 250;
	cycleCtr = 0;
	if (ew_isSafari)
	{
		window.moveTo(0,0);
		window.resizeTo(screen.availWidth, screen.availHeight);
		return;
	}
	if (origX < 0) origX = 0; if (origY < 0) origY = 0;
	window.moveTo(origX, origY);
	window.resizeTo(origWidth, origHeight);
	} catch(e) { }
}

function findPosX(obj) {
	var curleft = obj.offsetLeft;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			obj = obj.offsetParent;
			if ((isIe || ew_isSafari || isOpera) && obj.tagName.toUpperCase() == "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 || isOpera) && obj.tagName.toUpperCase() == "BODY") break;
			curtop += obj.offsetTop;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function endShrink()
{
is_restored = false;
if (!(isGecko || isIe || ew_isSafari)) return;
if (ew_isSafari && !isMac) return;
window.setTimeout(restoreSize, 8000);
targetSize=true;
is_adShrinking=false;
clearTimeout(pgShrinkTimer);
}

ew975759_afterLoadTimer = 100;
function ew975759_afterLoader()
{
	if (typeof(document.getElementById("ew_BannerDiv975759")) != 'undefined')
	{
		if (!isMac) {
			try { document.getElementById("ew_BannerDiv975759").parentNode.style.marginLeft="18px";  } catch(e) {  }
		}
	}
}

var ew975759_customFlashString = "&wmode=window";

var isSafari2 = false;
if (ew_isSafari && (webkitVersion<500))
	isSafari2 = true;

var shakeWinCtr = 0;
function ew_startShake()
{
if (ew_isShaking==true) return;
shakeWinCtr = 50;
ew_shakeWin();
}

function endLoss()
{
	try {
	if (isIe || isSafari2) retLoss = document.getElementById("ewad975759").endGameLoss(); else retLoss = document.getElementById("ewembed975759").endGameLoss();
	ew_adReset = true;
	} catch(e) {  }
	if (typeof(retLoss) != 'undefined') {
	retLoss = void(0);
	window.setTimeout(endLoss, 1000);
	}
}

function resetVars()
{
window.setTimeout("targetSize = false",1000);
}

var ew_isShaking = false;
var ew_adReset = false;
var startShrinkCalled = false;

function ew_shakeWin()
{
	ew_isShaking = true;
	try {
	if ((shakeWinCtr % 4) == 0) window.moveBy(4,0);
	else if ((shakeWinCtr % 4) == 1) window.moveBy(0,4);
	else if ((shakeWinCtr % 4) == 2) window.moveBy(-4,0);
	else if ((shakeWinCtr % 4) == 3) window.moveBy(0,-4);
	} catch(e) {  }
	shakeWinCtr--;
	if (shakeWinCtr > 0) window.setTimeout(ew_shakeWin,30);
	else
	{
		ew_isShaking = false;
	}
}
var isTimedOut = false;
var ew975759_forceLoad = true;
var ew975759_forceLoadTimer = 2000;

function shrinkPage()
{
	if (ew_isShaking==true)
	{
	window.setTimeout(shrinkPage, 1000);
	return;
	}
	if (is_adShrinking) return;
	if (origWidth==0 || startShrinkCalled==false) startShrink();
	targetSize = false;
	window.setTimeout(shrinkPage2, 1000);
}

var retLoss = 0;
var ff3offset = 0;
var cycleCtr = 0;
var onTimerHold = false;
function shrinkPage2()
{
	cycleCtr++;
	if (targetSize==true || is_restored==true)
	{
	is_adShrinking = false;
	return;
	}
	if (ew_isShaking==true)
	{
	setTimeout(shrinkPage, 500);
	return;
	}
	is_adShrinking = true;
	
	if (!onTimerHold) {
	try {
	window.resizeBy(-xDiff, -yDiff);
	if (document.body.clientWidth > maxPgWidth)
	{
	window.moveBy(parseInt(xDiff/2), 0);
	}
	else if (newWidth > maxWidth)
	{
	window.moveBy(xDiff, 0);
	}
	newWidth-=xDiff;
	newHt-=yDiff;
	} catch(e) {  }
	}

	/*
	if (isMacFF3 && (document.body.clientWidth < 430))
	{
	ff3offset -= xDiff/2;
	document.getElementById("testAd").style.left = ff3offset.toString() + "px";
	}
	*/

	if (xDiff < 6) xDiff = 6;
	if (xDiff > 18) xDiff = 18;
	if (yDiff < 3) yDiff = 3;
	if (yDiff > 8) yDiff = 8;

	//if (((newHt - maxHt) < 200) && ((newWidth - maxWidth) > 360)) yDiff-=1;
	//else if (((newHt - maxHt) > 200) && ((newWidth - maxWidth) < 360)) xDiff-=1;

	if (newHt/newWidth > .65) { xDiff+=4; yDiff-=2; }
	if (newWidth/newHt < 1.2) { yDiff+=4; xDiff-=2; }

	if (((newWidth - xDiff) < maxWidth) || (newWidth < maxWidth)) xDiff = 0;
	if (((newHt - yDiff) < maxHt) || (newHt < maxHt)) yDiff = 0;

	if (!onTimerHold) {
	if (((xPos - 4) > 0) && ((yPos - 4) > 0))
		window.scrollTo(xPos - 4, yPos - 4);
	}

	if (xDiff==0 && yDiff==0) targetSize=true; else targetSize=false;

	if (targetSize==true || ((newHt <= (maxHt+12)) && (newWidth <= (maxWidth+16))))
	{
		try {
		if (isIe || isSafari2) document.getElementById("ewad975759").startRubble(); else document.getElementById("ewembed975759").startRubble();
		} catch(e) {  }

		clearTimeout(pgShrinkTimer);

		/*if (isMacFF3)
		{
		ff3offset -= 20;
		document.getElementById("testAd").style.left = ff3offset.toString() + "px";
		}
		if (isGecko) {
			document.getElementById("testAd").style.position="relative";
			document.getElementById("testAd").style.left="-40px";
		} */

		window.resizeTo(maxWidth, maxHt);
		window.moveBy(newHt - maxHt, newWidth - maxWidth);

		targetSize = true;
		is_adShrinking = false;
		onTimerHold = false;
		window.scrollTo(xPos - 4, yPos - 4);
		window.setTimeout(endLoss, 1500);
		window.setTimeout(restoreSize, 8000);
	}
	else
	{
	pgShrinkTimer = window.setTimeout(shrinkPage2, shrinkTimer);
	}
}

function startShrink()
{
if (!(isGecko || isIe || ew_isSafari)) return;
if (ew_isSafari && !isMac) return;
if (is_adShrinking) return;
startShrinkCalled = true;
//setTimeout("isTimedOut = true", 25000);

if (typeof window.innerWidth != 'undefined') {
windowWidth = window.innerWidth;
windowHeight = window.innerHeight;
} else if(document.documentElement && document.documentElement.clientWidth ) {
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else {
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
scrollTopPx = document.documentElement.scrollTop > document.body.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
scrollWidthPx = document.documentElement.scrollWidth > document.body.scrollWidth ? document.documentElement.scrollWidth : document.body.scrollWidth;

//srchObj = document.getElementById("ew_BannerDiv975759").parentNode;
xPos = 642;
yPos = 245;

extraWidth = document.body.clientWidth - (xPos + 320);
extraHeight = yPos - (scrollTopPx + 4);

if (!isIe)
{
	origX = window.screenX;
	origY = window.screenY;
	origHeight = window.outerHeight;
	origWidth = window.outerWidth;
	htDiff = (window.outerHeight - (window.innerHeight + 18));
	wdDiff = (window.outerWidth - (window.innerWidth + 18));
	newHt = origHeight;
	newWidth = origWidth;
	maxWidth = 300 + wdDiff + 35;
	if (isMacFF3) maxWidth += 50;
	maxHt = 250 + htDiff + 40;  /* ***************************************************************** */
} else {
	origX = window.screenLeft;
	origY = window.screenTop;
	var iPreWidth = document.body.clientWidth;
	var iPreHeight = document.documentElement.clientHeight;
	if (iPreHeight==0) iPreHeight = document.body.clientHeight;
	var iOuterWidth = iPreWidth + 12;
	var iOuterHeight = iPreHeight + 32;
	window.resizeTo(iOuterWidth,iOuterHeight);
	var iPostWidth = document.body.clientWidth;
	var iPostHeight = document.documentElement.clientHeight;
	if (iPostHeight==0) iPostHeight = document.body.clientHeight;
	iOuterWidth = (iPreWidth + 12) + (iPreWidth-iPostWidth);
	iOuterHeight = (iPreHeight + 32) + (iPreHeight-iPostHeight);
	htDiff = (iPreHeight-iPostHeight);
	wdDiff = (iPreWidth-iPostWidth);
	origX = window.screenLeft - wdDiff;
	origY = window.screenTop - htDiff;
	origHeight = iOuterHeight;
	origWidth = iOuterWidth;
	newHt = iPostHeight + (htDiff + 32);
	newWidth = iOuterWidth - 16;
	maxWidth = 290 + wdDiff + 30;
	if (isGecko) maxWidth += 20;
	maxHt = 305 + htDiff;
}

if (extraHeight > 0)
{
window.resizeBy(0, -(extraHeight/2));
newHt -= (extraHeight/2);
window.moveBy(0, (extraHeight/2));
window.scrollTo(0, yPos - 10);
}

/*
if (windowWidth > 970) {
window.resizeBy(970 - windowWidth, 0);
windowWidth = 970;
extraWidth = 0;
}
*/

resizedHt = newHt;
resizedWidth = newWidth;

//var wdRatio = windowWidth/windowHeight;

//if (isIe || isMac) { xDiff=16; yDiff = 8; }
//else { 
xDiff = 16; yDiff = 6;
//}

if (extraWidth < 0)
window.scrollBy(-(extraWidth + 4), 0);

if (extraHeight < 0)
window.scrollTo(0, yPos - 4);

is_restored = false;
targetSize = false;
restoredVert = false;
restoredHoriz = false;
}

/*  End execution-specific custom functions */
/*  Begin site-specific custom functions */

/*  End site-specific custom functions */
/* ###########					  END CUSTOM FUNCTIONS 					########### */

ew975759_weSupport = weSupport; 
ew975759_turnOffExecution = ew975759_turnOffExecutionBackup;

var ew975759_errorObject;

function ew_throwJSError975759()
{
	var e = ew975759_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"];
		ew975759_debugExternalInterfaceErrorMessage = emsg;
	}
	catch(e)
	{
		ew975759_debugExternalInterfaceErrorMessage = "Failure in external interface";
	}

	if (ew975759_debugShowErrors == true)
		throw(ew975759_errorObject);	
}

function ew_delegate975759( functionName )
{
	var ew_args = new Array();
	for( var i = 1; i < arguments.length; i++ )
		ew_args[i-1] = arguments[i];
	try
	{
		return ew975759_mainFunctionWindow[functionName].apply( ew975759_mainFunctionWindow, ew_args );
	}
	catch (e)
	{
		ew975759_errorObject = e;
		var dummy = setTimeout(ew_throwJSError975759, 1);
		return;
	}
}

var ew_externalInterfaceVerified975759 = null;

function ew_isAvailableExternalInterface975759()
{
	var flashObj = ew_getSWFTag975759();
	if (typeof(flashObj) == "undefined" || flashObj == null || typeof(flashObj.ew_isAvailable) == "undefined" )
		return false;
	return true;
}

function ew_callExternalInterface975759(functionName)
{
	if (!ew_isAvailableExternalInterface975759())
	{
		ew975759_debugExternalInterfaceErrorMessage = "Object doesn't support External Interface.";
		return null;
	}

	var flashObj = ew_getSWFTag975759();	
	if (typeof(flashObj[functionName]) == "undefined" || flashObj[functionName] == null)
	{
		ew975759_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)
	{
		ew975759_errorObject = e;
		var dummy = setTimeout(ew_throwJSError975759, 1);
		return null;
	}
}

// FLASH
var ew975759_flvNames = "";
var ew975759_creativeName = "";
var ew975759_swfVersion = 7;

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)
	{
		ew975759_swfVersion = 9;
		return flash9Creative;
	}
	else if (isFlash8up && flash8Creative != "")
	{
		ew975759_swfVersion = 8;
		return flash8Creative;
	}
	else if (isFlash7up && flash7Creative != "")
	{
		ew975759_swfVersion = 7;
		return flash7Creative;
	} else {
		ew975759_weSupport=false;
		failReason = "flash";
		return flash7Creative;
	}
}

function ew_setupFlash8Videos()
{
	var flvvideos = new String("").split(',');
	var flashBool = new String("").split(',');
	ew975759_flvNames = ew_getfNames(flvvideos,flashBool);
}

ew975759_creativeName = ew_setupCreative("","BK.indy.collapse.300x250.v2.swf","");

if (isFlash8up && (ew975759_swfVersion >= 8))
	ew_setupFlash8Videos();

var ew975759_adMode = "stream";
var ew975759_videoPath = "fms2.eyewonder/video/";
var ew975759_videoID = '';

if (typeof(isIFrameContent) != "undefined" && isIFrameContent)
	ew_qaReportUUID = topWin.ew_qaReportUUID;

if (typeof(ew_qaReportUUID)=="undefined")
{
	ew_qaReportUUID = parseParam("qaUUID");
	if(ew_qaReportUUID == null)
	ew_qaReportUUID = "common";
}

function ew_verifyPrepend(url)
{
	if (typeof(url) == 'undefined') return "";
	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 ewclicktags975759 = '';

if( typeof( ew975759_flashvarsExtra ) == "undefined" )
	var ew975759_flashvarsExtra = "";

if( typeof( ew975759_setVideoMode ) != "undefined" )
{
	if ((ew975759_setVideoMode=='prog') || (ew975759_setVideoMode=='stream'))
	{
		if (cp975759.indexOf("cdn1") != -1) var vp = "cdn1"; else vp = "cdn";
		ew975759_adMode = ew975759_setVideoMode;
		if (ew975759_setVideoMode=='prog') ew975759_videoPath = "http://" + vp + ".eyewonder.com/200125/video/";
			else ew975759_videoPath = "fms2.eyewonder/video/";
	}
}

var ew975759_browserEngine = "unknown";
if (isIe)
	ew975759_browserEngine = "ie";
else if (isGecko)
	ew975759_browserEngine = "gecko";
else if (isOpera || isKonqueror) 
	ew975759_browserEngine = "opera";
else if (ew_isSafari)
	ew975759_browserEngine = "webkit";

var ew975759_adTypeID = '25';
var ew975759_adType = 'Banner';
if (ew975759_adTypeID=='22' || ew975759_adType=="Interstitial")
	ew975759_adTypeID = '5';

if (ew975759_adTypeID=='30')
	ew975759_adTypeID = '8';

ew975759_adTypeID = '100';

var ew975759_customFlashString = ''; 
if (ew975759_customFlashString != '') 
		ew975759_customFlashString = '&' + ew975759_customFlashString.replace(/\|/g, '&');

if (ew975759_customFlashString.indexOf('setVideoMode=stream') != -1)
{
	ew975759_adMode = 'stream';
	ew975759_videoPath = "fms2.eyewonder/video/";
}
else if (ew975759_customFlashString.indexOf('setVideoMode=prog') != -1)
{
	if (cp975759.indexOf("cdn1") != -1) var vp = "cdn1"; else vp = "cdn";
	ew975759_adMode = 'prog';
	ew975759_videoPath = "http://" + vp + ".eyewonder.com/200125/video/";
}

if (typeof(ew975759_localConnectionUUID) == "undefined")
	ew975759_localConnectionUUID = (new Date().getTime());

if (typeof(ew_pubVars)=='undefined' || ew_pubVars==null)
{

var ew_pubVars = "";

} else {
if (ew_pubVars.charAt(0)=="&") 
	ew_pubVars = ew_pubVars.substring(1);
if (ew_pubVars.indexOf("bw=") != -1)
	ew_pubVars = ew_pubVars.replace("bw=", "bandWidth=");
}

var flashvarsClickTagPrepend = "[ewclickthru]";
if (typeof(clickTagFramePrepend) != 'undefined')
	flashvarsClickTagPrepend = clickTagFramePrepend;

var ewflashvars975759 = 'ewbase='+cp975759
+ '&bwfile=bwtest.swf'
+ '&creative=' + ew975759_creativeName
+ '&vLength='
+ '&bw=56,90,135,300,450,600'
+ '&buf=5,4,3,2,2,2'
+ '&flv=' + ew975759_flvNames
+ '&flvId=0'
+ '&formatId='+ew975759_adTypeID
+ '&aInit='+''
+ '&vInit='
+ '&videoID='+ew975759_videoID
+ '&videoPath='+ew975759_videoPath
+ '&adId=975759'
+ '&adMode=' + ew975759_adMode
+ '&trkUrl=http://cdn1.eyewonder.com/200125/'
+ '&siteID=303'
+ '&swfVersion=' + ew975759_swfVersion
+ '&browserEngine=' + ew975759_browserEngine 
+ '&browserEngineVersion=' + ew975759_browserEngineVersion 
+ '&opSys=' + ew975759_operatingSystem 
+ '&qaReportUUID=' + ew_qaReportUUID
+ '&localConnectionUUID=' + ew975759_localConnectionUUID 
+ '&clickTagPrepend=' + escape(flashvarsClickTagPrepend)
+ ew975759_flashvarsExtra
+ ew975759_customFlashString

+ '&clickTag1=http://www.bk.com';
if (typeof(ew_pubVars) != 'undefined' && ew_pubVars != "")
	ewflashvars975759 += '&' + ew_pubVars;

var flashHTML975759 = centerTag1+'<span id="ew_BannerDiv975759" style="visibility:visible; '+ew975759_positionCorrect+'overflow:hidden; width:300px; height:250px;">'
+'<img src="'+cp975759+'dot.gif" border="0" id="ew_initFrame975759">'
+'</span>'+centerTag2;

var flashHTMLonLoad975759 ='<span id="ew_FlashDiv975759" style="visibility: visible; width:300px; height:250px;" onmouseout="ew_onmouseout975759()">'
+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + ew975759_protocol + 'fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="250" id="ewad975759">'
+'<param name="allowScriptAccess" value="always" />'
+'<param name="movie" value="'+cp975759+ew975759_creativeName+'" />'
+'<param name="quality" value="high" />'
+'<param name="bgcolor" value="#FFFFFF" />'
+'<param name="base" value="'+cp975759+'" />'
+'<param name="wmode" value="opaque" />'
+'<param name="allowFullScreen" value="true" />'
+'<param name="FlashVars" value="'+ewflashvars975759+'" />'
+'<embed id="ewembed975759"  src="'+cp975759+ew975759_creativeName+'" base="'+cp975759+'" wmode="opaque" quality="high" bgcolor="#FFFFFF" width="300" height="250" name="ewad975759" FlashVars="'+ewflashvars975759+'" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="' + ew975759_protocol + 'adobe.com/go/getflashplayer" />'
+'</object></span>';

var failoverHTML975759 = '<img src="'+cp975759+'failover.jpg" border="0">';

function ew_contract975759() {}
function ew_expand975759() {}
function ew_reset975759() {}

function ew_onmouseout975759()
{
	try {
	var swfTag = ew_getSWFTag975759();
	if (typeof(swfTag) == "undefined" || swfTag == null)
		return;
	if (typeof(swfTag.ew_rolloff) != "undefined")
		swfTag.ew_rolloff();
	} catch(e) {}
}

var ew975759_onLoadWasCalled = false; 
function ew_onLoad975759() {
	if (typeof(ew975759_onLoadWasCalled) != 'undefined' && ew975759_onLoadWasCalled == true)
		return;
	ew975759_onLoadWasCalled = true;

	if (typeof(ew975759_afterLoader) != 'undefined' && ew975759_afterLoader != null)
		window.setTimeout(ew975759_afterLoader, ew975759_afterLoadTimer);

	var ew_bannerDivObj = null;
	try { ew_bannerDivObj = document.getElementById('ew_BannerDiv975759'); } catch(e) {  }
	if (ew_bannerDivObj==null)
		try { ew_bannerDivObj = top.document.getElementById('ew_BannerDiv975759'); } catch(e) {  }

	if (ew_bannerDivObj != null)
		ew_bannerDivObj.innerHTML=flashHTMLonLoad975759;
	else
	{
	ew975759_onLoadWasCalled = false;
	if (typeof('ew_onLoad975759') != 'undefined') setTimeout(ew_onLoad975759, 500);
	return;
	}

	if (isIe) 
		window.ewad975759 = document.getElementById('ewad975759');

	flashHTMLonLoad975759 += onLoadTracker975759();

}

if (ew975759_weSupport)
{
	document.writeln(flashHTML975759);
	document.writeln(weSupportTracker975759());
	document.writeln(flashTracker975759());

	if (isIe)
	{	
		window.ewad975759 = new Object();
		window.ewad975759.SetReturnValue = function() {}
	}

		if (!ew_isIFrame)
		{
			if (ew975759_forceLoad)
			{
				if (typeof(ew975759_forceLoadTimer) != 'undefined' && (!isNaN(ew975759_forceLoadTimer)))
					setTimeout(ew_onLoad975759, ew975759_forceLoadTimer);
				else
					ew_onLoad975759();
			}
			else if (isIe && document.readyState == 'complete')
				ew_onLoad975759();
			else
			{
				if (window.addEventListener) window.addEventListener("load",ew_onLoad975759,false);
					else if (window.attachEvent) window.attachEvent("onload",ew_onLoad975759);
				if (ew975759_inFIF)
					window.setTimeout(ew_onLoad975759, 2000);
			}
		}
		else
			window.setTimeout(ew_onLoad975759, 3000);

} else { 
	
	document.writeln(failoverHTML975759);
	if(!ew975759_turnOffExecution)
		document.writeln(failoverTracker975759());
	else
		document.writeln(failoverTurnOffExecutionTracker975759());
	
	if (failReason == "browser")
		document.writeln(failoverReasonBrowserTracker975759());
	else if (failReason == "flash")
		document.writeln(failoverReasonFlashTracker975759());
}

