var styleArray = new Array();
styleArray[0] = 53;
styleArray[1] = 5;
					
/*
AD UNIT URL
-----------
Default value for the click-through URL. This is the URL that will be launched when the user clicks on the keyword or ad unit (unless the unit is multi-link). NOTE: This URL will NOT launch when the user clicks on any area composed of Flash. Flash clickURLs will need to be passed through via the creative source string
*/
var urlArray = new Array();
urlArray[0] = "contact.asp";
urlArray[1] = "contact.asp";

/*
CREATIVE SOURCE
---------------
Path to the ad unit creative. This URL should lead to the Flash, graphic, or iframe source you want to display. This will also contain any query strings (including the clickURL) you wish to pass into the Flash unit.
*/
var creativeArray = new Array();
creativeArray[0] = "http://movies.apple.com/movies/us/apple/iphone/2008/ads/lonely-planet/apple_iphone3g_ad_lonely-planet_20080821_848x480.mov";

/*
CREATIVE WIDTH
--------------
Initial display width (in pixels) of the Flash or graphic
*/
var creativeWidth = new Array();
creativeWidth[0] = 324;

/*
CREATIVE HEIGHT
---------------
Initial display height (in pixels) of the Flash or graphic. Widescreen: initial height +20
*/
var creativeHeight = new Array();
creativeHeight[0] = 245;

/*
MAXIMUM CREATIVE WIDTH
----------------------
For use in exapandable units: Final display width (in pixels) of the Flash or graphic. MPU expandable: MPU width +14
*/
var maxCreativeWidth = new Array();
maxCreativeWidth[0] = 338;

/*
MAXIMUM CREATIVE HEIGHT
-----------------------
For use with expandable units: Final display height (in pixels) of the Flash or graphic. MPU expandable: MPU height +49, Widescreen: final height +20
*/
var maxCreativeHeight = new Array();
maxCreativeHeight[0] = 299;

/*
AD UNIT OFFSET X
----------------
Distance, in pixels, along the x coordinate plane to shift the positioning of the ad unit when it appears. Negative values move the unit left, positive values move the unit right. 
*/
var xOffsetArray = new Array();
xOffsetArray[0] = 300;

/*
AD UNIT OFFSET Y
----------------
Distance, in pixels, along the y coordinate plane to shift the positioning of the ad unit when it appears. Negative values move the unit up, positive values move the unit down. 
*/
var yOffsetArray = new Array();

if (navigator.userAgent.indexOf("MSIE") != -1)
    yOffsetArray[0] = -850;
else
    yOffsetArray[0] = 10;
/*
AD UNIT WIDTH
-------------
Width, in pixels, of the entire ad unit (including drop shadow) 
*/
var adUnitWidth = new Array();
adUnitWidth[0] = 315;
adUnitWidth[1] = 240;

/*
AD UNIT HEIGHT
--------------
Height, in pixels, of the entire ad unit (including drop shadow) 
*/
var adUnitHeight = new Array();
adUnitHeight[0] = 114;
adUnitHeight[1] = 190;

/*
TOOLTIP STYLING
---------------
Variables which allow you to adjust the tooltip background color for the roll-over and roll-off states, the font used for the tooltip, the colors of the title and display URL links for the roll-over and roll-off states and whether or not the links should be underlined at any point.
*/

//tooltip
var tooltipBkgColor = new Array();
tooltipBkgColor[0] = "#EDEDED";
tooltipBkgColor[1] = "#EDEDED";

var tooltipHighlightColor = new Array();
tooltipHighlightColor[0] = "#FFFFFF";
tooltipHighlightColor[1] = "#FFFFFF";

var tooltipFont = new Array();
tooltipFont[0] = "Arial, Verdana, Helvetica, sans-serif";
tooltipFont[1] = "Arial, Verdana, Helvetica, sans-serif";

var bottomBkgColor = new Array();
bottomBkgColor[0] = "#ededed";
bottomBkgColor[1] = "#ededed";

//title field
var tooltipTitleColorOff = new Array();
tooltipTitleColorOff[0] = "#000099";
tooltipTitleColorOff[1] = "#000099";

