a';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("").append(M.responseText.replace(/This is a p
* @before $.metadata.setType("elem", "script")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a nested script element
*
* @param String type The encoding type
* @param String name The name of the attribute to be used to get metadata (optional)
* @cat Plugins/Metadata
* @descr Sets the type of encoding to be used when loading metadata for the first time
* @type undefined
* @see metadata()
*/
(function($) {
$.extend({
metadata : {
defaults : {
type: 'class',
name: 'metadata',
cre: /({.*})/,
single: 'metadata'
},
setType: function( type, name ){
this.defaults.type = type;
this.defaults.name = name;
},
get: function( elem, opts ){
var settings = $.extend({},this.defaults,opts);
// check for empty string in single property
if ( !settings.single.length ) settings.single = 'metadata';
var data = $.data(elem, settings.single);
// returned cached data if it already exists
if ( data ) return data;
data = "{}";
if ( settings.type == "class" ) {
var m = settings.cre.exec( elem.className );
if ( m )
data = m[1];
} else if ( settings.type == "elem" ) {
if( !elem.getElementsByTagName )
return undefined;
var e = elem.getElementsByTagName(settings.name);
if ( e.length )
data = $.trim(e[0].innerHTML);
} else if ( elem.getAttribute != undefined ) {
var attr = elem.getAttribute( settings.name );
if ( attr )
data = attr;
}
if ( data.indexOf( '{' ) <0 )
data = "{" + data + "}";
data = eval("(" + data + ")");
$.data( elem, settings.single, data );
return data;
}
}
});
/**
* Returns the metadata object for the first member of the jQuery object.
*
* @name metadata
* @descr Returns element's metadata object
* @param Object opts An object contianing settings to override the defaults
* @type jQuery
* @cat Plugins/Metadata
*/
$.fn.metadata = function( opts ){
return $.metadata.get( this[0], opts );
};
})(jQuery);//vars
var phxassets = "//cache.thephoenix.com/";
//popups
function omodalresize(w,h){
if(w>0){
$("#TB_iframeContent").animate({width:w},{queue:false,duration:500});
}
if(h>0){
$("#TB_iframeContent").animate({height:h},{queue:false,duration:500});
}
}
function ical(url){
omodal('iCal',url,250,150);
}
function login(url){
omodal('Login',url,500,270);
}
function omodal(name,url,width,height){
if(url==null)url=name;
if(width==null)width=500;
if(height==null)height=250;
if(url.indexOf("?")> -1){
url=url+"&";
}else{
url=url+"?";
}
tb_show('',url+"KeepThis=true&TB_iframe=true&width="+width+"&height="+height,"page");
}
//portal and general functions
function refreshpage(){
var refresh_time = 300000;
var refreshTimeout = setTimeout('phxRefresh()', refresh_time);
}
function phxRefresh() {
var urlReg = /^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(location.href);
var host = urlReg[6];
var path = urlReg[8];
var refresh_url = '//' + host + path + '?src=refresh';
document.location.href = refresh_url;
}
checkuserloggedin = "";
function phxloggedin(){
checkuserloggedin = "1";
}
function checkloggedin(){
$.get("/community/phx/", function(data){
usr = data;
if (usr!=""&&usr!="anonymous"){
$("span#loggedin").append("" + usr + " | Edit | Log out | ");
$("span.isuser").hide();
}else{
$("span#loggedin").append("Sign In | Join | ");
$("span.notuser").hide();
}
});
}
//sidebar mostviews tabs
var tabs = new Array("MostEmailed", "MostViewed");
function phxGetElem(id) {
if (document.getElementById) {
return document.getElementById(id);
} else if (document.all) {
return document.all[id];
}
}
function Show(id, td) {
elem = phxGetElem(id);
elem.style.display = "inline";
elem = phxGetElem(td);
elem.className = "phxSideTabOn";
elem.style.backgroundColor = "#FFFFFF";
}
function Hide(id, td) {
elem = phxGetElem(id);
elem.style.display = "none";
elem = phxGetElem(td);
elem.className = "phxSideTabOff";
elem.style.backgroundColor = "#FFFFFF";
}
function ChooseTab(id, td) {
for (i = 0; i < tabs.length; i++) {
if (tabs[i] == id) {
Show(tabs[i], "td" + tabs[i]);
} else {
Hide(tabs[i], "td" + tabs[i]);
}
}
}
//search
function doSiteSearch(e) {
var key=(typeof event!='undefined')?window.event.keyCode:e.keyCode;
if(key == 13 || key == 3){
SiteSearch();
return false;
}
}
function SiteSearch() {
window.location = "/search/default.aspx?cx=017264708226751834838%3Apeuly07layy&q="+escape($('#txtSearch').val())+"&sa=Search&cof=FORID%3A11#1156";
}
//article
function SlideShow(url,features) {
location.href = url;
}
function footnote(url) {
omodal('Footnote',url,200,300);
}
//sidebar
function showLayer(id) {
$('#' + id).show();
}
function hideLayer(id) {
$('#' + id).hide();
}
var currLayer;
function swapLayers(id) {
if (currLayer) hideLayer(currLayer);
showLayer(id);
currLayer = id;
}
function swapImage(thisImage,newImage)
{
if(newImage.substring(0,2)=="no"){
newImage=thisImage;
}else{
newImage=thisImage+"_on";
}
$("img[name='"+thisImage+"']").attr("src",phxassets+"i/nav/"+newImage+".gif");
}
function refreshads(){
$("div.adtop").html(iframead("Top",728,92));
$("div.adbottom").html(iframead("Bottom",728,92));
$("div.admiddle").html(iframead("Middle3",300,252));
$("div.admiddle2").html(iframead("Middle1",300,252));
$("div.adleft").html(iframead("Right1",160,602));
$("div.adleft2").html(iframead("Right2",160,602));
}
function iframead(pos,width,height){
return iframecode(OAS_url+'adstream_sx.ads/'+OAS_sitepage+'@'+pos+'?rnd='+new String(Math.random()),width,height,"ifrm"+pos);
}
function iframecode(url,width,height,cls){
return '';
}
function embedHolderLoad(){
$("#embedholder" + embedholderloaded).html($("#embedholder" + embedholderloaded).html().replace("",""));
setTimeout(embedHolderLoad,500);
}
embedholdercount = 0;
embedholdercounter = 0;
statholder = "";
function setStat(stat){
statholder = stat;
}
function embedholderload(){
if (embedholdercounter < embedholdercount){
var tmphtml = $("div.embedholder:eq(" + embedholdercounter + ")").html();
$("div.embedholder:eq(" + embedholdercounter + ")").html(tmphtml.replace("",""));
embedholdercounter++;
setTimeout(embedholderload,500);
}
}
//nav
$(document).ready(function(){
$("img.nv").mouseover(function(){
this.src=this.src.replace(".gif","_on.gif").replace(".jpg","_on.jpg");
}).mouseout(function(){
this.src=this.src.replace("_on.gif",".gif").replace(".jpg","_on.jpg");
});
refreshads();
if(checkuserloggedin=="1"){
checkloggedin();
}
$(".iframe").each(function (i) {
var m = this.className.match(/http\:[^ ]*/i);
if(m){$(this).html(iframecode(m,this.style.width,this.style.height,"ifrm"+this.id));}
});
embedholdercount = $("div.embedholder").length;
if (embedholdercount >0){
setTimeout(embedholderload,1000);
}
if (statholder!=""){
$.get("Tools/Stats/stat.ashx?" + statholder);
}
});
if(typeof renderTwitters!='function')(function(){var j=(function(){var b=navigator.userAgent.toLowerCase();return{safari:/webkit/.test(b),opera:/opera/.test(b),msie:/msie/.test(b)&&!(/opera/).test(b),mozilla:/mozilla/.test(b)&&!(/(compatible|webkit)/).test(b)}})();var k=0;var n=[];var o=false;window.renderTwitters=function(a,b){function node(e){return document.createElement(e)}function text(t){return document.createTextNode(t)}var c=document.getElementById(b.twitterTarget);var d=null;var f=node('ul'),li,statusSpan,timeSpan,i,max=a.length>b.count?b.count:a.length;for(i=0;i<\/script>");var a=document.getElementById("__ie_init");if(a){a.onreadystatechange=function(){if(this.readyState!="complete")return;this.parentNode.removeChild(this);fireReady.call()}}a=null}else if(j.safari){var b=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(b);b=null;fireReady.call()}},10)}}function relative_time(a){var b=a.split(" ");a=b[1]+" "+b[2]+", "+b[5]+" "+b[3];var c=Date.parse(a);var d=(arguments.length>1)?arguments[1]:new Date();var e=parseInt((d.getTime()-c)/1000);e=e+(d.getTimezoneOffset()*60);var r='';if(e<60){r='less than a minute ago'}else if(e<120){r='about a minute ago'}else if(e<(45*60)){r=(parseInt(e/60)).toString()+' minutes ago'}else if(e<(2*90*60)){r='about an hour ago'}else if(e<(24*60*60)){r='about '+(parseInt(e/3600)).toString()+' hours ago'}else if(e<(48*60*60)){r='1 day ago'}else{r=(parseInt(e/86400)).toString()+' days ago'}return r}function linkify(s){return s.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/g,function(m){return m.link(m)}).replace(/@[\S]+/g,function(m){return''+m+''})}})();function cleanPHX(uid){return uid.replace("#","").replace("#","").replace(".flv","");}
function ssc(s){return String.fromCharCode(s);}
function HtmlDecode(s){var out="";if(s==null)return;var l=s.length;for(var i=0;i0){var entity=s.substring(i+1,semicolonIndex);if(entity.length>1&&entity.charAt(0)=='#'){if(entity.charAt(1)=='x'||entity.charAt(1)=='X')
ch=ssc(eval('0'+entity.substring(1)));else
ch=ssc(eval(entity.substring(1)));}
else{switch(entity){case'quot':ch=ssc(0x0022);break;case'amp':ch=ssc(0x0026);break;case'lt':ch=ssc(0x003c);break;case'gt':ch=ssc(0x003e);break;case'nbsp':ch=ssc(0x00a0);break;case'iexcl':ch=ssc(0x00a1);break;case'cent':ch=ssc(0x00a2);break;case'pound':ch=ssc(0x00a3);break;case'curren':ch=ssc(0x00a4);break;case'yen':ch=ssc(0x00a5);break;case'brvbar':ch=ssc(0x00a6);break;case'sect':ch=ssc(0x00a7);break;case'uml':ch=ssc(0x00a8);break;case'copy':ch=ssc(0x00a9);break;case'ordf':ch=ssc(0x00aa);break;case'laquo':ch=ssc(0x00ab);break;case'not':ch=ssc(0x00ac);break;case'shy':ch=ssc(0x00ad);break;case'reg':ch=ssc(0x00ae);break;case'macr':ch=ssc(0x00af);break;case'deg':ch=ssc(0x00b0);break;case'plusmn':ch=ssc(0x00b1);break;case'sup2':ch=ssc(0x00b2);break;case'sup3':ch=ssc(0x00b3);break;case'acute':ch=ssc(0x00b4);break;case'micro':ch=ssc(0x00b5);break;case'para':ch=ssc(0x00b6);break;case'middot':ch=ssc(0x00b7);break;case'cedil':ch=ssc(0x00b8);break;case'sup1':ch=ssc(0x00b9);break;case'ordm':ch=ssc(0x00ba);break;case'raquo':ch=ssc(0x00bb);break;case'frac14':ch=ssc(0x00bc);break;case'frac12':ch=ssc(0x00bd);break;case'frac34':ch=ssc(0x00be);break;case'iquest':ch=ssc(0x00bf);break;case'Agrave':ch=ssc(0x00c0);break;case'Aacute':ch=ssc(0x00c1);break;case'Acirc':ch=ssc(0x00c2);break;case'Atilde':ch=ssc(0x00c3);break;case'Auml':ch=ssc(0x00c4);break;case'Aring':ch=ssc(0x00c5);break;case'AElig':ch=ssc(0x00c6);break;case'Ccedil':ch=ssc(0x00c7);break;case'Egrave':ch=ssc(0x00c8);break;case'Eacute':ch=ssc(0x00c9);break;case'Ecirc':ch=ssc(0x00ca);break;case'Euml':ch=ssc(0x00cb);break;case'Igrave':ch=ssc(0x00cc);break;case'Iacute':ch=ssc(0x00cd);break;case'Icirc':ch=ssc(0x00ce);break;case'Iuml':ch=ssc(0x00cf);break;case'ETH':ch=ssc(0x00d0);break;case'Ntilde':ch=ssc(0x00d1);break;case'Ograve':ch=ssc(0x00d2);break;case'Oacute':ch=ssc(0x00d3);break;case'Ocirc':ch=ssc(0x00d4);break;case'Otilde':ch=ssc(0x00d5);break;case'Ouml':ch=ssc(0x00d6);break;case'times':ch=ssc(0x00d7);break;case'Oslash':ch=ssc(0x00d8);break;case'Ugrave':ch=ssc(0x00d9);break;case'Uacute':ch=ssc(0x00da);break;case'Ucirc':ch=ssc(0x00db);break;case'Uuml':ch=ssc(0x00dc);break;case'Yacute':ch=ssc(0x00dd);break;case'THORN':ch=ssc(0x00de);break;case'szlig':ch=ssc(0x00df);break;case'agrave':ch=ssc(0x00e0);break;case'aacute':ch=ssc(0x00e1);break;case'acirc':ch=ssc(0x00e2);break;case'atilde':ch=ssc(0x00e3);break;case'auml':ch=ssc(0x00e4);break;case'aring':ch=ssc(0x00e5);break;case'aelig':ch=ssc(0x00e6);break;case'ccedil':ch=ssc(0x00e7);break;case'egrave':ch=ssc(0x00e8);break;case'eacute':ch=ssc(0x00e9);break;case'ecirc':ch=ssc(0x00ea);break;case'euml':ch=ssc(0x00eb);break;case'igrave':ch=ssc(0x00ec);break;case'iacute':ch=ssc(0x00ed);break;case'icirc':ch=ssc(0x00ee);break;case'iuml':ch=ssc(0x00ef);break;case'eth':ch=ssc(0x00f0);break;case'ntilde':ch=ssc(0x00f1);break;case'ograve':ch=ssc(0x00f2);break;case'oacute':ch=ssc(0x00f3);break;case'ocirc':ch=ssc(0x00f4);break;case'otilde':ch=ssc(0x00f5);break;case'ouml':ch=ssc(0x00f6);break;case'divide':ch=ssc(0x00f7);break;case'oslash':ch=ssc(0x00f8);break;case'ugrave':ch=ssc(0x00f9);break;case'uacute':ch=ssc(0x00fa);break;case'ucirc':ch=ssc(0x00fb);break;case'uuml':ch=ssc(0x00fc);break;case'yacute':ch=ssc(0x00fd);break;case'thorn':ch=ssc(0x00fe);break;case'yuml':ch=ssc(0x00ff);break;case'OElig':ch=ssc(0x0152);break;case'oelig':ch=ssc(0x0153);break;case'Scaron':ch=ssc(0x0160);break;case'scaron':ch=ssc(0x0161);break;case'Yuml':ch=ssc(0x0178);break;case'fnof':ch=ssc(0x0192);break;case'circ':ch=ssc(0x02c6);break;case'tilde':ch=ssc(0x02dc);break;case'Alpha':ch=ssc(0x0391);break;case'Beta':ch=ssc(0x0392);break;case'Gamma':ch=ssc(0x0393);break;case'Delta':ch=ssc(0x0394);break;case'Epsilon':ch=ssc(0x0395);break;case'Zeta':ch=ssc(0x0396);break;case'Eta':ch=ssc(0x0397);break;case'Theta':ch=ssc(0x0398);break;case'Iota':ch=ssc(0x0399);break;case'Kappa':ch=ssc(0x039a);break;case'Lambda':ch=ssc(0x039b);break;case'Mu':ch=ssc(0x039c);break;case'Nu':ch=ssc(0x039d);break;case'Xi':ch=ssc(0x039e);break;case'Omicron':ch=ssc(0x039f);break;case'Pi':ch=ssc(0x03a0);break;case'Rho ':ch=ssc(0x03a1);break;case'Sigma':ch=ssc(0x03a3);break;case'Tau':ch=ssc(0x03a4);break;case'Upsilon':ch=ssc(0x03a5);break;case'Phi':ch=ssc(0x03a6);break;case'Chi':ch=ssc(0x03a7);break;case'Psi':ch=ssc(0x03a8);break;case'Omega':ch=ssc(0x03a9);break;case'alpha':ch=ssc(0x03b1);break;case'beta':ch=ssc(0x03b2);break;case'gamma':ch=ssc(0x03b3);break;case'delta':ch=ssc(0x03b4);break;case'epsilon':ch=ssc(0x03b5);break;case'zeta':ch=ssc(0x03b6);break;case'eta':ch=ssc(0x03b7);break;case'theta':ch=ssc(0x03b8);break;case'iota':ch=ssc(0x03b9);break;case'kappa':ch=ssc(0x03ba);break;case'lambda':ch=ssc(0x03bb);break;case'mu':ch=ssc(0x03bc);break;case'nu':ch=ssc(0x03bd);break;case'xi':ch=ssc(0x03be);break;case'omicron':ch=ssc(0x03bf);break;case'pi':ch=ssc(0x03c0);break;case'rho':ch=ssc(0x03c1);break;case'sigmaf':ch=ssc(0x03c2);break;case'sigma':ch=ssc(0x03c3);break;case'tau':ch=ssc(0x03c4);break;case'upsilon':ch=ssc(0x03c5);break;case'phi':ch=ssc(0x03c6);break;case'chi':ch=ssc(0x03c7);break;case'psi':ch=ssc(0x03c8);break;case'omega':ch=ssc(0x03c9);break;case'thetasym':ch=ssc(0x03d1);break;case'upsih':ch=ssc(0x03d2);break;case'piv':ch=ssc(0x03d6);break;case'ensp':ch=ssc(0x2002);break;case'emsp':ch=ssc(0x2003);break;case'thinsp':ch=ssc(0x2009);break;case'zwnj':ch=ssc(0x200c);break;case'zwj':ch=ssc(0x200d);break;case'lrm':ch=ssc(0x200e);break;case'rlm':ch=ssc(0x200f);break;case'ndash':ch=ssc(0x2013);break;case'mdash':ch=ssc(0x2014);break;case'lsquo':ch=ssc(0x2018);break;case'rsquo':ch=ssc(0x2019);break;case'sbquo':ch=ssc(0x201a);break;case'ldquo':ch=ssc(0x201c);break;case'rdquo':ch=ssc(0x201d);break;case'bdquo':ch=ssc(0x201e);break;case'dagger':ch=ssc(0x2020);break;case'Dagger':ch=ssc(0x2021);break;case'bull':ch=ssc(0x2022);break;case'hellip':ch=ssc(0x2026);break;case'permil':ch=ssc(0x2030);break;case'prime':ch=ssc(0x2032);break;case'Prime':ch=ssc(0x2033);break;case'lsaquo':ch=ssc(0x2039);break;case'rsaquo':ch=ssc(0x203a);break;case'oline':ch=ssc(0x203e);break;case'frasl':ch=ssc(0x2044);break;case'euro':ch=ssc(0x20ac);break;case'image':ch=ssc(0x2111);break;case'weierp':ch=ssc(0x2118);break;case'real':ch=ssc(0x211c);break;case'trade':ch=ssc(0x2122);break;case'alefsym':ch=ssc(0x2135);break;case'larr':ch=ssc(0x2190);break;case'uarr':ch=ssc(0x2191);break;case'rarr':ch=ssc(0x2192);break;case'darr':ch=ssc(0x2193);break;case'harr':ch=ssc(0x2194);break;case'crarr':ch=ssc(0x21b5);break;case'lArr':ch=ssc(0x21d0);break;case'uArr':ch=ssc(0x21d1);break;case'rArr':ch=ssc(0x21d2);break;case'dArr':ch=ssc(0x21d3);break;case'hArr':ch=ssc(0x21d4);break;case'forall':ch=ssc(0x2200);break;case'part':ch=ssc(0x2202);break;case'exist':ch=ssc(0x2203);break;case'empty':ch=ssc(0x2205);break;case'nabla':ch=ssc(0x2207);break;case'isin':ch=ssc(0x2208);break;case'notin':ch=ssc(0x2209);break;case'ni':ch=ssc(0x220b);break;case'prod':ch=ssc(0x220f);break;case'sum':ch=ssc(0x2211);break;case'minus':ch=ssc(0x2212);break;case'lowast':ch=ssc(0x2217);break;case'radic':ch=ssc(0x221a);break;case'prop':ch=ssc(0x221d);break;case'infin':ch=ssc(0x221e);break;case'ang':ch=ssc(0x2220);break;case'and':ch=ssc(0x2227);break;case'or':ch=ssc(0x2228);break;case'cap':ch=ssc(0x2229);break;case'cup':ch=ssc(0x222a);break;case'int':ch=ssc(0x222b);break;case'there4':ch=ssc(0x2234);break;case'sim':ch=ssc(0x223c);break;case'cong':ch=ssc(0x2245);break;case'asymp':ch=ssc(0x2248);break;case'ne':ch=ssc(0x2260);break;case'equiv':ch=ssc(0x2261);break;case'le':ch=ssc(0x2264);break;case'ge':ch=ssc(0x2265);break;case'sub':ch=ssc(0x2282);break;case'sup':ch=ssc(0x2283);break;case'nsub':ch=ssc(0x2284);break;case'sube':ch=ssc(0x2286);break;case'supe':ch=ssc(0x2287);break;case'oplus':ch=ssc(0x2295);break;case'otimes':ch=ssc(0x2297);break;case'perp':ch=ssc(0x22a5);break;case'sdot':ch=ssc(0x22c5);break;case'lceil':ch=ssc(0x2308);break;case'rceil':ch=ssc(0x2309);break;case'lfloor':ch=ssc(0x230a);break;case'rfloor':ch=ssc(0x230b);break;case'lang':ch=ssc(0x2329);break;case'rang':ch=ssc(0x232a);break;case'loz':ch=ssc(0x25ca);break;case'spades':ch=ssc(0x2660);break;case'clubs':ch=ssc(0x2663);break;case'hearts':ch=ssc(0x2665);break;case'diams':ch=ssc(0x2666);break;default:ch='';break;}}
i=semicolonIndex;}}
out+=ch;}
return out;}
function phxHtml(str){str=HtmlDecode(str.replace("#",""));document.write(str);}
function phxVid(uid){uid=cleanPHX(uid);phxBrightCove(uid);}
function phxAudio(uid){uid=cleanPHX(uid);swfiframe('/widgets/audioplayer/?audiofile='+escape(uid),300,24,'audio player');}
function btvVid(uid){uid=cleanPHX(uid);document.write("
video is no longer available
");}
function youtubeVid(uid){uid=cleanPHX(uid);yturl='//www.youtube.com/v/'+uid;document.write('');}
function phxCinema(uid){uid=cleanPHX(uid);swfiframe('/widgets/cinema/?id='+escape(uid),425,283,'cinema player');}
function phxCinemaFull(){swfiframe('/widgets/cinemafull/',850,564,'Full screen video');}
function phxCinemaFull(uid){uid=cleanPHX(uid);swfiframe('/widgets/cinemafull/?id='+escape(uid),850,564,'Full screen video');}
function phxSlideshow(uid){uid=cleanPHX(uid);swfiframe('/widgets/soundslider/?id='+escape(uid),486,412,'Audio Player');}
function phxBrightCove(uid){uid=cleanPHX(uid);swfiframe('/widgets/video/?id='+escape(uid),486,412,'Brightcove Player');}
function swfiframe(url,width,height,ifname){document.write("