function staf_SE() {

/*
 * 	 Author : STaF Team
 *
 */


	var omniture_tracking;

	// Email This variables
	var width, height;        // Width and Height of Email Popup
	var im_width, im_height;  // Width and Height of Email Popup
	var lang = "";            // Language parameter

	// IM Variables
	var message = "";        // IM Message
	var linkURL = "";        // Default URL is the current page.
	var pageTitle = "";      // Page Title
	var confirm = false;     // Confirmation pop-up window for non-AOL browsers

	// Launch IM
	var sendIM = function () {
		winl = (screen.width - im_width) / 2;
		wint = (screen.height - im_height) / 2;

		if (winl < 0) winl = 0;
		if (wint < 0) wint = 0;

		window.open("http://sendtoafriend.aol.com/im.adp?url=" + linkURL + "&title=" + pageTitle + "&lang=" + lang, "IM_Window", "height=" + im_height + ",width=" + im_width + ",top=" + wint + ",left=" + winl + ",statusbar=0,toolbar=0,menubar=0,location=0,resizable=0");
	}

	// Launch Email
	var sendEmail = function () {
		winl = (screen.width - width) / 2;
		wint = (screen.height - height) / 2;

		if (winl < 0) winl = 0;
		if (wint < 0) wint = 0;

		window.open("http://sendtoafriend.aol.com/?url=" + linkURL + "&title=" + pageTitle + "&lang=" + lang, "Email_Window", "height=" + height + ",width=" + width + ",top=" + wint + ",left=" + winl + ",statusbar=0,toolbar=0,menubar=0,location=0,resizable=0");
	}

	// Default Values
	var setDefault = function () {
		message = "Your friend wants you to check this out:";
		linkURL = escape(document.location);
		pageTitle = escape(document.title);
		confirm = false;
		width = 292;
		height = 500;
		im_width = 292;
		im_height = 150;
		lang = "en-US";
	}

	// Set default values.
	setDefault();

	return {

		sendIM: function () {

			if (omniture_tracking) {
				setOmniStaf("IM");
			}

			sendIM();
		},

		sendEmail: function () {

			if (omniture_tracking) {
				setOmniStaf("Email");
			}

			sendEmail();
		},

		setMessage: function (custom_message) {
			if (typeof(custom_message) == "string") {
				message = custom_message;
			}
		},

		setWidth: function (custom_width) {
			if (typeof(custom_width) == "number") {
				width = custom_width;
			}
		},

		setHeight: function (custom_height) {
			if (typeof(custom_height) == "number") {
				height = custom_height;
			}
		},

		setIMWidth: function (custom_width) {
			if (typeof(custom_width) == "number") {
				im_width = custom_width;
			}
		},

		setIMHeight: function (custom_height) {
			if (typeof(custom_height) == "number") {
				im_height = custom_height;
			}
		},

		setLang: function (custom_lang) {
			if (typeof(custom_lang) == "string") {
				lang = custom_lang;
			}
		},

		setTitle: function (custom_title) {
			if (typeof(custom_title) =="string") {
				pageTitle = escape(custom_title);
			}
		},

		setURL: function (custom_url) {
			if (typeof(custom_url) =="string") {
				linkURL = escape(custom_url);
			}
		}

	};

}
<!--
// Create and instantiate the class only if not already created:
try {
if(top.channels_refresher == null) {

	// channels_refresher constructor:
	 top.channels_refresher = function() {
	 	this.add_impression.domains = new Object();
		this.ads_list = new Array();
		var body = top.document.body;
		var inner_elem = body;
		while((inner_elem = inner_elem.lastChild).tagName.toLowerCase() != "script");
		var container_elem = inner_elem.parentNode;
		while(container_elem.tagName.toLowerCase() != "div" 
							&& container_elem.tagName.toLowerCase() != "body") {
			container_elem = inner_elem.parentNode;
		}
		this.container = container_elem;
	}
	
	top.channels_refresher.prototype = {
		/** 
		 * add_ad
		 * @param index - ZERO-BASED number indicating the declared order of the ad.
		 * @param id    - Magic Number of the ad
		 * @param w     - width of the ad in pixels
		 * @param h     - height of the ad in pixels
		 * @param s     - spot of the ad in string (e.g. 300x250_2)
		 *		  Special values: 0 (Default) - always refresh, -1 - do not refresh
		 */
		add_ad:function(id, w, h, index, s) {
			if(s == null) {
				s = 0;
			}
			if(index == null) {
				this.ads_list.push({id:id, width:w, height:h, spot:s});
			} else {
				this.ads_list[index] = {id:id, width:w, height:h, spot:s};
			}
		},
		
		// add_impression
		add_impression:function(url) {
			var domains = this.add_impression.domains;
			var make_sequential_name = function(name) {
				if(domains[name] == null) {
					domains[name] = true;
					return name;
				} else {
					var seq = 0;
					var _name = name + "_" + (++seq);
					while(domains[_name] != null) {
						_name = name + "_" + (++seq);
					}
					domains[_name] = true;
					return _name;
				}
			}
			if(url != null && url.length) {
				var frame_name = make_sequential_name("frame_" + new Date().getTime());
				var i_frame = top.document.createElement("iframe");
				i_frame.id = frame_name;
				i_frame.width = 1;
				i_frame.height = 1;
				i_frame.style.position = "absolute";
				i_frame.style.top = "-10px";
				i_frame.style.left = "-10px";
				i_frame.style.visibility = "hidden";
				i_frame.src = url;
				this.container.appendChild(i_frame);
				return frame_name;
			}
		},
		
		// add_url
		add_url:function(f_name, url) {
			//	If the target_frames object is null, create it:
			if(!this.target_frames) this.target_frames = new Object();
			//	If this frame name has not been used before, then...
			if(!this.target_frames[f_name]) {
				//	Create a new frame repository:
				this.target_frames[f_name] = new Object();
				//	Create a new list for frame urls:
				this.target_frames[f_name].urls = new Array();
				//	Create a default index of zero for this frame:
				this.target_frames[f_name].current_index = 0;
			}
			//	Add the url to the frame's url list:
			if(url && url.length) this.target_frames[f_name].urls.push(url);
		},
		
		// refresh_ads
		refresh_ads:function() {	

			adsReloadIframeAll();

/*
			for(var i = 0; i < this.ads_list.length; i++) {
				if(this.ads_list[i] != null) {
					try {
						top["adsF" + i].location.href = top.adsHt + "/html/" 
								+ this.ads_list[i].id + "/" + adsScr1 + "/" 
								+ top.adsExt + "?" + top.adsNMSG + "&width=" 
								+ this.ads_list[i].width + "&height=" 
								+ this.ads_list[i].height + "&target=" + top.adsTar 
								+ top.adsTz + top.adsScS + top.adsSr + top.adsSN 
								+ top.adsWM + top.adsOt + "&tile=" + top.adsTile + top.adsESN + top.adsRSIVal +"&CT=I";
					} catch(e) {}
				}
			}
*/

		},
		
		// refresh_ad
		refresh_ad:function(index) {
			if(this.ads_list[index] != null) {
				try {
						adsReloadIframe('adsF'+i);
/*
					top["adsF" + index].location.href = top.adsHt + "/html/" 
							+ this.ads_list[index].id + "/" + adsScr1 + "/" 
							+ top.adsExt + "?" + top.adsNMSG + "&width=" 
							+ this.ads_list[index].width + "&height=" 
							+ this.ads_list[index].height + "&target=" + top.adsTar 
							+ top.adsTz + top.adsScS + top.adsSr + top.adsSN 
							+ top.adsWM + top.adsOt + "&tile=" + top.adsTile + top.adsESN + top.adsRSIVal +"&CT=I";
*/
				} catch(e) {}
			}
		},
		
		// refresh_ads_string
		refresh_ads_string:function(str) {
			var ads = str.split(",");
			for(var i = 0; i < ads.length; i++) {
				var index = parseInt(ads[i]);
				if(!isNaN(index) && index >= 0 && index < this.ads_list.length) {
					this.refresh_ad(index);
				}
			}
		},
		
		// refresh_ads_by_spot
		refresh_ads_by_spot:function(str) {
			if (str == '-1') return;
			var spots = new Array();
			if (str == null || str == 'undefined' || str == '0') {
				for(var i = 0; i < this.ads_list.length; i++) {
					spots.push(this.ads_list[i].spot);
				}
			} else {
				spots = str.split(",");
			}
			spots = spots.sort();
			var oldVar = '';
			for(var i = 0; i < spots.length; i++) {
				var spot = spots[i];
				if (oldVar == spot) break;
				oldVar = spot;
				for(var j = 0; j < this.ads_list.length; j++) {
					if (spot == this.ads_list[j].spot) {
						this.refresh_ad(j);
						break;
					}
				}
			}
		},

		// refresh_all
		refresh_all:function() {
			//	Loop through the ads and refresh them:
			this.refresh_ads();
			//	If there are target_frames:
			this.refresh_frames();
		},
		
		// refresh_all
		refresh_frames:function() {
			if(this.target_frames) {
				for(var f in this.target_frames) {
					var frame = this.target_frames[f];
					var i_frame = top.document.getElementById(f);
					if(frame.urls.length) {
						var url = frame.urls[frame.current_index++];
						if(frame.current_index >= frame.urls.length) frame.current_index = 0;
						this.refresh_frame(f, url);	
					}
				}
			}
		},
		
		// refresh_frame
		refresh_frame:function(f_name, url) {
			if(url != null && url.length) {
				var elem = (top.frames[f_name] 
						|| top.document.getElementById(f_name).contentWindow 
						|| top.document.getElementById(f_name));
				try {
					if(elem.location) {
						if((url == elem.location.href) && elem.location.reload) {
							elem.location.reload(true);
						} else {
							elem.location.href = url;
						}
					} else {
						elem.src = url;
					}
					
				} catch(e) {}
			}
		}
	
	}
	
	// Instantiate the default refresher
	window.ch_refresher = new channels_refresher();
}
} catch(e) {}
//-->