var tooltipTitleColorOn = new Array();
tooltipTitleColorOn[0] = "#000099";
tooltipTitleColorOn[1] = "#000099";

var tooltipTitleDecorationOff = new Array();
tooltipTitleDecorationOff[0] = "none";
tooltipTitleDecorationOff[1] = "none";

var tooltipTitleDecorationOn = new Array();
tooltipTitleDecorationOn[0] = "underline";
tooltipTitleDecorationOn[1] = "underline";


//visible URL
var tooltipURLColorOff = new Array();
tooltipURLColorOff[0] = "#008000";
tooltipURLColorOff[1] = "#008000";

var tooltipURLColorOn = new Array();
tooltipURLColorOn[0] = "#008000";
tooltipURLColorOn[1] = "#008000";

var tooltipURLDecorationOff = new Array();
tooltipURLDecorationOff[0] = "none";
tooltipURLDecorationOff[1] = "none";

var tooltipURLDecorationOn = new Array();
tooltipURLDecorationOn[0] = "underline";
tooltipURLDecorationOn[1] = "underline";



//=============================================
//GLOBAL VARIABLES AND CONSTANTS
//=============================================
var hideID = 0;						//setInterval variable used when making the tooltip disappear 
var lastToolNum = 0;				//number that matches the rolled-over keyword and correspond with the user-editable array variables 
var tooltipXOffset = 15;			//default horizontal distance from the top/left of the keyword in which the tooltip will appear
var tooltipYOffset = -80;				//default vertical distance from the top/left of the keyword in which the tooltip will appear
var hasEnlarged = false;			//boolean value indicating the state of an expandable ad unit
var ttIsVis = false;				//boolean used to determine if tooltip is already visible

//roll-over button image source
var bt_what_on = new Image();
var bt_what_off = new Image();
var bt_close_on = new Image();
var bt_close_off = new Image();
bt_what_on.src = "http://images.intellitxt.com/ast/demo_assets/images/bt_what_on.gif";
bt_what_off.src = "http://images.intellitxt.com/ast/demo_assets/images/bt_what_off.gif";
bt_close_on.src = "http://images.intellitxt.com/ast/demo_assets/images/bt_close_on.gif";
bt_close_off.src = "http://images.intellitxt.com/ast/demo_assets/images/bt_close_off.gif";

//DHTML style and property change functions
function changeStyle(objectID, propertyName, propertyValue){
	document.getElementById(objectID).style[propertyName] = propertyValue;
}
function changeProperty(objectID, propertyName, propertyValue){
	document.getElementById(objectID)[propertyName] = propertyValue;
}
function getStyleValue(objectID, propertyName){
	return document.getElementById(objectID).style[propertyName];
}
function getPropertyValue(objectID, propertyName){
	return document.getElementById(objectID)[propertyName];
}

function displayStatus(string){
	window.status = string;
	return true;
}

function clearStatus(){
	window.status = '';
	return true;
}

function getRealPos(ele,dir)
{
	(dir=="x") ? pos = ele.offsetLeft : pos = ele.offsetTop;
	tempEle = ele.offsetParent;
	while(tempEle != null)
	{
		pos += (dir=="x") ? tempEle.offsetLeft : tempEle.offsetTop;
		tempEle = tempEle.offsetParent;
	}
	return pos;
}

function getScrollY(){
	if(window.pageYOffset != null) {
		return window.pageYOffset;
	} else {
		return document.body.scrollTop;
	}
}

function getScrollX(){
	if(window.pageXOffset != null){
		return window.pageXOffset;
	} else {
		return document.body.scrollLeft;
	}
}

function adDelay(){
	ttIsVis = false;
	//close box
	changeStyle('tooltipBox', 'visibility', 'hidden');
	//clear ID
	clearInterval(hideID);
	//clear status message
	displayStatus(' ');
	//clear ad content to turn off possible flash audio
	changeProperty('tooltipBox', 'innerHTML', "");
}

function clearAdInterval(){
	clearInterval(hideID);
}

