if(!window.ustream){window.ustream={}}if(!ustream.labels){ustream.labels={}}(function(l){l["js.v3.datepicker.monthnames"]="January|February|March|April|May|June|July|August|September|October|November|December";l["js.v3.datepicker.monthnames_short"]="Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec";l["js.v3.datepicker.daynames"]="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday";l["js.v3.datepicker.daynames_short"]="Sun|Mon|Tue|Wed|Thu|Fri|Sat";l["js.v3.pretty_date.now"]="just now";l["js.v3.pretty_date.half_min"]="30 seconds ago";l["js.v3.pretty_date.one_min"]="1 minute ago";l["js.v3.pretty_date.n_mins"]="#n# minutes ago";l["js.v3.pretty_date.one_hour"]="1 hour ago";l["js.v3.pretty_date.n_hours"]="#n# hours ago";l["js.v3.pretty_date.yesterday"]="Yesterday";l["js.v3.pretty_date.n_days"]="#n# days ago";l["js.common_for_all.error_occured"]="An error occured!";})(ustream.labels);
if(!window.ustream){window.ustream={}}if(!ustream.__modules){ustream.__modules=[];ustream.__modules.push("core.js")
}(function(){var nss=["vars","framework","labels","external","templates","flash","html5video","classes","logic"],l=nss.length,i,isLocal;
for(i=0;i<l;i+=1){if(!ustream[nss[i]]){ustream[nss[i]]={}}}isLocal=ustream.vars.isLocal=window.location.host.indexOf(".lh")>-1;
try{ustream.vars.isPopup=(window.opener&&window.opener.ustream&&typeof(window.opener.ustream)==="object")
}catch(e){ustream.vars.isPopup=false}ustream.framework.__ns=["bind <- window.jQuery.proxy","eBind <- window.jQuery.proxy","merge <- window.jQuery.klass.merge","forEach <- window.jQuery.forEach","nullFunc"];
$.klass.setClassPool(ustream.classes);ustream.framework.nullFunc=function(){}}());
if(!window.ustream){window.ustream={}}ustream.track=function(uurl,action){var href=window.location.href,logOnly=ustream.debug||ustream.vars.debug||href.indexOf("logtracking")>-1;
if(!uurl){return}if(!action){action="click"}if(logOnly){$.console.log("trackEvent:",uurl,"-",action)}else{window._gaq.push(["_trackEvent",uurl,action])
}};
ustream.logic={__ns:["getLogic <- ustream.logic.get","addLogic <- ustream.logic.add"],_rules:{mixi:{enabled:function(){return ustream.vars.isMixiEnabled||false
}},adFreeFormTabindexReversed:function(){return(ustream.vars.locale==="ja_JP")},adFreeCountrySelector:{restrictedCountries:function(){if(ustream.vars.locale==="ja_JP"){return"option[value!='JP']"
}if(ustream.vars.locale==="en_US"){return"option[value='JP']"}},restrictionRedirectUrl:function(){if(ustream.vars.locale==="ja_JP"){return"/ad-free/subscribe/?lang=en_US"
}if(ustream.vars.locale==="en_US"){return"/ad-free/subscribe/?lang=ja_JP"}}},pmOverlayHeight:function(){return(ustream.vars.locale==="ja_JP")?1300:780
},yahooLoginVersion:function(){return ustream.vars.yahooLoginVersion},viewerHourCalculator:{overageDecimalPlaces:function(){return(ustream.vars.locale==="ja_JP"?0:2)
}},abcpViewerHourCalculator:{hardcodedMaxLimit:function(){return(ustream.vars.locale==="ja_JP"?35100:false)
},costLimitModifier:function(){return(ustream.vars.locale==="ja_JP"?1:0)}},locale:{getDefaultLocale:function(){var locale=ustream.vars.locale;
return(locale)?locale:"en_US"}},ss:{getBadWordMatcher:function(badWord){badWord=ustream.framework.phpJs.preg_quote(badWord);
if(ustream.vars.locale==="ja_JP"){return new RegExp("(^|s|\"|'|:|.|!)"+badWord+"(s|ed)?(?=s|$|\"|'|:|.|!)","im")
}else{return new RegExp("\\b"+badWord+"(s|ed)?\\b","im")}}},pmTrack:{enabled:function(){return ustream.vars.pmTrackEnabled
}},browserNotif:{links:function(){if(ustream.vars.locale==="en_US"){return{chrome:"http://www.google.com/chrome",ff:"http://www.mozilla.org/en-US/firefox/new/",ie:"http://windows.microsoft.com/en-US/internet-explorer/downloads/ie"}
}if(ustream.vars.locale==="ja_JP"){return{chrome:"http://www.google.co.jp/chrome/intl/ja/landing_ff.html",ff:"http://mozilla.jp/firefox/",ie:"http://windows.microsoft.com/ja-JP/internet-explorer/products/ie/home"}
}}},login:{adEnabled:function(){return window.location.protocol==="http:"},panelWidth:function(){return ustream.logic.get("login.adEnabled")?852:540
}}},get:function(logicName,args,thisObj){var logicArray=logicName.split("."),item=ustream.logic._rules,itemName,itemType;
thisObj=thisObj||{};args=args||[];while(logicArray.length>0&&item){itemName=logicArray.shift();item=item[itemName];
itemType=typeof item;if(itemType==="undefined"){throw new Error(logicName+" not found")}else{if(itemType==="function"&&logicArray.length>0){throw new Error(logicName+" you try to access too deeply")
}}}if(typeof item==="function"){return item.apply(thisObj,args)}else{throw new Error(logicName+" not a function")
}},add:function(rules){ustream.logic._rules=$.klass.merge(ustream.logic._rules,rules)}};
if(!window.ustream){window.ustream={}}if(!ustream.framework){ustream.framework={}}if(!ustream.__modules){ustream.__modules=[]
}ustream.__modules.push("i18n.js");ustream.framework.i18n={__depends:["ustream.framework.stringUtils"],__ns:["_t_ <- ustream.framework.i18n._t_","_dt_ <- ustream.framework.i18n._dt_","getLabel <- ustream.framework.i18n.getLabel","labelize <- ustream.framework.i18n._t_"],_t_:function(key,helperStr,substObj){if(typeof(helperStr)==="object"&&!substObj){substObj=helperStr;
helperStr=null}var str,foundStr=ustream.labels[key];str=foundStr?foundStr:helperStr;if(!str){str=key.toUpperCase()
}else{if(substObj){str=ustream.framework.stringUtils.labelSubst(str,substObj)}}return str},_dt_:function(key,helperStr,substObj){return ustream.framework.i18n._t_(key,helperStr,substObj)
},_getLabel:function(label,cb){if(ustream.labels[label]){cb()}else{$.getJSON(ustream.framework.stringUtils.urlSubst(ustream.vars.translateUrl,{locale:ustream.vars.locale||"en_US",unit:label}),function(response){if(response&&response.translation){ustream.labels[label]=response.translation
}else{$.console.log("translation failed, no response")}cb()})}},getLabel:function(label,cb){if(typeof label!=="string"){if(label.length>0){var l=label.shift();
ustream.framework.i18n._getLabel(l,function(){ustream.framework.i18n.getLabel(label,cb)})}else{cb()}}else{ustream.framework.i18n._getLabel(label,cb)
}}};
if(!window.ustream){window.ustream={}}if(!ustream.framework){ustream.framework={}}if(!ustream.__modules){ustream.__modules=[]
}ustream.__modules.push("dateUtils.js");ustream.framework.dateUtils=(function(){return{__depends:["ustream.framework.i18n"],__ns:"dateUtils",_timezoneAbbrevs:{"-10:00":{en:"HAST",def:"HAST"},"-09:00":{en:"AKST",def:"AKST"},"-08:00":{en:"PT",def:"PT"},"-07:00":{en:"MST",def:"MST"},"-06:00":{en:"CST",def:"CST"},"-05:00":{en:"ET",def:"ET"},"-04:00":{en:"AST",def:"ECT"},"-03:00":{es:"ART",pt:"BRT",def:"BRT"},"-02:00":{pt:"BRT",def:"BRT"},"00:00":{def:"GMT"},"+01:00":{def:"CET"},"+02:00":{def:"EET"},"+03:00":{def:"MSK"},"+04:00":{def:"GST"},"+05:00":{ru:"MSK+2",uz:"UZT",tk:"TMT",tg:"TJT",def:"MSK+2"},"+06:00":{ru:"MSK+3",def:"MSK+3"},"+07:00":{ru:"MSK+4",id:"WIB",def:"MSK+4"},"+08:00":{ru:"MSK+5",id:"WITA",ms:"MST",en:"HKT",zh:"CST",def:"HKT"},"+09:00":{ru:"MSK+6",ja:"JST",id:"WIT",ko:"KST",def:"JST"},"+10:00":{ru:"MSK+7",en:"AEST",def:"AEST"},"+11:00":{ru:"MSK+8",def:"MSK+8"}},correctTimestamp:function(ts,asDate){return this._modifyTimestamp(+1,ts,asDate)
},restoreTimestamp:function(ts,asDate){return this._modifyTimestamp(-1,ts,asDate)},_modifyTimestamp:function(mul,ts,asDate){var tzoMsec=(new Date(parseInt(ts,10))).getTimezoneOffset()*60*1000;
ts=ts*1+tzoMsec*mul;return asDate?new Date(ts):ts},getTimeZoneAbbrev:function(){var tzo=this._getTimeZoneOffset(),tz=this._formatTimeZoneOffset(tzo),lan=this._getLocale(),tz1=this._timezoneAbbrevs[tz]||false,tza=tz1[lan]||"",success=true;
if(!tza){tza=tz1.def||""}return tza},_getTimeZoneOffset:function(){var now=new Date(),jan1=new Date(now.getFullYear(),0,1,0,0,0,0),june1=new Date(now.getFullYear(),6,1,0,0,0,0),temp=jan1.toGMTString(),jan2=new Date(temp.substring(0,temp.lastIndexOf(" ")-1)),june2,std_time_offset,daylight_time_offset,dst,hemisphere,i;
temp=june1.toGMTString();june2=new Date(temp.substring(0,temp.lastIndexOf(" ")-1));std_time_offset=(jan1-jan2)/(1000*60*60);
daylight_time_offset=(june1-june2)/(1000*60*60);if(std_time_offset===daylight_time_offset){dst="0"}else{hemisphere=std_time_offset-daylight_time_offset;
if(hemisphere>=0){std_time_offset=daylight_time_offset}dst="1"}return std_time_offset},_formatTimeZoneOffset:function(value){var hours=parseInt(value,10),mins,secs,display_hours=hours;
value-=parseInt(value,10);value*=60;mins=parseInt(value,10);value-=parseInt(value,10);value*=60;secs=parseInt(value,10);
if(hours===0){display_hours="00"}else{if(hours>0){display_hours=(hours<10)?"+0"+hours:"+"+hours}else{display_hours=(hours>-10)?"-0"+Math.abs(hours):hours
}}mins=(mins<10)?"0"+mins:mins;return display_hours+":"+mins},_getLocale:function(){var ret;if(navigator){if(navigator.language){ret=navigator.language
}else{if(navigator.browserLanguage){ret=navigator.browserLanguage}else{if(navigator.systemLanguage){ret=navigator.systemLanguage
}else{if(navigator.userLanguage){ret=navigator.userLanguage}}}}}ret=ret.match("([a-zA-Z]{2})[-_]?([a-zA-Z]{2})?")||"en";
return ret[1]},getFormattedDate:function(dateTimeData){if(typeof dateTimeData==="string"){return dateTimeData
}else{return this.dateFormat(dateTimeData.timestamp*1000,dateTimeData.format)}},getFormattedDateRange:function(dateRangeTimeData){if(typeof dateRangeTimeData==="string"){return dateRangeTimeData
}else{var from=this.getFormattedDate(dateRangeTimeData.fromDate),to=this.getFormattedDate(dateRangeTimeData.toDate),sep=dateRangeTimeData.separator;
return from+sep+to}},dateFormat:function(date,mask,utc){var _t_=ustream.framework.i18n._t_,token=/%([jdDlnmMFyYghGHisaAT])\1?/g,pad=function(val,len){val=String(val);
len=len||2;while(val.length<len){val="0"+val}return val},dfI18N={month:_t_("js.v3.datepicker.monthnames").split("|"),monthShort:_t_("js.v3.datepicker.monthnames_short").split("|"),day:_t_("js.v3.datepicker.daynames").split("|"),dayShort:_t_("js.v3.datepicker.daynames_short").split("|")},testRgx=new RegExp(/\d/),_,d,D,m,y,H,M,s,o,flags;
if(arguments.length===1&&Object.prototype.toString.call(date)==="[object String]"&&!testRgx.test(date)){mask=date;
date=undefined}date=date?new Date(date):new Date();if(isNaN(date)){throw new SyntaxError("invalid date")
}mask=String(this._dateFormatMasks[mask]||mask||this._dateFormatMasks["default"]);if(mask.slice(0,4)==="UTC:"){mask=mask.slice(4);
utc=true}_=utc?"getUTC":"get";d=date[_+"Date"]();D=date[_+"Day"]();m=date[_+"Month"]();y=date[_+"FullYear"]();
H=date[_+"Hours"]();M=date[_+"Minutes"]();s=date[_+"Seconds"]();o=utc?0:date.getTimezoneOffset();flags={"%j":d,"%d":pad(d),"%D":dfI18N.dayShort[D],"%l":dfI18N.day[D],"%n":m+1,"%m":pad(m+1),"%M":dfI18N.monthShort[m],"%F":dfI18N.month[m],"%y":String(y).slice(2),"%Y":y,"%g":H%12||12,"%h":pad(H%12||12),"%G":H,"%H":pad(H),"%i":pad(M),"%s":pad(s),"%a":H<12?"am":"pm","%A":H<12?"AM":"PM","%T":utc?"UTC":this.getTimeZoneAbbrev()};
return mask.replace(token,function($0){return $0 in flags?flags[$0]:$0.slice(1,$0.length-1)})},_dateFormatMasks:{homePage:"%m/%d/%Y %g:%i %A %T","default":"%m/%d/%Y %g:%i %A %T",shortDate:"%m/%d/%y"}}
}());
if(!window.ustream){window.ustream={}}if(!ustream.framework){ustream.framework={}}if(!ustream.__modules){ustream.__modules=[]
}ustream.__modules.push("stringUtils.js");ustream.framework.stringUtils={__depends:["ustream.framework.i18n"],__ns:"stringUtils",urlSubst:function(url,obj){$.forEach(obj,function(val,prop,i){var from="x"+prop.toUpperCase()+"x";
url=url.replace(new RegExp(from,"g"),val)});return url},labelSubst:function(s,obj){$.forEach(obj,function(val,prop,i){if((prop.substr(0,1)!=="#")&&(prop.substr(prop.length-1,1)!=="#")){prop="#"+prop+"#"
}s=s.replace(new RegExp(prop,"g"),val)});return s},zeroPad:function(n,count){n=n+"";while(n.length<count){n="0"+n
}return n},truncateByLength:function(str,len,dots){if(str.length<len){return str}var parts=str.split(" "),pLen=parts.length,c=0,max=len,ret=[],i;
if(parts.length===1){ret=parts[0].substr(0,len)}else{for(i=0;i<pLen;i+=1){if(c<max){ret.push(parts[i]);
c+=parts[i].length+1}else{break}}ret=ret.join(" ")}if(dots){ret+="..."}return ret},prettyDate:function(_date){var _t_=ustream.framework.i18n._t_,date=new Date(_date),diff=(((new Date()).getTime()-date.getTime())/1000),day_diff=Math.floor(diff/86400);
if(isNaN(day_diff)||day_diff<0){return}return day_diff===0&&(diff<30&&_t_("js.v3.pretty_date.now")||diff<60&&_t_("js.v3.pretty_date.half_min")||diff<120&&_t_("js.v3.pretty_date.one_min")||diff<3600&&_t_("js.v3.pretty_date.n_mins").replace(/#n#/,Math.floor(diff/60))||diff<7200&&_t_("js.v3.pretty_date.one_hour")||diff<86400&&_t_("js.v3.pretty_date.n_hours").replace(/#n#/,Math.floor(diff/3600)))||day_diff===1&&_t_("js.v3.pretty_date.yesterday")||day_diff>1&&_t_("js.v3.pretty_date.n_days").replace(/#n#/,day_diff)
},rndTimestamp:function(){return((new Date()).getTime()+Math.random()+"").replace(".","")},_setDecimal:function(num,maxDecimal){var index=num.indexOf("."),decimalNum=0,dotFound=index>-1;
if(dotFound){decimalNum=num.length-index-1}if(maxDecimal>0){if(dotFound){if(decimalNum>maxDecimal){num=num.slice(0,index+maxDecimal+1)
}else{if(decimalNum<maxDecimal){num+="0"}}}else{num+=".0"}}else{if(dotFound){num=parseInt(num,10)+""}}return num
},setDecimalFormat:function(num,maxDecimal){var prevNum;num=parseFloat(num);num=isNaN(num)?"0":""+num;
while(num!==prevNum){prevNum=num;num=ustream.framework.stringUtils._setDecimal(prevNum,maxDecimal)}return num
},formatNumber:function(num,decimalPlaces,thousandsSeparator,decimalSeparator){var defaults={decimalPlaces:2,thousandsSeparator:",",decimalSeparator:"."},parts,fraction,integer;
num=parseFloat(num);if(isNaN(num)){return NaN}decimalPlaces=(typeof decimalPlaces==="undefined")?defaults.decimalPlaces:decimalPlaces;
thousandsSeparator=(typeof thousandsSeparator==="undefined")?defaults.thousandsSeparator:thousandsSeparator;
decimalSeparator=(typeof decimalSeparator==="undefined")?defaults.decimalSeparator:decimalSeparator;parts=num.toString().split(".");
integer=parts[0].replace(/(\d)(?=(?:\d{3})+$)/g,"$1"+thousandsSeparator);fraction=(parts[1]||"").substring(0,decimalPlaces);
if(fraction.length<decimalPlaces){fraction+=new Array(decimalPlaces-fraction.length+1).join("0")}return fraction?integer+decimalSeparator+fraction:integer
},_wrapInAnchor:function(url){var link=url;if(!/^https?:\/\//.test(link)){link="http://"+link}return('<a href="'+link+'" target="_blank">'+url+"</a>")
},linkify:function(text){var linkified=text.replace(/\b((https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gim,ustream.framework.stringUtils._wrapInAnchor);
return linkified},getCaretPosition:function(oField){var iCaretPos=0;if(document.selection){oField.focus();
var oSel=document.selection.createRange();oSel.moveStart("character",-oField.value.length);iCaretPos=oSel.text.length
}else{if(oField.selectionStart||oField.selectionStart=="0"){iCaretPos=oField.selectionStart}}return iCaretPos
},setCaretPosition:function(oField,iCaretPos){if(document.selection){oField.focus();var oSel=document.selection.createRange();
oSel.moveStart("character",-oField.value.length);oSel.moveStart("character",iCaretPos);oSel.moveEnd("character",0);
oSel.select()}else{if(oField.selectionStart||oField.selectionStart=="0"){oField.selectionStart=iCaretPos;
oField.selectionEnd=iCaretPos;oField.focus()}}}};
if(!window.ustream){window.ustream={}}if(!ustream.framework){ustream.framework={}}if(!ustream.__modules){ustream.__modules=[]
}ustream.__modules.push("phpJs.js");ustream.framework.phpJs={__depends:[],__ns:"phpJs",isset:function(){var i=0,l=arguments.length;
if(l===0){return false}while(i!==l){if(typeof(arguments[i])==="undefined"||arguments[i]===null){return false
}i+=1}return true},preg_quote:function(str){return(str+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!<>\|\:])/g,"\\$1")
},ucfirst:function(str){str+="";var f=str.charAt(0).toUpperCase();return f+str.substr(1)},count:function(mixed_var,mode){var key,cnt=0;
if((mixed_var===null)||(typeof mixed_var=="undefined")){return 0}else{if(mixed_var.constructor!==Array&&mixed_var.constructor!==Object){return 1
}}if(mode==="COUNT_RECURSIVE"){mode=1}if(mode!=1){mode=0}for(key in mixed_var){if(mixed_var.hasOwnProperty(key)){cnt++;
if(mode==1&&mixed_var[key]&&(mixed_var[key].constructor===Array||mixed_var[key].constructor===Object)){cnt+=this.count(mixed_var[key],1)
}}}return cnt},array_reverse:function(array,preserve_keys){var arr_len=array.length,newkey=0,tmp_arr={},key="";
preserve_keys=!!preserve_keys;for(key in array){newkey=arr_len-key-1;tmp_arr[preserve_keys?key:newkey]=array[key]
}return tmp_arr},wordwrap:function(str,int_width,str_break,cut){var m=((arguments.length>=2)?arguments[1]:75);
var b=((arguments.length>=3)?arguments[2]:"\n");var c=((arguments.length>=4)?arguments[3]:false);var i,j,l,s,r;
str+="";if(m<1){return str}for(i=-1,l=(r=str.split(/\r\n|\n|\r/)).length;++i<l;r[i]+=s){for(s=r[i],r[i]="";
s.length>m;r[i]+=s.slice(0,j)+((s=s.slice(j)).length?b:"")){j=c==2||(j=s.slice(0,m+1).match(/\S*(\s)?$/))[1]?m:j.input.length-j[0].length||c==1&&m||j.input.length+(j=s.slice(m).match(/^\S*/)).input.length
}}return r.join("\n")},number_format:function(number,decimals,dec_point,thousands_sep){var n=!isFinite(+number)?0:+number,prec=!isFinite(+decimals)?0:Math.abs(decimals),sep=(typeof thousands_sep==="undefined")?",":thousands_sep,dec=(typeof dec_point==="undefined")?".":dec_point,s="",toFixedFix=function(n,prec){var k=Math.pow(10,prec);
return""+Math.round(n*k)/k};s=(prec?toFixedFix(n,prec):""+Math.round(n)).split(".");if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep)
}if((s[1]||"").length<prec){s[1]=s[1]||"";s[1]+=new Array(prec-s[1].length+1).join("0")}return s.join(dec)
},sort:function(inputArr,sort_flags){var valArr=[],keyArr=[],k="",i=0,sorter=false,that=this,strictForIn=false,populateArr=[];
switch(sort_flags){case"SORT_STRING":sorter=function(a,b){return that.strnatcmp(a,b)};break;case"SORT_LOCALE_STRING":var loc=this.i18n_loc_get_default();
sorter=this.php_js.i18nLocales[loc].sorting;break;case"SORT_NUMERIC":sorter=function(a,b){return(a-b)
};break;case"SORT_NUMERIC_REVERSE":sorter=function(a,b){return(b-a)};break;case"SORT_REGULAR":default:sorter=function(a,b){if(a>b){return 1
}if(a<b){return -1}return 0};break}this.php_js=this.php_js||{};this.php_js.ini=this.php_js.ini||{};strictForIn=this.php_js.ini["phpjs.strictForIn"]&&this.php_js.ini["phpjs.strictForIn"].local_value;
populateArr=strictForIn?inputArr:populateArr;for(k in inputArr){if(inputArr.hasOwnProperty(k)){valArr.push(inputArr[k]);
if(strictForIn){delete inputArr[k]}}}valArr.sort(sorter);for(i=0;i<valArr.length;i++){populateArr[i]=valArr[i]
}return strictForIn?true:populateArr}};
if(!window.ustream){window.ustream={}}if(!ustream.__modules){ustream.__modules=[]}ustream.__modules.push("events.js");
ustream.events={__depends:[],__ns:["dispatchEvent <- ustream.events.dispatch","captureEvent <- ustream.events.capture","nullEvent <- ustream.events.nullEvent"],__uncapturedEvents:[],dispatch:function(event,data,target){data=data||{};
target=target||document;var evtStr=ustream.events[event]?ustream.events[event]:event,ustreamEvent=new $.Event(evtStr);
ustream.events.__uncapturedEvents.push(evtStr);ustreamEvent.eventData=data;$(target).trigger(ustreamEvent)
},capture:function(event,callback){var evtStr=ustream.events[event]?ustream.events[event]:event,target=arguments[2]||document,boundFunc;
if(!evtStr){$.console.trace();$.console.log("Undefined, or missing event passed to ustream.events.capture");
throw ("Undefined, or missing event")}boundFunc=$.proxy(function(evtStr){var evLst=ustream.events.__uncapturedEvents,l=evLst.length;
while(l){l-=1;if(evLst[l]===evtStr){evLst.splice(l,1)}}},this,evtStr);$(target).bind(event,callback);
$(target).bind(event,boundFunc)},listUncapturedEvents:function(flush){var evtLst=ustream.events.__uncapturedEvents;
if(flush){evtLst.splice(0,evtLst.length)}return evtLst},nullEvent:{stop:function(){},cancel:function(){},stopPropagation:function(){},preventDefault:function(){},isNull:true}};
if(!window.ustream){window.ustream={}}if(!ustream.events){ustream.events={}}if(!ustream.__modules){ustream.__modules=[]
}ustream.__modules.push("eventList.js");(function(){var events=["LOGIN","LOGOUT","LOGINCANCEL","REQUIRELOGIN","REQUIRELOGINONLY","REQUIREAJAXLOGIN","LOGINREQUESTWITHRESPONSEDATA","LOGINSUCCESS","VIDEOSTART","VIDEOSTOP","SIGNUPSUCCESS","REQUIRELOGINSIGNUPAJAXLOGIN","REQUIRELOGINSIGNUP","HIGHLIGHTSTARTSEEK","HIGHLIGHTENDSEEK","STORAGE","NOTIFICATION","AJAXNOTIFICATION","SUCCESSNOTIFICATION","ERRORNOTIFICATION","INFONOTIFICATION","FLASHREADY","FLASHRESIZE","FLASHVIEWERREADY","FLASHPLAYERREADY","CHANNELVIEWERSUPDATE","CHANNELTAGLINEUPDATE","STATUSUPDATE","CHANNELONLINE","CHANNELOFFLINE","FLASHVIDEOADPLAY","FLASHVIDEOADSTOP","FLASHBROADCASTERSTART","FLASHBROADCASTERSTOP","BROADCASTERRESIZE","BROADCASTERTOGGLERIGHT","BROADCASTERERROR","SOCIALCHECKIN","SOCIALCLIENTLOGON","SOCIALCLIENTLOGOUT","SOCIALMODERATORLOGON","SOCIALITEMDELETE","SOCIALITEMBAN","SOCIALERROR","SOCIALLOADSTART","SOCIALLOADSTOP","SOCIALLOADUPDATE","SOCIALPOPOUT","SOCIALRESTORE","SOCIALIRCMESSAGE","SOCIALSTATECHANGE","SSUSTREAMLOGINREQUEST","FOLLOWABLEREADY","HIDEEVILFLASH","SHOWEVILFLASH","FACEBOOKCONNECT","FACEBOOKCONNECTED","FACEBOOKSIGNUPREQ","FACEBOOKDISCONNECT","FACEBOOKDISCONNECTED","FACEBOOKLOGOUT","FACEBOOKLOGGEDOUT","FACEBOOKREMOVEPUBLISHACTIONS","USTREAMSOCIALCONNECT","FACEBOOKLOGINSTATUSRESPONSE","FACEBOOKLOGINSTATUSREQUIRED","FACEBOOKREFRESHLOGINSTATUS","FACEBOOKCONNECTFAILURE","FACEBOOKGETPOSTPERMISSION","FACEBOOKSETPOSTPERMISSION","FACEBOOKSHOWPERMISSIONDIALOG","FACEBOOKAPPSETHEIGHT","FACEBOOKAPPGETPERMSTATUS","FACEBOOKAPPLOGIN","FACEBOOKAPPJOINCROWD","FACEBOOKAPPJOINCROWDNOTABLE","FACEBOOKAPPREQUESTLOGIN","FACEBOOKAPPPAGELIKED","FACEBOOKAPPINITLIKECHECKED","FACEBOOKAPPCHANNELCREATED","CHANNELWENTLIVE","MYSPACECONNECT","MYSPACECONNECTED","MYSPACEDISCONNECT","MYSPACEDISCONNECTED","MYSPACELOGOUT","MYSPACELOGGEDOUT","TWITTERCONNECT","TWITTERCONNECTED","TWITTERDISCONNECT","TWITTERDISCONNECTED","TWITTERLOGOUT","TWITTERLOGGEDOUT","TWITTERCANCELLED","MIXICONNECT","MIXICONNECTED","MIXIDISCONNECT","MIXIDISCONNECTED","MIXILOGOUT","MIXILOGGEDOUT","MIXICANCELLED","AIMCONNECT","AIMCONNECTED","AIMLOGOUT","AIMLOGGEDOUT","AIMDISCONNECT","AIMDISCONNECTED","ADDMORELESS","NEWVIDEOCOMMENT","PRETTYDATENOW","VIDEOUPLOADER_GETDATA","VIDEOUPLOADER_REPORTPROCESS","VIDEOUPLOADER_SETDATA","VIDEOUPLOADER_CANCELPROGRESS","MANAGESHOWVIDEOS_REFRESHVIDEOS","MANAGESHOWVIDEOS_REFRESHPENDING","TICKETPURCHASEINIT","TICKETPURCHASEINITLONG","TICKETPURCHASEBEGINMINIMAL","TICKETPURCHASEBEGINCONFIRM","TICKETPURCHASEBEGINEXTENDED","TICKETPURCHASESTART","TICKETPURCHASEFINISH","TICKETPURCHASESUCCESS","TICKETPURCHASECANCELLED","TICKETPURCHASEFAILURE","TICKETENTERCODE","TICKETENTERCODESTART","TICKETBOUND","PURCHASEDEVENTS","PPVEVENTSSTOPPED","FLASHPROXYREADY","JOINCROWDMATRIX","TRACKJOINCROWD","SORT","PAGINATION","BUTTONSTATECHANGED","UPDATEPPVBUTTONS","ADFREEPLANRECOMMENDED","CONFIRM","CANCEL","ALERTCLOSE","SUBSCRIPTIONINIT","SUBSCRIPTIONCOMPLETE","SUBSCRIPTIONFAILED","USERSUBSCRIBED","USERNOTSUBSCRIBED","USERHASTICKET","USERHASNOTICKET","FLASHPPVCREATEREADY","TOSACCEPTED","TOSCANCELLED","ALLTOSACCEPTED","PMPOPUPCLOSE","PMPOPUPOPEN","PMPOPUPCOOKIESET","PMINIT","REQUIREBROADCASTSTART","COLORPICKERSETCOLOR","USTREAMCONNECTREADY","USTREAMCONNECTED","USTREAMCONNECTMSG","USTREAMCONNECTCLOSE","USTREAMNOTIFICATIONSHOW","USTREAMNOTIFICATIONHIDE","SUPERCHANNELMEDIACHANGE","SUPERCHANNELSTARTPOLLING","SUPERCHANNELSTOPPOLLING","SUPERCHANNELSHOWFIRSTVIDEO","CORRECTTIMEZONE","VIDEOEND","VIEWERCOLORCHANGE","STOPFLASHMOVIES","PLAYFLASHMOVIES","PLACEHOLDER"],eL=events.length;
while(eL){eL-=1;if(ustream.events[events[eL]]){throw ("Duplicate event: "+events[eL])}ustream.events[events[eL]]="USTREAMEVENT_"+events[eL]
}}());
if(!window.ustream){window.ustream={}}if(!ustream.__modules){ustream.__modules=[]}ustream.__modules.push("storage.js");
ustream.storage={};ustream.storage=(function(){var _capable=(function(){try{return"localStorage" in window&&window.localStorage!==null
}catch(e){window.localStorage={getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}};
return false}}()),_storageEvent=function(data){var eventData={key:data.key};if(data.createdAt){eventData.createdAt=data.createdAt
}ustream.events.dispatch(ustream.events.STORAGE,eventData)},_getKeys=function(obj){var keys=[],key,hop=Object.prototype.hasOwnProperty;
if(typeof Object.keys==="function"){keys=Object.keys(obj)}else{for(key in obj){if(hop.call(obj,key)){keys.push(key)
}}}return keys},_getReqObj=function(key,value){var arr,store={},k;if(typeof key==="string"){arr=key.match(/(local|session|global)+\.+([\w\.\-]*)/i);
if(arr){store={type:arr[1],key:arr[2]};if(value){store.value=value}}else{$.console.trace();$.console.log("ustream.storage: No storage type defined, missing local or session!");
throw new Error("ustream.storage: No storage type defined, missing local or session!")}}else{if(typeof key==="object"){if(key.local){store={type:"local",key:(typeof key.local==="object")?_getKeys(key.local)[0]:key.local}
}else{if(key.session){store={type:"session",key:(typeof key.session==="object")?_getKeys(key.session)[0]:key.session}
}}if(key[store.type][store.key]){store.value=key[store.type][store.key]}}}return store},_getStorageObj=function(request){var storage=null;
if(request.type==="local"){storage=localStorage}else{if(request.type==="session"){storage=sessionStorage
}}return storage};return{__depends:["ustream.events"],__ns:["storageGet <- ustream.storage.get","storageSet <- ustream.storage.set","storageRemove <- ustream.storage.remove","storageClear <- ustream.storage.clear"],available:_capable,get:function(key){var result=false,storage,req,data,ret={};
if(_capable){req=_getReqObj(key);storage=_getStorageObj(req);data=storage.getItem(req.key);if(!data){result=false
}else{ret=jQuery.parseJSON(data);ret.key=key;result=true}}ret.success=result;return ret},set:function(key,value){var result=false,req,storage,data;
if(_capable){req=_getReqObj(key,value);storage=_getStorageObj(req);data={createdAt:(new Date()).getTime(),value:req.value};
try{storage.setItem(req.key,jQuery.toJSON(data));result=true}catch(e){if(ustream.debug||ustream.vars.debug){$.console.trace();
$.console.log(e.name,e.message);throw new Error(e.message)}result=false}_storageEvent({key:key,createdAt:data.createdAt})
}return{success:result}},remove:function(key){var result=false,req,storage;if(_capable){req=_getReqObj(key);
storage=_getStorageObj(req);storage.removeItem(req.key);_storageEvent({key:key});result=true}return{success:result}
},clear:function(type){var result=false,storage;if(_capable){storage=_getStorageObj({type:type});storage.clear();
result=true}return{success:result}}}}());
if(!window.ustream){window.ustream={}}if(!ustream.__modules){ustream.__modules=[]}ustream.__modules.push("jQuery.js");
(function(){var deps={__depends:["ustream.framework.i18n"]},_t_;if(ustream.framework&&ustream.framework.i18n){_t_=ustream.framework.i18n._t_
}if(!window.jQuery){throw"jQuery missing."}(function($){window.jQuery.support.localStorage=(function(){try{return"localStorage" in window&&window.localStorage!==null
}catch(e){return false}}());if(typeof($.expr[":"].focus)==="undefined"){$.expr[":"].focus=function(elem){return elem===document.activeElement&&(elem.type||elem.href)
}}$.fn.extend({moveAttr:function(from,to,as){return this.each(function(i){if(!as){this.setAttribute(to,this.getAttribute(from))
}else{var attr=this.getAttribute(from);to.each(function(i){this.setAttribute(as,attr)})}this.removeAttribute(from)
})},toDisabled:function(){return this.each(function(i){$(this).addClass("disabled").prop("disabled",true)
})},toEnabled:function(){return this.each(function(i){$(this).removeClass("disabled").prop("disabled",false)
})},toReadonly:function(){return this.each(function(i){$(this).addClass("readonly").prop("readonly",true)
})},toReadWrite:function(){return this.each(function(i){$(this).removeClass("readonly").prop("readonly",false)
})},flipChecked:function(content){return this.each(function(i){if($(this).is(":checked")){$(this).prop("checked",false)
}else{$(this).prop("checked",true)}})},getDataObject:function(attr){var data,ret;if(!attr){attr="data-control"
}data=$(this).attr(attr);if(!data){return{}}data="("+data.replace(/~/g,"'")+")";ret=eval(data);return ret
},addClassIf:function(className,condition,toggle){return this.each(function(i){if(toggle){$(this).removeClass(className)
}if(condition){$(this).addClass(className)}})},outerHtml:function(s){return s?this.before(s).remove():$("<p>").append(this.eq(0).clone()).html()
},setHtml:function(content){return this.each(function(i){$(this).html(content)})},setVal:function(content){return this.each(function(i){$(this).val(content)
})},if_:function(cond){if($.isFunction(cond)){cond=cond.call(this)}this.if_CondMet=!!cond;return this.pushStack(cond?this:[])
},else_:function(cond){var _this=this.end();return _this.if_CondMet?_this.pushStack([]):_this.if_(arguments.length?cond:1)
},incNum:function(n){if(!n){n=1}return this.each(function(i){var el=$(this),num=el.text()*1;el.text(isNaN(num)?0:num+n)
})},decNum:function(n){return this.incNum(!n?-1:n*-1)}});$.getJSONE=function(){var url,data,callback,typ,i,l,arg,fakeResponse,localCb,parseJSON,notify,method="GET";
for(i=0,l=arguments.length;i<l;i+=1){arg=arguments[i];typ=$.type(arg);if(typ==="string"){if(arg==="notify"){notify=true;
arg=null}else{if(arg==="POST"){method=arg;arg=null}else{url=arg}}}else{if(typ==="object"){if(typeof(arg._fake)!=="undefined"){delete arg._fake;
fakeResponse=arg}else{data=arg}}else{if(typ==="function"){callback=arg}}}}if(!callback){callback=function(){}
}if(fakeResponse&&callback){$.console.info("fake",method,url,data);setTimeout(function(){callback(fakeResponse)
},500);return}parseJSON=function(s){if($.type(s)!=="string"){return -1}s=$.trim(s);if(!s){return -1}var evaledCode;
try{evaledCode=window.JSON&&window.JSON.parse?window.JSON.parse(s):(new Function("return "+s))()}catch(e){evaledCode=-1
}return evaledCode};localCb=function(){var args=Array.prototype.slice.call(arguments),json=parseJSON(args[0]),msg=_t_?_t_("js.common_for_all.error_occured","An error occured!"):"Server error",brokenResponse={success:false,error:{message:msg,code:"local"},"arguments":args};
args[0]=(json===-1)?brokenResponse:json;if(notify&&ustream.events){ustream.events.dispatch(ustream.events.AJAXNOTIFICATION,{response:args[0]})
}return callback.apply(this,args)};return $.ajax({type:method,url:url,data:data,success:localCb,error:localCb,dataType:"text"})
}}(window.jQuery))}());
if(!window.ustream){window.ustream={}}if(!ustream.__modules){ustream.__modules=[]}ustream.__modules.push("timer.js");
ustream.timer={__depends:[],frequency:1000,uid:0,attachedFunctions:{},running:false,numInQueue:0,add:function(interval,func,name,ttl){if(!name){name="__"+this.uid;
this.uid+=1}if(interval===0){interval=1}else{interval=Math.round(interval/this.frequency)}this.numInQueue+=1;
this.attachedFunctions[name]={startedAt:new Date(),ttl:ttl,count:interval,interval:interval,func:func,name:name};
if(!this.running){this.start()}return{skip:$.proxy(this.skip,this,name),name:name,stop:$.proxy(this.remove,this,name)}
},remove:function(name){if(this.attachedFunctions[name]){delete this.attachedFunctions[name];this.numInQueue-=1
}if(!this.numInQueue){this.stop()}},skip:function(name){var func=this.attachedFunctions[name];if(!func){return
}func.count=func.interval},start:function(){if(this.running){return}this.running=true;this._interval=setInterval($.proxy(this.execute,this),this.frequency)
},stop:function(){if(!this.running){return}this.running=false;clearInterval(this._interval);this._interval=null
},execute:function(){var act,i,now=new Date();for(i in this.attachedFunctions){if(this.attachedFunctions.hasOwnProperty(i)){act=this.attachedFunctions[i];
act.count-=1;if(!act.count){act.count=act.interval;if(act.ttl){if(now-act.startedAt<=act.ttl){act.func()
}else{this.remove(act.name)}}else{act.func()}}}}}};
if(!window.ustream){window.ustream={}}if(!ustream.__modules){ustream.__modules=[]}ustream.__modules.push("namespace.js");
if(!ustream.ns){ustream.ns={}}ustream.namespace=(function(){var these=[],nsPrefix="ustream.framework.",actPrefix="",from="",to="",s="",fullFrom,i,p,m,collect,splitStrAsObj;
collect=function(from){var actNsEl,i;for(i in from){if(from.hasOwnProperty(i)){actNsEl=from[i].__ns;if(typeof(actNsEl)==="string"){these.push(actNsEl)
}else{if(typeof(actNsEl)==="object"){for(m=0;m<actNsEl.length;m+=1){these.push(actNsEl[m])}}}}}};splitStrAsObj=function(str){var parts=str.split("."),obj,i,l;
for(i=0,l=parts.length;i<l;i+=1){obj=obj?obj[parts[i]]:window[parts[i]]}return obj};collect(window.ustream);
collect(window.ustream.framework);for(i=0;i<these.length;i+=1){actPrefix=nsPrefix;p=these[i].indexOf("-");
if(p>-1){to=these[i].substr(0,p-2);from=these[i].substr(p+2);if(from.indexOf("ustream.")>-1||from.indexOf("window.")>-1){actPrefix=""
}}else{from=to=these[i]}fullFrom=actPrefix+from;s+="var "+to+"="+fullFrom+";";ustream.ns[to]=splitStrAsObj(fullFrom)
}return s}());
(function(){var depExists=function(s){var l,els,temp,i;if(s.indexOf(".js")>-1){l=ustream.__modules.length;
while(l){l-=1;if(ustream.__modules[l]===s){return true}}return false}els=s.split(".");l=els.length;temp=window[els[0]];
if(!temp){return false}for(i=1;i<l;i+=1){temp=temp[els[i]];if(!temp){return false}}return true},checkDep=function(here){var deps,i,m;
if(!here){return}for(i in here){if(here.hasOwnProperty(i)){deps=here[i].__depends;if(deps&&typeof(deps)==="object"){for(m=0;
m<deps.length;m+=1){if(!depExists(deps[m])){throw ("Dependency missing: "+deps[m]+" for "+i)}}}}}};checkDep(window.ustream);
checkDep(window.ustream.framework)}());
window.Ustream={Vars:ustream.vars,External:ustream.external};
$(function(){var DetectedApp,i;for(i in ustream.classes){if(ustream.classes.hasOwnProperty(i)){if(ustream.classes[i].prototype._app){DetectedApp=ustream.classes[i]
}}}if(DetectedApp){ustream.app=new DetectedApp();return}if(ustream.classes.App){ustream.app=new ustream.classes.App()
}else{ustream.app=new ustream.classes.CommonPage()}});