var MP_JS_VERSION="$RCSfile: mp.js,v $ $Revision: 1.25 $ $Name: web_fe_mpp_cf0432-3 $";
function _mp(){
this.host="us.video.aol.com";
var _1=this.host;
var _2=document.location.href;
var _3=_2.indexOf("?");
if(_3>0){
_2=_2.substring(0,_3);
}
var _4=false;
var _5="";
var _6=new Array();
_6["video-browse-full"]={t:"video",w:748,h:541,page:"video.index.adp",embed:false,size:"browse-full",ar:"us_en_video_748x541_full"};
_6["video-browse-light"]={t:"video",w:748,h:541,page:"video.index.adp",embed:false,size:"browse-light",ar:"us_en_video_748x541_full"};
_6["video-browse"]={t:"video",w:748,h:541,page:"video.index.adp",embed:false,size:"browse",ar:"us_en_video_748x541_full"};
_6["video-full"]={t:"video",w:748,h:541,page:"video.full.adp",embed:false,size:"full",ar:"us_en_video_748x541_full"};
_6["audio-full"]={t:"audio",w:748,h:541,page:"audio.full.adp",embed:false,size:"full",ar:"us_en_audio_748x541_full"};
_6["video-mini"]={t:"video",w:325,h:348,page:"video.mini.adp",embed:false,size:"mini",ar:"us_en_video_176x163"};
_6["audio-mini"]={t:"audio",w:320,h:73,page:"audio.mini.adp",embed:false,size:"mini",ar:"us_en_audio_320x73"};
_6["video-oldmedium"]={t:"video",w:320,h:313,page:"widget.adp",embed:true,size:"1",ar:"us_en_video_320x313"};
_6["video-large"]={t:"video",w:320,h:313,page:"widget.adp",embed:true,size:"large",ar:"us_en_video_320x313"};
_6["video-small"]={t:"video",w:176,h:165,page:"widget.adp",embed:true,size:"small",ar:"us_en_video_176x163"};
_6["video-widescreen"]={t:"video",w:320,h:313,page:"widget.adp",embed:true,size:"widescreen",ar:"us_en_video_320x313"};
_6["video-superlarge"]={t:"video",w:748,h:541,page:"widget.adp",embed:true,size:"superlarge",ar:"us_en_video_176x163"};
_6["audio-large"]={t:"audio",w:320,h:73,page:"widget.adp",embed:true,size:"large",ar:"us_en_audio_320x73"};
_6["audio-small"]={t:"audio",w:176,h:33,page:"widget.adp",embed:true,size:"small",ar:"us_en_audio_176x33"};
_6["us_en_video_988x725_full_utility"]={t:"video",w:988,h:725,page:"player/launcher?ar=us_en_video_988x725_full_utility",embed:false,size:"na",ar:"us_en_video_988x725_full_utility"};
var _7=false;
var _8=null;
var _9="player/launcher?ar=";
var _a=new Object;
var _b=new Object;
var _c="";
var _d=null;
this.launcher=function(ar,_f,_10){
ar=ar.toLowerCase();
var idx=_f.indexOf(":");
var _12,_13;
if(idx>0){
_12=_f.substring(0,idx);
_13=_f.substring(idx+1);
var _14=_12+"="+escape(_13).replace(/%3A/g,":");
_14+=_getParams(_10,this.host);
var obj=_newWidget(ar);
if(obj!=null){
if(obj.fname!=null){
ar=obj.fname;
}
_6[ar]=obj;
_play(ar,_14);
}
}
};
this.play=function(_16,_17,_18,_19){
var idx=_17.indexOf(":");
var _1b,_1c;
if(idx>0){
_1b=_17.substring(0,idx);
_1c=_17.substring(idx+1);
var _1d=_1b+"="+escape(_1c);
_1d+=_getParams(_19,this.host);
_1d+="&lg=1";
if(_18&&_18.length){
var _1e=new Array("scroll1","scroll2","scroll3");
for(var i=0;i<_18.length;i++){
_1d+="&"+_1e[i]+"="+escape(_18[i]);
}
}
_play(_16,_1d);
}
};
this.playlist=function(_20,pls,_22,_23,_24){
if(_22==null||_22.length==0){
_22="wmv";
}
var idx=pls.indexOf(":");
if(idx>0){
pls=pls.substring(idx+1);
}
var url="pls="+pls+"&type="+_22;
if(_23){
url+="&start="+_23;
}
if(_24){
url+="&startid="+_24;
}
url+="&lg=2";
_play(_20,url);
};
this.register=function(_27){
_a[_27]=true;
var _28=_b[_27];
if(_28!=null){
for(var i=0;i<_28.length;i++){
try{
frames[_27].VGlobal.processEvent(_28[i]);
}
catch(E){
if(_4){
alert("mp.js:register - Exception calling VGlobal.processEvent for fname '"+_27+"', data element "+i+".\n\ne:"+e);
}
}
}
_b[_27]=null;
}
};
this.broadcast=function(_2a,_2b){
if(_2a==null){
return;
}
if(_2b==null||_2b.length==0){
for(var n in _a){
if((_2a.eventSrc!=null)&&(_6[_2a.eventSrc]!=null)&&(_6[n]!=null)&&(_6[_2a.eventSrc].group==_6[n].group)){
_pubData(_2a,n);
}
}
}else{
_pubData(_2a,_2b);
}
};
this.forwardClickEvent=function(ar,_2e){
if(ar==null||ar.length==0||_2e==null){
return false;
}
try{
if(_6[ar].evtCallback){
_6[ar].evtCallback(ar,_2e);
}
}
catch(e){
if(_4){
alert("mp.js:forwardClickEvent - Exception calling evtCallback for ar '"+ar+"'.\n\ne:"+e);
}
return false;
}
return true;
};
this.publishClick=function(ar,_30,_31){
if(ar==null||ar.length==0||_30==null||_30.length==0){
return false;
}
try{
frames[ar].TPM_Player.publishClickEvent(_30,_31);
}
catch(e){
if(_4){
alert("mp.js:publishClick - Exception calling TPM_Player.publishClickEvent for ar '"+ar+"'.\n\ne:"+e);
}
return false;
}
return true;
};
function _newWidget(_32){
var _33=_32.split("_");
if(_33.length<4){
return;
}
var _34=_33[3].toLowerCase();
var _35=_34.indexOf("x");
if(_35<1){
return;
}
var w;
var h;
try{
w=_34.substring(0,_35);
h=_34.substring(_35+1);
if(parseInt(w)!=w-0){
return;
}
if(parseInt(h)!=h-0){
return;
}
}
catch(e){
if(_4){
alert("mp.js:_newWidget - Exception converting width and height to integers for widget '"+ar+"'.\n\ne:"+e);
}
return;
}
var obj={};
obj.w=w;
obj.h=h;
obj.embed=_7;
obj.embedDivId=_8;
obj.page=_9+_32;
obj.ar=_32;
obj.evtCallback=_evtCallback;
obj.group=_d;
if(_d!=null&&_d.length>0){
obj.fname=_32+"-"+_d;
}else{
obj.fname=_32;
}
return obj;
}
function _getParams(_39,_3a){
_7=false;
_8=null;
_evtCallback=null;
_1=_3a;
_d=null;
var _3b="";
if(_39&&_39.length){
var idx,_3d,_3e;
var _3f=false;
for(var i=0;i<_39.length;i++){
idx=_39[i].indexOf(":");
if(idx<0){
continue;
}
_3d=_39[i].substring(0,idx);
_3e=_39[i].substring(idx+1);
if(_3d=="embed"){
_3f=true;
if(_3e=="true"){
_7=true;
}else{
_7=false;
}
}else{
if(_3d.toLowerCase()=="embeddivid"&&_3e.length!=0){
_3f=true;
_8=_3e;
}else{
if(_3d=="domain"&&_3e.length!=0){
_3f=true;
_1=_3e;
}else{
if(_3d=="autoplay"&&_3e.length==0){
_3f=true;
}else{
if(_3d.toLowerCase()=="evtcallback"&&_3e.length!=0){
_3f=true;
try{
_evtCallback=eval(_3e);
}
catch(e){
if(_4){
alert("mp.js:_getParams - Exception from eval("+_3e+") while processing 'evtCallback' param.\n\ne:"+e);
}
}
}else{
if(_3d=="debug"&&_3e==1){
_4=true;
}else{
if(_3d=="pdomain"&&_3e.length!=0){
_3f=true;
_c=_3e;
}else{
if(_3d=="group"&&_3e.length!=0){
_d=_3e;
}
}
}
}
}
}
}
}
if(!_3f){
if(_3d.toLowerCase()=="srefid"){
_3b+="&"+_3d+"="+escape(_3e).replace(/%3A/g,":");
}else{
_3b+="&"+_3d+"="+escape(_3e);
}
}
_3f=false;
}
}
if(location.href.indexOf("mpdebug=1")>-1){
_3b+="&debug=1";
_4=true;
}else{
if(location.href.indexOf("mpdebug=2")>-1){
_3b+="&debug=2";
_4=true;
}
}
return _3b;
}
function _play(_41,_42){
_41=_41.toLowerCase();
_a[_41]=false;
var ua=navigator.userAgent.toLowerCase();
var w=null;
try{
w=_6[_41];
if(w==null){
return;
}
}
catch(e){
w=_6["video-full"];
}
if(_1=="us.video.aol.com"){
w.page=_9+w.ar;
}
var _45="?";
if(w.page.indexOf("?")>=0){
_45="&";
}
var url="http://"+_1+"/"+w.page+_45;
url+=_42;
var _47="width="+w.w+", height="+w.h+",status=yes,resizable=no";
if(_4){
_47+=",location=yes,scrollbars=yes";
}
if(w.embed){
if(w.t){
url+="&mediatype="+w.t;
}
if(w.size){
url+="&size="+w.size;
}
if(_42.indexOf("autoplay=")==-1){
url+="&autoplay=3";
}
if(_c.length==0){
url+="&pdomain="+document.domain;
}else{
url+="&pdomain="+_c;
}
url+="&referer="+escape(_2);
var af=null;
try{
af=window.frames[_41];
}
catch(e){
}
if(af){
af.location.href=url;
}else{
_embedPlayer(_41,url);
}
}else{
if(ua.indexOf("aol")!=-1){
try{
if(_5!=""){
_5.close();
}
}
catch(e){
}
}
url+="&referer="+escape(_2);
_5=window.open(url,"_aolvideo_",_47);
}
}
function _embedPlayer(_49,url){
_49=_49.toLowerCase();
if(url==null){
url="";
}
var w=null;
try{
w=_6[_49];
}
catch(e){
w=_6["video-large"];
}
var _4c=(_4)?"":" scrolling=no ";
var _4d=(_4)?"":"overflow:hidden;";
var _4e="<iframe id='"+_49+"' name='"+_49+"' width="+w.w+" height="+w.h+" marginwidth=0 marginheight=0 frameborder=0 "+_4c+" border=0 style='"+_4d+" position:relative; top:0px; left:0px;' src='"+url+"'></iframe>";
if(w.embedDivId&&w.embedDivId!=null&&w.embedDivId.length>0){
var _4f=document.getElementById(w.embedDivId);
if(_4f!=null){
_4f.innerHTML=_4e;
}
}else{
document.writeln(_4e);
}
}
function _pubData(_50,_51){
if(_50==null){
return;
}
var _52=_50.eventSrc;
if(_51!=_52){
if(_a[_51]){
try{
if(frames[_51]&&typeof (frames[_51].VGlobal)!="undefined"&&typeof (frames[_51].VGlobal.processEvent)!="undefined"){
frames[_51].VGlobal.processEvent(_50);
}
}
catch(E){
if(_4){
alert("mp.js:_pubData - Exception calling VGlobal.processEvent for fname '"+_51+"'.\n\ne:"+e);
}
}
}else{
_50.bufferSrc=_51;
if(_b[_51]==null){
var _53=new Array();
_53[0]=_50;
_b[_51]=_53;
}else{
var _53=_b[_51];
if(_53.length==10){
_53=new Array();
}
_53[_53.length]=_50;
_b[_51]=_53;
}
}
}
}
}
var mp=new _mp();