function hideAd(){
	underlineOff("link0");
		
    if(whichDrag == ""){
		clearInterval(hideID);
		hideID = setInterval(adDelay, 1250);
	}
	//TURN OFF AUDIO
	turnSoundOff();
}

function turnSoundOff(){
	try {
		window.document.myFlashMovie.SetVariable("jsAudioAdjust", "AUDIO_OFF");
	} catch(err) {
	}
}
function turnSoundOn(){
	try {
		window.document.myFlashMovie.SetVariable("jsAudioAdjust", "AUDIO_ON");
	} catch(err) {
	}
}

function highlightAd(tooltipRef, idString){
	turnSoundOn();
}

function unHighlightAd(tooltipRef, idString){
	turnSoundOff();
}


// --------------------------------------------------
// HTML EXPANDABLE ROUTINES
// --------------------------------------------------
function grow(objectName,startW,endW,startH,endH,growTime){
	var objectRef = document.getElementById(objectName);
	
	if(typeof objectRef.growID== "number")clearInterval(objectRef.growID);
	var time = growTime*1000;//duration of the blend in miliseconds
	var steps = 30*growTime;//steps in the animation (should be framerate*("var time" in seconds))
	var growWArray = new Array();
	var growHArray = new Array();
	
	//calculate changes in x and y coordinates
	var growDeltaW = (endW - startW)/steps;
	var growDeltaH = (endH - startH)/steps;
	for(x=0; x<=steps; x++){
		growWArray.push(Math.round(startW + (x * growDeltaW)));
		growHArray.push(Math.round(startH + (x * growDeltaH)));
	}
	
	//animate grow using an inner function
	objectRef.growStep = 0;
	objectRef.nameString = objectName;
	var growInterval = time/steps;
	objectRef.growID = setInterval(growFunction,growInterval);
	var selfReference = objectRef;
	function growFunction(){
		selfReference.growStep++;
		if(selfReference.growStep <= steps){
			//resize object
			var tempW = growWArray[selfReference.growStep] + "px";
			var tempH = growHArray[selfReference.growStep] + "px";
			changeStyle(selfReference.nameString, 'width', tempW);
			changeStyle(selfReference.nameString, 'height', tempH);
		} else {
			//account for remainder in case "step" is not a whole-number value
			var tempW = endW + "px";
			var tempH = endH + "px";
			changeStyle(selfReference.nameString, 'width', tempW);
			changeStyle(selfReference.nameString, 'height', tempH);
			clearInterval(selfReference.growID);
		}
	}
};
function killGrow(objectName){
	var objectRef = document.getElementById(objectName);
	if(typeof objectRef.growID == "number")clearInterval(objectRef.growID);
};

function slide(objectName,startX,endX,startY,endY,slideTime){
	var objectRef = document.getElementById(objectName);
	
	if(typeof objectRef.slideID== "number")clearInterval(objectRef.slideID);
	var time = slideTime*1000;//duration of the blend in miliseconds
	var steps = 30*slideTime;//steps in the animation (should be framerate*("var time" in seconds))
	var slideXArray = new Array();
	var slideYArray = new Array();
	
	//calculate changes in x and y coordinates
	var slideDeltaX = (endX - startX)/steps;
	var slideDeltaY = (endY - startY)/steps;
	for(x=0; x<=steps; x++){
		slideXArray.push(Math.round(startX + (x * slideDeltaX)));
		slideYArray.push(Math.round(startY + (x * slideDeltaY)));
	}
	
	//animate grow using an inner function
	objectRef.slideStep = 0;
	objectRef.nameString = objectName;
	var slideInterval = time/steps;
	objectRef.slideID = setInterval(slideFunction,slideInterval);
	var selfReference = objectRef;
	function slideFunction(){
		selfReference.slideStep++;
		if(selfReference.slideStep <= steps){
			//resize object
			var tempX = slideXArray[selfReference.slideStep] + "px";
			var tempY = slideYArray[selfReference.slideStep] + "px";
			changeStyle(selfReference.nameString, 'left', tempX);
			changeStyle(selfReference.nameString, 'top', tempY);
		} else {
			//account for remainder in case "step" is not a whole-number value
			var tempX = endX + "px";
			var tempY = endY + "px";
			changeStyle(selfReference.nameString, 'left', tempX);
			changeStyle(selfReference.nameString, 'top', tempY);
			clearInterval(selfReference.slideID);
		}
	}
};
function killSlide(objectName){
	var objectRef = document.getElementById(objectName);
	if(typeof objectRef.slideID == "number")clearInterval(objectRef.slideID);
};

function maximizeFlash(){
	//make tooltip grow only if myFlashMovie exists/ flash has been detected.
	if(document.getElementById('myFlashMovie') != null) {
		killGrow('myFlashMovie');
		killGrow('placeholderDiv');
		killGrow('ttShadow');
		killGrow('ttShadowImage');
		killGrow('tooltipBox');
		killGrow('itt_table');
		var fW1 = creativeWidth[lastToolNum];//document.getElementById('myFlashMovie').offsetWidth;
		var fW2 = maxCreativeWidth[lastToolNum];
		var fH1 = creativeHeight[lastToolNum];//document.getElementById('myFlashMovie').offsetHeight;
		var fH2 = maxCreativeHeight[lastToolNum];
		var flashBottomPad = 0;
		var shadowWidth = 10;
		var fHorMargin = 15;
		var fVertMargin = 55;
		var ttOvergrowth = (fW2+fHorMargin) - document.getElementById('itt_table').offsetWidth;
		
		//ANIMATE TOOLTIP ELEMENTS
		grow('myFlashMovie', fW1, fW2, fH1, fH2, .2);
		grow('placeholderDiv', document.getElementById('placeholderDiv').offsetWidth, fW1 + ttOvergrowth, document.getElementById('placeholderDiv').offsetHeight, fH2, .2);
		grow('ttShadow', document.getElementById('ttShadow').offsetWidth, (fW2 + fHorMargin), document.getElementById('ttShadow').offsetHeight, (fH2 + fVertMargin), .2);
		grow('ttShadowImage', document.getElementById('ttShadowImage').offsetWidth, (fW2 + fHorMargin), document.getElementById('ttShadowImage').offsetHeight, (fH2 + fVertMargin), .2);
		grow('tooltipBox', document.getElementById('tooltipBox').offsetWidth, (fW2 + fHorMargin + shadowWidth), document.getElementById('tooltipBox').offsetHeight, document.getElementById('tooltipBox').offsetHeight, .2);
		grow('itt_table', document.getElementById('itt_table').offsetWidth, (fW2 + fHorMargin), document.getElementById('itt_table').offsetHeight, document.getElementById('itt_table').offsetHeight, .2);

	}
}


// --------------------------------------------------
//DRAGGABLE TOOLTIP ROUTINES
// --------------------------------------------------
document.onmousemove = mouseMove;
document.onmouseup   = mouseUp;
document.onmousedown   = mousedownCheck;

var dragObject  = null;
var mouseOffset = null;
var mouseIsDown = false;
var whichDrag = ""

function mousedownCheck(){
	mouseIsDown = true;
}

function getMouseOffset(target, ev){
	ev = ev || window.event;

	var docPos = getPosition(target);
	var mousePos = mouseCoords(ev);
	return {x:mousePos.x - docPos.x, y:mousePos.y - docPos.y};
}

function getPosition(e){
	var left = 0;
	var top  = 0;

	while (e.offsetParent){
		left += e.offsetLeft;
		top  += e.offsetTop;
		e = e.offsetParent;
	}

	left += e.offsetLeft;
	top  += e.offsetTop;

	return {x:left, y:top};
}

function mouseMove(ev){
	ev = ev || window.event;

	if(mouseIsDown){
		if(dragObject){
			var mousePos = mouseCoords(ev);
			whichDrag = dragObject;
			//dragObject.style.position = 'absolute';
			dragObject.style.top = mousePos.y - mouseOffset.y;
			dragObject.style.left = mousePos.x - mouseOffset.x;
	
			return false;
		}
	}

}

function mouseCoords(ev){
	if(ev.pageX || ev.pageY){
		return {x:ev.pageX, y:ev.pageY};
	}
	return {
		x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
		y:ev.clientY + document.body.scrollTop  - document.body.clientTop
	};
}

function makeClickable(object){
	object.onmousedown = function(){
		dragObject = this;
	}
}

function mouseUp(){
	mouseIsDown = false;
	dragObject = null;
}

var makeDragInit = false;
function makeDraggable(item, handle){
	if(!item) return;
	handle.onmousedown = function(ev){
		dragObject  = item;
		mouseOffset = getMouseOffset(item, ev);
		return false;
	}
}
// --------------------------------------------------

function underlineOn(thisWord){
	changeStyle(thisWord, 'borderBottomWidth', '3px');
}

function underlineOff(thisWord){
	changeStyle(thisWord, 'borderBottomWidth', '1px');
}

function displayAd(indexNum){
	//clear hide delay 
	clearInterval(hideID);	
	
	//if the tooltip is already visible, keep the higlighted underline but don't relaunch
	if(ttIsVis && indexNum == lastToolNum) {
		underlineOn("link" + indexNum);
		return;
	}
	
	//tooltip is visible
	ttIsVis = true;
	
	//global variable adjustments
	lastToolNum = indexNum;				//sets the number of lastToolNum to match the current unit
	hasEnlarged = false;				//resets state of expandable unit
	whichDrag = "";						//resets which tooltip is being dragged
	
	//local variables
	var linkRefString = "link0";
	var linkRef =  document.getElementById(linkRefString);
	var boxWidth = adUnitWidth[lastToolNum] - 10;
	var boxHeight = adUnitHeight[lastToolNum] - 10;
	var contentTableHeight = boxHeight - 27;
	var handleWidth = adUnitWidth[lastToolNum]-150;
	var isFlash = true;

	//COMPOSE TIP
	var displayString = '';
	displayString += '<div class="intellitxtTooltip" id="creativeContent">'
	displayString += 	'<span style="background-color:#FFFF00;font-family:' + tooltipFont[lastToolNum] + ';font-size:10px;">[Flash was not detected]</span>'
	displayString += '</div>'
	displayString += '<div id="handle" style="overflow:hidden;width:107px;height:21px;position:absolute;z-index:5011;left:145px;top:0px;cursor:move;"><img id="handleImage" src="http://images.intellitxt.com/ast/spacer.gif" border="0" width="107" height="21"></div>'
		
	changeProperty('tooltipBox', 'innerHTML', displayString);

	if(isFlash){
		var fo = new FlashObject(creativeArray[lastToolNum], "myFlashMovie", creativeWidth[lastToolNum], creativeHeight[lastToolNum], "8", "#ffdddd");
		//set params
		fo.addParam("wmode", "transparent");
		fo.addParam("scale", "exactfit");
		fo.addParam("swLiveConnect","true");
		fo.addParam("allowScriptAccess", "always");
		fo.addVariable("pageRef",window.location.hostname);

		fo.write("creativeContent");
	}

	//RESIZE TOOLTIP BOX
	var tempWidth = adUnitWidth[lastToolNum] + "px";
	changeStyle('tooltipBox', 'width', tempWidth);

	//POSITION TOOL TIP
	var toolTipBoxWidth = getPropertyValue('tooltipBox', 'offsetWidth')
	var toolTipBoxHeight = getPropertyValue('tooltipBox', 'offsetHeight');
	
	var linkPosX = getRealPos(linkRef,'x') + tooltipXOffset;
	var linkPosY = getRealPos(linkRef,'y') - toolTipBoxHeight + tooltipYOffset;

	//Account for page scrolling. Reposition tooltip as neccesary
	if((getScrollX() + document.body.clientWidth) < (linkPosX + toolTipBoxWidth)){
		var tempOffset = (linkPosX + toolTipBoxWidth) - (getScrollX() + document.body.clientWidth);
		linkPosX -= tempOffset + 6;
	}
	if(getScrollY() > linkPosY){
		var tempName = document.getElementById("link" + lastToolNum);
		var tempOffset = tempName.offsetHeight;
		linkPosY += toolTipBoxHeight - (2*tooltipYOffset) + tempOffset + 4;
	}

	//allow for manual positioning override
	linkPosX += xOffsetArray[lastToolNum];
	linkPosY += yOffsetArray[lastToolNum];

	//Make it happen
	var linkPosXString = linkPosX + "px";
	var linkPosYString = linkPosY + "px";
	changeStyle('tooltipBox', 'left', linkPosXString);
	changeStyle('tooltipBox', 'top', linkPosYString);

	//THICK DOUBLE UNDERLINE
	underlineOn("link0");

	//REVEAL TIP
	changeStyle('tooltipBox', 'visibility', 'visible');
}

//Firefox Style Tweak
if(navigator.appName == "Netscape"){
	document.write("<style>.intellitextLink{padding-bottom: 1px;}</style>");
}


/**
 * FlashObject v1.3d: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com=="undefined"){var com=new Object();}
if(typeof com.deconcept=="undefined"){com.deconcept=new Object();}
if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();}
if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();}
com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
this.useExpressInstall=_7;
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}
};
com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},createParamTag:function(n,v){
var p=document.createElement("param");
p.setAttribute("name",n);
p.setAttribute("value",v);
return p;
},getVariablePairs:function(){
var _19=new Array();
var key;
var _1b=this.getVariables();
for(key in _1b){_19.push(key+"="+_1b[key]);}
return _19;
},getFlashHTML:function(){
var _1c="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_1c="<embed type=\"application/x-quicktime\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1d=this.getParams();
for(var key in _1d){_1c+=[key]+"=\""+_1d[key]+"\" ";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_1c+="flashvars=\""+_1f+"\"";}
_1c+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _20=this.getParams();
for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}
var _22=this.getVariablePairs().join("&");
if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";
}_1c+="</object>";}
return _1c;
},write:function(_23){
if(this.useExpressInstall){
var _24=new com.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}
}else{this.setAttribute("doExpressInstall",false);}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _23=="string")?document.getElementById(_23):_23;
n.innerHTML="<div style='height:180px;width:320px;'><object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab#version=7,3,0,0' id='admovie' width='320' height='180'><param name='src' value='http://movies.apple.com/movies/us/apple/iphone/2008/ads/unslow/apple_iphone3g_ad_unslow_20080723_320x180.mov'><object id='admovieInner' data='http://movies.apple.com/movies/us/apple/iphone/2008/ads/unslow/apple_iphone3g_ad_unslow_20080723_320x180.mov' type='video/quicktime' width='320' height='180'><param name='controller' value='false'><param name='showlogo' value='true'><param name='autostart' value='true'><param name='cache' value='true'><param name='saveembedtags' value='true'></object><param name='controller' value='false'><param name='showlogo' value='true'><param name='autostart' value='true'><param name='cache' value='true'><param name='saveembedtags' value='true'></object></div>";
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}};
com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){
var _28=new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{
try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_28=new com.deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_26&&_28.major>_26.major){return _28;}
if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){
try{
_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}catch(e){}}}
return _28;
};
com.deconcept.PlayerVersion=function(_2c){
this.major=parseInt(_2c[0])||0;
this.minor=parseInt(_2c[1])||0;
this.rev=parseInt(_2c[2])||0;
};
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}
return true;
};
com.deconcept.util={getRequestParameter:function(_2e){
var q=document.location.search||document.location.hash;
if(q){var _30=q.indexOf(_2e+"=");
var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;
if(q.length>1&&_30>-1){
return q.substring(q.indexOf("=",_30)+1,_31);}}return "";
},removeChildren:function(n){
while(n.hasChildNodes()){
n.removeChild(n.firstChild);}}};
if(Array.prototype.push==null){
Array.prototype.push=function(_33){
this[this.length]=_33;
return this.length;};}
var getQueryParamValue=com.deconcept.util.getRequestParameter;
var FlashObject=com.deconcept.FlashObject;

