
/*truveo ajax API*/
var TruveoVideoSearch=function(appid){var xmlhttpUrl="http://xml.truveo.com/libs/xmlhttp";var serviceUrl="http://xml.truveo.com/apiv3";var sessionCookie=new Cookie(document,"aolvs_session_token",720);var stateCookie=new Cookie(document,"aolvs_api_state");var urlParams=null;var onUpdateHandlerArray=new Array();var onLoadHandlerArray=new Array();var onErrorHandlerArray=new Array();var errorMessages={"501":"Error connecting to XMLHTTP AJAX service","502":"Invalid AJAX method call: The wrong number of arguments was provided to this method.","503":"Method not available: You must be logged in to use this method."};this.authParams=new Object();this.appid=appid;this.showAdult=0;this.showRelatedItems=0;this.start=0;this.results=10;this.tagResults=10;this.channelResults=10;this.categoryResults=10;this.userResults=10;this.mode="ajax";this.method="";this.query="";this.querySuggestion="";this.previousQuery="";this.VideoSet=null;this.TagSet=null;this.ChannelSet=null;this.CategorySet=null;this.UserSet=null;this.WatchlistSet=null;this.Result=null;this.getVideos=function(query,start){if(arguments.length<1){var query=""}if(arguments.length<2){var start=0}var urlParams={method:"truveo.videos.getVideos",query:query,results:this.results,start:start,showRelatedItems:this.showRelatedItems,tagResults:this.tagResults,channelResults:this.channelResults,categoryResults:this.categoryResults,userResults:this.userResults,showAdult:this.showAdult};this.submitRestQuery(urlParams,this.mode);return(true)};this.getRelatedTags=function(query,start,results){if(arguments.length<1){var query=""}if(arguments.length<2){var start=0}if(arguments.length<3){var results=this.tagResults}var urlParams={method:"truveo.videos.getRelatedTags",query:query,results:results,start:start};this.submitRestQuery(urlParams,this.mode);return(true)};this.getRelatedChannels=function(query,start,results){if(arguments.length<1){var query=""}if(arguments.length<2){var start=0}if(arguments.length<3){var results=this.channelResults}var urlParams={method:"truveo.videos.getRelatedChannels",query:query,results:results,start:start};this.submitRestQuery(urlParams,this.mode);return(true)};this.getRelatedCategories=function(query,start,results){if(arguments.length<1){var query=""}if(arguments.length<2){var start=0}if(arguments.length<3){var results=this.categoryResults}var urlParams={method:"truveo.videos.getRelatedCategories",query:query,results:results,start:start};this.submitRestQuery(urlParams,this.mode);return(true)};this.getRelatedUsers=function(query,start,results){if(arguments.length<1){var query=""}if(arguments.length<2){var start=0}if(arguments.length<3){var results=this.userResults}var urlParams={method:"truveo.videos.getRelatedUsers",query:query,results:results,start:start};this.submitRestQuery(urlParams,this.mode);return(true)};this.submitRating=function(videoId,rating){if(arguments.length<2){this.onerror(502,errorMessages["502"]);return(false)}var urlParams={method:"truveo.videos.submitRating",id:videoId,rating:rating};this.submitRestQuery(urlParams,"ajax");return(true)};this.login=function(callbackUrl){this.saveAPIState();var cleanCallbackUrl=this.removeUrlParameters(callbackUrl,["auth","token","loginCancel","errorCode","errorMessage","logout"]);var urlParams={method:"truveo.users.login",callback_url:cleanCallbackUrl};window.location.href=this.getRestUrl(urlParams)};this.logout=function(callbackUrl){sessionCookie.remove();var cleanCallbackUrl=this.removeUrlParameters(callbackUrl,["auth","token","loginCancel","errorCode","errorMessage","logout"]);if(cleanCallbackUrl.indexOf("?")==-1){cleanCallbackUrl=cleanCallbackUrl+"?logout=true"}else{cleanCallbackUrl=cleanCallbackUrl+"&logout=true"}var urlParams={method:"truveo.users.logout",logout_callback_url:cleanCallbackUrl};window.location.href=this.getRestUrl(urlParams)};this.isLoggedIn=function(){if(sessionCookie.load()&&(sessionCookie.publicName)){return(true)}else{return(false)}};this.getPublicName=function(){if(sessionCookie.load()&&sessionCookie.publicName){return(sessionCookie.publicName)}else{return(false)}};this.getFavoriteVideos=function(start){if(!this.isLoggedIn()&&(this.mode=="ajax")){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){var start=0}var urlParams={method:"truveo.users.getFavoriteVideos",start:start,results:this.results,showRelatedItems:this.showRelatedItems};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,this.mode);return(true)};this.addFavorite=function(id){if(!this.isLoggedIn()){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){this.onerror(502,errorMessages["502"]);return(false)}var urlParams={method:"truveo.users.addFavorite",id:id};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,"ajax");return(true)};this.removeFavorite=function(id){if(!this.isLoggedIn()){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){this.onerror(502,errorMessages["502"]);return(false)}var urlParams={method:"truveo.users.removeFavorite",id:id};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,"ajax");return(true)};this.getRecentVideos=function(start){if(!this.isLoggedIn()&&(this.mode=="ajax")){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){var start=0}var urlParams={method:"truveo.users.getRecentVideos",start:start,results:this.results,showRelatedItems:this.showRelatedItems};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,this.mode);return(true)};this.addRecentVideo=function(id){if(!this.isLoggedIn()){return(false)}if(arguments.length<1){this.onerror(502,errorMessages["502"]);return(false)}var urlParams={method:"truveo.users.addRecentVideo",id:id};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,"ajax");return(true)};this.clearRecentVideos=function(){if(!this.isLoggedIn()){this.onerror(503,errorMessages["503"]);return(false)}var urlParams={method:"truveo.users.clearRecentVideos"};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,"ajax");return(true)};this.getWatchlists=function(){if(!this.isLoggedIn()&&(this.mode=="ajax")){this.onerror(503,errorMessages["503"]);return(false)}var urlParams={method:"truveo.users.getWatchlists"};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,this.mode);return(true)};this.addWatchlist=function(query){if(!this.isLoggedIn()){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){this.onerror(502,errorMessages["502"]);return(false)}var urlParams={method:"truveo.users.addWatchlist",query:query};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,"ajax");return(true)};this.removeWatchlist=function(query){if(!this.isLoggedIn()){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){this.onerror(502,errorMessages["502"]);return(false)}var urlParams={method:"truveo.users.removeWatchlist",query:query};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,"ajax");return(true)};this.getRecommendedVideos=function(start){if(!this.isLoggedIn()&&(this.mode=="ajax")){this.onerror(503,errorMessages["503"]);return(false)}if(arguments.length<1){var start=0}var urlParams={method:"truveo.users.getRecommendedVideos",start:start,results:this.results,showRelatedItems:this.showRelatedItems};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams,this.mode);return(true)};this.hasNextPage=function(){return(parseInt(this.VideoSet.firstResultPosition)+parseInt(this.VideoSet.totalResultsReturned)<parseInt(this.VideoSet.totalResultsAvailable))};this.hasPreviousPage=function(){return(parseInt(this.VideoSet.firstResultPosition)>0)};this.nextPage=function(){var startPosition=parseInt(this.VideoSet.firstResultPosition)+parseInt(this.VideoSet.totalResultsReturned);if(this.method.indexOf("getRecentVideos")>=0){this.getRecentVideos(startPosition)}else{if(this.method.indexOf("getFavoriteVideos")>=0){this.getFavoriteVideos(startPosition)}else{if(this.method.indexOf("getRecommendedVideos")>=0){this.getRecommendedVideos(startPosition)}else{this.getVideos(this.query,startPosition)}}}return(true)};this.previousPage=function(){var startPosition=parseInt(this.VideoSet.firstResultPosition)-this.results;startPosition=(startPosition<0?0:startPosition);if(this.method.indexOf("getRecentVideos")>=0){this.getRecentVideos(startPosition)}else{if(this.method.indexOf("getFavoriteVideos")>=0){this.getFavoriteVideos(startPosition)}else{if(this.method.indexOf("getRecommendedVideos")>=0){this.getRecommendedVideos(startPosition)}else{this.getVideos(this.query,startPosition)}}}return(true)};this.goToPage=function(pageNum){var startPosition=(pageNum-1)*this.results;startPosition=(startPosition<0?0:startPosition);if(this.method.indexOf("getRecentVideos")>=0){this.getRecentVideos(startPosition)}else{if(this.method.indexOf("getFavoriteVideos")>=0){this.getFavoriteVideos(startPosition)}else{if(this.method.indexOf("getRecommendedVideos")>=0){this.getRecommendedVideos(startPosition)}else{this.getVideos(this.query,startPosition)}}}return(true)};this.attachEvent=function(eventName,handler){switch(eventName){case"onupdate":var index=onUpdateHandlerArray.length;onUpdateHandlerArray[index]=handler;break;case"onerror":var index=onErrorHandlerArray.length;onErrorHandlerArray[index]=handler;break;case"onload":var index=onLoadHandlerArray.length;onLoadHandlerArray[index]=handler;break}return(true)};this.onupdate=function(methodName){for(var i=0;i<onUpdateHandlerArray.length;i++){eval(onUpdateHandlerArray[i])}};this.onerror=function(errorCode,errorMessage){for(var i=0;i<onErrorHandlerArray.length;i++){eval(onErrorHandlerArray[i])}};this.onload=function(reloadStateFlag){if(arguments.length<1){reloadStateFlag=false}if(reloadStateFlag==true){this.loadAPIState()}for(var i=0;i<onLoadHandlerArray.length;i++){eval(onLoadHandlerArray[i])}};this.saveAPIState=function(){stateCookie.showAdult=this.showAdult;stateCookie.showRelatedItems=this.showRelatedItems;stateCookie.start=this.start;stateCookie.results=this.results;stateCookie.tagResults=this.tagResults;stateCookie.channelResults=this.channelResults;stateCookie.categoryResults=this.categoryResults;stateCookie.userResults=this.userResults;stateCookie.mode=this.mode;stateCookie.method=this.method;stateCookie.query=this.query;stateCookie.previousQuery=this.previousQuery;stateCookie.store()};this.loadAPIState=function(){if(stateCookie.load()){this.showAdult=stateCookie.showAdult;this.showRelatedItems=stateCookie.showRelatedItems;this.start=stateCookie.start;this.results=stateCookie.results;this.tagResults=stateCookie.tagResults;this.channelResults=stateCookie.channelResults;this.categoryResults=stateCookie.categoryResults;this.userResults=stateCookie.userResults;this.mode=stateCookie.mode;this.method=stateCookie.method;this.query=stateCookie.query;this.previousQuery=stateCookie.previousQuery;stateCookie.remove()}};this.saveAuthMethodState=function(){for(var key in this.authParams){sessionCookie["authParams"+key]=this.authParams[key]}sessionCookie.store()};this.loadAuthMethodState=function(){if(sessionCookie.load()){for(var key in sessionCookie){if(key.indexOf("authParams")!=-1){this.authParams[key.substring(10)]=sessionCookie[key]}}}};this.update=function(xmlText){var xotree=new XML.ObjTree();xotree.force_array=["Video","Tag","Channel","Category","User","Watchlist"];var tree=xotree.parseXML(xmlText);if(tree&&("Response" in tree)){var response=tree.Response;if("Error" in response){this.onerror(response.Error["-Code"],response.Error["#text"])}else{if(("method" in response)&&(response.method.indexOf("checkToken")>=0)&&response.Result&&response.Result.code){if(response.Result.code==1){this.testSetAuthMethodTruveo();this.onload()}else{sessionCookie.remove();this.onload()}}else{if(("method" in response)&&(response.method.indexOf("getToken")>=0)&&response.Result&&response.Result.token){sessionCookie.token=response.Result.token;if(response.Result.publicName){sessionCookie.publicName=response.Result.publicName}this.testSetAuthMethodTruveo();sessionCookie.store();this.onload(true)}else{if(("method" in response)&&(response.method.indexOf("checkAuthMethod")>=0)&&response.Result&&response.Result.authid){sessionCookie.publicName=response.Result.authid;sessionCookie.store();this.onload(true)}else{var methodName="";if("method" in response){this.method=response.method;methodName=response.method.slice(response.method.lastIndexOf(".")+1)}if("query" in response){this.previousQuery=this.query;this.query=response.query}if("querySuggestion" in response){this.querySuggestion=response.querySuggestion}if("VideoSet" in response){this.VideoSet=response.VideoSet;if("firstResultPosition" in response.VideoSet){this.start=response.VideoSet.firstResultPosition}}if("TagSet" in response){this.TagSet=response.TagSet}if("ChannelSet" in response){this.ChannelSet=response.ChannelSet}if("CategorySet" in response){this.CategorySet=response.CategorySet}if("UserSet" in response){this.UserSet=response.UserSet}if("WatchlistSet" in response){this.WatchlistSet=response.WatchlistSet}if("Result" in response){this.Result=response.Result}this.onupdate(methodName)}}}}}};this.onXMLHTTPLoad=function(xmlhttp){this.update(xmlhttp.responseText)};this.onXMLHTTPError=function(message){this.onerror(501,errorMessages["501"]+"; "+message)};this.submitRestQuery=function(urlParams,mode){if(mode=="rest"){var restUrl=window.location.protocol+"//"+window.location.host+window.location.pathname+"?";for(name in urlParams){if((name!="token")&&(name!="showAdult")){restUrl+=name+"="+encodeURIComponent(urlParams[name])+"&"}}window.location.href=restUrl.slice(0,-1)}else{var xmlhttp=new XMLHTTP();xmlhttp.setXMLHTTPURL(xmlhttpUrl);xmlhttp.registerCallback(this);xmlhttp.open("GET",this.getRestUrl(urlParams),true);xmlhttp.send(null)}};this.getRestUrl=function(urlParameters){var urlString=serviceUrl+"?appid="+encodeURIComponent(this.appid);for(name in urlParameters){if(urlParameters[name]){urlString+="&"+name+"="+encodeURIComponent(urlParameters[name])}}return(urlString)};this.getUrlParameters=function(url){var args=new Object();if(url.lastIndexOf("?")==-1){return(args)}else{var urlQueryString=url.slice(url.lastIndexOf("?")+1)}if(urlQueryString.length==0){return(args)}var pairs=urlQueryString.split("&");for(var i=0;i<pairs.length;i++){var pos=pairs[i].indexOf("=");if(pos==-1){var argname=pairs[i];var value=""}else{var argname=pairs[i].substring(0,pos);var value=pairs[i].substring(pos+1)}args[argname]=decodeURIComponent(value)}return(args)};this.removeUrlParameters=function(url,paramArray){if(url.lastIndexOf("?")==-1){var baseUrl=url}else{var baseUrl=url.slice(0,url.lastIndexOf("?"))}var urlParameters=this.getUrlParameters(url);for(var i=0;i<paramArray.length;i++){if(paramArray[i] in urlParameters){urlParameters[paramArray[i]]=null}}var j=0;var paramString="";for(name in urlParameters){if(urlParameters[name]!=null){if(j==0){paramString+=name+"="+encodeURIComponent(urlParameters[name])}else{paramString+="&"+name+"="+encodeURIComponent(urlParameters[name])}}j++}if(paramString==""){return(baseUrl)}else{return(baseUrl+"?"+paramString)}};this.setAuthMethod=function(method,params){this.saveAPIState();this.authParams=params;this.authParams.authMethod=method;if(method=="truveo"){}else{if(method=="uas"){sessionCookie.publicName="user"}else{var urlParams={method:"truveo.users.checkAuthMethod"};for(var authparam in this.authParams){urlParams[authparam]=this.authParams[authparam]}this.submitRestQuery(urlParams)}}this.saveAuthMethodState()};this.resetAuthMethod=function(url){if(this.authParams.authMethod=="truveo"){this.logout(url)}else{this.clearAuthMethod(url)}};this.clearAuthMethod=function(url){sessionCookie.remove();window.location.href=url};this.testSetAuthMethodOpenAuth=function(){var params={token:"%2FwQAAAAAAADI%2F1NkhH6Ljw%2FiA4LB%2BkmSFAt%2BThGWjuvJhZe88DpS8HGu8DvpSKj5UR3qw7wMFUITIxxKQcrnjjGstIWGhUekTZODLbCPoGcsAoivkVkvngCx92F%2FZ6TNMbdsCOdDGgBIKzQa%2Bk55lwbA2lWqb2P7DsyrVA%3D%3D",devId:"co1dDRMvlgZJXvWK",referer:"https://api.screenname.aol.com/auth/admin/test.jsp"};this.setAuthMethod("openauth",params)};this.testSetAuthMethodUAS=function(){var params={token:"%2FBcAG0kBQbEAAK9XALmeh0kBQe0I1HD5yJT%2BY6UAAA%3D%3D"};this.setAuthMethod("uas",params);this.onload(true)};this.testSetAuthMethodTruveo=function(){var params={token:sessionCookie.token};this.setAuthMethod("truveo",params)};this.testSetAuthMethod=function(){var method="truveo";if(method=="openauth"){this.testSetAuthMethodOpenAuth()}else{if(method=="uas"){this.testSetAuthMethodUAS()}else{if(method=="truveo"){this.login(window.location.href)}}}};this.initialize=function(){if(this.isLoggedIn()&&(this.mode=="ajax")){this.loadAuthMethodState();if(this.authParams.authMethod=="truveo"){var newUrlParams={method:"truveo.users.checkToken",token:sessionCookie.token};this.submitRestQuery(newUrlParams)}else{this.onload()}}else{urlParams=this.getUrlParameters(window.location.href);if("token" in urlParams){sessionCookie.token=urlParams.token;sessionCookie.store();this.onload(true);this.testSetAuthMethodTruveo()}else{if("auth" in urlParams){var newUrlParams={method:"truveo.users.getToken",auth:urlParams.auth};this.submitRestQuery(newUrlParams)}else{if("loginCancel" in urlParams){this.onload(true)}else{if("logout" in urlParams){this.onload()}else{if("errorCode" in urlParams){this.onerror(urlParams.errorCode,urlParams.errorMessage)}else{this.onload()}}}}}}}};XMLHTTP=function(){var e=1500;var h=null;this.status=null;this.statusText=null;this.responseText=null;this.responseXML=null;this.synchronous=false;this.readyState=0;this.callbackContext=null;this.onreadystatechange=function(){};this.onXMLHTTPError=function(){};this.onXMLHTTPLoad=function(){};this.registerCallback=function(y){this.callbackContext=y};this.setXMLHTTPURL=function(y){h=y};this.abort=function(){j=true;t()};this.getAllResponseHeaders=function(){var y="";for(property in s){y+=property+": "+s[property]+"\r\n"}return y};this.getResponseHeader=function(y){for(property in s){if(property.toLowerCase()==y.toLowerCase()){return s[property]}}return null};this.overrideMimeType=function(y){i=y};this.open=function(C,z,A,B,y){if(!u(C,z)){return}n=(C)?C:"";k=(z)?z:"";r=(B)?B:"";g=(y)?y:"";b(1)};this.openRequest=function(C,z,A,B,y){return this.open(C,z,A,B,y)};this.send=function(y){if(j){return}var z=m(y);x(z)};this.setRequestHeader=function(y,z){if(j){return}for(property in d){if(property.toLowerCase()==y.toLowerCase()){d[property]=z;return}}d[y]=z};var n="";var k="";var r="";var g="";var d={"HTTP-Referer":document.location,"Content-Type":"application/x-www-form-urlencoded"};var s={};var i="";var o=this;var c="";var p=[];var j=false;var f=function(z,y){if(arguments.length<2){y=o}if((y.callbackContext!=null)&&y.callbackContext.onXMLHTTPError){y.callbackContext.onXMLHTTPError(z)}else{o.onXMLHTTPError(z)}o.abort();return false};var m=function(B){if(!B){B=""}var z="";for(property in d){z+=encodeURIComponent(property)+"="+encodeURIComponent(d[property])+"&"}var G=n+"$"+c+"$"+r+"$"+g+"$"+z+"$"+a(B)+"$"+k;var y=G;var F=e,A=[];var E=Math.floor(y.length/F),C=0;while(y.length>0){var D=h+"?multipart$"+c+"$"+C+++"$"+E+"$"+y.substr(0,F);A.push(D);y=y.substr(F)}if(A.length==1){y=h+"?"+G}else{y=A}return y};var u=function(z,y){if(!z){return f("Please, specify the query method (GET, POST or HEAD)")}if(!y){return f("Please, specify the URL")}if(z.toLowerCase()!="get"&&z.toLowerCase()!="post"&&z.toLowerCase()!="head"){return f("Please, specify either a GET, POST or a HEAD method")}if(y.toLowerCase().substr(0,7)!="http://"){return f("Only HTTP protocol is supported (http://)")}return true};var x=function(A){if("object"==typeof A){for(var z=0;z<A.length;z++){x(A[z])}return}var y=document.createElement("script");y.src=A;y.type="text/javascript";if(navigator.userAgent.indexOf("Safari")){y.charset="utf-8"}y=document.getElementsByTagName("head")[0].appendChild(y);p.push(y);return y};var a=function(y){y=escape(y);y=y.replace("+","%2B");return y};var t=function(){for(var y=0;y<p.length;y++){if(p[y].parentNode){p[y].parentNode.removeChild(p[y])}}};var l=function(){c="v"+Math.random().toString().substr(2);window[c]=o};var b=function(z,y){if(arguments.length<2){y=o}o.readyState=z;if((y.callbackContext!=null)&&y.callbackContext.onreadystatechange){y.callbackContext.onreadystatechange()}else{o.onreadystatechange()}if(z==4){if((y.callbackContext!=null)&&y.callbackContext.onXMLHTTPLoad){y.callbackContext.onXMLHTTPLoad(y)}else{o.onXMLHTTPLoad()}}};var q=function(){var z=o.getResponseHeader("Content-type")+i;if(!(z.indexOf("html")>-1||z.indexOf("xml")>-1)){return}if(document.implementation&&document.implementation.createDocument&&navigator.userAgent.indexOf("Opera")==-1){var A=new DOMParser();var y=A.parseFromString(o.responseText,"text/xml");o.responseXML=y}else{if(window.ActiveXObject){var y=new ActiveXObject("MSXML2.DOMDocument.3.0");if(y.loadXML(o.responseText)){o.responseXML=y}}else{var y=document.body.appendChild(document.createElement("div"));y.style.display="none";y.innerHTML=o.responseText;w(y,true);o.responseXML=y.childNodes[0];document.body.removeChild(y)}}};var w=function(A,y){var z=A.childNodes.length;if(z==0){return}do{var B=A.childNodes[--z];if(B.nodeType==3&&!v(B.nodeValue)){A.removeChild(B)}if(B.nodeType==1&&y){w(B,true)}}while(z>0)};var v=function(y){y=y.replace("\r","");y=y.replace("\n","");y=y.replace(" ","");return(y.length==0)?false:true};this._parse=function(y){if(j){return}if(y.multipart){return}if(!y.success){return f(y.description,this)}s=y.responseHeaders;this.status=y.status;this.statusText=y.statusText;this.responseText=y.responseText;q();t();b(4,this)};l()};if(typeof(XML)=="undefined"){XML=function(){}}XML.ObjTree=function(){return this};XML.ObjTree.VERSION="0.23";XML.ObjTree.prototype.xmlDecl='<?xml version="1.0" encoding="UTF-8" ?>\n';XML.ObjTree.prototype.attr_prefix="-";XML.ObjTree.prototype.parseXML=function(c){var b;if(window.DOMParser){var a=new DOMParser();var d=a.parseFromString(c,"application/xml");if(!d){return}b=d.documentElement}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLDOM");a.async=false;a.loadXML(c);b=a.documentElement}}if(!b){return}return this.parseDOM(b)};XML.ObjTree.prototype.parseDOM=function(a){if(!a){return}this.__force_array={};if(this.force_array){for(var d=0;d<this.force_array.length;d++){this.__force_array[this.force_array[d]]=1}}var c=this.parseElement(a);if(this.__force_array[a.nodeName]){c=[c]}if(a.nodeType!=11){var b={};b[a.nodeName]=c;c=b}return c};XML.ObjTree.prototype.parseElement=function(e){if(e.nodeType==7){return}if(e.nodeType==3||e.nodeType==4){var f=e.nodeValue.match(/[^\x00-\x20]/);if(f==null){return}return e.nodeValue}var b;var d={};if(e.attributes&&e.attributes.length){b={};for(var g=0;g<e.attributes.length;g++){var j=e.attributes[g].nodeName;if(typeof(j)!="string"){continue}var c=e.attributes[g].nodeValue;if(!c){continue}j=this.attr_prefix+j;if(typeof(d[j])=="undefined"){d[j]=0}d[j]++;this.addNode(b,j,d[j],c)}}if(e.childNodes&&(e.childNodes.length>=0)){var h=true;if(b){h=false}for(var g=0;g<e.childNodes.length&&h;g++){var a=e.childNodes[g].nodeType;if(a==3||a==4){continue}h=false}if(h){if(!b){b=new String()}for(var g=0;g<e.childNodes.length;g++){b+=e.childNodes[g].nodeValue}}else{if(!b){b={}}for(var g=0;g<e.childNodes.length;g++){var j=e.childNodes[g].nodeName;if(typeof(j)!="string"){continue}var c=this.parseElement(e.childNodes[g]);if(!c){continue}if(typeof(d[j])=="undefined"){d[j]=0}d[j]++;this.addNode(b,j,d[j],c)}}}return b};XML.ObjTree.prototype.addNode=function(c,a,b,d){if(this.__force_array[a]){if(b==1){c[a]=[]}c[a][c[a].length]=d}else{if(b==1){c[a]=d}else{if(b==2){c[a]=[c[a],d]}else{c[a][c[a].length]=d}}}};XML.ObjTree.prototype.writeXML=function(a){var b=this.hash_to_xml(null,a);return this.xmlDecl+b};XML.ObjTree.prototype.hash_to_xml=function(c,b){var f=[];var a=[];for(var e in b){if(!b.hasOwnProperty(e)){continue}var h=b[e];if(e.charAt(0)!=this.attr_prefix){if(typeof(h)=="undefined"||h==null){f[f.length]="<"+e+" />"}else{if(typeof(h)=="object"&&h.constructor==Array){f[f.length]=this.array_to_xml(e,h)}else{if(typeof(h)=="object"){f[f.length]=this.hash_to_xml(e,h)}else{f[f.length]=this.scalar_to_xml(e,h)}}}}else{a[a.length]=" "+(e.substring(1))+'="'+(this.xml_escape(h))+'"'}}var g=a.join("");var d=f.join("");if(typeof(c)=="undefined"||c==null){}else{if(f.length>0){if(d.match(/\n/)){d="<"+c+g+">\n"+d+"</"+c+">\n"}else{d="<"+c+g+">"+d+"</"+c+">\n"}}else{d="<"+c+g+" />\n"}}return d};XML.ObjTree.prototype.array_to_xml=function(b,e){var a=[];for(var c=0;c<e.length;c++){var d=e[c];if(typeof(d)=="undefined"||d==null){a[a.length]="<"+b+" />"}else{if(typeof(d)=="object"&&d.constructor==Array){a[a.length]=this.array_to_xml(b,d)}else{if(typeof(d)=="object"){a[a.length]=this.hash_to_xml(b,d)}else{a[a.length]=this.scalar_to_xml(b,d)}}}}return a.join("")};XML.ObjTree.prototype.scalar_to_xml=function(a,b){if(a=="#text"){return this.xml_escape(b)}else{return"<"+a+">"+this.xml_escape(b)+"</"+a+">\n"}};XML.ObjTree.prototype.xml_escape=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};function Cookie(a,c,b,f,d,e){this.$document=a;this.$name=c;if(b){this.$expiration=new Date((new Date()).getTime()+b*3600000)}else{this.$expiration=null}if(f){this.$path=f}else{this.$path=null}if(d){this.$domain=d}else{this.$domain=null}if(e){this.$secure=true}else{this.$secure=false}}Cookie.prototype.store=function(){var b="";for(var c in this){if((c.charAt(0)=="$")||((typeof this[c])=="function")){continue}if(b!=""){b+="&"}b+=c+":"+escape(this[c])}var a=this.$name+"="+b;if(this.$expiration){a+="; expires="+this.$expiration.toGMTString()}if(this.$path){a+="; path="+this.$path}if(this.$domain){a+="; domain="+this.$domain}if(this.$secure){a+="; secure"}this.$document.cookie=a};Cookie.prototype.load=function(){var e=this.$document.cookie;if(e==""){return false}var g=e.indexOf(this.$name+"=");if(g==-1){return false}g+=this.$name.length+1;var c=e.indexOf(";",g);if(c==-1){c=e.length}var f=e.substring(g,c);var b=f.split("&");for(var d=0;d<b.length;d++){b[d]=b[d].split(":")}for(var d=0;d<b.length;d++){this[b[d][0]]=unescape(b[d][1])}return true};Cookie.prototype.remove=function(){var a;a=this.$name+"=";if(this.$path){a+="; path="+this.$path}if(this.$domain){a+="; domain="+this.$domain}a+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.$document.cookie=a};
/*truveo ajax API*/

/**************** MooTools ******************/
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006-2007 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

var MooTools={version:"1.11"};function $defined(A){return(A!=undefined);}function $type(B){if(!$defined(B)){return false;}if(B.htmlElement){return"element";
}var A=typeof B;if(A=="object"&&B.nodeName){switch(B.nodeType){case 1:return"element";case 3:return(/\S/).test(B.nodeValue)?"textnode":"whitespace";}}if(A=="object"||A=="function"){switch(B.constructor){case Array:return"array";
case RegExp:return"regexp";case Class:return"class";}if(typeof B.length=="number"){if(B.item){return"collection";}if(B.callee){return"arguments";}}}return A;
}function $merge(){var C={};for(var B=0;B<arguments.length;B++){for(var E in arguments[B]){var A=arguments[B][E];var D=C[E];if(D&&$type(A)=="object"&&$type(D)=="object"){C[E]=$merge(D,A);
}else{C[E]=A;}}}return C;}var $extend=function(){var A=arguments;if(!A[1]){A=[this,A[0]];}for(var B in A[1]){A[0][B]=A[1][B];}return A[0];};var $native=function(){for(var B=0,A=arguments.length;
B<A;B++){arguments[B].extend=function(C){for(var D in C){if(!this.prototype[D]){this.prototype[D]=C[D];}if(!this[D]){this[D]=$native.generic(D);}}};}};
$native.generic=function(A){return function(B){return this.prototype[A].apply(B,Array.prototype.slice.call(arguments,1));};};$native(Function,Array,String,Number);
function $chk(A){return !!(A||A===0);}function $pick(B,A){return $defined(B)?B:A;}function $random(B,A){return Math.floor(Math.random()*(A-B+1)+B);}function $time(){return new Date().getTime();
}function $clear(A){clearTimeout(A);clearInterval(A);return null;}var Abstract=function(A){A=A||{};A.extend=$extend;return A;};var Window=new Abstract(window);
var Document=new Abstract(document);document.head=document.getElementsByTagName("head")[0];window.xpath=!!(document.evaluate);if(window.ActiveXObject){window.ie=window[window.XMLHttpRequest?"ie7":"ie6"]=true;
}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){window.webkit=window[window.xpath?"webkit420":"webkit419"]=true;}else{if(document.getBoxObjectFor!=null){window.gecko=true;
}}}window.khtml=window.webkit;Object.extend=$extend;if(typeof HTMLElement=="undefined"){var HTMLElement=function(){};if(window.webkit){document.createElement("iframe");
}HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{};}HTMLElement.prototype.htmlElement=function(){};if(window.ie6){try{document.execCommand("BackgroundImageCache",false,true);
}catch(e){}}var Class=function(B){var A=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=="function")?this.initialize.apply(this,arguments):this;
};$extend(A,this);A.prototype=B;A.constructor=Class;return A;};Class.empty=function(){};Class.prototype={extend:function(B){var C=new this(null);for(var D in B){var A=C[D];
C[D]=Class.Merge(A,B[D]);}return new Class(C);},implement:function(){for(var B=0,A=arguments.length;B<A;B++){$extend(this.prototype,arguments[B]);}}};Class.Merge=function(C,D){if(C&&C!=D){var B=$type(D);
if(B!=$type(C)){return D;}switch(B){case"function":var A=function(){this.parent=arguments.callee.parent;return D.apply(this,arguments);};A.parent=C;return A;
case"object":return $merge(C,D);}}return D;};var Chain=new Class({chain:function(A){this.chains=this.chains||[];this.chains.push(A);return this;},callChain:function(){if(this.chains&&this.chains.length){this.chains.shift().delay(10,this);
}},clearChain:function(){this.chains=[];}});var Events=new Class({addEvent:function(B,A){if(A!=Class.empty){this.$events=this.$events||{};this.$events[B]=this.$events[B]||[];
this.$events[B].include(A);}return this;},fireEvent:function(C,B,A){if(this.$events&&this.$events[C]){this.$events[C].each(function(D){D.create({bind:this,delay:A,"arguments":B})();
},this);}return this;},removeEvent:function(B,A){if(this.$events&&this.$events[B]){this.$events[B].remove(A);}return this;}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));
if(this.addEvent){for(var A in this.options){if($type(this.options[A]=="function")&&(/^on[A-Z]/).test(A)){this.addEvent(A,this.options[A]);}}}return this;
}});Array.extend({forEach:function(C,D){for(var B=0,A=this.length;B<A;B++){C.call(D,this[B],B,this);}},filter:function(D,E){var C=[];for(var B=0,A=this.length;
B<A;B++){if(D.call(E,this[B],B,this)){C.push(this[B]);}}return C;},map:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){C[B]=D.call(E,this[B],B,this);
}return C;},every:function(C,D){for(var B=0,A=this.length;B<A;B++){if(!C.call(D,this[B],B,this)){return false;}}return true;},some:function(C,D){for(var B=0,A=this.length;
B<A;B++){if(C.call(D,this[B],B,this)){return true;}}return false;},indexOf:function(C,D){var A=this.length;for(var B=(D<0)?Math.max(0,A+D):D||0;B<A;B++){if(this[B]===C){return B;
}}return -1;},copy:function(D,C){D=D||0;if(D<0){D=this.length+D;}C=C||(this.length-D);var A=[];for(var B=0;B<C;B++){A[B]=this[D++];}return A;},remove:function(C){var B=0;
var A=this.length;while(B<A){if(this[B]===C){this.splice(B,1);A--;}else{B++;}}return this;},contains:function(A,B){return this.indexOf(A,B)!=-1;},associate:function(C){var D={},B=Math.min(this.length,C.length);
for(var A=0;A<B;A++){D[C[A]]=this[A];}return D;},extend:function(C){for(var B=0,A=C.length;B<A;B++){this.push(C[B]);}return this;},merge:function(C){for(var B=0,A=C.length;
B<A;B++){this.include(C[B]);}return this;},include:function(A){if(!this.contains(A)){this.push(A);}return this;},getRandom:function(){return this[$random(0,this.length-1)]||null;
},getLast:function(){return this[this.length-1]||null;}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(A){return Array.copy(A);
}function $each(C,B,D){if(C&&typeof C.length=="number"&&$type(C)!="object"){Array.forEach(C,B,D);}else{for(var A in C){B.call(D||C,C[A],A);}}}Array.prototype.test=Array.prototype.contains;
String.extend({test:function(A,B){return(($type(A)=="string")?new RegExp(A,B):A).test(this);},toInt:function(){return parseInt(this,10);},toFloat:function(){return parseFloat(this);
},camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(A){return(A.charAt(0)+"-"+A.charAt(1).toLowerCase());
});},capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase();});},trim:function(){return this.replace(/^\s+|\s+$/g,"");
},clean:function(){return this.replace(/\s{2,}/g," ").trim();},rgbToHex:function(B){var A=this.match(/\d{1,3}/g);return(A)?A.rgbToHex(B):false;},hexToRgb:function(B){var A=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);
return(A)?A.slice(1).hexToRgb(B):false;},contains:function(A,B){return(B)?(B+this+B).indexOf(B+A+B)>-1:this.indexOf(A)>-1;},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1");
}});Array.extend({rgbToHex:function(D){if(this.length<3){return false;}if(this.length==4&&this[3]==0&&!D){return"transparent";}var B=[];for(var A=0;A<3;
A++){var C=(this[A]-0).toString(16);B.push((C.length==1)?"0"+C:C);}return D?B:"#"+B.join("");},hexToRgb:function(C){if(this.length!=3){return false;}var A=[];
for(var B=0;B<3;B++){A.push(parseInt((this[B].length==1)?this[B]+this[B]:this[B],16));}return C?A:"rgb("+A.join(",")+")";}});Function.extend({create:function(A){var B=this;
A=$merge({bind:B,event:false,"arguments":null,delay:false,periodical:false,attempt:false},A);if($chk(A.arguments)&&$type(A.arguments)!="array"){A.arguments=[A.arguments];
}return function(E){var C;if(A.event){E=E||window.event;C=[(A.event===true)?E:new A.event(E)];if(A.arguments){C.extend(A.arguments);}}else{C=A.arguments||arguments;
}var F=function(){return B.apply($pick(A.bind,B),C);};if(A.delay){return setTimeout(F,A.delay);}if(A.periodical){return setInterval(F,A.periodical);}if(A.attempt){try{return F();
}catch(D){return false;}}return F();};},pass:function(A,B){return this.create({"arguments":A,bind:B});},attempt:function(A,B){return this.create({"arguments":A,bind:B,attempt:true})();
},bind:function(B,A){return this.create({bind:B,"arguments":A});},bindAsEventListener:function(B,A){return this.create({bind:B,event:true,"arguments":A});
},delay:function(B,C,A){return this.create({delay:B,bind:C,"arguments":A})();},periodical:function(A,C,B){return this.create({periodical:A,bind:C,"arguments":B})();
}});Number.extend({toInt:function(){return parseInt(this);},toFloat:function(){return parseFloat(this);},limit:function(B,A){return Math.min(A,Math.max(B,this));
},round:function(A){A=Math.pow(10,A||0);return Math.round(this*A)/A;},times:function(B){for(var A=0;A<this;A++){B(A);}}});var Element=new Class({initialize:function(D,C){if($type(D)=="string"){if(window.ie&&C&&(C.name||C.type)){var A=(C.name)?' name="'+C.name+'"':"";
var B=(C.type)?' type="'+C.type+'"':"";delete C.name;delete C.type;D="<"+D+A+B+">";}D=document.createElement(D);}D=$(D);return(!C||!D)?D:D.set(C);}});var Elements=new Class({initialize:function(A){return(A)?$extend(A,this):this;
}});Elements.extend=function(A){for(var B in A){this.prototype[B]=A[B];this[B]=$native.generic(B);}};function $(B){if(!B){return null;}if(B.htmlElement){return Garbage.collect(B);
}if([window,document].contains(B)){return B;}var A=$type(B);if(A=="string"){B=document.getElementById(B);A=(B)?"element":false;}if(A!="element"){return null;
}if(B.htmlElement){return Garbage.collect(B);}if(["object","embed"].contains(B.tagName.toLowerCase())){return B;}$extend(B,Element.prototype);B.htmlElement=function(){};
return Garbage.collect(B);}document.getElementsBySelector=document.getElementsByTagName;function $$(){var D=[];for(var C=0,B=arguments.length;C<B;C++){var A=arguments[C];
switch($type(A)){case"element":D.push(A);case"boolean":break;case false:break;case"string":A=document.getElementsBySelector(A,true);default:D.extend(A);
}}return $$.unique(D);}$$.unique=function(G){var D=[];for(var C=0,A=G.length;C<A;C++){if(G[C].$included){continue;}var B=$(G[C]);if(B&&!B.$included){B.$included=true;
D.push(B);}}for(var F=0,E=D.length;F<E;F++){D[F].$included=null;}return new Elements(D);};Elements.Multi=function(A){return function(){var D=arguments;
var B=[];var G=true;for(var E=0,C=this.length,F;E<C;E++){F=this[E][A].apply(this[E],D);if($type(F)!="element"){G=false;}B.push(F);}return(G)?$$.unique(B):B;
};};Element.extend=function(A){for(var B in A){HTMLElement.prototype[B]=A[B];Element.prototype[B]=A[B];Element[B]=$native.generic(B);var C=(Array.prototype[B])?B+"Elements":B;
Elements.prototype[C]=Elements.Multi(B);}};Element.extend({set:function(A){for(var C in A){var B=A[C];switch(C){case"styles":this.setStyles(B);break;case"events":if(this.addEvents){this.addEvents(B);
}break;case"properties":this.setProperties(B);break;default:this.setProperty(C,B);}}return this;},inject:function(C,A){C=$(C);switch(A){case"before":C.parentNode.insertBefore(this,C);
break;case"after":var B=C.getNext();if(!B){C.parentNode.appendChild(this);}else{C.parentNode.insertBefore(this,B);}break;case"top":var D=C.firstChild;if(D){C.insertBefore(this,D);
break;}default:C.appendChild(this);}return this;},injectBefore:function(A){return this.inject(A,"before");},injectAfter:function(A){return this.inject(A,"after");
},injectInside:function(A){return this.inject(A,"bottom");},injectTop:function(A){return this.inject(A,"top");},adopt:function(){var A=[];$each(arguments,function(B){A=A.concat(B);
});$$(A).inject(this);return this;},remove:function(){return this.parentNode.removeChild(this);},clone:function(C){var B=$(this.cloneNode(C!==false));if(!B.$events){return B;
}B.$events={};for(var A in this.$events){B.$events[A]={keys:$A(this.$events[A].keys),values:$A(this.$events[A].values)};}return B.removeEvents();},replaceWith:function(A){A=$(A);
this.parentNode.replaceChild(A,this);return A;},appendText:function(A){this.appendChild(document.createTextNode(A));return this;},hasClass:function(A){return this.className.contains(A," ");
},addClass:function(A){if(!this.hasClass(A)){this.className=(this.className+" "+A).clean();}return this;},removeClass:function(A){this.className=this.className.replace(new RegExp("(^|\\s)"+A+"(?:\\s|$)"),"$1").clean();
return this;},toggleClass:function(A){return this.hasClass(A)?this.removeClass(A):this.addClass(A);},setStyle:function(B,A){switch(B){case"opacity":return this.setOpacity(parseFloat(A));
case"float":B=(window.ie)?"styleFloat":"cssFloat";}B=B.camelCase();switch($type(A)){case"number":if(!["zIndex","zoom"].contains(B)){A+="px";}break;case"array":A="rgb("+A.join(",")+")";
}this.style[B]=A;return this;},setStyles:function(A){switch($type(A)){case"object":Element.setMany(this,"setStyle",A);break;case"string":this.style.cssText=A;
}return this;},setOpacity:function(A){if(A==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden";}}else{if(this.style.visibility!="visible"){this.style.visibility="visible";
}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1;}if(window.ie){this.style.filter=(A==1)?"":"alpha(opacity="+A*100+")";}this.style.opacity=this.$tmp.opacity=A;
return this;},getStyle:function(C){C=C.camelCase();var A=this.style[C];if(!$chk(A)){if(C=="opacity"){return this.$tmp.opacity;}A=[];for(var B in Element.Styles){if(C==B){Element.Styles[B].each(function(F){var E=this.getStyle(F);
A.push(parseInt(E)?E:"0px");},this);if(C=="border"){var D=A.every(function(E){return(E==A[0]);});return(D)?A[0]:false;}return A.join(" ");}}if(C.contains("border")){if(Element.Styles.border.contains(C)){return["Width","Style","Color"].map(function(E){return this.getStyle(C+E);
},this).join(" ");}else{if(Element.borderShort.contains(C)){return["Top","Right","Bottom","Left"].map(function(E){return this.getStyle("border"+E+C.replace("border",""));
},this).join(" ");}}}if(document.defaultView){A=document.defaultView.getComputedStyle(this,null).getPropertyValue(C.hyphenate());}else{if(this.currentStyle){A=this.currentStyle[C];
}}}if(window.ie){A=Element.fixStyle(C,A,this);}if(A&&C.test(/color/i)&&A.contains("rgb")){return A.split("rgb").splice(1,4).map(function(E){return E.rgbToHex();
}).join(" ");}return A;},getStyles:function(){return Element.getMany(this,"getStyle",arguments);},walk:function(A,C){A+="Sibling";var B=(C)?this[C]:this[A];
while(B&&$type(B)!="element"){B=B[A];}return $(B);},getPrevious:function(){return this.walk("previous");},getNext:function(){return this.walk("next");},getFirst:function(){return this.walk("next","firstChild");
},getLast:function(){return this.walk("previous","lastChild");},getParent:function(){return $(this.parentNode);},getChildren:function(){return $$(this.childNodes);
},hasChild:function(A){return !!$A(this.getElementsByTagName("*")).contains(A);},getProperty:function(D){var B=Element.Properties[D];if(B){return this[B];
}var A=Element.PropertiesIFlag[D]||0;if(!window.ie||A){return this.getAttribute(D,A);}var C=this.attributes[D];return(C)?C.nodeValue:null;},removeProperty:function(B){var A=Element.Properties[B];
if(A){this[A]="";}else{this.removeAttribute(B);}return this;},getProperties:function(){return Element.getMany(this,"getProperty",arguments);},setProperty:function(C,B){var A=Element.Properties[C];
if(A){this[A]=B;}else{this.setAttribute(C,B);}return this;},setProperties:function(A){return Element.setMany(this,"setProperty",A);},setHTML:function(){this.innerHTML=$A(arguments).join("");
return this;},setText:function(B){var A=this.getTag();if(["style","script"].contains(A)){if(window.ie){if(A=="style"){this.styleSheet.cssText=B;}else{if(A=="script"){this.setProperty("text",B);
}}return this;}else{this.removeChild(this.firstChild);return this.appendText(B);}}this[$defined(this.innerText)?"innerText":"textContent"]=B;return this;
},getText:function(){var A=this.getTag();if(["style","script"].contains(A)){if(window.ie){if(A=="style"){return this.styleSheet.cssText;}else{if(A=="script"){return this.getProperty("text");
}}}else{return this.innerHTML;}}return($pick(this.innerText,this.textContent));},getTag:function(){return this.tagName.toLowerCase();},empty:function(){Garbage.trash(this.getElementsByTagName("*"));
return this.setHTML("");}});Element.fixStyle=function(E,A,D){if($chk(parseInt(A))){return A;}if(["height","width"].contains(E)){var B=(E=="width")?["left","right"]:["top","bottom"];
var C=0;B.each(function(F){C+=D.getStyle("border-"+F+"-width").toInt()+D.getStyle("padding-"+F).toInt();});return D["offset"+E.capitalize()]-C+"px";}else{if(E.test(/border(.+)Width|margin|padding/)){return"0px";
}}return A;};Element.Styles={border:[],padding:[],margin:[]};["Top","Right","Bottom","Left"].each(function(B){for(var A in Element.Styles){Element.Styles[A].push(A+B);
}});Element.borderShort=["borderWidth","borderStyle","borderColor"];Element.getMany=function(B,D,C){var A={};$each(C,function(E){A[E]=B[D](E);});return A;
};Element.setMany=function(B,D,C){for(var A in C){B[D](A,C[A]);}return B;};Element.Properties=new Abstract({"class":"className","for":"htmlFor",colspan:"colSpan",rowspan:"rowSpan",accesskey:"accessKey",tabindex:"tabIndex",maxlength:"maxLength",readonly:"readOnly",frameborder:"frameBorder",value:"value",disabled:"disabled",checked:"checked",multiple:"multiple",selected:"selected"});
Element.PropertiesIFlag={href:2,src:2};Element.Methods={Listeners:{addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false);
}else{this.attachEvent("on"+B,A);}return this;},removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false);}else{this.detachEvent("on"+B,A);
}return this;}}};window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);var Garbage={elements:[],collect:function(A){if(!A.$tmp){Garbage.elements.push(A);
A.$tmp={opacity:1};}return A;},trash:function(D){for(var B=0,A=D.length,C;B<A;B++){if(!(C=D[B])||!C.$tmp){continue;}if(C.$events){C.fireEvent("trash").removeEvents();
}for(var E in C.$tmp){C.$tmp[E]=null;}for(var F in Element.prototype){C[F]=null;}Garbage.elements[Garbage.elements.indexOf(C)]=null;C.htmlElement=C.$tmp=C=null;
}Garbage.elements.remove(null);},empty:function(){Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements);}};window.addListener("beforeunload",function(){window.addListener("unload",Garbage.empty);
if(window.ie){window.addListener("unload",CollectGarbage);}});var Event=new Class({initialize:function(C){if(C&&C.$extended){return C;}this.$extended=true;
C=C||window.event;this.event=C;this.type=C.type;this.target=C.target||C.srcElement;if(this.target.nodeType==3){this.target=this.target.parentNode;}this.shift=C.shiftKey;
this.control=C.ctrlKey;this.alt=C.altKey;this.meta=C.metaKey;if(["DOMMouseScroll","mousewheel"].contains(this.type)){this.wheel=(C.wheelDelta)?C.wheelDelta/120:-(C.detail||0)/3;
}else{if(this.type.contains("key")){this.code=C.which||C.keyCode;for(var B in Event.keys){if(Event.keys[B]==this.code){this.key=B;break;}}if(this.type=="keydown"){var A=this.code-111;
if(A>0&&A<13){this.key="f"+A;}}this.key=this.key||String.fromCharCode(this.code).toLowerCase();}else{if(this.type.test(/(click|mouse|menu)/)){this.page={x:C.pageX||C.clientX+document.documentElement.scrollLeft,y:C.pageY||C.clientY+document.documentElement.scrollTop};
this.client={x:C.pageX?C.pageX-window.pageXOffset:C.clientX,y:C.pageY?C.pageY-window.pageYOffset:C.clientY};this.rightClick=(C.which==3)||(C.button==2);
switch(this.type){case"mouseover":this.relatedTarget=C.relatedTarget||C.fromElement;break;case"mouseout":this.relatedTarget=C.relatedTarget||C.toElement;
}this.fixRelatedTarget();}}}return this;},stop:function(){return this.stopPropagation().preventDefault();},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();
}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault();}else{this.event.returnValue=false;
}return this;}});Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3){this.relatedTarget=this.relatedTarget.parentNode;
}},relatedTargetGecko:function(){try{Event.fix.relatedTarget.call(this);}catch(A){this.relatedTarget=this.target;}}};Event.prototype.fixRelatedTarget=(window.gecko)?Event.fix.relatedTargetGecko:Event.fix.relatedTarget;
Event.keys=new Abstract({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Element.Methods.Events={addEvent:function(C,B){this.$events=this.$events||{};
this.$events[C]=this.$events[C]||{keys:[],values:[]};if(this.$events[C].keys.contains(B)){return this;}this.$events[C].keys.push(B);var A=C;var D=Element.Events[C];
if(D){if(D.add){D.add.call(this,B);}if(D.map){B=D.map;}if(D.type){A=D.type;}}if(!this.addEventListener){B=B.create({bind:this,event:true});}this.$events[C].values.push(B);
return(Element.NativeEvents.contains(A))?this.addListener(A,B):this;},removeEvent:function(C,B){if(!this.$events||!this.$events[C]){return this;}var F=this.$events[C].keys.indexOf(B);
if(F==-1){return this;}var A=this.$events[C].keys.splice(F,1)[0];var E=this.$events[C].values.splice(F,1)[0];var D=Element.Events[C];if(D){if(D.remove){D.remove.call(this,B);
}if(D.type){C=D.type;}}return(Element.NativeEvents.contains(C))?this.removeListener(C,E):this;},addEvents:function(A){return Element.setMany(this,"addEvent",A);
},removeEvents:function(A){if(!this.$events){return this;}if(!A){for(var B in this.$events){this.removeEvents(B);}this.$events=null;}else{if(this.$events[A]){this.$events[A].keys.each(function(C){this.removeEvent(A,C);
},this);this.$events[A]=null;}}return this;},fireEvent:function(C,B,A){if(this.$events&&this.$events[C]){this.$events[C].keys.each(function(D){D.create({bind:this,delay:A,"arguments":B})();
},this);}return this;},cloneEvents:function(C,A){if(!C.$events){return this;}if(!A){for(var B in C.$events){this.cloneEvents(C,B);}}else{if(C.$events[A]){C.$events[A].keys.each(function(D){this.addEvent(A,D);
},this);}}return this;}};window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);Element.Events=new Abstract({mouseenter:{type:"mouseover",map:function(A){A=new Event(A);
if(A.relatedTarget!=this&&!this.hasChild(A.relatedTarget)){this.fireEvent("mouseenter",A);}}},mouseleave:{type:"mouseout",map:function(A){A=new Event(A);
if(A.relatedTarget!=this&&!this.hasChild(A.relatedTarget)){this.fireEvent("mouseleave",A);}}},mousewheel:{type:(window.gecko)?"DOMMouseScroll":"mousewheel"}});
Element.NativeEvents=["click","dblclick","mouseup","mousedown","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","keydown","keypress","keyup","load","unload","beforeunload","resize","move","focus","blur","change","submit","reset","select","error","abort","contextmenu","scroll"];
Function.extend({bindWithEvent:function(B,A){return this.create({bind:B,"arguments":A,event:Event});}});Elements.extend({filterByTag:function(A){return new Elements(this.filter(function(B){return(Element.getTag(B)==A);
}));},filterByClass:function(A,C){var B=this.filter(function(D){return(D.className&&D.className.contains(A," "));});return(C)?B:new Elements(B);},filterById:function(C,B){var A=this.filter(function(D){return(D.id==C);
});return(B)?A:new Elements(A);},filterByAttribute:function(B,A,D,E){var C=this.filter(function(F){var G=Element.getProperty(F,B);if(!G){return false;}if(!A){return true;
}switch(A){case"=":return(G==D);case"*=":return(G.contains(D));case"^=":return(G.substr(0,D.length)==D);case"$=":return(G.substr(G.length-D.length)==D);
case"!=":return(G!=D);case"~=":return G.contains(D," ");}return false;});return(E)?C:new Elements(C);}});function $E(A,B){return($(B)||document).getElement(A);
}function $ES(A,B){return($(B)||document).getElementsBySelector(A);}$$.shared={regexp:/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,xpath:{getParam:function(B,D,E,C){var A=[D.namespaceURI?"xhtml:":"",E[1]];
if(E[2]){A.push('[@id="',E[2],'"]');}if(E[3]){A.push('[contains(concat(" ", @class, " "), " ',E[3],' ")]');}if(E[4]){if(E[5]&&E[6]){switch(E[5]){case"*=":A.push("[contains(@",E[4],', "',E[6],'")]');
break;case"^=":A.push("[starts-with(@",E[4],', "',E[6],'")]');break;case"$=":A.push("[substring(@",E[4],", string-length(@",E[4],") - ",E[6].length,' + 1) = "',E[6],'"]');
break;case"=":A.push("[@",E[4],'="',E[6],'"]');break;case"!=":A.push("[@",E[4],'!="',E[6],'"]');}}else{A.push("[@",E[4],"]");}}B.push(A.join(""));return B;
},getItems:function(B,E,G){var F=[];var A=document.evaluate(".//"+B.join("//"),E,$$.shared.resolver,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var D=0,C=A.snapshotLength;
D<C;D++){F.push(A.snapshotItem(D));}return(G)?F:new Elements(F.map($));}},normal:{getParam:function(A,C,E,B){if(B==0){if(E[2]){var D=C.getElementById(E[2]);
if(!D||((E[1]!="*")&&(Element.getTag(D)!=E[1]))){return false;}A=[D];}else{A=$A(C.getElementsByTagName(E[1]));}}else{A=$$.shared.getElementsByTagName(A,E[1]);
if(E[2]){A=Elements.filterById(A,E[2],true);}}if(E[3]){A=Elements.filterByClass(A,E[3],true);}if(E[4]){A=Elements.filterByAttribute(A,E[4],E[5],E[6],true);
}return A;},getItems:function(A,B,C){return(C)?A:$$.unique(A);}},resolver:function(A){return(A=="xhtml")?"http://www.w3.org/1999/xhtml":false;},getElementsByTagName:function(D,C){var E=[];
for(var B=0,A=D.length;B<A;B++){E.extend(D[B].getElementsByTagName(C));}return E;}};$$.shared.method=(window.xpath)?"xpath":"normal";Element.Methods.Dom={getElements:function(A,H){var C=[];
A=A.trim().split(" ");for(var E=0,D=A.length;E<D;E++){var F=A[E];var G=F.match($$.shared.regexp);if(!G){break;}G[1]=G[1]||"*";var B=$$.shared[$$.shared.method].getParam(C,this,G,E);
if(!B){break;}C=B;}return $$.shared[$$.shared.method].getItems(C,this,H);},getElement:function(A){return $(this.getElements(A,true)[0]||false);},getElementsBySelector:function(A,E){var D=[];
A=A.split(",");for(var C=0,B=A.length;C<B;C++){D=D.concat(this.getElements(A[C],true));}return(E)?D:$$.unique(D);}};Element.extend({getElementById:function(C){var B=document.getElementById(C);
if(!B){return false;}for(var A=B.parentNode;A!=this;A=A.parentNode){if(!A){return false;}}return B;},getElementsByClassName:function(A){return this.getElements("."+A);
}});document.extend(Element.Methods.Dom);Element.extend(Element.Methods.Dom);Element.extend({getValue:function(){switch(this.getTag()){case"select":var A=[];
$each(this.options,function(B){if(B.selected){A.push($pick(B.value,B.text));}});return(this.multiple)?A:A[0];case"input":if(!(this.checked&&["checkbox","radio"].contains(this.type))&&!["hidden","text","password"].contains(this.type)){break;
}case"textarea":return this.value;}return false;},getFormElements:function(){return $$(this.getElementsByTagName("input"),this.getElementsByTagName("select"),this.getElementsByTagName("textarea"));
},toQueryString:function(){var A=[];this.getFormElements().each(function(D){var C=D.name;var E=D.getValue();if(E===false||!C||D.disabled){return ;}var B=function(F){A.push(C+"="+encodeURIComponent(F));
};if($type(E)=="array"){E.each(B);}else{B(E);}});return A.join("&");}});Element.extend({scrollTo:function(A,B){this.scrollLeft=A;this.scrollTop=B;},getSize:function(){return{scroll:{x:this.scrollLeft,y:this.scrollTop},size:{x:this.offsetWidth,y:this.offsetHeight},scrollSize:{x:this.scrollWidth,y:this.scrollHeight}};
},getPosition:function(A){A=A||[];var B=this,D=0,C=0;do{D+=B.offsetLeft||0;C+=B.offsetTop||0;B=B.offsetParent;}while(B);A.each(function(E){D-=E.scrollLeft||0;
C-=E.scrollTop||0;});return{x:D,y:C};},getTop:function(A){return this.getPosition(A).y;},getLeft:function(A){return this.getPosition(A).x;},getCoordinates:function(B){var A=this.getPosition(B);
var C={width:this.offsetWidth,height:this.offsetHeight,left:A.x,top:A.y};C.right=C.left+C.width;C.bottom=C.top+C.height;return C;}});Element.Events.domready={add:function(B){if(window.loaded){B.call(this);
return ;}var A=function(){if(window.loaded){return ;}window.loaded=true;window.timer=$clear(window.timer);this.fireEvent("domready");}.bind(this);if(document.readyState&&window.webkit){window.timer=function(){if(["loaded","complete"].contains(document.readyState)){A();
}}.periodical(50);}else{if(document.readyState&&window.ie){if(!$("ie_ready")){var C=(window.location.protocol=="https:")?"://0":"javascript:void(0)";document.write('<script id="ie_ready" defer src="'+C+'"><\/script>');
$("ie_ready").onreadystatechange=function(){if(this.readyState=="complete"){A();}};}}else{window.addListener("load",A);document.addListener("DOMContentLoaded",A);
}}}};window.onDomReady=function(A){return this.addEvent("domready",A);};window.extend({getWidth:function(){if(this.webkit419){return this.innerWidth;}if(this.opera){return document.body.clientWidth;
}return document.documentElement.clientWidth;},getHeight:function(){if(this.webkit419){return this.innerHeight;}if(this.opera){return document.body.clientHeight;
}return document.documentElement.clientHeight;},getScrollWidth:function(){if(this.ie){return Math.max(document.documentElement.offsetWidth,document.documentElement.scrollWidth);
}if(this.webkit){return document.body.scrollWidth;}return document.documentElement.scrollWidth;},getScrollHeight:function(){if(this.ie){return Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight);
}if(this.webkit){return document.body.scrollHeight;}return document.documentElement.scrollHeight;},getScrollLeft:function(){return this.pageXOffset||document.documentElement.scrollLeft;
},getScrollTop:function(){return this.pageYOffset||document.documentElement.scrollTop;},getSize:function(){return{size:{x:this.getWidth(),y:this.getHeight()},scrollSize:{x:this.getScrollWidth(),y:this.getScrollHeight()},scroll:{x:this.getScrollLeft(),y:this.getScrollTop()}};
},getPosition:function(){return{x:0,y:0};}});var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Class.empty,onCancel:Class.empty,transition:function(A){return -(Math.cos(Math.PI*A)-1)/2;
},duration:500,unit:"px",wait:true,fps:50},initialize:function(A){this.element=this.element||null;this.setOptions(A);if(this.options.initialize){this.options.initialize.call(this);
}},step:function(){var A=$time();if(A<this.time+this.options.duration){this.delta=this.options.transition((A-this.time)/this.options.duration);this.setNow();
this.increase();}else{this.stop(true);this.set(this.to);this.fireEvent("onComplete",this.element,10);this.callChain();}},set:function(A){this.now=A;this.increase();
return this;},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(B,A){return(A-B)*this.delta+B;},start:function(B,A){if(!this.options.wait){this.stop();
}else{if(this.timer){return this;}}this.from=B;this.to=A;this.change=this.to-this.from;this.time=$time();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);
this.fireEvent("onStart",this.element);return this;},stop:function(A){if(!this.timer){return this;}this.timer=$clear(this.timer);if(!A){this.fireEvent("onCancel",this.element);
}return this;},custom:function(B,A){return this.start(B,A);},clearTimer:function(A){return this.stop(A);}});Fx.Base.implement(new Chain,new Events,new Options);
Fx.CSS={select:function(B,C){if(B.test(/color/i)){return this.Color;}var A=$type(C);if((A=="array")||(A=="string"&&C.contains(" "))){return this.Multi;
}return this.Single;},parse:function(C,D,A){if(!A.push){A=[A];}var F=A[0],E=A[1];if(!$chk(E)){E=F;F=C.getStyle(D);}var B=this.select(D,E);return{from:B.parse(F),to:B.parse(E),css:B};
}};Fx.CSS.Single={parse:function(A){return parseFloat(A);},getNow:function(C,B,A){return A.compute(C,B);},getValue:function(C,A,B){if(A=="px"&&B!="opacity"){C=Math.round(C);
}return C+A;}};Fx.CSS.Multi={parse:function(A){return A.push?A:A.split(" ").map(function(B){return parseFloat(B);});},getNow:function(E,D,C){var A=[];for(var B=0;
B<E.length;B++){A[B]=C.compute(E[B],D[B]);}return A;},getValue:function(C,A,B){if(A=="px"&&B!="opacity"){C=C.map(Math.round);}return C.join(A+" ")+A;}};
Fx.CSS.Color={parse:function(A){return A.push?A:A.hexToRgb(true);},getNow:function(E,D,C){var A=[];for(var B=0;B<E.length;B++){A[B]=Math.round(C.compute(E[B],D[B]));
}return A;},getValue:function(A){return"rgb("+A.join(",")+")";}};Fx.Style=Fx.Base.extend({initialize:function(B,C,A){this.element=$(B);this.property=C;
this.parent(A);},hide:function(){return this.set(0);},setNow:function(){this.now=this.css.getNow(this.from,this.to,this);},set:function(A){this.css=Fx.CSS.select(this.property,A);
return this.parent(this.css.parse(A));},start:function(C,B){if(this.timer&&this.options.wait){return this;}var A=Fx.CSS.parse(this.element,this.property,[C,B]);
this.css=A.css;return this.parent(A.from,A.to);},increase:function(){this.element.setStyle(this.property,this.css.getValue(this.now,this.options.unit,this.property));
}});Element.extend({effect:function(B,A){return new Fx.Style(this,B,A);}});Fx.Styles=Fx.Base.extend({initialize:function(B,A){this.element=$(B);this.parent(A);
},setNow:function(){for(var A in this.from){this.now[A]=this.css[A].getNow(this.from[A],this.to[A],this);}},set:function(C){var A={};this.css={};for(var B in C){this.css[B]=Fx.CSS.select(B,C[B]);
A[B]=this.css[B].parse(C[B]);}return this.parent(A);},start:function(C){if(this.timer&&this.options.wait){return this;}this.now={};this.css={};var E={},D={};
for(var B in C){var A=Fx.CSS.parse(this.element,B,C[B]);E[B]=A.from;D[B]=A.to;this.css[B]=A.css;}return this.parent(E,D);},increase:function(){for(var A in this.now){this.element.setStyle(A,this.css[A].getValue(this.now[A],this.options.unit,A));
}}});Element.extend({effects:function(A){return new Fx.Styles(this,A);}});Fx.Elements=Fx.Base.extend({initialize:function(B,A){this.elements=$$(B);this.parent(A);
},setNow:function(){for(var C in this.from){var F=this.from[C],E=this.to[C],B=this.css[C],A=this.now[C]={};for(var D in F){A[D]=B[D].getNow(F[D],E[D],this);
}}},set:function(G){var B={};this.css={};for(var D in G){var F=G[D],C=this.css[D]={},A=B[D]={};for(var E in F){C[E]=Fx.CSS.select(E,F[E]);A[E]=C[E].parse(F[E]);
}}return this.parent(B);},start:function(D){if(this.timer&&this.options.wait){return this;}this.now={};this.css={};var I={},J={};for(var E in D){var G=D[E],A=I[E]={},H=J[E]={},C=this.css[E]={};
for(var B in G){var F=Fx.CSS.parse(this.elements[E],B,G[B]);A[B]=F.from;H[B]=F.to;C[B]=F.css;}}return this.parent(I,J);},increase:function(){for(var C in this.now){var A=this.now[C],B=this.css[C];
for(var D in A){this.elements[C].setStyle(D,B[D].getValue(A[D],this.options.unit,D));}}}});Fx.Scroll=Fx.Base.extend({options:{overflown:[],offset:{x:0,y:0},wheelStops:true},initialize:function(B,A){this.now=[];
this.element=$(B);this.bound={stop:this.stop.bind(this,false)};this.parent(A);if(this.options.wheelStops){this.addEvent("onStart",function(){document.addEvent("mousewheel",this.bound.stop);
}.bind(this));this.addEvent("onComplete",function(){document.removeEvent("mousewheel",this.bound.stop);}.bind(this));}},setNow:function(){for(var A=0;A<2;
A++){this.now[A]=this.compute(this.from[A],this.to[A]);}},scrollTo:function(B,F){if(this.timer&&this.options.wait){return this;}var D=this.element.getSize();
var C={x:B,y:F};for(var E in D.size){var A=D.scrollSize[E]-D.size[E];if($chk(C[E])){C[E]=($type(C[E])=="number")?C[E].limit(0,A):A;}else{C[E]=D.scroll[E];
}C[E]+=this.options.offset[E];}return this.start([D.scroll.x,D.scroll.y],[C.x,C.y]);},toTop:function(){return this.scrollTo(false,0);},toBottom:function(){return this.scrollTo(false,"full");
},toLeft:function(){return this.scrollTo(0,false);},toRight:function(){return this.scrollTo("full",false);},toElement:function(B){var A=this.element.getPosition(this.options.overflown);
var C=$(B).getPosition(this.options.overflown);return this.scrollTo(C.x-A.x,C.y-A.y);},increase:function(){this.element.scrollTo(this.now[0],this.now[1]);
}});Fx.Slide=Fx.Base.extend({options:{mode:"vertical"},initialize:function(B,A){this.element=$(B);this.wrapper=new Element("div",{styles:$extend(this.element.getStyles("margin"),{overflow:"hidden"})}).injectAfter(this.element).adopt(this.element);
this.element.setStyle("margin",0);this.setOptions(A);this.now=[];this.parent(this.options);this.open=true;this.addEvent("onComplete",function(){this.open=(this.now[0]===0);
});if(window.webkit419){this.addEvent("onComplete",function(){if(this.open){this.element.remove().inject(this.wrapper);}});}},setNow:function(){for(var A=0;
A<2;A++){this.now[A]=this.compute(this.from[A],this.to[A]);}},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.element.offsetHeight;
},horizontal:function(){this.margin="margin-left";this.layout="width";this.offset=this.element.offsetWidth;},slideIn:function(A){this[A||this.options.mode]();
return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[0,this.offset]);},slideOut:function(A){this[A||this.options.mode]();
return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[-this.offset,0]);},hide:function(A){this[A||this.options.mode]();
this.open=false;return this.set([-this.offset,0]);},show:function(A){this[A||this.options.mode]();this.open=true;return this.set([0,this.offset]);},toggle:function(A){if(this.wrapper.offsetHeight==0||this.wrapper.offsetWidth==0){return this.slideIn(A);
}return this.slideOut(A);},increase:function(){this.element.setStyle(this.margin,this.now[0]+this.options.unit);this.wrapper.setStyle(this.layout,this.now[1]+this.options.unit);
}});Fx.Transition=function(B,A){A=A||[];if($type(A)!="array"){A=[A];}return $extend(B,{easeIn:function(C){return B(C,A);},easeOut:function(C){return 1-B(1-C,A);
},easeInOut:function(C){return(C<=0.5)?B(2*C,A)/2:(2-B(2*(1-C),A))/2;}});};Fx.Transitions=new Abstract({linear:function(A){return A;}});Fx.Transitions.extend=function(A){for(var B in A){Fx.Transitions[B]=new Fx.Transition(A[B]);
Fx.Transitions.compat(B);}};Fx.Transitions.compat=function(A){["In","Out","InOut"].each(function(B){Fx.Transitions[A.toLowerCase()+B]=Fx.Transitions[A]["ease"+B];
});};Fx.Transitions.extend({Pow:function(B,A){return Math.pow(B,A[0]||6);},Expo:function(A){return Math.pow(2,8*(A-1));},Circ:function(A){return 1-Math.sin(Math.acos(A));
},Sine:function(A){return 1-Math.sin((1-A)*Math.PI/2);},Back:function(B,A){A=A[0]||1.618;return Math.pow(B,2)*((A+1)*B-A);},Bounce:function(D){var C;for(var B=0,A=1;
1;B+=A,A/=2){if(D>=(7-4*B)/11){C=-Math.pow((11-6*B-11*D)/4,2)+A*A;break;}}return C;},Elastic:function(B,A){return Math.pow(2,10*--B)*Math.cos(20*B*Math.PI*(A[0]||1)/3);
}});["Quad","Cubic","Quart","Quint"].each(function(B,A){Fx.Transitions[B]=new Fx.Transition(function(C){return Math.pow(C,[A+2]);});Fx.Transitions.compat(B);
});var Drag={};Drag.Base=new Class({options:{handle:false,unit:"px",onStart:Class.empty,onBeforeStart:Class.empty,onComplete:Class.empty,onSnap:Class.empty,onDrag:Class.empty,limit:false,modifiers:{x:"left",y:"top"},grid:false,snap:6},initialize:function(B,A){this.setOptions(A);
this.element=$(B);this.handle=$(this.options.handle)||this.element;this.mouse={now:{},pos:{}};this.value={start:{},now:{}};this.bound={start:this.start.bindWithEvent(this),check:this.check.bindWithEvent(this),drag:this.drag.bindWithEvent(this),stop:this.stop.bind(this)};
this.attach();if(this.options.initialize){this.options.initialize.call(this);}},attach:function(){this.handle.addEvent("mousedown",this.bound.start);return this;
},detach:function(){this.handle.removeEvent("mousedown",this.bound.start);return this;},start:function(C){this.fireEvent("onBeforeStart",this.element);
this.mouse.start=C.page;var A=this.options.limit;this.limit={x:[],y:[]};for(var D in this.options.modifiers){if(!this.options.modifiers[D]){continue;}this.value.now[D]=this.element.getStyle(this.options.modifiers[D]).toInt();
this.mouse.pos[D]=C.page[D]-this.value.now[D];if(A&&A[D]){for(var B=0;B<2;B++){if($chk(A[D][B])){this.limit[D][B]=($type(A[D][B])=="function")?A[D][B]():A[D][B];
}}}}if($type(this.options.grid)=="number"){this.options.grid={x:this.options.grid,y:this.options.grid};}document.addListener("mousemove",this.bound.check);
document.addListener("mouseup",this.bound.stop);this.fireEvent("onStart",this.element);C.stop();},check:function(A){var B=Math.round(Math.sqrt(Math.pow(A.page.x-this.mouse.start.x,2)+Math.pow(A.page.y-this.mouse.start.y,2)));
if(B>this.options.snap){document.removeListener("mousemove",this.bound.check);document.addListener("mousemove",this.bound.drag);this.drag(A);this.fireEvent("onSnap",this.element);
}A.stop();},drag:function(A){this.out=false;this.mouse.now=A.page;for(var B in this.options.modifiers){if(!this.options.modifiers[B]){continue;}this.value.now[B]=this.mouse.now[B]-this.mouse.pos[B];
if(this.limit[B]){if($chk(this.limit[B][1])&&(this.value.now[B]>this.limit[B][1])){this.value.now[B]=this.limit[B][1];this.out=true;}else{if($chk(this.limit[B][0])&&(this.value.now[B]<this.limit[B][0])){this.value.now[B]=this.limit[B][0];
this.out=true;}}}if(this.options.grid[B]){this.value.now[B]-=(this.value.now[B]%this.options.grid[B]);}this.element.setStyle(this.options.modifiers[B],this.value.now[B]+this.options.unit);
}this.fireEvent("onDrag",this.element);A.stop();},stop:function(){document.removeListener("mousemove",this.bound.check);document.removeListener("mousemove",this.bound.drag);
document.removeListener("mouseup",this.bound.stop);this.fireEvent("onComplete",this.element);}});Drag.Base.implement(new Events,new Options);Element.extend({makeResizable:function(A){return new Drag.Base(this,$merge({modifiers:{x:"width",y:"height"}},A));
}});Drag.Move=Drag.Base.extend({options:{droppables:[],container:false,overflown:[]},initialize:function(B,A){this.setOptions(A);this.element=$(B);this.droppables=$$(this.options.droppables);
this.container=$(this.options.container);this.position={element:this.element.getStyle("position"),container:false};if(this.container){this.position.container=this.container.getStyle("position");
}if(!["relative","absolute","fixed"].contains(this.position.element)){this.position.element="absolute";}var D=this.element.getStyle("top").toInt();var C=this.element.getStyle("left").toInt();
if(this.position.element=="absolute"&&!["relative","absolute","fixed"].contains(this.position.container)){D=$chk(D)?D:this.element.getTop(this.options.overflown);
C=$chk(C)?C:this.element.getLeft(this.options.overflown);}else{D=$chk(D)?D:0;C=$chk(C)?C:0;}this.element.setStyles({top:D,left:C,position:this.position.element});
this.parent(this.element);},start:function(C){this.overed=null;if(this.container){var A=this.container.getCoordinates();var B=this.element.getCoordinates();
if(this.position.element=="absolute"&&!["relative","absolute","fixed"].contains(this.position.container)){this.options.limit={x:[A.left,A.right-B.width],y:[A.top,A.bottom-B.height]};
}else{this.options.limit={y:[0,A.height-B.height],x:[0,A.width-B.width]};}}this.parent(C);},drag:function(A){this.parent(A);var B=this.out?false:this.droppables.filter(this.checkAgainst,this).getLast();
if(this.overed!=B){if(this.overed){this.overed.fireEvent("leave",[this.element,this]);}this.overed=B?B.fireEvent("over",[this.element,this]):null;}return this;
},checkAgainst:function(B){B=B.getCoordinates(this.options.overflown);var A=this.mouse.now;return(A.x>B.left&&A.x<B.right&&A.y<B.bottom&&A.y>B.top);},stop:function(){if(this.overed&&!this.out){this.overed.fireEvent("drop",[this.element,this]);
}else{this.element.fireEvent("emptydrop",this);}this.parent();return this;}});Element.extend({makeDraggable:function(A){return new Drag.Move(this,A);}});
var XHR=new Class({options:{method:"post",async:true,onRequest:Class.empty,onSuccess:Class.empty,onFailure:Class.empty,urlEncoded:true,encoding:"utf-8",autoCancel:false,headers:{}},setTransport:function(){this.transport=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ie?new ActiveXObject("Microsoft.XMLHTTP"):false);
return this;},initialize:function(A){this.setTransport().setOptions(A);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers={};if(this.options.urlEncoded&&this.options.method=="post"){var B=(this.options.encoding)?"; charset="+this.options.encoding:"";
this.setHeader("Content-type","application/x-www-form-urlencoded"+B);}if(this.options.initialize){this.options.initialize.call(this);}},onStateChange:function(){if(this.transport.readyState!=4||!this.running){return ;
}this.running=false;var A=0;try{A=this.transport.status;}catch(B){}if(this.options.isSuccess.call(this,A)){this.onSuccess();}else{this.onFailure();}this.transport.onreadystatechange=Class.empty;
},isSuccess:function(A){return((A>=200)&&(A<300));},onSuccess:function(){this.response={text:this.transport.responseText,xml:this.transport.responseXML};
this.fireEvent("onSuccess",[this.response.text,this.response.xml]);this.callChain();},onFailure:function(){this.fireEvent("onFailure",this.transport);},setHeader:function(A,B){this.headers[A]=B;
return this;},send:function(A,C){if(this.options.autoCancel){this.cancel();}else{if(this.running){return this;}}this.running=true;if(C&&this.options.method=="get"){A=A+(A.contains("?")?"&":"?")+C;
C=null;}this.transport.open(this.options.method.toUpperCase(),A,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if((this.options.method=="post")&&this.transport.overrideMimeType){this.setHeader("Connection","close");
}$extend(this.headers,this.options.headers);for(var B in this.headers){try{this.transport.setRequestHeader(B,this.headers[B]);}catch(D){}}this.fireEvent("onRequest");
this.transport.send($pick(C,null));return this;},cancel:function(){if(!this.running){return this;}this.running=false;this.transport.abort();this.transport.onreadystatechange=Class.empty;
this.setTransport();this.fireEvent("onCancel");return this;}});XHR.implement(new Chain,new Events,new Options);var Ajax=XHR.extend({options:{data:null,update:null,onComplete:Class.empty,evalScripts:false,evalResponse:false},initialize:function(B,A){this.addEvent("onSuccess",this.onComplete);
this.setOptions(A);this.options.data=this.options.data||this.options.postBody;if(!["post","get"].contains(this.options.method)){this._method="_method="+this.options.method;
this.options.method="post";}this.parent();this.setHeader("X-Requested-With","XMLHttpRequest");this.setHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*");
this.url=B;},onComplete:function(){if(this.options.update){$(this.options.update).empty().setHTML(this.response.text);}if(this.options.evalScripts||this.options.evalResponse){this.evalScripts();
}this.fireEvent("onComplete",[this.response.text,this.response.xml],20);},request:function(A){A=A||this.options.data;switch($type(A)){case"element":A=$(A).toQueryString();
break;case"object":A=Object.toQueryString(A);}if(this._method){A=(A)?[this._method,A].join("&"):this._method;}return this.send(this.url,A);},evalScripts:function(){var B,A;
if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){A=this.response.text;}else{A=[];var C=/<script[^>]*>([\s\S]*?)<\/script>/gi;
while((B=C.exec(this.response.text))){A.push(B[1]);}A=A.join("\n");}if(A){(window.execScript)?window.execScript(A):window.setTimeout(A,0);}},getHeader:function(A){try{return this.transport.getResponseHeader(A);
}catch(B){}return null;}});Object.toQueryString=function(B){var C=[];for(var A in B){C.push(encodeURIComponent(A)+"="+encodeURIComponent(B[A]));}return C.join("&");
};Element.extend({send:function(A){return new Ajax(this.getProperty("action"),$merge({data:this.toQueryString()},A,{method:"post"})).request();}});var Cookie=new Abstract({options:{domain:false,path:false,duration:false,secure:false},set:function(C,D,B){B=$merge(this.options,B);
D=encodeURIComponent(D);if(B.domain){D+="; domain="+B.domain;}if(B.path){D+="; path="+B.path;}if(B.duration){var A=new Date();A.setTime(A.getTime()+B.duration*24*60*60*1000);
D+="; expires="+A.toGMTString();}if(B.secure){D+="; secure";}document.cookie=C+"="+D;return $extend(B,{key:C,value:D});},get:function(A){var B=document.cookie.match("(?:^|;)\\s*"+A.escapeRegExp()+"=([^;]*)");
return B?decodeURIComponent(B[1]):false;},remove:function(B,A){if($type(B)=="object"){this.set(B.key,"",$merge(B,{duration:-1}));}else{this.set(B,"",$merge(A,{duration:-1}));
}}});var Json={toString:function(C){switch($type(C)){case"string":return'"'+C.replace(/(["\\])/g,"\\$1")+'"';case"array":return"["+C.map(Json.toString).join(",")+"]";
case"object":var A=[];for(var B in C){A.push(Json.toString(B)+":"+Json.toString(C[B]));}return"{"+A.join(",")+"}";case"number":if(isFinite(C)){break;}case false:return"null";
}return String(C);},evaluate:function(str,secure){return(($type(str)!="string")||(secure&&!str.test(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/)))?null:eval("("+str+")");
}};var Asset=new Abstract({javascript:function(C,B){B=$merge({onload:Class.empty},B);var A=new Element("script",{src:C}).addEvents({load:B.onload,readystatechange:function(){if(this.readyState=="complete"){this.fireEvent("load");
}}});delete B.onload;return A.setProperties(B).inject(document.head);},css:function(B,A){return new Element("link",$merge({rel:"stylesheet",media:"screen",type:"text/css",href:B},A)).inject(document.head);
},image:function(C,B){B=$merge({onload:Class.empty,onabort:Class.empty,onerror:Class.empty},B);var D=new Image();D.src=C;var A=new Element("img",{src:C});
["load","abort","error"].each(function(E){var F=B["on"+E];delete B["on"+E];A.addEvent(E,function(){this.removeEvent(E,arguments.callee);F.call(this);});
});if(D.width&&D.height){A.fireEvent("load",A,1);}return A.setProperties(B);},images:function(D,C){C=$merge({onComplete:Class.empty,onProgress:Class.empty},C);
if(!D.push){D=[D];}var A=[];var B=0;D.each(function(F){var E=new Asset.image(F,{onload:function(){C.onProgress.call(this,B);B++;if(B==D.length){C.onComplete();
}}});A.push(E);});return new Elements(A);}});var Hash=new Class({length:0,initialize:function(A){this.obj=A||{};this.setLength();},get:function(A){return(this.hasKey(A))?this.obj[A]:null;
},hasKey:function(A){return(A in this.obj);},set:function(A,B){if(!this.hasKey(A)){this.length++;}this.obj[A]=B;return this;},setLength:function(){this.length=0;
for(var A in this.obj){this.length++;}return this;},remove:function(A){if(this.hasKey(A)){delete this.obj[A];this.length--;}return this;},each:function(A,B){$each(this.obj,A,B);
},extend:function(A){$extend(this.obj,A);return this.setLength();},merge:function(){this.obj=$merge.apply(null,[this.obj].extend(arguments));return this.setLength();
},empty:function(){this.obj={};this.length=0;return this;},keys:function(){var A=[];for(var B in this.obj){A.push(B);}return A;},values:function(){var A=[];
for(var B in this.obj){A.push(this.obj[B]);}return A;}});function $H(A){return new Hash(A);}Hash.Cookie=Hash.extend({initialize:function(B,A){this.name=B;
this.options=$extend({autoSave:true},A||{});this.load();},save:function(){if(this.length==0){Cookie.remove(this.name,this.options);return true;}var A=Json.toString(this.obj);
if(A.length>4096){return false;}Cookie.set(this.name,A,this.options);return true;},load:function(){this.obj=Json.evaluate(Cookie.get(this.name),true)||{};
this.setLength();}});Hash.Cookie.Methods={};["extend","set","merge","empty","remove"].each(function(A){Hash.Cookie.Methods[A]=function(){Hash.prototype[A].apply(this,arguments);
if(this.options.autoSave){this.save();}return this;};});Hash.Cookie.implement(Hash.Cookie.Methods);var Color=new Class({initialize:function(B,D){D=D||(B.push?"rgb":"hex");
var C,A;switch(D){case"rgb":C=B;A=C.rgbToHsb();break;case"hsb":C=B.hsbToRgb();A=B;break;default:C=B.hexToRgb(true);A=C.rgbToHsb();}C.hsb=A;C.hex=C.rgbToHex();
return $extend(C,Color.prototype);},mix:function(){var A=$A(arguments);var C=($type(A[A.length-1])=="number")?A.pop():50;var B=this.copy();A.each(function(D){D=new Color(D);
for(var E=0;E<3;E++){B[E]=Math.round((B[E]/100*(100-C))+(D[E]/100*C));}});return new Color(B,"rgb");},invert:function(){return new Color(this.map(function(A){return 255-A;
}));},setHue:function(A){return new Color([A,this.hsb[1],this.hsb[2]],"hsb");},setSaturation:function(A){return new Color([this.hsb[0],A,this.hsb[2]],"hsb");
},setBrightness:function(A){return new Color([this.hsb[0],this.hsb[1],A],"hsb");}});function $RGB(C,B,A){return new Color([C,B,A],"rgb");}function $HSB(C,B,A){return new Color([C,B,A],"hsb");
}Array.extend({rgbToHsb:function(){var B=this[0],C=this[1],J=this[2];var G,F,H;var I=Math.max(B,C,J),E=Math.min(B,C,J);var K=I-E;H=I/255;F=(I!=0)?K/I:0;
if(F==0){G=0;}else{var D=(I-B)/K;var A=(I-C)/K;var L=(I-J)/K;if(B==I){G=L-A;}else{if(C==I){G=2+D-L;}else{G=4+A-D;}}G/=6;if(G<0){G++;}}return[Math.round(G*360),Math.round(F*100),Math.round(H*100)];
},hsbToRgb:function(){var C=Math.round(this[2]/100*255);if(this[1]==0){return[C,C,C];}else{var A=this[0]%360;var E=A%60;var F=Math.round((this[2]*(100-this[1]))/10000*255);
var D=Math.round((this[2]*(6000-this[1]*E))/600000*255);var B=Math.round((this[2]*(6000-this[1]*(60-E)))/600000*255);switch(Math.floor(A/60)){case 0:return[C,B,F];
case 1:return[D,C,F];case 2:return[F,C,B];case 3:return[F,D,C];case 4:return[B,F,C];case 5:return[C,F,D];}}return false;}});var Scroller=new Class({options:{area:20,velocity:1,onChange:function(A,B){this.element.scrollTo(A,B);
}},initialize:function(B,A){this.setOptions(A);this.element=$(B);this.mousemover=([window,document].contains(B))?$(document.body):this.element;},start:function(){this.coord=this.getCoords.bindWithEvent(this);
this.mousemover.addListener("mousemove",this.coord);},stop:function(){this.mousemover.removeListener("mousemove",this.coord);this.timer=$clear(this.timer);
},getCoords:function(A){this.page=(this.element==window)?A.client:A.page;if(!this.timer){this.timer=this.scroll.periodical(50,this);}},scroll:function(){var A=this.element.getSize();
var D=this.element.getPosition();var C={x:0,y:0};for(var B in this.page){if(this.page[B]<(this.options.area+D[B])&&A.scroll[B]!=0){C[B]=(this.page[B]-this.options.area-D[B])*this.options.velocity;
}else{if(this.page[B]+this.options.area>(A.size[B]+D[B])&&A.scroll[B]+A.size[B]!=A.scrollSize[B]){C[B]=(this.page[B]-A.size[B]+this.options.area-D[B])*this.options.velocity;
}}}if(C.y||C.x){this.fireEvent("onChange",[A.scroll.x+C.x,A.scroll.y+C.y]);}}});Scroller.implement(new Events,new Options);var Slider=new Class({options:{onChange:Class.empty,onComplete:Class.empty,onTick:function(A){this.knob.setStyle(this.p,A);
},mode:"horizontal",steps:100,offset:0},initialize:function(D,A,B){this.element=$(D);this.knob=$(A);this.setOptions(B);this.previousChange=-1;this.previousEnd=-1;
this.step=-1;this.element.addEvent("mousedown",this.clickedElement.bindWithEvent(this));var C,F;switch(this.options.mode){case"horizontal":this.z="x";this.p="left";
C={x:"left",y:false};F="offsetWidth";break;case"vertical":this.z="y";this.p="top";C={x:false,y:"top"};F="offsetHeight";}this.max=this.element[F]-this.knob[F]+(this.options.offset*2);
this.half=this.knob[F]/2;this.getPos=this.element["get"+this.p.capitalize()].bind(this.element);this.knob.setStyle("position","relative").setStyle(this.p,-this.options.offset);
var E={};E[this.z]=[-this.options.offset,this.max-this.options.offset];this.drag=new Drag.Base(this.knob,{limit:E,modifiers:C,snap:0,onStart:function(){this.draggedKnob();
}.bind(this),onDrag:function(){this.draggedKnob();}.bind(this),onComplete:function(){this.draggedKnob();this.end();}.bind(this)});if(this.options.initialize){this.options.initialize.call(this);
}},set:function(A){this.step=A.limit(0,this.options.steps);this.checkStep();this.end();this.fireEvent("onTick",this.toPosition(this.step));return this;
},clickedElement:function(B){var A=B.page[this.z]-this.getPos()-this.half;A=A.limit(-this.options.offset,this.max-this.options.offset);this.step=this.toStep(A);
this.checkStep();this.end();this.fireEvent("onTick",A);},draggedKnob:function(){this.step=this.toStep(this.drag.value.now[this.z]);this.checkStep();},checkStep:function(){if(this.previousChange!=this.step){this.previousChange=this.step;
this.fireEvent("onChange",this.step);}},end:function(){if(this.previousEnd!==this.step){this.previousEnd=this.step;this.fireEvent("onComplete",this.step+"");
}},toStep:function(A){return Math.round((A+this.options.offset)/this.max*this.options.steps);},toPosition:function(A){return this.max*A/this.options.steps;
}});Slider.implement(new Events);Slider.implement(new Options);var SmoothScroll=Fx.Scroll.extend({initialize:function(B){this.parent(window,B);this.links=(this.options.links)?$$(this.options.links):$$(document.links);
var A=window.location.href.match(/^[^#]*/)[0]+"#";this.links.each(function(D){if(D.href.indexOf(A)!=0){return ;}var C=D.href.substr(A.length);if(C&&$(C)){this.useLink(D,C);
}},this);if(!window.webkit419){this.addEvent("onComplete",function(){window.location.hash=this.anchor;});}},useLink:function(B,A){B.addEvent("click",function(C){this.anchor=A;
this.toElement(A);C.stop();}.bindWithEvent(this));}});
/* End of Utils.js */

/* jQuery JavaScript Library v1.3.2 */
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});

(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';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("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
/* jQuery JavaScript Library v1.3.2 */

/* Sonar v3 */
Sonar=function(k){var e=3,c=k||0,j=[],b=0,f=function(){var o,n=j,m,d=n.length,p;for(m=0;m<d;m++){o=n[m];p=o.px||c;if(h.detect(o.obj,p)){o.call(o.obj);n.splice(m,1);m--;d--;if(n.length===0){if(i.removeEventListener){i.removeEventListener("scroll",f,false)}else{if(i.detachEvent){i.detachEvent("onscroll",f)}}b=0}}}},g=document,i=window,a,h={detect:function(n,d){a=a||(a=g.body);var q=n,s=0,r=a.offsetHeight,o=i.innerHeight||g.documentElement.clientHeight||a.clientHeight||0,p=g.documentElement.scrollTop||i.pageYOffset||a.scrollTop||0,l=n.offsetHeight||0,m=d||c;if(!n.__top||n.__bh!=r){if(q.offsetParent){do{s+=q.offsetTop}while(q=q.offsetParent)}n.__top=s;n.__bh=r}return(!(n.__top+l<p-m)&&!(n.__top>p+o+m))},add:function(d){if(d){if(d.id){d.obj=document.getElementById(d.id)}if(typeof d.obj==="object"&&typeof d.call==="function"){if(h.detect(d.obj,(d.px||c))){d.call(d.obj);return false}else{if(!b){if(i.addEventListener){i.addEventListener("scroll",f,false)}else{if(i.attachEvent){i.attachEvent("onscroll",f)}}b=1}j.push(d);return true}}}}};return h},sonar=Sonar();
/* Sonar Ion v3 */
sonar.ion=function(h){var f=0,a=document.getElementsByTagName("img"),e="http://o.aolcdn.com/js/x.gif",d,c=a.length,b,g=function(i){if(i.__src){i.src=i.__src;i.__src=0}};h=h||f;for(d=0;d<c;d++){b={obj:a[d],px:h,call:g};if(sonar.add(b)){a[d].__src=a[d].src;a[d].src=e}}};
if(typeof com==="undefined"){var com={}}if(typeof com.aol==="undefined"){com.aol={}}if(typeof com.aol.video==="undefined"){com.aol.video={}}if(typeof com.aol.video.portal==="undefined"){com.aol.video.portal={}}jQuery.noConflict();com.aol.video.portal.Init=function(){com.aol.video.portal.searchMoreState=false;com.aol.video.portal.searchHeadState=false;com.aol.video.portal.searchFootState=false;com.aol.video.portal.searchFootStateInitial=false;com.aol.video.portal.userHeadInput=false;com.aol.video.portal.userFootInput=false;com.aol.video.portal.UI.onLoad();jQuery(document.body).click(com.aol.video.portal.Events.defaultClick);jQuery(".surrogate .thumbnail").mouseenter(com.aol.video.portal.Events.fadeIn);jQuery(".surrogate .thumbnail").mouseleave(com.aol.video.portal.Events.fadeOut);jQuery("#aolVideo #GH_search_field").focus(com.aol.video.portal.Events.inputHeadClear);jQuery("#aolVideo #GH_search_field").blur(com.aol.video.portal.Events.inputHeadText);jQuery("#aolVideo #GH_search_field").keypress(com.aol.video.portal.Events.inputHeadEnter);jQuery("#topfQuery2").focus(com.aol.video.portal.Events.inputFootClear);jQuery("#topfQuery2").blur(com.aol.video.portal.Events.inputFootText);jQuery("#topfQuery2").keypress(com.aol.video.portal.Events.inputFootEnter);jQuery(".searchNav .more, .searchMore .close").click(com.aol.video.portal.Events.toggleSearchMore);jQuery(".videoSearch .channel").click(com.aol.video.portal.Events.searchMoreChannel);jQuery(".userInfo .feedback a").click(com.aol.video.portal.Events.feedback);jQuery("#signDiv").click(com.aol.video.portal.Events.signIn);jQuery(".userInfo .signOut a").click(com.aol.video.portal.Events.signOut);jQuery(".videoSearch .searchButton").mouseover(com.aol.video.portal.Events.searchGlow);jQuery(".videoSearch .searchButton").mouseout(com.aol.video.portal.Events.searchGlow);jQuery(".blueButton").mouseover(com.aol.video.portal.Events.buttonGlow);jQuery(".blueButton").mouseout(com.aol.video.portal.Events.buttonGlow)};com.aol.video.portal.UI={onLoad:function(){boxHeight=jQuery("div.videoBody").height();dlModuleHeight=jQuery("div.dlModule").height();showCaseHeight=boxHeight-dlModuleHeight;jQuery("div.showCase").height(showCaseHeight);jQuery("div.videoBody").height(boxHeight);artImageURL=com.aol.video.portal.artURL+"/common/img/";jQuery(".metaLayer .curveTop").attr({style:"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',src='"+artImageURL+"popup_top.png');"});jQuery(".metaLayer .curveBottom").attr({style:"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',src='"+artImageURL+"popup_bottom.png');"});jQuery(".metaLayer .metaInner").attr({style:"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingmethod='scale',src='"+artImageURL+"popup_middle.png');"});jQuery("#topfQuery2").attr("value",com.aol.video.portal.searchText);if(isSearchPage=="true"){jQuery("#GH_search_field").attr("value",com.aol.video.portal.searchText);com.aol.video.portal.userHeadInput=true;com.aol.video.portal.userFootInput=true;com.aol.video.portal.searchHeadState=true;com.aol.video.portal.searchFootState=true}simPlyHeight=jQuery(".simplifiedPlayer").height();jQuery(".simplifiedPlayer").height(simPlyHeight+10)}};com.aol.video.portal.Events={defaultClick:function(){if(com.aol.video.portal.searchMoreState){jQuery(".videoSearch .searchMore").hide()}},fadeIn:function(){currentId=jQuery(this).attr("id");com.aol.video.portal.surDelay=setTimeout("jQuery('#'+currentId+' .metaLayer').fadeIn('medium')",250)},fadeOut:function(){clearTimeout(com.aol.video.portal.surDelay);jQuery("#"+currentId+" .metaLayer").fadeOut("medium")},inputHeadClear:function(){if(!com.aol.video.portal.searchHeadState){jQuery(this).attr({value:""})}},inputHeadText:function(a){if(!com.aol.video.portal.searchHeadState){jQuery(this).attr("value",com.aol.video.portal.searchText)}},inputHeadEnter:function(){com.aol.video.portal.searchHeadState=true;com.aol.video.portal.userHeadInput=true},inputFootClear:function(){if(!com.aol.video.portal.searchFootState){jQuery(this).attr({value:""})}else{if(isSearchPage=="true"&&!com.aol.video.portal.searchFootStateInitial){jQuery(this).attr({value:""});com.aol.video.portal.searchFootStateInitial=true}}},inputFootText:function(){if(!com.aol.video.portal.searchFootState){jQuery(this).attr("value",com.aol.video.portal.searchText)}},inputFootEnter:function(){com.aol.video.portal.searchFootState=true;com.aol.video.portal.userFootInput=true},toggleSearchMore:function(){jQuery(".videoSearch .searchMore").toggle(1,com.aol.video.portal.Events.toggleState)},feedback:function(){return fBo("avp1")},signIn:function(){vid_SignInWidget(Utils.p_o("userInfo"),"",lu,0,0,"bredcrumb")},signOut:function(){vid_SignInWidget(Utils.p_o("userInfo"),"",logouturl,0,0,"bredcrumb")},toggleState:function(){com.aol.video.portal.searchMoreState=true},searchGlow:function(){jQuery(this).toggleClass("searchGlow")},buttonGlow:function(){jQuery(this).toggleClass("buttonGlow")},searchMoreChannel:function(){channelId=jQuery(this).attr("id");if(channelId=="searchWeb"){setSrch(this,"http://search.aol.com/aol/search?invocationType=hdvideo&query=")}else{if(channelId=="searchImage"){return srchSub("154")}else{if(channelId=="searchNews"){return srchSub("153")}else{if(channelId=="searchLocal"){return srchSub("416")}else{if(channelId=="searchJobs"){return srchSub("417")}else{if(channelId=="searchMap"){return srchSub("418")}else{if(channelId=="searchMovie"){return srchSub("419")}else{if(channelId=="searchMusic"){return srchSub("420")}else{if(channelId=="searchPersonal"){return srchSub("421")}else{if(channelId=="searchShopping"){return srchSub("157")}else{if(channelId=="searchTravel"){return srchSub("423")}else{if(channelId=="searchYellow"){return srchSub("424")}}}}}}}}}}}}},urlRedirect:function(a){window.location=a}};function AVP(){}AVP.showGSL=function(b){Utils.createCookie("show_gsl",b)};function getPageSize(){var f,h;if(window.innerHeight&&window.scrollMaxY){f=document.body.scrollWidth;h=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){f=document.body.scrollWidth;h=document.body.scrollHeight}else{f=document.body.offsetWidth;h=document.body.offsetHeight}}var g,e;if(self.innerHeight){g=self.innerWidth;e=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){g=document.documentElement.clientWidth;e=document.documentElement.clientHeight}else{if(document.body){g=document.body.clientWidth;e=document.body.clientHeight}}}if(h<e){pageHeight=e}else{pageHeight=h}if(f<g){pageWidth=g}else{pageWidth=f}arrayPageSize=new Array(pageWidth,pageHeight,g,e);return arrayPageSize}if(typeof vid_errorHandler=="undefined"){onerror=handleErr}var imgLoader=false;var ai_ie=document.all;function playVideo(d,c){window.open(d,"","width=1000,height=675,location=no,menubar=no,resizable=yes,scrollbars=yes,statusbar=no")}function cb(b){if(!b){var b=window.event}b.cancelBubble=true;if(b.stopPropagation){b.stopPropagation()}}function winClick(){togMore(0)}window.document.onclick=winClick;var mre=0;function togMore(c){var d=$("smore");if(!d){return}if(c==null){c=Math.abs(mre-1)}if(c){posMore();d.style.visibility="visible"}else{d.style.visibility="hidden"}mre=c}function handleErr(e,g,h){try{if(typeof vid_errorHandler!="undefined"){txt="Error Handler Message: \n\n";txt+="Error: "+e+"\n";txt+="URL: "+g+"\n";txt+="Line: "+h+"\n\n";txt+="Click OK to continue.\n\n";alert(txt)}return true}catch(f){}}function posMore(){var c=$("smore");var d=$("stopam")}function TabMaker(b){typeof b=="object"?this.element=b:this.element=document.getElementById(b);if(!this.element){return false}this.ul=this.element.getElementsByTagName("ul")[0];this.tabs=this.ul.getElementsByTagName("li");this.tabContent=this.getTabContent();this.bind()}TabMaker.prototype.getTabContent=function(){tabContent=new Array();this.divs=this.element.getElementsByTagName("div");for(var b=0;b<this.divs.length;b++){if(/tabContent/i.test(this.divs[b].className)){tabContent.push(this.divs[b])}}return tabContent};TabMaker.prototype.bind=function(){var c=this;for(var d=0;d<this.tabs.length;d++){this.tabs[d].onclick=function(){if(this.className!="selected"){c.open(this);return false;var a=this.getElementsByTagName("a")[0];if(a){a.onclick=function(){return false}}}}}};TabMaker.prototype.open=function(d){for(var f=0;f<this.tabs.length;f++){var e=this.tabs[f];if(e==d){this.collapse();e.className="selected";this.tabContent[f].style.display="block"}}};TabMaker.prototype.collapse=function(){for(var b=0;b<this.tabs.length;b++){this.tabs[b].className="";this.tabContent[b].style.display="none"}};function Utils(){}Utils.modFilePath="/video-mod/index.jsp";Utils.createCookie=function(d,c){document.cookie=d+"="+c+"; path=/"};Utils.loadImg=function(d){var e=$(d);var f=e.getElementsByClassName("default");for(i=0;i<f.length;i++){if(f[i].lowsrc!=""){f[i].src=f[i].lowsrc;f[i].lowsrc=""}}};Utils.readCookie=function(l){var g=l+"=";var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=k[h];while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(g)==0){return c.substring(g.length,c.length)}}return""};Utils.SEORegExp=function(c){var d=c.toLowerCase();d=d.replace(/[^a-z| 0-9|]/g,"");d=d.replace(/ /g,"-");return(d)};Utils.fixBrokeImg=function(l){try{imgLoader=true;var e=$("main");var h=e.getElementsByClassName(l);var k="http://o.aolcdn.com/video-media/US/common/img/no-image.jpg";for(i=0;i<h.length;i++){if(!h[i].complete){h[i].src=k}else{if(typeof h[i].naturalWidth!="undefined"&&h[i].naturalWidth==0){h[i].src=k}}}}catch(g){}};Utils.trim=function(b){return b.replace(/^\s+|\s+$/,"")};Utils.p_o=function(b){return document.getElementById(b)};Utils.getElementsByClassName=function(h,l,p){var m=new Array();if(l==null){l=document}if(p==null){p="*"}var n=l.getElementsByTagName(p);var o=n.length;var k=new RegExp("(^|\\s)"+h+"(\\s|$)");for(i=0,j=0;i<o;i++){if(k.test(n[i].className)){m[j]=n[i];j++}}return m};Utils.copy=function(b){b.select();b.focus()};Utils.findPosX=function(c){var d=0;if(c.offsetParent){while(c.offsetParent){d+=c.offsetLeft;c=c.offsetParent}}else{if(c.x){d+=c.x}}return d};Utils.findPosY=function(c){var d=0;if(c.offsetParent){while(c.offsetParent){d+=c.offsetTop;c=c.offsetParent}}else{if(c.x){d+=c.y}}return d};Utils.escapeHTMLString=function(d){var c=d.replace(/%/g,"%25");c=c.replace(/\//g,"%2F");return(c)};Utils.encodeAMP=function(c){var d=c.replace(/&/g,"%26");return(d)};Utils.encodeSplChar=function(d){var c=Utils.encodeAMP(d);c=c.replace(/\$/g,"%24");c=c.replace(/#/g,"%23");return(c)};Utils.tracking=function(h,l){try{var k=$("MMXiframe");var n=Math.floor(Math.random()*1000000);if(h=="video"||h=="Video"){h="television"}else{if(h=="video/browsetab"){h="television/browsetab"}}k.src=videopagehostUrl+"/mm_track/"+h+"/"+Utils.SEORegExp(l)+"/"+n;if(omniEnabled==true){if(isMainPage=="true"){s_265.prop1=s_265.pfxID+" : Main";s_265.pageName=s_265.pfxID+" : Video Main"}s_265.prop2=s_265.pfxID+" : "+l;if(beaconCall==true){s_265.mmxgo=true;s_265.mmxcustom=videopagehostUrl+"/mm_track/"+h+"/"+Utils.SEORegExp(l)}var m=s_265.t();if(m){document.write(m)}}}catch(e){}};Utils.Searchtracking=function(l,n,e,o){try{var m=$("MMXiframe");if(e=="video"||e=="Video"){e="television"}m.src=videopagehostUrl+"/mm_track/"+e+"/"+l+"/"+Utils.SEORegExp(n)+"/"+o;if(omniEnabled==true){s_265.prop2=s_265.pfxID+" : "+n;if(beaconCall==true){s_265.mmxgo=true;s_265.mmxcustom=videopagehostUrl+"/mm_track/"+e+"/"+l+"/"+Utils.SEORegExp(n)}var p=s_265.t();if(p){document.write(p)}}}catch(k){}};Utils.PNPtracking=function(l,e,n){try{var m=$("MMXiframe");var o=Math.floor(Math.random()*1000000);if(e=="video"||e=="Video"){e="television"}m.src=videopagehostUrl+"/mm_track/"+e+"/"+l+"/"+o;if(omniEnabled==true){s_265.pageName=pnp_pageName+" "+n;if(beaconCall==true){s_265.mmxgo=true;s_265.mmxcustom=videopagehostUrl+"/mm_track/"+e+"/"+l}var p=s_265.t();if(p){document.write(p)}}}catch(k){}};Utils.MMXtracking=function(h,l){try{var m=document.location.pathname;var n=m.split("/");var k=$("MMXiframe");if(h=="video"||h=="Video"){h="television"}k.src=videopagehostUrl+"/mm_track/"+h+"/"+n[1]+"/"+l}catch(e){}};Utils.crElement=function(w,t,A,s,d,u,p,z,B,v){if(w!=""){var q=document;var x=q.createElement(w);if(t!=""&&t!=undefined){x.id=t}if(A!=""&&A!=undefined){x.className=A}if(d!=""&&d!=undefined){x.href=d}if(s!=""&&s!=undefined){x.innerHTML=s}if(u!=""&&u!=undefined){x.type=u}if(p!=""&&p!=undefined){x.name=p}if(z!=""&&z!=undefined){x.value=z}if(B!=""&&B!=undefined){x.selected=B}if(v!=""&&v!=undefined){x.src=v}return(x)}};function AVHeader(){}AVHeader.vsSrch="";AVHeader.vsFmlyFltrVal=Utils.readCookie("familyfilter");if(AVHeader.vsFmlyFltrVal==""){AVHeader.vsFmlyFltrVal=1}AVHeader.vsParam="";AVHeader.headerQuery="";AVHeader.searchQueryString="";AVHeader.init=function(){};AVHeader.getSearchUrl=function(){var z=window.location+"";z=z.replace(pagehostUrl+"/video-search/","");var B=AVHeader.changeSearchQueryParam(z);var D=B.split("/");AVHeader.vsSrch="";var e="query=";var t="";var v=0;while(v<D.length){var u=D[v];u=u.toLowerCase();var w=v+1;if(w==D.length){var x=""}else{var x=D[w]}if(x!=""){if(u=="query"){if(x=="%22%22"){x=""}e="query="+x;AVHeader.vsSrch=x;vsSrchFile=0}else{if(u=="id"){e="id="+x;AVHeader.vsSrch="";vsSrchFile=1}else{if(u=="pmmsid"){e="pmmsid="+x;AVHeader.vsSrch="";vsSrchFile=1}else{if(u=="sim"){e="query=sim:"+x;AVHeader.vsSrch="";vsSrchFile=0}else{if(u=="title"){e='query=title:"'+x+'"';AVHeader.vsSrch='title:"'+x+'"';vsSrchFile=0}else{if(u=="channel"){e='query=channel:"'+x+'"';AVHeader.vsSrch='channel:"'+x+'"';vsSrchFile=0}else{if(u=="category"){e='query=category:"'+x+'"';AVHeader.vsSrch='category:"'+x+'"';vsSrchFile=0}else{if(u=="tag"){e='query=tag:"'+x+'"';AVHeader.vsSrch='tag:"'+x+'"';vsSrchFile=0}else{if(u=="distributor"){e='query=distributor:"'+x+'"';AVHeader.vsSrch='distributor:"'+x+'"';vsSrchFile=0}else{if(u=="artist"){e='query=artist:"'+x+'"';AVHeader.vsSrch='artist:"'+x+'"';vsSrchFile=0}else{if(u=="album"){e='query=album:"'+x+'"';AVHeader.vsSrch='album:"'+x+'"';vsSrchFile=0}else{if(u=="show"){e='query=show:"'+x+'"';AVHeader.vsSrch='show:"'+x+'"';vsSrchFile=0}else{if(u=="page"){vsPageNumVal=x;if(x<=0){vsPageNumVal=1}}else{if(u=="sort"){if(x=="mostpopular"){t="sort:mostPopular"}else{if(x=="mostrecent"){t="sort:mostRecent"}else{if(x=="highestrated"){t="sort:highestRated"}else{if(x=="topfavorites"){t="sort:topFavourites"}else{if(x=="random"){t="sort:random"}else{if(x=="mostpopularnow"){t="sort:mostPopularNow"}else{if(x=="mostpopularthishour"){t="sort:mostPopularThisHour"}else{if(x=="mostpopularToday"){t="sort:mostPopularToday"}else{if(x=="mostpopularthisweek"){t="sort:mostPopularThisWeek"}else{if(x=="mostpopularthismonth"){t="sort:mostPopularThisMonth"}else{if(x=="vrank"){t="sort:vrank"}}}}}}}}}}}}}}}}}}}}}}}}}}v++}if(t.length>0){e+=" "+t;AVHeader.vsSrch+=" "+t}e=e.replace("&","%26");if(MTeens==0&&!isIcePage){var q=document.av_search;try{document.av_search.familyFilterChk.checked=(AVHeader.vsFmlyFltrVal==0)?false:true;$("filterstatus").innerHTML=(AVHeader.vsFmlyFltrVal==1)?" On":" Off"}catch(s){}var C=decodeURIComponent(AVHeader.vsSrch);var A=C.replace(/"/g," ");if(C!=""){AVHeader.searchQueryString=C}try{if(AVHeader.searchQueryString==""){$("famfil").style.display="none"}}catch(s){}q.q.value=AVHeader.searchQueryString}};AVHeader.chkFamily=function(){try{filterVal=$("familyFilterChk").checked?"1":"0";familyFilter=filterVal;if(!isIcePage){document.av_search.familyFilter.value=filterVal}Utils.createCookie("familyfilter",filterVal);if($("shstd")){var e=$("shstd").getElementsByTagName("a");for(var o=0;o<e.length;o++){linkhref=e[o].href;if(filterVal=="1"){linkhref=linkhref.replace(new RegExp(/familyfilter\/0/g),"familyfilter/1")}else{linkhref=linkhref.replace(new RegExp(/familyfilter\/1/g),"familyfilter/0")}e[o].href=linkhref}var q=$("shstd").getElementsByTagName("option");for(var o=0;o<q.length;o++){optionval=q[o].value;if(filterVal=="1"){optionval=optionval.replace(new RegExp(/familyfilter\/0/g),"familyfilter/1")}else{optionval=optionval.replace(new RegExp(/familyfilter\/1/g),"familyfilter/0")}q[o].value=optionval}}if($("shcom")){var l=$("shcom").getElementsByTagName("a");for(var o=0;o<l.length;o++){linkhref=l[o].href;if(filterVal=="1"){linkhref=linkhref.replace(new RegExp(/familyfilter\/0/g),"familyfilter/1")}else{linkhref=linkhref.replace(new RegExp(/familyfilter\/1/g),"familyfilter/0")}l[o].href=linkhref}var s=$("shcom").getElementsByTagName("option");for(var o=0;o<s.length;o++){optionval=s[o].value;if(filterVal=="1"){optionval=optionval.replace(new RegExp(/familyfilter\/0/g),"familyfilter/1")}else{optionval=optionval.replace(new RegExp(/familyfilter\/1/g),"familyfilter/0")}s[o].value=optionval}}if($("nores")){var p=$("nores").getElementsByTagName("a");for(var o=0;o<p.length;o++){linkhref=p[o].href;if(filterVal=="1"){linkhref=linkhref.replace(new RegExp(/familyfilter\/0/g),"familyfilter/1")}else{linkhref=linkhref.replace(new RegExp(/familyfilter\/1/g),"familyfilter/0")}p[o].href=linkhref}var m=$("nores").getElementsByTagName("option");for(var o=0;o<m.length;o++){optionval=m[o].value;if(filterVal=="1"){optionval=optionval.replace(new RegExp(/familyfilter\/0/g),"familyfilter/1")}else{optionval=optionval.replace(new RegExp(/familyfilter\/1/g),"familyfilter/0")}m[o].value=optionval}}}catch(n){}};var modifier="query";AVHeader.changeSearchQueryParam=function(F){var x="",A="",e="",G="";var J=decodeURI(F);var c=false;var I="/",H="";var v=encodeURI('""');try{if(AVHeader.checkSearchModifier(J)){var C=new RegExp(modifier+"(/{0,1})$");if(!J==""||!C.test(J)){var w=new RegExp(modifier+"/(/+)$");if(w.test(J)){x=x+"%2F"}else{A=J.substr(modifier.length+1,J.length);var B;if(A.charAt(0)==I){G=A.substr(1);if(G.charAt(0)==I){e="%2F"+G}else{if(G.charAt(0)==(" ")){for(var E=1;E<G.length;E++){if(G.charAt(E)!=" "){break}}e="%2F"+G}}}else{for(var D=0;D<A.length;D++){B=A.charAt(D);if(B=="/"){if(e==H){break}}e=e+B}}if(e==H){e=v+I+G}x=x+e}x=modifier+I+x}}}catch(z){}return x};AVHeader.checkSearchModifier=function(l){try{var g=new Array("query","sim","category","channel","artist","show","album","title","distributor","tag");for(var k=0;k<g.length;k++){var h=new RegExp("^"+g[k]);if(h.test(l)){modifier=g[k];return true}}return false}catch(e){}};AVP.getCategoryLinks=function(e){var g=document.getElementById("cat_links");var h="<ul>";for(var f=0;f<cats.length;f++){if(f==e-1){h+='<li class="dselected">'}else{if(f==cats.length-1){h+='<li onmouseout="this.className=\'navtab nomar\'" onmouseover="this.className=\'curpagi nomar\'" class="navtab nomar">'}else{h+='<li onmouseout="this.className=\'navtab\'" onmouseover="this.className=\'curpagi\'" class="navtab">'}}h+="<a onclick=\"s_objectID='"+cats[f]+'\';" title="'+cats[f]+'" href="'+catHrefs[f]+'">';h+=""+cats[f]+"";h+="</a>";h+="<span></span>";h+="</li>"}h+="</ul>";g.innerHTML+=h};function Filter(){}Filter.createRequestObject=function(){var d;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}}return d};Filter.itemStateChanged=function(){try{if(http_request.readyState==4||http_request.readyState=="complete"){var d='<div id="dirlist"><div id="sh_list">'+http_request.responseText+"</div></div>";$("browseSurrogateContainer").innerHTML=d;if(Pagi.includePagination&&Pagi.tabSource!="solr"){Pagi.isload=false;Pagi.dec(Pagi.countPP,Pagi.total,Pagi.currpg,10,seltab)}}}catch(c){$("browseSurrogateContainer").innerHTML="No Data to display"}};Filter.searchItemWithOffset=function(n,k,e,h){try{Pagi.tabText=n;Pagi.tabQuery=k;Pagi.isload=false;Utils.tracking(skinComscore+"/browsetab",n);currentHeight=$("browseSurrogateContainer").offsetHeight;$("browseSurrogateContainer").innerHTML='<div align="center" style="padding:0 0 0 45%";margin:20px 0;"><div class="preloadImage"></div></div>';http_request=new Filter.createRequestObject();var m=pagehostUrl+Utils.modFilePath+"?type=standard&query="+Utils.encodeSplChar(k)+"&isajax=true&_miid="+miid+"&catName="+Utils.encodeSplChar(catName)+"&templateName="+templateName+"&startAt="+e+"&isFB="+isFBpage+"&catDispName="+Utils.encodeSplChar(catDispName.replace(/%/g,"%25").replace(/ /g,"%20"))+"&catID="+catId+"&navQuery="+Utils.encodeSplChar(navQuery.replace(/%/g,"%25").replace(/ /g,"%20"))+"&api_src="+Pagi.tabSource+"&addToPlaylist="+addToPlaylist+"&bs_tabnum="+h+"&playlistScreen="+screen_name;http_request.onreadystatechange=Filter.itemStateChanged;http_request.open("GET",m,true);http_request.setRequestHeader("Content-Type","text/html;charset=UTF-8");http_request.send(null)}catch(l){$("browseSurrogateContainer").innerHTML="access denied"}};var seltab=1;Filter.searchItem=function(l,o,p,m,e,s){AVP.brs_SeeAllVideosLink=s;AVP.BStabName=l;if(AVP.tabnum==e){tabactive=false}else{tabactive=true}AVP.tabnum=e;if(tabactive==true){seltab=e;try{if(!p){p=""}Pagi.tabSource=p;var s=document.location.pathname;var n=s.split("/");if(miid=="4087"){Filter.pageName="maintab"}else{if(miid=="3112"){Filter.pageName="categorytab"}else{if(miid=="3110"){if(isIcePage&&skinComscore!=""){Filter.pageName=skinComscore+"/browsetab"}else{Filter.pageName="television/browsetab"}}}}Pagi.tabText=l;Pagi.tabQuery=o;if(Pagi.includePagination&&p!="solr"){Pagi.isload=false;Pagi.currpg=1}Utils.tracking(Filter.pageName,l);AVP.isNoResult=false;AVP.handleInti(o,m,e,p)}catch(q){}}};var tab_number;var showDirAjaxData=new Array();var showDirflag=true;function ShowDirectory(){}ShowDirectory.createRequestObject=function(){var d;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}}return d};ShowDirectory.itemStateChanged=function(){try{if(http_request.readyState==4||http_request.readyState=="complete"){var d=http_request.responseText;showDirAjaxData[tabNumber]=d;$("scm_top").innerHTML=d}}catch(c){$("sc_res").innerHTML="No Data to display"}};Utils.omnitracking=function(l,g){var f=$("MMXiframe");var h=Math.floor(Math.random()*1000000);if(l=="video"||l=="Video"){l="television"}f.src=videopagehostUrl+"/mm_track/"+l+"/"+Utils.SEORegExp(g)+"/"+h;if(omniEnabled==true){s_265.pageName=s_265.pfxID+" : "+g+" "+dirMod;s_265.prop1=s_265.pfxID+" : "+dirMod;s_265.prop2=s_265.pfxID+" : Main";if(beaconCall==true){s_265.mmxgo=true;s_265.mmxcustom=videopagehostUrl+"/mm_track/"+l+"/"+Utils.SEORegExp(g)}var k=s_265.t();if(k){document.write(k)}}};ShowDirectory.searchItem=function(l,e,g){tabNumber=g;try{Utils.omnitracking("showdirectory",l);if(showDirAjaxData[tabNumber]!=null){$("scm_top").innerHTML=showDirAjaxData[tabNumber];return}if(tabNumber!=1&&showDirflag==true){showDirflag=false;showDirAjaxData[1]=$("scm_top").innerHTML}currentHeight=$("sc_res").offsetHeight;$("sc_res").innerHTML='<div align="center" style="padding-left:30%;height:'+currentHeight+'px;"><div class="preloadImage"></div></div>';http_request=new ShowDirectory.createRequestObject();var k=pagehostUrl+Utils.modFilePath+"?type=standard&query="+e+"&isajax=true&_miid=4066&sc_tabNum="+g;http_request.onreadystatechange=ShowDirectory.itemStateChanged;http_request.open("GET",k,true);http_request.send(null)}catch(h){$("sc_res").innerHTML="access denied"}};var authLev="1",_sns_bg_color_="CFD9E3",_sns_var_="",siteState="";var _sns_x_offset_=0,_sns_y_offset_=0,_sns_showSignInOutLinks_=0,_sns_showByDef_=1,_sns_set_var_=1;function vid_SignInWidget(e,s,t,o,u,q){pSNSMn=$("vid_ComSNSMain");pSNS=$("vid_ComSNS");leftOffSet=Utils.findPosX(e);topOffSet=Utils.findPosY(e);pSNS.innerHTML=_sns_var_;pSNS.style.position="relative";pSNSMn.style.position="absolute";pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+980+"px";pSNSMn.style.top=topOffSet+5+"px";var n=navigator.userAgent.toLowerCase();var w="";if(n.indexOf("msie 6.0")>-1){w="IE6"}if(n.indexOf("safari")>-1){w="Safari"}if(w=="IE6"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+1065+"px"}if("comment"==q){pSNSMn.style.top=topOffSet-95+"px";if(sizOne){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+480+"px";if(w=="IE6"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+585+"px"}if(w=="Safari"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+670+"px"}}else{pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+340+"px";if(w=="IE6"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+450+"px"}if(w=="Safari"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+520+"px"}}}else{if("commentUtility"==q){pSNSMn.style.top=topOffSet-65+"px";pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+740+"px";if(w=="IE6"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+840+"px"}if(w=="Safari"){pSNSMn.style.left=leftOffSet-(leftOffSet/55*54)+950+"px"}}else{if("playlist"==q){$("vid_ComSNSMain").style.left=Playlist.x+"px";$("vid_ComSNSMain").style.top=Playlist.y+"px"}else{if("playlistSur"==q){pSNSMn.style.top=topOffSet+174+"px";pSNSMn.style.left=leftOffSet+58+"px";if(w=="IE6"){pSNSMn.style.left=leftOffSet+150+"px"}if(w=="Safari"){pSNSMn.style.left=leftOffSet+58+"px"}}else{if("playlistSearch"==q){pSNSMn.style.top=topOffSet-47+"px";pSNSMn.style.left=leftOffSet+58+"px";if(w=="IE6"){pSNSMn.style.left=leftOffSet+150+"px"}if(w=="Safari"){pSNSMn.style.left=leftOffSet+58+"px"}}else{if("searchPlayaol"==q){pSNSMn.style.top=topOffSet-47+"px";pSNSMn.style.left=leftOffSet+58+"px";if(w=="IE6"){pSNSMn.style.left=leftOffSet+150+"px"}if(w=="Safari"){pSNSMn.style.left=leftOffSet+58+"px"}}}}}}}pSNSMn.style.zIndex=9999;pSNSMn.style.display="block";var p=$("loginframe").getAttribute("src");try{$("loginframe").setAttribute("src",t)}catch(v){}$("snsclose").style.display="block"}function closeWidget(b){$(b).style.display="none"}function pnp_v2(){}pnp_v2.action=function(){if(!pnp_v2.clk){pnp_v2.play=false;for(gallery_i=1;gallery_i<=pnp_v2.gallery_max;gallery_i++){$("set"+gallery_i).className="gal_off"}$("set"+pnp_v2.gallery_min).className="gal_on";Utils.loadImg("gal"+pnp_v2.gallery_min);pnp_v2.fx.start({}).chain(function(){this.start({opacity:0})}).chain(function(){this.start.delay(100,this,{});$("gal"+gallery_prev).style.display="none";$("gal"+pnp_v2.gallery_min).style.display="block"}).chain(function(){this.start({opacity:0.99});pnp_v2.play=true})}};pnp_v2.init=function(){pnp_v2.gallery_min=1;pnp_v2.play=true;pnp_v2.clk=true;pnp_v2.box=$("thumb");pnp_v2.fx=pnp_v2.box.effects({duration:300,transition:Fx.Transitions.Quart.easeOut});pnp_v2.fx1=pnp_v2.box.effects({duration:300,transition:Fx.Transitions.Quart.easeOut});pnp_v2.dcnt=document.getElementsByTagName("div").length;window.onload=pnp_v2.auto};pnp_v2.dl_prev=function(){pnp_v2.clk=false;if(pnp_v2.play){gallery_prev=pnp_v2.gallery_min;pnp_v2.gallery_min=parseInt(pnp_v2.gallery_min)-1;if(pnp_v2.gallery_min<1){pnp_v2.gallery_min=pnp_v2.gallery_max}pnp_v2.action()}};pnp_v2.dl_next=function(){pnp_v2.clk=false;if(pnp_v2.play){gallery_prev=pnp_v2.gallery_min;pnp_v2.gallery_min=parseInt(pnp_v2.gallery_min)+1;if(pnp_v2.gallery_min>pnp_v2.gallery_max){pnp_v2.gallery_min=1}pnp_v2.action()}};pnp_v2.dl_exact=function(b){pnp_v2.clk=false;if(pnp_v2.play){gallery_prev=pnp_v2.gallery_min;pnp_v2.gallery_min=b;if(pnp_v2.gallery_min>pnp_v2.gallery_max){pnp_v2.gallery_min=1}pnp_v2.action()}};pnp_v2.stop=function(){pnp_v2.clk=false};pnp_v2.auto=function(){pnp_v2.dl_onload()};pnp_v2.hover=function(){for(y=1;y<=pnp_v2.dcnt;y++){if(document.getElementsByTagName("div")[y].className=="hover"){document.getElementsByTagName("div")[y].style.display="none"}}};pnp_v2.dl_onload=function(){if(pnp_v2.clk&&pnp_v2.gallery_max>1){pnp_v2.hover();gallery_prev=pnp_v2.gallery_min;pnp_v2.gallery_min=parseInt(pnp_v2.gallery_min)+1;if(pnp_v2.gallery_min>pnp_v2.gallery_max){pnp_v2.gallery_min=1}for(gallery_i=1;gallery_i<=pnp_v2.gallery_max;gallery_i++){$("set"+gallery_i).className="gal_off"}$("set"+pnp_v2.gallery_min).className="gal_on";Utils.loadImg("gal"+pnp_v2.gallery_min);pnp_v2.fx1.start({}).chain(function(){this.start({opacity:0})}).chain(function(){this.start.delay(100,this,{});$("gal"+gallery_prev).style.display="none";$("gal"+pnp_v2.gallery_min).style.display="block"}).chain(function(){this.start({opacity:0.99})}).chain(function(){this.start.delay(parseInt(pnp_v2.autodelay)*1000,this,{})}).chain(function(){pnp_v2.dl_onload()})}};pnp_v2.addEscapeSequences=function(c){var d=""+c+"";d=d.replace(/~/g,"\r");d=d.replace(/`/g,"\n");d=d.replace(/\^/g,"\t");return d};pnp_v2.iframeOverride=function(){};pnp_v2.playVideo=function(n,k,o,m,h,l){var p=o;$("player_cont").innerHTML=pnp_v2.autoplayReg[k];if(h){document.getElementById("player_cont").style.height=l+"px";if(m=="hulu"||m=="cnbc"){pnp_v2.iframeOverride()}if(pnp_v2.adType[k]=="C"){$("AdBanner").innerHTML=""}}else{document.getElementById("player_cont").style.height="267px"}Ads.reloadAds(pnp_v2.adType[k]);$("dl_sel_"+pnp_v2.currentAssetID).className="";pnp_v2.currentAssetID=k;$("dl_sel_"+k).className="sel";$("topLink").href=$(n).href;$("topTitle").innerHTML=$("top_title_"+k).innerHTML;$("topTitle").title=$("top_title_"+k).innerHTML;$("topTitle").href=$(n).href;$("topDesc").innerHTML=$("dl_desc_"+k).innerHTML;pnp_v2.showVDMsg(k,pnp_v2.showVD[k])};pnp_v2.showVDMsg=function(d,c){if(c=="block"){Surrogate.disblock("vd")}else{if(c=="none"){Surrogate.disnone("vd")}}};function dir_nav(){}dir_nav.paginate=function(b){$("dirlist").innerHTML=dir_nav.dirArrayList[b]};function pnp_browse_hub(){}pnp_browse_hub.iframeOverride=function(){};pnp_browse_hub.setInnerHTMLAndExecScript=function(f,g){f.innerHTML=g;var k=f.getElementsByTagName("script");for(var h=0;h<k.length;h++){var l=document.createElement("script");if(k[h].getAttribute("src")!=null){l.setAttribute("src",k[h].getAttribute("src"));l.setAttribute("type","text/javascript")}l.type="text/javascript";document.body.appendChild(l);l.text=k[h].text}};pnp_browse_hub.removeEscapeSequences=function(c){var d=""+c+"";d=d.replace(/\r/g,"~");d=d.replace(/\n/g,"`");d=d.replace(/\t/g,"^");return d};pnp_browse_hub.addEscapeSequences=function(c){var d=""+c+"";d=d.replace(/~/g,"\r");d=d.replace(/`/g,"\n");d=d.replace(/\^/g,"\t");return d};isfirst=0;pnp_browse_hub.pnpHubPlay=function(q,p,x,v,n,w,m,s,u,o){if(w){$("playerContainer").innerHTML=pnp_browse_hub.addEscapeSequences(pnp_browse_hub.autoplayReg[o]);if(m=="hulu"||m=="cnbc"){pnp_browse_hub.iframeOverride()}if(pnp_browse_hub.AdType[p]=="C"){$("AdBanner").innerHTML=""}}else{$("playerContainer").innerHTML=pnp_browse_hub.addEscapeSequences(pnp_browse_hub.autoplayReg[o])}Ads.reloadAds(pnp_browse_hub.AdType[o]);$("meta").innerHTML=pnp_browse_hub.metaData[o];$("logoComp").innerHTML="";$("moreRelVideoLink").href=videopagehostUrl+"/video-search/query/"+s+u;$("rvid"+pnp_browse_hub.currentAssetID).className="";pnp_browse_hub.currentAssetID=v;$("rvid"+v).className="curvid";Comment.playbackURL=n;var t=new Comment.vid_Comments("Comment","cmnpar","pagNav",10,true,10,0,0,p,CmError,screen_name,Comment.controllerUrl,"omniPagination",x,"nopbl");upm.ajax(p)};function upm(){}upm.createRequestObject=function(){var d;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}}return d};upm.itemStateChanged=function(){try{if(http_request.readyState==4||http_request.readyState=="complete"){var d=http_request.responseText;$("pagDiv").innerHTML=d;AVP.UPhidePanel()}}catch(c){$("pagDiv").innerHTML="No Data to display"}};upm.ajax=function(e){try{AVP.rateState=true;currentHeight=$("pagDiv").offsetHeight;http_request=new upm.createRequestObject();var d=pagehostUrl+Utils.modFilePath+"?query="+e+"&isajax=true&screen_name="+screen_name+"&_miid=4202&enable_addToPlaylist="+enable_addToPlaylist;http_request.onreadystatechange=upm.itemStateChanged;http_request.open("GET",d,true);http_request.send(null)}catch(f){$("pagDiv").innerHTML="access denied"}};function cathub(){}cathub.inti=function(){cathub.cate_min=1;curPanelID="cr";cathub.scroll=new Fx.Scroll("cate_gal",{wait:true,duration:500,transition:Fx.Transitions.Quad.easeInOut})};cathub.cate_show=function(b){$("ctl"+b).className="ctht";$("hcat"+b).style.display="block"};cathub.cate_hide=function(b){$("ctl"+b).className="ctt";$("hcat"+b).style.display="none"};cathub.cate_click=function(c,d){window.open(c,d)};cathub.cate_prev=function(){cathub.cate_min=cathub.cate_min-1;if(cathub.cate_min<1){cathub.cate_min=cate_max}prevPanel=curPanelID+cathub.cate_min;cathub.scroll.toElement(prevPanel)};cathub.cate_next=function(){cathub.cate_min=cathub.cate_min+1;if(cathub.cate_min>cate_max){cathub.cate_min=1}nextPanel=curPanelID+cathub.cate_min;cathub.scroll.toElement(nextPanel)};function srchSub(h){if(h!=151&&!com.aol.video.portal.userHeadInput){return true}var n=document.av_search;if(Utils.trim(n.q.value)!=""&&com.aol.video.portal.userHeadInput){AVP.showGSL("1");var p=videopagehostUrl;n.q.value=Utils.trim(n.q.value);n.sourceType.value=h;if(h==151){if(n.q.value!=""){var o=n.q.value;var k=Utils.escapeHTMLString(o);var l=p+"/video-search/query/"+k;if(n.q.value!=""&&n.familyFilter.value!=0){window.location=l}else{window.location=l+"/familyFilter/0"}return false}return false}else{if(n.sourceType.value==415){if(n.q.value!=""){var m="http://aolsearch.aol.com/aol/audio?invocationType=topsearchbox.audiohome&query="+n.q.value;window.location=m}}else{if(n.q.value!=""){n.submit();return false}}}return true}else{return false}}function srchfSub(n){var g=document.av_fsearch;if(Utils.trim(g.q.value)!=""&&com.aol.video.portal.userFootInput){AVP.showGSL("1");var l=videopagehostUrl;g.q.value=Utils.trim(g.q.value);if(n==151){if(g.q.value!=""){var m=g.q.value;var k=Utils.escapeHTMLString(m);var h=l+"/video-search/query/"+k;if(document.av_search.familyFilter.value!=0){window.location=h}else{window.location=h+"/familyFilter/0"}}return false}}else{return false}}function setSrch(c,d){if($("topQuery2").value!=""&&com.aol.video.portal.userHeadInput){c.href=d+$("topQuery2").value}else{if($("topQuery2").value!=""&&!com.aol.video.portal.userHeadInput){c.href=d+""}}}function setwebSrch(c,d){if($("inputQuery").value!=""){c.href=d+$("inputQuery").value}}function Surrogate(){}Surrogate.disblock=function(c){var d=$(c);d.style.display="block"};Surrogate.disnone=function(d){var c=$(d);c.style.display="none"};Surrogate.heff=function(c,d){$(c).className="resultItem heff";$(d).style.display="block"};Surrogate.norm=function(c,d){$(c).className="resultItem";$(d).style.display="none"};function AVSearch(){}AVSearch.clearDefaultText=function(c){var d=c.value;if(d==""){headerQuery=c.value;c.value="";c.className="searchbox whitebg"}};AVSearch.replaceDefaultText=function(c){headerQuery="";var d=Utils.trim(c.value);c.value=(d=="")?headerQuery:d;if(c.value==""){c.className="searchbox"}};function PNP_V1(){}PNP_V1.showMetadata=function showMetadata(c,d){if(c=="desc"){$(c).style.display="none";$(d).style.display="block"}else{$(c).style.display="none";$(d).style.display="block"}};PNP_V1.showePopup=function showePopup(e,f){var g=$(f);var h=$(e);g.style.top=h.offsetTop+"px";g.style.left=h.offsetLeft+"px";g.innerHTML="<a class='close_but' href='javascript:PNP_V1.hideePopup(&#39;"+f+"&#39;)'>x</a><p class='desc det_desc_epopup'>"+h.innerHTML+"</p>";g.style.display="block"};PNP_V1.hideePopup=function hideePopup(b){$(b).style.display="none";$(b).innerHTML=""};function Comment(){}Comment.objName="";Comment.ContainerName="";Comment.PageContainerName="";Comment.itemsPerPage="";Comment.showPageNumber="";Comment.showPageNumberCount="";Comment.showPageNumberCountMod="";Comment.showPageNumberRange="";Comment.records="";Comment.commentsmodid="";Comment.assetID="";Comment.ajaxtype="";Comment.currentPage="";Comment.offset=0;Comment.offsetInit=0;Comment.inited="";Comment.pages="";Comment.ajaxstatus="";Comment.comId="";Comment.addSource="";Comment.controllerUrl="";Comment.browser="Other";Comment.com_id="";Comment.userA="";Comment.pgUrl="";Comment.screenname="";Comment.playbackURL="";Comment.iceAppId="video";Comment.vid_Comments=function(F,A,v,w,z,G,u,H,s,C,x,D,B,E,t){Comment.objName=F;Comment.ContainerName=A;Comment.PageContainerName=v;Comment.itemsPerPage=w;Comment.showPageNumber=z;Comment.showPageNumberCount=G;Comment.showPageNumberCountMod=(Comment.showPageNumberCount%2);Comment.showPageNumberRange=(Comment.showPageNumberCountMod==1)?((Comment.showPageNumberCount/2)-(0.5)):(Comment.showPageNumberCount/2);Comment.records=u;Comment.commentsmodid=H;Comment.assetID=s;Comment.ajaxtype="view";Comment.currentPage=1;Comment.inited=false;Comment.pages=0;Comment.ajaxstatus="";Comment.comId="";Comment.isallcomments=false;Comment.cmError=C;Comment.screenname=x.toString();Comment.isload=false;Comment.controllerUrl=D;Comment.serverUrl="http://"+document.location.host+"/"+D;Comment.com_id="";Comment.userA="";Comment.pgUrl="";Comment.pmmsid=E;Comment.omniPagenation=""+B;Comment.showCount=C[6];Comment.callSource=t};function comment_stateChanged(){try{if(Comment.callSource=="nopbl"){if(httpobj.readyState==4||httpobj.readyState=="complete"){var d=httpobj.status;if(Comment.addSource=="UP"&&calltype=="add"&&httpobj.responseText==406){AVP.UPcomPanel(3);Comment.addSource="";return}else{if(Comment.addSource=="UP"){AVP.UPcomPanel(2);return}Comment.addSource=""}}}if(Comment.callSource=="pbl"){if(httpobj.readyState==4||httpobj.readyState=="complete"){var d=httpobj.status;var f="";if(calltype=="add"){if(d==200){Comment.records=Comment.records+1;f=1}}else{if(calltype=="delete"){if(d==200){Comment.records=Comment.records-1;f=Comment.currentPage;f=1}}}if(Comment.addSource=="CM"&&calltype=="add"&&httpobj.responseText==406){$("cm_response").innerHTML=Comment.cmError[1];$("cm_response").style.display="block";Comment.addSource="";return}else{if(Comment.addSource=="UP"&&calltype=="add"&&httpobj.responseText==406){AVP.UPcomPanel(3);Comment.addSource="";return}else{if(Comment.addSource=="UP"){AVP.UPcomPanel(2)}$("cmnpar").innerHTML=httpobj.responseText;Comment.showPerPage(Comment.itemsPerPage,f);Comment.addSource=""}}}}}catch(e){}}Comment.vid_AddComment=function(h,k){var l=new Date();var n=l.getSeconds();httpobj=new Comment.createRequestObject();var g=k;if(Comment.addSource==""){Comment.addSource="CM"}if(Comment.addSource=="CM"){if((Comment.screenname=="")||(Comment.screenname=="null")){vid_SignInWidget($("cmfrom"),"",lu,0,0,"comment");return}if(g.search(/[^ \t\r\n]/)==-1){$("cm_response").innerHTML=Comment.cmError[2];$("cm_response").style.display="block";return}if(g.length>500){$("cm_response").innerHTML=Comment.cmError[3];$("cm_response").style.display="block";return}k=Comment.removeHtml(g);k=k.replace(/^[\s]+/,"").replace(/[\s]+$/,"").replace(/[\s]{2,}/," ");if(k.length==0){$("cm_response").innerHTML=Comment.cmError[2];$("cm_response").style.display="block";return}}k=encodeURIComponent(k);var m=Comment.serverUrl+"&action=Add&assetid="+h+"&comment="+k+"&pmmsid="+Comment.pmmsid+"&time="+n+"&iceAppId="+Comment.iceAppId;calltype="add";httpobj.onreadystatechange=comment_stateChanged;httpobj.open("GET",m,true);httpobj.send(null)};Comment.vid_deleteComment=function(e,f){var g=confirm(Comment.cmError[0]);if(g==true){httpobj=new Comment.createRequestObject();var h=Comment.serverUrl+"&action=Remove&assetid="+e+"&commentid="+f+"&offset="+Comment.offset+"&pmmsid="+Comment.pmmsid+"&iceAppId="+Comment.iceAppId;calltype="delete";httpobj.onreadystatechange=comment_stateChanged;httpobj.open("GET",h,true);httpobj.send(null)}};Comment.init=function(){Comment.pages=Math.ceil(Comment.records/Comment.itemsPerPage);if(Comment.pages<1){Comment.inited=false}else{Comment.inited=true}if(Comment.currentPage>Comment.pages){Comment.currentPage=Comment.pages}};Comment.PageNav=function(){temp=Comment.currentPage;var f="";var d=$(Comment.PageContainerName);if(!Comment.inited){d.innerHTML=f;return}f='\n<li><a href="javascript:void(0);" onclick="'+Comment.objName+'.prev();" id="cm_prev_a" class="prev">'+Comment.cmError[5]+" </a></li> ";frmCount=(Comment.currentPage-Comment.showPageNumberRange);if(frmCount<=0){frmCount=1}toCount=(frmCount+(Comment.showPageNumberCount-1));if(toCount>Comment.pages){toCount=Comment.pages;frmCount=Comment.pages-(Comment.showPageNumberCount-1)}if(Comment.showPageNumber){for(var e=1;e<=Comment.pages;e++){if(e>=frmCount&&e<=toCount){f+='\n<li><span id = "pag'+e+'" class=""><a href="javascript:void(0);" id="pg'+e+'" class="num" onclick="'+Comment.objName+".showPage("+e+");s_objectID='"+Comment.omniPagenation+"';\">"+e+"</a></span></li> "}}}f+='\n<li><a href="javascript:void(0);" onclick="'+Comment.objName+'.next();" id="cm_next_a" class="next">'+Comment.cmError[4]+" </a></li>\n";d.innerHTML=f};Comment.prev=function(){if(Comment.currentPage>1){Comment.showPage(Comment.currentPage-1)}};Comment.next=function(){if(Comment.currentPage<Comment.pages){Comment.showPage(Comment.currentPage+1)}};Comment.showPage=function(h){temp=Comment.currentPage;Comment.currentPage=h;Comment.PageNav();if(Comment.records<1){$("cmPgMn").style.display="none"}if(!Comment.inited){return}if(Comment.showPageNumber){var k=$("pg"+temp)}if(Comment.showPageNumber){var a=$("pag"+Comment.currentPage);a.className="selected";var m=$("pg"+Comment.currentPage);a.removeChild(m);a.innerHTML=Comment.currentPage}var l=((h-1)*Comment.itemsPerPage)+(Comment.offsetInit);var n=l+Comment.itemsPerPage-1;if(l<=0){$("cm_prev_a").className="hide"}else{$("cm_prev_a").className="prev"}if(n>=(Comment.records-1)){$("cm_next_a").className="hide"}else{$("cm_next_a").className="next"}if(Comment.isload==true){Comment.showRecords(l,n)}Comment.isload=true;Comment.paginationStatus(l,n)};Comment.paginationStatus=function(c,d){if(Comment.offsetInit==-1){c=c+1;d=d+1}if(Comment.records<1){$("cmPgMn").style.display="none";return}else{$("cmPgMn").style.display="block";$("cm_countdet").style.display="block"}tocomm=((d+1)>Comment.records)?Comment.records:(d+1);tmpstr1=(c+1)+" - "+tocomm;tmpstr2=Comment.records;showValue=Comment.showCount;showValue=showValue.replace(/###COUNT###/,tmpstr1);showValue=showValue.replace(/###TOTAL###/,tmpstr2);$("cm_countdet").innerHTML=showValue};Comment.showRecords=function(c,d){Comment.offset=c+1;Comment.vid_LoadAjaxData("&action=Query&offset="+Comment.offset+"&assetid="+Comment.assetID+"&pmmsid="+Comment.pmmsid+"&iceAppId="+Comment.iceAppId,"Query")};Comment.shownp=function(k){if(Comment.records<1){$("cmPgMn").style.display="none"}if(Comment.showPageNumber){var l=$("pg"+temp)}if(Comment.showPageNumber){var h=$("pag"+Comment.currentPage);h.className="selected"}var f=(k-1)*Comment.itemsPerPage;var g=f+Comment.itemsPerPage-1;if(f==0){$("cm_prev_a").className="hide"}else{$("cm_prev_a").className="prev"}if(g>=(Comment.records-1)){$("cm_next_a").className="hide"}else{$("cm_next_a").className="next"}};Comment.showPage2=function(h){temp=Comment.currentPage;Comment.currentPage=h;Comment.PageNav();if(Comment.records<1){$("cmPgMn").style.display="none"}else{$("cm_countdet").style.display="block"}if(!Comment.inited){return}if(Comment.showPageNumber){var k=$("pg"+temp)}if(Comment.showPageNumber){var a=$("pag"+Comment.currentPage);a.className="selected";var m=$("pg"+Comment.currentPage);a.removeChild(m);a.innerHTML=Comment.currentPage}var l=(h-1)*Comment.itemsPerPage;var n=l+Comment.itemsPerPage-1;if(l==0){$("cm_prev_a").className="hide"}else{$("cm_prev_a").className="prev"}if(n>=(Comment.records-1)){$("cm_next_a").className="hide"}else{$("cm_next_a").className="next"}tocomm=((n+1)>Comment.records)?Comment.records:(n+1);tmpstr1=(l+1)+" - "+tocomm;tmpstr2=Comment.records;showValue=Comment.showCount;showValue=showValue.replace(/###COUNT###/,tmpstr1);showValue=showValue.replace(/###TOTAL###/,tmpstr2);$("cm_countdet").innerHTML=showValue};Comment.showPerPage=function(d,c){itemsPerPage=d;Comment.currentPage=c;Comment.init();Comment.showPage2(Comment.currentPage)};Comment.removeHtml=function(f){var e=f;e=e.replace(/&(lt|gt);/g,function(b,a){return(a=="lt")?"<":">"});var d=e.replace(/<\/?[^>]+(>|$)/g,"");return d};Comment.vid_ClearComments=function(b){$("commentValue").value="";$("cm_response").style.display="none"};if(navigator.appName=="Netscape"){Comment.userA=navigator.userAgent.toLowerCase();if(Comment.userA.indexOf("firefox")>-1){Comment.browser="Firefox"}if(Comment.userA.indexOf("firefox/2")>-1){Comment.browser="Firefox2"}if(Comment.userA.indexOf("safari")>-1){Comment.browser="Safari"}}if(navigator.appName=="Microsoft Internet Explorer"){Comment.userA=navigator.userAgent.toLowerCase();if(Comment.userA.indexOf("msie 7.0")>-1){Comment.browser="IE7"}if(Comment.userA.indexOf("msie 6.0")>-1){Comment.browser="IE6"}}Comment.vid_notifyComment=function(f){Comment.com_id=f;var e=$("notify_"+f);if(Comment.browser=="IE6"){var g=Utils.findPosX(e)-354;var h=Utils.findPosY(e)+20}else{var g=Utils.findPosX(e)-344;var h=Utils.findPosY(e)+20}e=$("editDialog");e.style.left=g+"px";e.style.top=h+"px";e.style.zIndex=9999;window.scrollTo(0,h-200);$("err0").style.display="none";$("tosdescription").value="";$("tosdescription").style.display="block";$("toserr1").style.color="#444444";$("toserr2").style.color="#444444";$("tosCat").value="Select Option";$("noteClose").style.display="block";elem=$("sendBtn");elem.style.display="block";elem=$("editDialog");elem.style.display="block";Comment.pgUrl=document.location};Comment.getCat=function(){var d=$("tosCat");for(var c=0;c<d.childNodes.length;c++){if(d.childNodes[c].selected){return d.childNodes[c].value}}};Comment.ismaxlength=function(c){var d=c.getAttribute?parseInt(c.getAttribute("maxlength")):"";if(c.getAttribute&&c.value.length>d){c.value=c.value.substring(0,d)}};Comment.vid_notifySend=function(h){var m=$("email").value;var p=$("tosdescription").value;p=encodeURIComponent(Comment.removeHtml(p));var n=Comment.getCat();$("err0").style.display="none";$("toserr1").style.color="#444444";$("toserr2").style.color="#444444";var o=false;if(Comment.screenname=="null"){if(m.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){$("err0").style.display="block";$("toserr1").style.color="red";var k=$("noteResponse");k.style.display="none";o=true}}if(n!="Select Option"&o!=true){var l=2222;var k=$("sendBtn");k.style.display="none";Comment.vid_LoadAjaxData("&commentID="+Comment.com_id+"&email="+m+"&notifyCat="+n+"&reporterReason="+p+"&action=notify&pageUrl="+Comment.pgUrl+"&iceAppId="+Comment.iceAppId,"notify")}else{if(n=="Select Option"){$("err0").style.display="block";$("toserr2").style.color="red";var k=$("noteResponse");k.style.display="none"}}};Comment.cancelDialog=function(){$("toserr1").style.color="#444444";$("toserr2").style.color="#444444";var b=$("editDialog");b.style.display="none";var b=$("noteResponse");b.style.display="none";var b=$("sendBtn");b.style.display="none";$("tosdescription").style.display="none";document.body.focus()};Comment.createRequestObject=function(){var d;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}}return d};Comment.vid_LoadAjaxData=function(k,g){ajaxstatus="";ajaxtype=g;ajax_http_request=new Comment.createRequestObject();var h=new Date();if(Comment.isallcomments){k=k+"&isallcomments=true"}var f=k;var l=Comment.serverUrl+""+f;ajax_http_request.onreadystatechange=Comment.ajaxrespond;ajax_http_request.open("GET",l,true);ajax_http_request.send(null)};Comment.ajaxrespond=function(){try{if(ajax_http_request.readyState==4||ajax_http_request.readyState=="complete"){if(ajaxtype=="Query"){$(Comment.ContainerName).innerHTML=ajax_http_request.responseText;Comment.showPage2(Comment.currentPage)}else{if(ajaxtype=="add"||ajaxtype=="delete"){}else{if(ajaxtype=="notify"){try{var d=ajax_http_request.responseText.trim();if(d==200){var e=$("noteResponse");e.style.left=35+"px";e.style.top=230+"px";e.style.display="block";e.innerHTML=Comment.responseSuccess;setTimeout("Comment.cancelDialog()",5000)}else{var e=$("noteResponse");e.style.left=35+"px";e.style.top=230+"px";e.style.display="block";e.innerHTML=Comment.responseFailure;setTimeout("Comment.cancelDialog()",5000)}}catch(f){var e=$("noteResponse");e.style.left=35+"px";e.style.top=230+"px";e.style.display="block";e.innerHTML=Comment.responseFailure;setTimeout("Comment.cancelDialog()",5000)}}}}}}catch(f){var e=$("noteResponse");e.style.left=35+"px";e.style.top=230+"px";e.style.display="block";e.innerHTML=Comment.responseFailure;setTimeout("Comment.cancelDialog()",5000)}};function rvid_hover_hub(c,d){for(r=1;r<=d;r++){$("rvid"+r).style.zIndex=1}$(c).style.zIndex=2}Pagi.init=function(){Pagi.pages=Math.ceil(Pagi.records/Pagi.itemsPerPage);if(Pagi.pages<1){Pagi.inited=false}else{Pagi.inited=true}if(Pagi.currentPage>Pagi.pages){Pagi.currentPage=Pagi.pages}};Pagi.next=function(b){Pagi.dec(Pagi.countPP,Pagi.total,Pagi.currpg+1,Pagi.showPageNumberCount,b)};Pagi.prev=function(b){Pagi.dec(Pagi.countPP,Pagi.total,Pagi.currpg-1,Pagi.showPageNumberCount,b)};Pagi.selectCell=function(){var d=$("pag"+Pagi.currpg);d.className="selected";var a=$("pg"+Pagi.currpg);d.removeChild(a);d.innerHTML=Pagi.currpg};function Pagi(){}Pagi.count="";Pagi.total="";Pagi.currpg="";Pagi.pages="";Pagi.itemsPerPage="";Pagi.records="";Pagi.frmCount=0;Pagi.toCount=0;Pagi.tabText="";Pagi.tabQuery="";Pagi.tabSource="";Pagi.includePagination=false;Pagi.isload=false;Pagi.offset=1;Pagi.dec=function(o,m,p,q,s){Pagi.countPP=o;Pagi.itemsPerPage=o;Pagi.total=m;Pagi.records=m;Pagi.currpg=p;Pagi.pages=0;Pagi.showPageNumber=true;Pagi.showPageNumberCount=q;Pagi.showPageNumberCountMod=(Pagi.showPageNumberCount%2);Pagi.showPageNumberRange=(Pagi.showPageNumberCountMod==1)?((Pagi.showPageNumberCount/2)-(0.5)):(Pagi.showPageNumberCount/2);Pagi.temp_i=1;var k="",n="",l="";Pagi.init();availablevid=dom.query("totalAvailableVideos").value;Pagi.total=availablevid;if(availablevid<=0){return}Pagi.totalpg=Pagi.total/Pagi.countPP;Pagi.totalpg=Math.floor(Pagi.totalpg);if((Pagi.total%Pagi.countPP)>0){Pagi.totalpg=Pagi.totalpg+1}if(Pagi.currpg>Pagi.totalpg){Pagi.currpg=1}if(!Pagi.isload){Pagi.frmCount=0;Pagi.toCount=0}k='\n<li><a href="javascript:void(0);" onclick="Pagi.prev('+s+');" id="cm_prev_a" class="prev">'+Pagi.info[0]+"</a></li> ";if((Pagi.frmCount==0)&&(Pagi.toCount==0)){Pagi.frmCount=(Pagi.currpg-2);if(Pagi.frmCount<=0){Pagi.frmCount=1}Pagi.toCount=((Pagi.frmCount+Pagi.showPageNumberCount)-1)}if(Pagi.showPageNumberCount<=Pagi.totalpg){Pagi.frmCount=(Pagi.currpg-2);Pagi.toCount=(Pagi.frmCount+(Pagi.showPageNumberCount-1))}if(Pagi.showPageNumber){for(i=1;i<=Pagi.totalpg;i++){temp=(((i)-1)*Pagi.countPP)+1;if(temp>978){Pagi.totalpg=i}if(i>=Pagi.frmCount&&i<=Pagi.toCount){k+='\n<li><span id = "pag'+i+'" class=""><a href="javascript:void(0);" id="pg'+i+'" class="num" onclick= "Pagi.dec('+Pagi.countPP+","+Pagi.total+","+i+","+Pagi.showPageNumberCount+","+s+')">'+i+"</a></span></li> "}}k+='\n<li><a href="javascript:void(0);" onclick="Pagi.next('+s+');" id="cm_next_a" class="next">'+Pagi.info[1]+"</a></li>\n";navigation=Pagi.info[2];temp1='<span class="curpage">'+Pagi.currpg+"</span>";temp2='<span class="hg">'+Pagi.totalpg+"</span>";navigation=navigation.replace(/###Pagination###/,temp1);navigation=navigation.replace(/###TotalPgCount###/,temp2);pg_next='<a href="javascript:void(0);" onclick="Pagi.next('+s+');" id="pg_next">'+Pagi.info[1]+'</a><span id= "pagi_next">&gt</span>';pg_prev='<span id ="pagi_prev" >&lt</span><a href="javascript:void(0);" onclick="Pagi.prev('+s+');" id="pg_prev">'+Pagi.info[0]+"</a>";drawPgNo=pg_prev+""+navigation+""+pg_next;if(Pagi.currpg<=1){$("cm_prev_a").className="hide";$("pagi_prev").style.display="none";$("pg_prev").style.display="none"}if(Pagi.currpg>=Pagi.totalpg){$("cm_next_a").className="hide";$("pagi_next").style.display="none";$("pg_next").style.display="none"}}Pagi.selectCell();if(Pagi.isload){Pagi.offset=(((Pagi.currpg)-1)*Pagi.countPP)+1;Filter.searchItemWithOffset(Pagi.tabText,Pagi.tabQuery,Pagi.offset,s)}Pagi.isload=true};function Ads(){}Ads.reloadAds=function(f,g,h){var l=new Date();var k=l.getTime()%1073741823;$("adsF0").src=adsHt+"/html/"+f+"/"+k+"/"+top.adsExt+"?"+top.adsNMSG+"&width="+g+"&height="+h+" "+adsTar+adsTz+adsSr+adsSN+adsWM+adsOt+adsDOth+"&CT=I"};Ads.reloadAds=function(b){Ads.reloadAds(b,"AdBanner")};Ads.reloadAds=function(h,e){try{if(e==null||e.length()<0){e="AdBanner"}switch(h.toString()){case"FPM":var g="";if(typeof isFPMPlayer=="undefined"){brightcove.createExperiences()}Ads.getDoubleClickAds(g,300,250,"AdBanner");break;case"ASA-FPM":brightcove.createExperiences();break;case"DC":if(isFirstAsset){htmlAdWH(magicnumber,"300","250","ajax",e);isFirstAsset=false}adsReloadAd(e);break;case"ADTECH":document.getElementById("adframe").src=pagehostUrl+"/includes/loadbanner.jsp?|"+tagVersion+"|"+networkId+"|"+placementId+"|"+internalPageId+"|"+creativeSizeId+"|ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp=[group];misc=";break}}catch(f){}};Ads.getDoubleClickAds=function(k,l,m,o){if(k!=""){var h=new Date();var p=h.getTime()%1073741823;var n=pagehostUrl+"/ad/"+k+"/"+l+"/"+m+"/"+p;$(o).innerHTML="<iframe allowTransparency='true' id='ads_"+p+"' src='"+n+"' frameborder='0' scrolling='no' width='300' height='250'></iframe>"}else{$(o).innerHTML=""}};Ads.getAdscript=function(e,h,g){adScriptLoaded=true;var f='<script type="text/javascript">\n';f+="<!--\n";f+="adSetType('I');\n";f+=" htmlAdWH('"+e+"', '"+h+"', '"+g+"');\n";f+=" adSetType('');\n";f+=" //--><\/script>\n";f+=" <noscript>\n";f+=' <a href="http://ar.atwola.com/link/'+e+'/1663190194/aoladp?target=_blank&border=0" target="_blank">\n';f+=' <img src="http://ar.atwola.com/image/'+e+'/1663190194/aoladp" alt="advertisement" width="'+h+'" height="'+g+'" border="0" />';f+="</a>\n";f+="</noscript>";$("AdBanner").innerHTML=f};Vid.divId="";function Vid(){}Vid.createRequestObject=function(){var d;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}}return d};Vid.insertZone=function(c,d){c=pagehostUrl+"/video-mod/sizRequest.jsp?channelUrl="+c;c=c.replace("&","%26");if(d=="siz1"){playsiz1=d;Vid.ajax_http_request1=new Vid.createRequestObject();Vid.ajax_http_request1.onreadystatechange=function(){try{if(Vid.ajax_http_request1.readyState==4||Vid.ajax_http_request1.readyState=="complete"){var b=Vid.ajax_http_request1.responseText.trim();$(playsiz1).innerHTML=b}}catch(a){}};Vid.ajax_http_request1.open("GET",c,true);Vid.ajax_http_request1.send(null)}else{if(d=="siz2"){playsiz2=d;Vid.ajax_http_request2=new Vid.createRequestObject();Vid.ajax_http_request2.onreadystatechange=function(){try{if(Vid.ajax_http_request2.readyState==4||Vid.ajax_http_request2.readyState=="complete"){var b=Vid.ajax_http_request2.responseText.trim();$(playsiz2).innerHTML=b}}catch(a){}};Vid.ajax_http_request2.open("GET",c,true);Vid.ajax_http_request2.send(null)}else{if(d=="siz3a"){playsiz3a=d;Vid.ajax_http_request3a=new Vid.createRequestObject();Vid.ajax_http_request3a.onreadystatechange=function(){try{if(Vid.ajax_http_request3a.readyState==4||Vid.ajax_http_request3a.readyState=="complete"){var b=Vid.ajax_http_request3a.responseText.trim();$(playsiz3a).innerHTML=b}}catch(a){}};Vid.ajax_http_request3a.open("GET",c,true);Vid.ajax_http_request3a.send(null)}else{if(d=="siz3b"){playsiz3b=d;Vid.ajax_http_request3b=new Vid.createRequestObject();Vid.ajax_http_request3b.onreadystatechange=function(){try{if(Vid.ajax_http_request3b.readyState==4||Vid.ajax_http_request3b.readyState=="complete"){var b=Vid.ajax_http_request3b.responseText.trim();$(playsiz3b).innerHTML=b}}catch(a){}};Vid.ajax_http_request3b.open("GET",c,true);Vid.ajax_http_request3b.send(null)}else{Vid.ajax_http_request=new Vid.createRequestObject();Vid.ajax_http_request.onreadystatechange=function(){try{if(Vid.ajax_http_request.readyState==4||Vid.ajax_http_request.readyState=="complete"){var b=Vid.ajax_http_request.responseText.trim();$(d).innerHTML=b}}catch(a){}};Vid.ajax_http_request.open("GET",c,true);Vid.ajax_http_request.send(null)}}}}};vid_snag=function(f){var d=getPageSize();var e=Math.round(d[2]/2)-200;window.open(f,"","width=450,location=no,left="+e+",top=100,titlebar=no,directories=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=no")};function pnprel(){}pnprel.inti=function(){pnprel.pnp_min=1;pnp_curPanelID="pnp_relvid";pnprel.scroll=new Fx.Scroll("rel_outer",{wait:true,duration:500,transition:Fx.Transitions.Quad.easeInOut})};pnprel.pnp_prev=function(){pnprel.pnp_min=pnprel.pnp_min-1;if(pnprel.pnp_min<1){pnprel.pnp_min=pnp_max}pnp_prevPanel=pnp_curPanelID+pnprel.pnp_min;pnprel.scroll.toElement(pnp_prevPanel)};pnprel.pnp_next=function(){pnprel.pnp_min=pnprel.pnp_min+1;if(pnprel.pnp_min>pnp_max){pnprel.pnp_min=1}pnp_nextPanel=pnp_curPanelID+pnprel.pnp_min;pnprel.scroll.toElement(pnp_nextPanel)};AVP.isTitle=true;AVP.isSeasonNumber=true;AVP.isEpisodeNumber=true;AVP.isArtist=true;AVP.isChannel=true;AVP.isCategory=true;AVP.isDateFound=true;AVP.isRuntime=true;AVP.isBuyPrice=true;AVP.isPlayList=true;AVP.isViewcount=false;AVP.isRating=false;AVP.surrogateType="BS";AVP.surContainer="browseSurrogateContainer";AVP.isNoResult=false;AVP.handleInti=function(f,e,g,h){if(AVP.surrogateType=="BS"){BS_ajax.curpage=1;BS_ajax.incpg=e.toString();AVP.changetab()}if(h==""){AVP.handleVSLoad(f)}else{AVP.solrSurrogate(f)}};AVP.solrSurrogate=function(e){if(miid==3110){$("pagiNo").innerHTML=""}try{currentHeight=$(AVP.surContainer).offsetHeight;AVP.preloader();http_request=new Filter.createRequestObject();var d=pagehostUrl+Utils.modFilePath+"?query="+Utils.encodeSplChar(e)+"&isajax=true&_miid=9525&brs_solrRecordCount="+brs_solrRecordCount;http_request.onreadystatechange=Filter.itemStateChanged;http_request.open("GET",d,true);http_request.setRequestHeader("Content-Type","text/html;charset=UTF-8");http_request.send(null)}catch(f){$(AVP.surContainer).innerHTML="access denied"}};AVP.handleVSLoad=function(b){if(!BS_ajax.pageLoad){AVP.preloader()}query=Utils.encodeSplChar(b);decode_query=query.replace(/\+/g," ");BS_ajax.getVideos(decode_query);BS_ajax.attachEvent("onerror","AVP.handleError(errorCode, errorMessage);");BS_ajax.attachEvent("onupdate","AVP.handleUpdate();");BS_ajax.initialize()};AVP.changetab=function(){for(i=1;i<=BS_ajax.tottab;i++){$("bs_tab"+i).className=""}$("bs_tab"+AVP.tabnum).className="selected";$("bs_tab"+AVP.tabnum).childNodes[0].childNodes[0].style.textDecoration="none"};AVP.nextPage=function(){Utils.tracking(skinComscore+"/browsetab",AVP.BStabName);BS_ajax.curpage=BS_ajax.curpage+1;AVP.preloader();BS_ajax.nextPage()};AVP.previousPage=function(){Utils.tracking(skinComscore+"/browsetab",AVP.BStabName);BS_ajax.curpage=BS_ajax.curpage-1;AVP.preloader();BS_ajax.previousPage()};AVP.goToPage=function(b){Utils.tracking(skinComscore+"/browsetab",AVP.BStabName);BS_ajax.curpage=b;AVP.preloader();BS_ajax.goToPage(b)};AVP.brtoppagi=function(){var b="";if((BS_ajax.incpg=="true")&&(BS_ajax.VideoSet.totalResultsAvailable>0)){if(BS_ajax.VideoSet.totalResultsAvailable>1000){BS_ajax.resultLimit=1000}else{BS_ajax.resultLimit=BS_ajax.VideoSet.totalResultsAvailable}BS_ajax.totpage=Math.round((BS_ajax.resultLimit)/(BS_ajax.results));if(BS_ajax.totpage==0){BS_ajax.totpage=1}if(BS_ajax.hasPreviousPage()){b+="<span id='pagi_prev'>&lt;</span>";b+="<a id='pg_prev' onclick='AVP.previousPage();'>"+AVP.escapeHTML(AVP.global_Previous)+"</a>"}if(BS_ajax.curpage>0){b+="<span class='curpage'>"+BS_ajax.curpage+"</span>"}b+="<b>"+AVP.escapeHTML(AVP.browseSurrogate_of)+"</b>";b+="<span class='hg'>"+BS_ajax.totpage+"</span>";if(BS_ajax.hasNextPage()&&(BS_ajax.curpage<BS_ajax.totpage)){b+="<a id='pg_next' onclick='AVP.nextPage();'>"+AVP.escapeHTML(AVP.global_Next)+"</a>";b+="<span id='pagi_next'>&gt;</span>"}$("pagiNo").innerHTML=b}else{$("pagiNo").innerHTML=""}};AVP.brbotpagi=function(){var b="";if(BS_ajax.incpg=="true"){if(BS_ajax.hasPreviousPage()){b+="<li><a id='cm_prev_a' onclick='AVP.previousPage();'>"+AVP.escapeHTML(AVP.global_Previous)+"</a></li>"}if(BS_ajax.curpage==1){pstart=1;if(BS_ajax.totpage>8){pend=8}else{pend=BS_ajax.totpage}}else{if(BS_ajax.curpage==2){pstart=1;if(BS_ajax.totpage>9){pend=9}else{pend=BS_ajax.totpage}}else{pstart=BS_ajax.curpage-2;pend=BS_ajax.curpage+7;if(pend>BS_ajax.totpage){pend=BS_ajax.curpage+(BS_ajax.totpage-BS_ajax.curpage)}}}for(j=pstart;j<=pend;j++){if(BS_ajax.curpage==j){b+="<li><span class='selected'>"+j+"</span></li>"}else{b+="<li><a onclick='AVP.goToPage("+j+")'>"+j+"</a></li>"}}if(BS_ajax.hasNextPage()&&(BS_ajax.curpage<BS_ajax.totpage)){b+="<li><a id='cm_next_a' onclick='AVP.nextPage();'>"+AVP.escapeHTML(AVP.global_Next)+"</a></li>"}$("pgarea").innerHTML=b}else{$("pgarea").innerHTML=""}};AVP.homeallvid=function(){var b="";b+="<div class='clear'></div><div class='allvid'>";if(AVP.brs_SeeAllVideosLink!=""){b+="<a href='"+AVP.brs_SeeAllVideosLink+"' title='"+AVP.escapeHTMLString(AVP.global_SeeAllVideos)+"'>"+AVP.escapeHTML(AVP.global_SeeAllVideos)+"</a><span></span>"}else{b+="<a href='"+videopagehostUrl+"/video-search/query/"+decode_query+"/familyfilter/"+AVP.familyFilter+"/type/standard/thiscountry/"+AVP.thisCountry+"' title='"+AVP.escapeHTMLString(AVP.global_SeeAllVideos)+"'>"+AVP.escapeHTML(AVP.global_SeeAllVideos)+"</a><span></span>"}b+="</div>";return(b)};AVP.noData=function(){AVP.isNoResult=true;var b="";b+="<div class='clear'></div><div id='trerr'><h2><span class='alert'></span>"+AVP.escapeHTML(AVP.browseSurrogate_noDataFound)+"</h2></div>";return(b)};AVP.truveoError=function(){var b="";b+="<div id='trerr' class='errorpage'>";b+="<h2><span class='alert'></span>"+AVP.escapeHTML(AVP.error_Apology)+" <br />"+AVP.escapeHTML(AVP.error_Confirmation)+"</h2>";b+="</div>";return(b)};AVP.surrogateUI=function(){if(!BS_ajax.pageLoad){var n="";if(BS_ajax.VideoSet.totalResultsAvailable>0){if(AVP.surrogateType=="CM"){n+='<div class="clear"></div><div id="comp_sl_top"  style="display:none" class="g_slm g_slm_sm"></div>'}for(var m=0;m<BS_ajax.VideoSet.totalResultsReturned;m++){var k=BS_ajax.VideoSet.Video[m];if(k){try{if("artist" in k&&"category" in k){if(((k.category.toString()).toLowerCase())=="music"){titleURL=k.artist+" "+k.title}}else{if("showName" in k){titleURL=k.showName+" "+k.title}else{titleURL=k.title}}BS_ajax.vdurl=videopagehostUrl+"/video-detail/"+AVP.getCanonizedString(titleURL)+"/"+AVP.getCanonizedString(k.id);n+="<div class='resultItem' id='resultItem_"+k.id+"' onmouseover=\"javascript:Surrogate.heff('resultItem_"+k.id+"','addpl_"+k.id+"');\" onmouseout=\"javascript:Surrogate.norm('resultItem_"+k.id+"','addpl_"+k.id+"');\">";n+="<div class='resleft'>";n+="<a href='"+BS_ajax.vdurl+"' class='thumb preloadImage'";if(AVP.surrogateType=="BS"&&omniEnabled==true){var l=m%BS_ajax.Coloum_Count;AVP.omnCount=((m-l)/BS_ajax.Coloum_Count)+1;n+="onclick=\"s_objectID=('"+BS_ajax.omniture_String+""+AVP.omnCount+"');\""}n+="title='"+AVP.escapeHTMLString(k.title)+"'><img src='"+k.thumbnailUrl+"' width='120' height='90' alt='"+AVP.escapeHTMLString(k.title)+"' /></a>";if("buyPrice" in k&&AVP.isBuyPrice&&AVP.surrogateType=="CM"){n+="<span class='price'>"+AVP.escapeHTML(k.buyPrice)+"</span>"}n+="</div>";n+="<div class='resright'>";n+="<dl>";if("title" in k&&AVP.isTitle){n+="<dt><a href='"+BS_ajax.vdurl+"'";if(AVP.surrogateType=="BS"&&omniEnabled==true){n+="onclick=\"s_objectID=('"+BS_ajax.omniture_String+""+AVP.omnCount+"');\""}n+="title='"+AVP.escapeHTMLString(k.title)+"'>"+AVP.escapeHTML(AVP.truncateString(k.title,BS_ajax.maxTitle))+"</a></dt>"}if(("seasonNumber" in k&&AVP.isSeasonNumber)||("episodeNumber" in k&&AVP.isEpisodeNumber)){n+="<dd>";if("seasonNumber" in k&&AVP.isSeasonNumber){n+=AVP.global_SeasonText+" <span>"+AVP.escapeHTML(k.seasonNumber)+"</span>"}if("seasonNumber" in k&&"episodeNumber" in k&&AVP.isSeasonNumber&&AVP.isEpisodeNumber){n+=", "}if("episodeNumber" in k&&AVP.isEpisodeNumber){n+=AVP.global_EpisodeText+" <span>"+AVP.escapeHTML(k.episodeNumber)+"</span>"}n+="</dd>"}if("artist" in k&&"category" in k&&AVP.isArtist){if(((k.category.toString()).toLowerCase())=="music"){BS_ajax.arurl=videopagehostUrl+"/category/"+AVP.getCanonizedString(k.artist);n+="<dd>"+AVP.global_ArtistText+":<a href='"+BS_ajax.arurl+"' title='"+AVP.escapeHTMLString(k.artist)+"'>"+AVP.escapeHTML(AVP.truncateString(k.artist,BS_ajax.maxArtistName))+"</a></dd>"}}if("channel" in k&&AVP.isChannel){BS_ajax.churl=videopagehostUrl+"/channel/"+AVP.getCanonizedString(k.channel);n+="<dd>"+AVP.global_ChannelText+":<a href='"+BS_ajax.churl+"' title='"+AVP.escapeHTMLString(k.channel)+"'>"+AVP.escapeHTML(AVP.truncateString(k.channel,BS_ajax.maxChannelName))+"</a></dd>"}if("category" in k&&AVP.isCategory){BS_ajax.caurl=videopagehostUrl+"/category/"+AVP.getCanonizedString(k.category);BS_ajax.catname=AVP.getCategory(k.category);n+="<dd>"+AVP.global_CategoryText+":<a href='"+BS_ajax.caurl+"' title='"+AVP.escapeHTMLString(BS_ajax.catname)+"'>"+AVP.escapeHTML(AVP.truncateString(BS_ajax.catname,BS_ajax.maxCategoryName))+"</a></dd>"}if("dateFound" in k&&"category" in k&&AVP.isDateFound){if(((k.category.toString()).toLowerCase())=="news"){n+="<dd>"+AVP.global_addedText+":<span>"+AVP.escapeHTML(AVP.getShortDateString(k.dateFound))+"</span></dd>"}}if(("runtime" in k&&AVP.isRuntime)||("viewCount" in k&&AVP.isViewcount)){n+="<dd>";if("viewCount" in k&&AVP.isViewcount){n+="<span class='sviews'>"+AVP.global_ViewsText+":<em>"+AVP.escapeHTML(k.viewCount)+"</em></span>"}if("viewCount" in k&&AVP.isViewcount&&"runtime" in k&&AVP.isRuntime){n+="<span class='sbar'></span>"}if("runtime" in k&&AVP.isRuntime){n+="<span class='srun hg'>"+AVP.escapeHTML(AVP.getRuntimeString(k.runtime))+"</span>"}n+="</dd>"}if("buyPrice" in k&&AVP.isBuyPrice&&AVP.surrogateType=="BS"){n+="<dd class='price'>"+AVP.main_BuyText+":<span class='buy'>"+AVP.escapeHTML(k.buyPrice)+"</span></dd>"}n+="</dl>";n+="<div class='useraction'>";var o="";var p="";if(!isNaN(k.pmmsID)){o=k.pmmsID;p="pmms"}else{if(!isNaN(k.bcID)){o=k.bcID;p="bc"}}if(AVP.surrogateType=="BS"){n+="</div>"}if("channel" in k&&o!=""&&addToPlaylist==1&&AVP.isPlayList){if(((k.channel.toString()).toLowerCase())=="aol music"){n+="<span id= 'playlistId_"+o+"'></span>";if((screen_name=="")||(screen_name=="null")){if(AVP.surrogateType=="BS"){plHref="javascript:vid_SignInWidget(Utils.p_o('resultItem_"+k.id+"'),'',lu,0,0,'playlistSur')"}else{plHref="javascript:vid_SignInWidget(Utils.p_o('searchPlay_"+o+"'),'',lu,0,0,'playlistSearch')"}}else{plHref="javascript:Playlist.list('playlistId_"+o+"','"+p+"');Playlist.hover('resultItem_"+k.id+"')"}if(AVP.surrogateType=="BS"){n+="<div id='addpl_"+k.id+"' class='addpl'>";n+='<a href="'+plHref+"\" class='addbtn'></a><a href=\""+plHref+"\" class='pltxt'>"+AVP.escapeHTML(AVP.global_Add)+"</a>";n+="</div>"}else{if(AVP.surrogateType=="CM"){n+="<div id='searchPlay_"+o+"'></div>";n+="<a class='addply' href=\""+plHref+'"></a>'}}}}if(AVP.surrogateType!="BS"){if("userRating" in k&&AVP.isRating&&tabvalue=="sort:highestRated"){ratingvalue=Math.round(k.userRating*10);n+="<div id='surrating'><div class='rating'><div style='width: "+ratingvalue+"px' class='rated'></div></div></div>"}n+="</div>"}n+="</div></div>"}catch(e){}}}}else{n+=AVP.noData()}if(miid==3110){n+="<div class='clear'></div><div id='brPgMn' class='brow_pagi'><ul id='pgarea' class='pagi'></ul></div>"}else{if(AVP.surrogateType=="BS"&&BS_ajax.VideoSet.totalResultsAvailable>0){n+=AVP.homeallvid()}}return(n)}};AVP.handleUpdate=function(){if(!BS_ajax.pageLoad){$(AVP.surContainer).innerHTML=AVP.surrogateUI()}if(miid==3110){AVP.brtoppagi();if(!AVP.isNoResult){AVP.brbotpagi()}}AVP.isNoResult=false;BS_ajax.pageLoad=false};AVP.handleError=function(d,c){$(AVP.surContainer).innerHTML=AVP.truveoError();AVP.isNoResult=true};AVP.preloader=function(){$(AVP.surContainer).innerHTML="<div style='margin:0 auto;text-align:center;width:100%;' class='preloadImage'></div>"};AVP.getRuntimeString=function(g){var f=parseInt(g);var k=Math.floor(f/3600);var h=(Math.floor(f/60))-(k*60);var l=(f%60);if(k<10){k="0"+k}if(h<10){h="0"+h}if(l<10){l="0"+l}if(k==0){return(h+":"+l)}else{return(k+":"+h+":"+l)}};AVP.escapeHTMLString=function(d){var c=d.replace(/&/g,"&amp;");c=c.replace(/</g,"&lt;");c=c.replace(/>/g,"&gt;");c=c.replace(/'/g,"&rsquo;");c=c.replace(/"/g,"&quot;");return(c)};AVP.escapeHTML=function(d){var c=d.replace(/&/g,"&amp;");c=c.replace(/</g,"&lt;");c=c.replace(/>/g,"&gt;");c=c.replace(/'/g,"&#039;");c=c.replace(/"/g,"&quot;");return(c)};AVP.getShortDateString=function(h){var g=new Date(h);var k=g.getDate();var f=g.getMonth()+1;var l=g.getFullYear().toString();yy=l.substring(2);if(k<10){k="0"+k}if(f<10){f="0"+f}return(f+"/"+k+"/"+yy)};AVP.truncateString=function(f,e){if(f&&(f.length>e)){var d=f.indexOf(";",e);if((d>=0)&&((d-e)<10)){e=d+1}return(f.substr(0,e)+"...")}else{return(f)}};AVP.getCanonizedString=function(b){if(b!=""){b=AVP.replaceHighAscii(b);b=b.toLowerCase();b=b.replace(/[\s_]/g,"-");b=b.replace(/^\-+|\-+$/g,"");b=b.replace(/[&]/g,"and");b=b.replace(/[%]/g,"percent");b=b.replace(/[^a-z0-9\-]/gi,"");b=b.replace(/--+/g,"-")}return(b)};AVP.replaceHighAscii=function(b){if(b!=""){b=b.replace(/\[ￜￜￜￜￜ]/gi,"A");b=b.replace(/\[ￜ]/gi,"AE");b=b.replace(/\[ￜ]/gi,"C");b=b.replace(/\[ￜￜￜￜ]/gi,"E");b=b.replace(/\[ￜ]/gi,"f");b=b.replace(/\[ￜￜￜￜ]/gi,"I");b=b.replace(/\[ￜ]/gi,"N");b=b.replace(/\[ￜￜￜￜￜￜ]/gi,"O");b=b.replace(/\[ￜￜￜￜ]/gi,"U");b=b.replace(/\[ￜ]/gi,"Y")}return(b)};AVP.getCategory=function(d){var c="";if(d!=null&&d.length>0){c=d;d=d.toLowerCase().replace(" ","").trim();for(i=0;i<AVP.loc_category.length;i++){catarraystring=AVP.loc_category[i];catstring=catarraystring.split(",");if(catstring[0]==d){c=catstring[1]}}}return c};var Url={decode:function(b){return this._utf8_decode(unescape(b))},_utf8_decode:function(h){var g="";var f=0;var c=c1=c2=0;while(f<h.length){c=h.charCodeAt(f);if(c<128){g+=String.fromCharCode(c);f++}else{if((c>191)&&(c<224)){c2=h.charCodeAt(f+1);g+=String.fromCharCode(((c&31)<<6)|(c2&63));f+=2}else{c2=h.charCodeAt(f+1);c3=h.charCodeAt(f+2);g+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));f+=3}}}return g}};var ua=navigator.userAgent.toLowerCase();var _message="";var flag=true;AVP.rateState=true;function directory(){}directory.createRequestObject=function(){var a;if(window.XMLHttpRequest){a=new XMLHttpRequest();if(a.overrideMimeType){a.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}return a};directory.itemStateChanged=function(){try{if(http_request.readyState==4||http_request.readyState=="complete"){var a=http_request.responseText;$("dircont").innerHTML=a}}catch(b){$("dircont").innerHTML="No Data to display"}};directory.paginate=function(c,b){directory.makeSelected(c);directory.makeUnselected(curShowId,curQuery);curShowId=c;curQuery=b.replace(/"/g,"&quot;");try{currentHeight=$("dircont").offsetHeight;$("dircont").innerHTML='<div align="center" style="padding:0 0 0 45%";margin:20px 0;"><div class="preloadImage"></div></div>';http_request=new directory.createRequestObject();var d=pagehostUrl+Utils.modFilePath+"?query="+Utils.encodeSplChar(curQuery)+"&isajax=true&_miid=9525";http_request.onreadystatechange=directory.itemStateChanged;http_request.open("GET",d,true);http_request.send(null)}catch(a){$("dircont").innerHTML="access denied"}};directory.makeUnselected=function(b,e){var a="t_"+b;var c=$(a).getElementsByTagName("span")[0].innerHTML;var d='<a href="javascript:void(0);" title="'+c+'" onclick="directory.paginate(\''+b+"','"+e.replace(/'/g,"/'")+"');\">"+c+"</a>";$(a).innerHTML=d;a="b_"+b;$(a).innerHTML=d};directory.makeSelected=function(c){var b="t_"+c;var d=$(b).getElementsByTagName("a")[0].innerHTML;var a='<span class= "selected">'+d+"</span>";$(b).innerHTML=a;b="b_"+c;$(b).innerHTML=a};AVP.UPIsFirst=true;AVP.UPanim=true;AVP.UPpanelMaxWidth=399;AVP.UPpanelMinWidth=100;AVP.UPactive="";var tagLink=new Array();AVP.tagResponse="";AVP.UPclose="<a class='close' href='javascript:AVP.UPhidePanel();'></a>";AVP.UPpreLoader="<div style='margin:0 auto;text-align:center;width:100%;height:45px;' class='preloadImage'></div>";AVP.idType="pmms";AVP.UPshowPanel=function(a,b,c){if(pageutilValue=="false"){AVP.variables=$("pagVar").value;AVP.variableArray=AVP.variables.split("###");AVP.assetid=AVP.variableArray[0];AVP.pmmsid=AVP.variableArray[1];AVP.assettitle=AVP.variableArray[2];AVP.savingText=AVP.variableArray[3];AVP.controllerUrl=AVP.variableArray[4];AVP.tagCnt=AVP.variableArray[5];AVP.tagSort=AVP.variableArray[6];AVP.skintag=AVP.variableArray[7];AVP.skintag_val=AVP.variableArray[8];AVP.refId=AVP.variableArray[9];AVP.upm_pageUrl=AVP.variableArray[10];AVP.shareShowTitle=AVP.variableArray[11];AVP.utilCountryCode=AVP.variableArray[12];AVP.rating_AssetId=AVP.variableArray[13];AVP.userRating=AVP.variableArray[14];AVP.upjRating=AVP.variableArray[15];AVP.assetType=AVP.variableArray[16];AVP.ratePgUrl=AVP.variableArray[17];AVP.ratingWidth=AVP.variableArray[18];AVP.utility_channel=AVP.variableArray[19];AVP.utility_videoPlayerEmbedTag=AVP.variableArray[20];AVP.utility_isPartnerAsset=AVP.variableArray[21];AVP.isPartnerSnagCode=AVP.variableArray[22];AVP.utility_pageUrl=AVP.variableArray[23];AVP.partner_snagCode=AVP.variableArray[24];AVP.partner_isSnagEnable=AVP.variableArray[25];AVP.snagMySpace=AVP.variableArray[26];AVP.uEmbedUrl=AVP.variableArray[27];AVP.defaultText=AVP.variableArray[28];AVP.bcid=AVP.variableArray[29]}if(AVP.UPanim){if(c==1){AVP.UPcomPanel(0)}else{if(c==2){AVP.UPshaPanel(0)}else{if(c==3){AVP.UPsavPanel(0)}else{if(c==4){AVP.UPratPanel()}else{if(c==5){AVP.UPembPanel()}}}}}$("upmoverlay").style.display="block";$("upmoverlay").style.textAlign="left";if(a==AVP.UPactive){return}for(k=1;k<=5;k++){$("simg"+k).className="ico"+k}$(b).className=b;$("upmpopup").style.border="1px solid #204f65";if(AVP.UPIsFirst){UPfx.start({width:AVP.UPpanelMaxWidth}).chain(function(){$(a).style.display="block"});AVP.UPIsFirst=false}else{AVP.UPanim=false;$("upmoverlay").style.textAlign="center";$("upmpopup").style.margin="0 auto";$(AVP.UPactive).style.display="none";UPfx.start({}).chain(function(){this.start({width:AVP.UPpanelMinWidth})}).chain(function(){this.start({width:AVP.UPpanelMaxWidth})}).chain(function(){this.start.delay(100,this,{});$(a).style.display="block";AVP.UPanim=true})}AVP.UPactive=a}};AVP.UPcomPanel=function(b){var a="";a+="<span class='tl'>"+AVP.upm_commentTab_name+"</span>";a+=AVP.UPclose;a+="<div id='upmlayer1_outer' class='ua'>";a+="<div id='upmlayer1_con'>";switch(b){case 1:a+="<p class='sl'>"+AVP.upm_UmustBe+" <a href=\"javascript:vid_SignInWidget(Utils.p_o('upmlayer1_con'),'',lu,0,0,'commentUtility');\" class='link'>"+AVP.upm_signedIn+"</a> "+AVP.upm_toUseThis+"</p>";break;case 2:a+="<p>"+AVP.upm_thankForComment+"</p>";a+="<p><a href='javascript:AVP.UPshowCommentsPage();'>"+AVP.upm_viewYourCmt+"</a> | <a href='javascript:AVP.UPcomPanel(0);'>"+AVP.upm_addantrcmt+"</a></p>";break;case 3:a+="<p>"+Comment.cmError[1]+"</p>";a+="<p><a href='javascript:AVP.UPcomPanel(0);'>"+AVP.global_Continue+"</a></p>";break;case 4:a+="<p>"+Comment.cmError[2]+"</p>";a+="<p><a href='javascript:AVP.UPcomPanel(0);'>"+AVP.global_Continue+"</a></p>";break;case 5:a+="<p>"+Comment.cmError[3]+"</p>";a+="<p><a href='javascript:AVP.UPcomPanel(0);'>"+AVP.global_Continue+"</a></p>";break;default:if((screen_name=="")||(screen_name=="null")){AVP.UPcomPanel(1);return}a+="<div class='txtar'><textarea name='commentText' id='commentText'></textarea></div>";a+="<a href='javascript:AVP.addComment();' class='button'>"+AVP.global_Add+"</a>"}a+="</div>";a+="</div>";$("upmlayer1").innerHTML=a};AVP.UPshaPanel=function(b){var a="";a+="<span class='tl'>"+AVP.upm_shareTab_name+"</span>";a+=AVP.UPclose;a+="<div id='upmlayer2_outer' class='ua'>";a+="<div id='upmlayer2_con'>";switch(b){case 1:a+="<p class='par'>"+AVP.upm_ImNotification+"</p>";a+="<p class='link'>";a+="<a target='_blank' href='"+AVP.aimUrl+"'>"+AVP.upm_shareTab_downloadIm+"</a> |";if(AVP.shareShowTitle=="false"){a+='<a href="javascript:AVP.openAIM();" alt=\''+AVP.escapeHTMLString(AVP.assettitle)+"'>"+AVP.upm_shareTab_sendInstantMessage+"</a>"}else{a+="<a href=\"javascript:AVP.openAIM('"+AVP.upm_pageUrl+"','"+AVP.escapeHTMLString(AVP.assettitle)+"');\" alt='"+AVP.escapeHTMLString(AVP.assettitle)+"'>"+AVP.upm_shareTab_sendInstantMessage+"</a>"}a+="</p>";a+="<div class='back'><a href='javascript:AVP.UPshaPanel(0);' class='link'>&lt; "+AVP.global_backText+"</a></div>";break;default:a+="<div class='share'>";a+="<a href='javascript:AVP.UPshaPanel(1);' class='link'><span class='im'></span>"+AVP.upm_shareTab_imThisVideo+"</a>";if(AVP.shareShowTitle=="false"){a+="<a href=\"javascript:AVP.openEMail('"+AVP.upm_pageUrl+"');\" class='link'><span class='email'></span>"+AVP.upm_shareTab_emailThisVideo+"</a>"}else{a+="<a href=\"javascript:AVP.openEMail('"+AVP.upm_pageUrl+"','"+AVP.escapeHTMLString(AVP.assettitle)+"');\" class='link'><span class='email'></span>"+AVP.upm_shareTab_emailThisVideo+"</a>"}AVP.newVideoGiftUrl=AVP.upm_VideoGiftUrl;if(AVP.newVideoGiftUrl!=""&&AVP.newVideoGiftUrl!="null"){if(AVP.pmmsid!="null"){AVP.newVideoGiftUrl=AVP.newVideoGiftUrl+"pmmsid="+AVP.pmmsid}else{AVP.newVideoGiftUrl=AVP.newVideoGiftUrl+"truveoid="+AVP.assetid}a+="<a target='_blank' href='"+AVP.newVideoGiftUrl+"' class='link'><span class='gift'></span>"+AVP.upm_shareTab_videoGiftVideo+"</a>"}a+="</div>"}a+="</div>";a+="</div>";$("upmlayer2").innerHTML=a};AVP.UPsavPanel=function(a){var b="";var c="<div class='back'><a href='javascript:AVP.UPsavPanel(0);' class='link'>&lt; "+AVP.global_backText+"</a></div>";b+="<span class='tl'>"+AVP.upm_saveTab_name+"</span>";b+=AVP.UPclose;b+="<div id='upmlayer3_outer' class='ua'>";b+="<div id='upmlayer3_con'>";switch(a){case 1:b+="<p class='sl'>"+AVP.upm_UmustBe+" <a href=\"javascript:vid_SignInWidget(Utils.p_o('upmlayer3_con'),'',lu,0,0,'commentUtility');\" class='link'>"+AVP.upm_signedIn+"</a> "+AVP.upm_toUseThis+"</p>";break;case 2:b+="<div class='saicon'>";AVP.bookmarkUI();b+=AVP.bookmarkHTML;b+="</div>";b+=c;break;case 3:b+="<div class='tag'>"+AVP.upm_tagVideo+"<input type='Text' maxlength='200' id='tag' onfocus=\"this.value=''\" value='"+AVP.upm_tagUseCommas+"'>";b+="<a href='javascript:AVP.UPsavPanel(7);' id = 'viewAll' class='link vlink'>"+AVP.upm_tagViewAll+"</a>";b+="</div>";b+="<div class='tagbut'><a href='javascript:AVP.UPclearTagsInput()' class='button'>"+AVP.upm_tagClear+"</a><a href=\"javascript:AVP.UPaddTag();\" class='button'>"+AVP.upm_tagSaveTag+"</a></div>";b+=c;break;case 4:b+="<p>"+AVP.upm_tagNoValidTags+"</p>";if(AVP.tagResponse!="error"&&AVP.tagResponse!="null"){b+="<p><a href='javascript:AVP.UPsavPanel(7);' class='link'>"+AVP.upm_tagViewAll+"</a></p>"}b+=c;break;case 5:b+="<p>"+AVP.upm_tagYourTagsAdded+"</p>";b+="<p><a href=\"javascript:AVP.UPshowTagSavePanel(7);\" class='link'>"+AVP.upm_tagViewAll+"</a></p>";b+=c;break;case 6:b+="<p>"+AVP.upm_tagDirtyTags+"</p>";if(AVP.tagResponse!="error"&&AVP.tagResponse!="null"){b+="<p><a href='javascript:AVP.UPsavPanel(7);' class='link'>"+AVP.upm_tagViewAll+"</a></p>"}b+=c;break;case 7:b+="<div class = 'tag' id='view_AllTags'>";b+="<span>"+AVP.upm_tagTagsColon+"</span>";b+="<div class='tags' id='tagDisplay'>"+tagLink+"</div>";b+="<div class='tback'><a href='javascript:AVP.UPsavPanel(0);' class='link'>&lt; "+AVP.global_backText+"</a></div>";b+="</div>";break;case 8:b+="<p>"+AVP.upm_tagServerError+"</p>";b+="<p>"+AVP.upm_tagServerErrorSecondLine+"</p>";b+=c;break;case 9:b+="<div class='tag'>"+AVP.upm_tagVideo+"<input type='Text' maxlength='200' id='tag' onfocus=\"this.value=''\" value='"+AVP.upm_tagUseCommas+"'>";b+="</div>";b+="<div class='tagbut'><a href='javascript:AVP.UPclearTagsInput()' class='button'>"+AVP.upm_tagClear+"</a><a href=\"javascript:AVP.UPaddTag();\" class='button'>"+AVP.upm_tagSaveTag+"</a></div>";b+=c;break;default:b+="<div class='sabut'>";b+="<a href='javascript:AVP.UPsavPanel(2);' class='button'>"+AVP.upm_bookMark+"</a>";if((screen_name=="")||(screen_name=="null")){b+="<a href=\"javascript:AVP.UPsavPanel(1);\" class='button'>"+AVP.upm_tag+"</a>"}else{b+="<a href=\"javascript:AVP.UPshowTagSavePanel(3);\" class='button'>"+AVP.upm_tag+"</a>"}if(AVP.pmmsid=="null"&&AVP.bcid!="null"&&AVP.bcid.length>0){AVP.pmmsid=AVP.bcid;AVP.idType="bc"}if(enable_addToPlaylist=="1"&&AVP.pmmsid!="null"&&AVP.pmmsid.length>0&&AVP.utility_channel=="AOL Music"){if((screen_name=="")||(screen_name=="null")){b+="<a href=\"javascript:Playlist.list('0','"+AVP.idType+"');\" class='button'>"+AVP.upm_playlistAddToPlaylist+"</a>"}else{b+="<a href=\"javascript:Playlist.list('"+AVP.escapeHTMLString(AVP.pmmsid)+"','"+AVP.idType+"');\" class='button'>"+AVP.upm_playlistAddToPlaylist+"</a>"}}b+="</div>"}b+="</div>";b+="</div>";$("upmlayer3").innerHTML=b};AVP.UPratPanel=function(){var a="";a+="<span class='tl'>"+AVP.upm_rateTab_name+"</span>";a+=AVP.UPclose;a+="<div id='upmlayer4_outer' class='ua'>";a+="<div id='upmlayer4_con'>";a+="<div class='rate'>";a+="<div class='txt'><span id='ratinginfo"+AVP.escapeHTMLString(AVP.rating_AssetId)+"'>"+AVP.upm_currentVideoRating+"</span>";a+="<span id='thanks' class='link dnone'>"+AVP.global_Thanks+"</span></div>";a+="<div id='upmrating'>";a+="<ul class='star-rating'>";a+="<li class='current-rating' id='currentrating"+AVP.escapeHTMLString(AVP.rating_AssetId)+"' style='width:"+AVP.ratingWidth+"'></li>";if(AVP.upjRating=="true"){a+="<li><a href=\"javascript:AVP.UPrateAsset('"+AVP.escapeHTMLString(AVP.rating_AssetId)+"',1,'"+AVP.escapeHTMLString(AVP.assetType)+"','"+AVP.escapeHTMLString(AVP.ratePgUrl)+"');\" title='"+AVP.escapeHTMLString(AVP.upm_oneStar)+"' class='one-star' id='"+AVP.escapeHTMLString(AVP.rating_AssetId)+"_star1'>1</a></li>";a+="<li><a href=\"javascript:AVP.UPrateAsset('"+AVP.escapeHTMLString(AVP.rating_AssetId)+"',2,'"+AVP.escapeHTMLString(AVP.assetType)+"','"+AVP.escapeHTMLString(AVP.ratePgUrl)+"');\" title='"+AVP.escapeHTMLString(AVP.upm_twoStar)+"' class='two-stars' id='"+AVP.escapeHTMLString(AVP.rating_AssetId)+"_star2'>2</a></li>";a+="<li><a href=\"javascript:AVP.UPrateAsset('"+AVP.escapeHTMLString(AVP.rating_AssetId)+"',3,'"+AVP.escapeHTMLString(AVP.assetType)+"','"+AVP.escapeHTMLString(AVP.ratePgUrl)+"');\" title='"+AVP.escapeHTMLString(AVP.upm_threeStar)+"' class='three-stars' id='"+AVP.escapeHTMLString(AVP.rating_AssetId)+"_star3'>3</a></li>";a+="<li><a href=\"javascript:AVP.UPrateAsset('"+AVP.escapeHTMLString(AVP.rating_AssetId)+"',4,'"+AVP.escapeHTMLString(AVP.assetType)+"','"+AVP.escapeHTMLString(AVP.ratePgUrl)+"');\" title='"+AVP.escapeHTMLString(AVP.upm_fourStar)+"' class='four-stars' id='"+AVP.escapeHTMLString(AVP.rating_AssetId)+"_star4'>4</a></li>";a+="<li><a href=\"javascript:AVP.UPrateAsset('"+AVP.escapeHTMLString(AVP.rating_AssetId)+"',5,'"+AVP.escapeHTMLString(AVP.assetType)+"','"+AVP.escapeHTMLString(AVP.ratePgUrl)+"');\" title='"+AVP.escapeHTMLString(AVP.upm_fiveStar)+"' class='five-stars' id='"+AVP.escapeHTMLString(AVP.rating_AssetId)+"_star5'>5</a></li>"}else{a+="<li><a href=\"javascript:submitRating('"+AVP.escapeHTMLString(AVP.assetid)+"',1,'');\" title='"+AVP.escapeHTMLString(AVP.upm_oneStar)+"' class='one-star' id='"+AVP.escapeHTMLString(AVP.assetid)+"_star1'>1</a></li>";a+="<li><a href=\"javascript:submitRating('"+AVP.escapeHTMLString(AVP.assetid)+"',2,'');\" title='"+AVP.escapeHTMLString(AVP.upm_twoStar)+"' class='two-stars' id='"+AVP.escapeHTMLString(AVP.assetid)+"_star2'>2</a></li>";a+="<li><a href=\"javascript:submitRating('"+AVP.escapeHTMLString(AVP.assetid)+"',3,'');\" title='"+AVP.escapeHTMLString(AVP.upm_threeStar)+"' class='three-stars' id='"+AVP.escapeHTMLString(AVP.assetid)+"_star3'>3</a></li>";a+="<li><a href=\"javascript:submitRating('"+AVP.escapeHTMLString(AVP.assetid)+"',4,'');\" title='"+AVP.escapeHTMLString(AVP.upm_fourStar)+"' class='four-stars' id='"+AVP.escapeHTMLString(AVP.assetid)+"_star4'>4</a></li>";a+="<li><a href=\"javascript:submitRating('"+AVP.escapeHTMLString(AVP.assetid)+"',5,'');\" title='"+AVP.escapeHTMLString(AVP.upm_fiveStar)+"' class='five-stars' id='"+AVP.escapeHTMLString(AVP.assetid)+"_star5'>5</a></li>"}a+="</ul>";a+="</div>";a+="</div>";a+="</div>";a+="</div>";if(AVP.rateState){$("upmlayer4").innerHTML=a;AVP.rateState=false}};AVP.UPembPanel=function(){var a="";a+="<span class='tl'>"+AVP.upm_embedTab_name+"</span>";a+=AVP.UPclose;a+="<div id='upmlayer5_outer' class='ua'>";a+="<div id='upmlayer5_con'>";a+="<div class='embed'>";if((AVP.utility_videoPlayerEmbedTag!="null"&&AVP.utility_isPartnerAsset=="true"&&AVP.isPartnerSnagCode=="true")||(AVP.utility_videoPlayerEmbedTag!="null"&&AVP.utility_isPartnerAsset=="false")){if(AVP.snagMySpace!="null"&&AVP.snagMySpace.length>0){if(AVP.uEmbedUrl!="null"){AVP.snagMySpace+=AVP.uEmbedUrl}a+="<input type='radio' class='rad' name='embed' onclick=\"AVP.checkForEmbedoption('"+AVP.escapeHTMLQuotes(AVP.snagMySpace)+"');\" /><span class='radtxt'>"+AVP.upm_embedTab_myspace+"</span>"}if(AVP.uEmbedUrl!="null"){AVP.utility_videoPlayerEmbedTag+=AVP.uEmbedUrl}a+="<input type='radio' class='rad' name='embed' onclick=\"AVP.checkForEmbedoption('"+AVP.escapeHTMLQuotes(AVP.utility_videoPlayerEmbedTag)+"');\" checked='checked' /><span class='radtxt'>"+AVP.upm_embedTab_other+"</span>";a+="<input type='radio' class='rad' name='embed' onclick=\"AVP.checkForEmbedoption('"+AVP.upm_pageUrl+"');\" /><span class='radtxt'>"+AVP.upm_embedTab_videoUrl+"</span>"}else{a+="<input type='radio' class='rad' checked='checked' /><span class='radtxt'>"+AVP.upm_embedTab_videoUrl+"</span>"}if(AVP.defaultText!="null"&&AVP.defaultText.length>0){AVP.defaultText=AVP.escapeHTMLQuotes(AVP.defaultText)}a+="</div>";a+="<div class='emcpy'><input id='txtembed' onclick=\"AVP.__setFocus('txtembed');\" type='Text' readonly='readonly' class='cpy' value='"+AVP.defaultText+"'/>";a+="<a href='javascript:void(0);' onclick=\"AVP.copyFieldToClip($('txtembed'),'http://www.aolcdn.com/ch_video/_clipboard.swf');\" class='button'>"+AVP.global_Copy+"</a>";a+="</div>";a+="</div>";a+="</div>";$("upmlayer5").innerHTML=a};AVP.UPclearTagsInput=function(){$("tag").value=""};AVP.UPshowIcon=function(b,a){$("txtdef").style.display="none";$(b).style.display="block";$(a).style.display="block"};AVP.UPhideIcon=function(b,a){$(b).style.display="none";$(a).style.display="none";$("txtdef").style.display="block"};AVP.UPhidePanel=function(a){if($("comAolMusicModulesFlyoutBody")!=null){$("comAolMusicModulesFlyoutBody").style.display="none"}for(j=1;j<=5;j++){$("upmlayer"+j).style.display="none"}$("upmpopup").style.border=0;$("upmpopup").style.margin=0;$("upmpopup").style.width=0;$("txtdef").style.display="block";for(l=1;l<=5;l++){$("simg"+l).className="ico"+l}AVP.UPIsFirst=true;$("upmoverlay").style.display="none";AVP.UPactive=""};AVP.checkForEmbedoption=function(a){$("txtembed").value=a};AVP.__setFocus=function(){$("txtembed").focus();$("txtembed").select()};AVP.copyFieldToClip=function(f,e){AVP.__setFocus();if(f.createTextRange){var b=f.createTextRange();if(b){b.execCommand("Copy")}}else{var d="flashcopier";if(!$(d)){var a=document.createElement("div");a.id=d;document.body.appendChild(a)}$(d).innerHTML="";var c='<embed src="'+e+'" FlashVars="clipboard='+escape(f.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';$(d).innerHTML=c}};AVP.openEMail=function(b,a){if(b&&b.length){a=(a)?a:"";var c=ua.indexOf("netscape")!=-1;if(c){b=escape(b);a=escape(a)}if(a==""){document.location="mailto:?subject="+escape(b)+"&body="+escape(b)}else{document.location="mailto:?subject="+escape(a)+"&body="+escape(a+"\n\n"+b)}}};AVP.openAIM=function(e,a){var g=ua.indexOf("aol")!=-1;var h=ua.indexOf("cs 2000")!=-1;var b=(g||h);var m;if(e){m=e}else{m=document.location}var d="";a=(a)?a:"";if(b){m=(m)?m:top.currUrl;shareUrl=(a=="")?'aol://9293::<a href="'+e+'">'+e+"</a>":'aol://9293::<a href="'+e+'">'+a+"</a>";document.location=shareUrl}else{d=(a=="")?'<a href="'+m+'">'+m+"</a>":'<a href="'+m+'">'+a+"</a>"}var f=ua.indexOf("firefox")!=-1;var o=(ua.indexOf("america online browser")!=-1)&&(parseFloat(ua.substring(ua.indexOf("rev")+3))>=1.2);var c=ua.indexOf("safari")!=-1;if(!f&&!o&&!c){d=escape(d)}window.location="aim:GoIm?message="+escape(d)};AVP.addComment=function(){if((screen_name=="")||(screen_name=="null")){vid_SignInWidget($("ComTxtWidget"),"");return}var a=$("commentText");var b=a.value;if(b.search(/[^ \t\r\n]/)==-1){AVP.UPcomPanel(4);return}if(b.length>500){AVP.UPcomPanel(5);return}b=Comment.removeHtml(b);b=b.replace(/^[\s]+/,"").replace(/[\s]+$/,"").replace(/[\s]{2,}/," ");if(b.length==0){AVP.UPcomPanel(4);return}Comment.addSource="UP";$("upmlayer1_con").innerHTML=AVP.UPpreLoader;Comment.vid_AddComment(Comment.assetID,b)};AVP.UPshowCommentsPage=function(){if(Comment.callSource=="pbl"){window.scrollTo(0,600);return}if(Comment.callSource=="nopbl"){if((Comment.playbackURL!=="")||(Comment.playbackURL!="null")){window.location=Comment.playbackURL}}};AVP.UPshowTagSavePanel=function(b){$("upmlayer3_con").innerHTML=AVP.UPpreLoader;var c="http://"+document.location.host+"/"+AVP.controllerUrl;ajaxReq=new AVP.UPcreateRequestObject();var d=c+"?action=query&refId="+AVP.refId+"&sortBy="+AVP.tagSort+"&count="+AVP.tagCnt+"&dummy="+new Date().getTime();ajaxReq.onreadystatechange=function(){try{if(ajaxReq.readyState==4||ajaxReq.readyState=="complete"){AVP.tagResponse=ajaxReq.responseText.trim();var g=AVP.tagResponse.toString();var e=g.length;var m=g.substring(1,e-1);var o=m.split(",");if(AVP.tagResponse!="error"&&AVP.tagResponse!="null"){for(var f=0;f<o.length;f++){if(AVP.skintag_val=="null"){AVP.skintag_val=""}else{AVP.skintag_val=AVP.skintag_val}tagLink[f]='<a href="http://'+document.location.host+"/video-search/tag/"+o[f].trim()+AVP.skintag_val+'">'+o[f].trim()+" </a>"}AVP.UPsavPanel(b);return}else{AVP.UPsavPanel(9);return}if(AVP.tagResponse=="error"){AVP.UPsavPanel(8);return}}}catch(h){AVP.UPsavPanel(8);return}};try{ajaxReq.open("GET",d,true);ajaxReq.send(null)}catch(a){AVP.UPsavPanel(8);return}};AVP.UPcreateRequestObject=function(){var a;if(window.XMLHttpRequest){a=new XMLHttpRequest();if(a.overrideMimeType){a.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}return a};AVP.UPaddTag=function(){ajaxReq=new AVP.UPcreateRequestObject();var g=$("tag").value;if(g.search(/\]|\[|\{|\}|\(|\)|\<|\>|\+|\*|=|;|:|\$|\%|\?|\#|\"|\!|\'|\/|\@|\&|\\|(  )/)==-1&&g!=""&&g!=AVP.upm_tagUseCommas){var f=g.split(",");for(var d=0;d<f.length;d++){if(f[d].length>32){f[d]=f[d].substr(0,32)}}var b="http://"+document.location.host+"/"+AVP.controllerUrl;var c=b+"?action=add&refId="+AVP.refId+"&text="+f;$("upmlayer3_con").innerHTML=AVP.UPpreLoader;ajaxReq.onreadystatechange=function(){try{if(ajaxReq.readyState==4||ajaxReq.readyState=="complete"){AVP.tagResponse=ajaxReq.responseText.trim();if(AVP.tagResponse=="Success"){AVP.UPsavPanel(5);tagLink=new Array();return}else{if(AVP.tagResponse=="TRRI"){if(flag){AVP.UPsavPanel(6);return}else{AVP.UPsavPanel(6);return}}else{if(AVP.tagResponse=="Failure"){if(flag){AVP.UPsavPanel(4);return}else{AVP.UPsavPanel(4);return}}else{if(AVP.tagResponse=="error"){AVP.UPsavPanel(8);return}}}}}}catch(e){AVP.UPsavPanel(8);return}};try{ajaxReq.open("GET",c,true);ajaxReq.send(null)}catch(a){AVP.UPsavPanel(8);return}}else{if(flag){AVP.UPsavPanel(4);return}else{AVP.UPsavPanel(4);return}}};AVP.UPrateAsset=function(c,g,b,h){$("ratinginfo"+c).innerHTML="Saving...";ajaxReq=new AVP.UPcreateRequestObject();var a="http://"+document.location.host+"/"+h;var f=a+"?id="+c+"&type="+b+"&rate="+g;ajaxReq.onreadystatechange=function(){try{if(ajaxReq.readyState==4||ajaxReq.readyState=="complete"){var p=ajaxReq.responseText.trim();if(p=="Success"){var m=20*g;$("currentrating"+c).style.width=m+"%";$("ratinginfo"+c).style.display="none";$("thanks").style.display="block";for(i=1;i<6;i++){var o=$(c+"_star"+i);o.parentNode.removeChild(o)}}else{if(p=="Failure"){}}}}catch(e){}};try{ajaxReq.open("GET",f,true);ajaxReq.send(null)}catch(d){}};AVP.escapeHTMLQuotes=function(a){var b=a.replace(/'/g,"&quot;");b=b.replace(/"/g,"&quot;");return(b)};AVP.bookmarkUI=function(){AVP.bookmarkHTML="";if(AVP.utilCountryCode=="JP"){AVP.bookmarkHTML+="<a target='_blank' href='http://www.technorati.jp/faves?add="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"' class='tech' title='"+AVP.upm_smtToTechnorati+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://bookmark.fc2.com/user/post?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"&description=###DESC###' class='fc2' title='"+AVP.upm_smtToFC2Bookmark+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://www.japansoc.com/submit?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"' class='japansoc' title='"+AVP.upm_smtToJapanSoc+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://clip.livedoor.com/redirect?link="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"' class='livedoor' title='"+AVP.upm_smtToLivedoor+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://b.hatena.ne.jp/add?mode=confirm&is_bm=1&title="+AVP.escapeHTMLString(AVP.assettitle)+"&url="+AVP.upm_pageUrl+"' class='hatena' title='"+AVP.upm_smtToBhatena+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://delicious.com/save?jump=close&v=4&noui&jump=close&title="+AVP.escapeHTMLString(AVP.assettitle)+"&url="+AVP.upm_pageUrl+"' class='del' title='"+AVP.upm_smtToDelicious+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?opener=bm&ei=UTF-8&t="+AVP.escapeHTMLString(AVP.assettitle)+"&u="+AVP.upm_pageUrl+"' class='yahoo' title='"+AVP.upm_smtToYahooBookmark+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href='http://clip.nifty.com/create?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"' class='nifty' title='"+AVP.upm_smtToClipNifty+"'></a>"}else{AVP.bookmarkHTML+="<a target='_blank' href=\"http://favorites.my.aol.com/ffclient/AddBookmark?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='aol' title='"+AVP.escapeHTMLString(AVP.upm_smtToAol)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://digg.com/submit?phase=2&url="+AVP.upm_pageUrl+"&Title="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='digg' title='"+AVP.escapeHTMLString(AVP.upm_smtToDigg)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://del.icio.us/post?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='del' title='"+AVP.escapeHTMLString(AVP.upm_smtToDel)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://www.newsvine.com/_wine/save?u="+AVP.upm_pageUrl+"&h="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='vine' title='"+AVP.escapeHTMLString(AVP.upm_smtToNewsvine)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://technorati.com/faves?add="+AVP.upm_pageUrl+"\" class='tech' title='"+AVP.escapeHTMLString(AVP.upm_smtToTechnorite)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://reddit.com/submit?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='red' title='"+AVP.escapeHTMLString(AVP.upm_smtToRedit)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://ma.gnolia.com/bookmarklet/add?url="+AVP.upm_pageUrl+"&title="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='mag' title='"+AVP.escapeHTMLString(AVP.upm_smtToMangolia)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://www.blinklist.com/index.php?action=Blink/addblink.php&Url="+AVP.upm_pageUrl+"&Title="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='blink' title='"+AVP.escapeHTMLString(AVP.upm_smtToBlink)+"'></a>";AVP.bookmarkHTML+="<a target='_blank' href=\"http://www.furl.net/storeIt.jsp?&u="+AVP.upm_pageUrl+"&t="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='furl' title='"+AVP.escapeHTMLString(AVP.upm_smtToFurl)+"'></a>";if(AVP.utilCountryCode=="US"){AVP.bookmarkHTML+="<a target='_blank' href=\"http://www.propeller.com/submit/?U="+AVP.upm_pageUrl+"&T="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='net' title='"+AVP.escapeHTMLString(AVP.upm_smtToPropeller)+"'></a>"}else{AVP.bookmarkHTML+="<a target='_blank' href=\"https://www.netscape.com/submit/?U="+AVP.upm_pageUrl+"&T="+AVP.escapeHTMLString(AVP.assettitle)+"\" class='net' title='"+AVP.escapeHTMLString(AVP.upm_smtToNetscape)+"'></a>"}}};function TopNav(){}TopNav.doPagination=function(b){try{if(b!=""){$("hor_nav_pagi").innerHTML=TopNav.pagi[b]}for(var c=1;c<=pageCount;c++){Surrogate.disnone("layer_"+c);if(c==b){Surrogate.disblock("layer_"+c)}}}catch(a){}};AVP.condensedInit=function(b,d,c,a){AVP.isTitle=true;AVP.isSeasonNumber=true;AVP.isEpisodeNumber=true;AVP.isArtist=true;AVP.isChannel=true;AVP.isCategory=true;AVP.isDateFound=false;AVP.isRuntime=true;AVP.isBuyPrice=true;AVP.isPlayList=true;AVP.isViewcount=true;AVP.isRating=true;AVP.surrogateType="CM";AVP.surContainer="sur_inner";AVP.isNoResult=false;AVP.handleInti(b,d,c,a)};var tabtext="",tabtitle="",skin="",cache="",subtabtitle="",subtabnm="",curQueryForSeeAll="";AVP.handleCmResult=function(a){try{curQuery=Query;curQuery=curQuery.replace(/&lt;/g,"<");curQuery=curQuery.replace(/&gt;/g,">");if(curQuery==null||(curQuery!=null&&curQuery.replace(/( )/g,"").length==0)){curQuery="%22%22"}if(curQuery.match(/\/+/)==curQuery){curQuery="%2F"}if(curQuery.indexOf("/")==0){curQuery="%2F"+curQuery.substring(1,curQuery.length)}if(curQuery=="%2F"){curQuery="/"}if(curQuery.indexOf("%2F")==0){curQuery=curQuery.replace("%2F","/")}if(a!=""){curQuery=curQuery+" "+a}BS_ajax.maxTitle=cmMaxTitle;BS_ajax.maxArtistName=cmMaxArtist;BS_ajax.showAdult=0;BS_ajax.results=12;BS_ajax.loaded=false;BS_ajax.pageLoad=false;AVP.familyFilter=familyFilter;if(familyFilter==0){BS_ajax.showAdult=1}curQueryForSeeAll=curQuery;if(languageName&&languageName!=""){curQuery+=" language:"+languageName}AVP.thisCountry=isThisCountry;if(isThisCountry=="true"){curQuery+=" "+tModifier}AVP.condensedInit(curQuery,false,"","");var b=setTimeout("AVP.dumpSL();",AVP.refreshTime);if(tabtitle==tabname){if(subtabtitle==null||subtabtitle==""){subtabnm=subtabname}else{subtabnm=subtabtitle}tabtext=tabtitle+"-"+subtabnm}else{tabtext=tabtitle}if(isIcePage){skin=skinComscore}else{skin="television"}cache=Math.floor(Math.random()*1000000);Utils.Searchtracking("searchtab",tabtext,skin,cache);if(adType=="DC"&&adDivId&&adDivId.length>0){adsReloadAd(adDivId)}else{if(adType=="ADTECH"){Ads.reloadAds(adType)}}}catch(c){$("comlf").innerHTML="access denied"}};AVP.dumpSL=function(){if(!AVP.isNoResult&&$("sur_inner")){$("sur_inner").innerHTML+='<div class="std_pagi"><div class="allvid" id="br_allvid">'+AVP.createSeeAllLink("more","query",curQueryForSeeAll,AVP.global_SeeMoreVideos)+"</div></div>";if(dmnTopResultsflag&&$("comp_sl_top")){$("comp_sl_top").innerHTML=s;$("comp_sl_top").style.display="block"}}};var tabvalue="";AVP.CmMainTab=function(){tabvalue=document.sFilter.maintab.options[document.sFilter.maintab.selectedIndex].value;tabtitle=document.sFilter.maintab.options[document.sFilter.maintab.selectedIndex].title;if(document.sFilter.maintab.selectedIndex==1){document.sFilter.subtab.disabled=false;document.sFilter.subtab.selectedIndex=3}else{document.sFilter.subtab.disabled=true}AVP.handleCmResult(tabvalue)};AVP.CmSubTab=function(){tabvalue=document.sFilter.subtab.options[document.sFilter.subtab.selectedIndex].value;subtabtitle=document.sFilter.subtab.options[document.sFilter.subtab.selectedIndex].title;AVP.handleCmResult(tabvalue)};AVP.CmLanguageUpdate=function(){languageName=document.sFilter.lantab.options[document.sFilter.lantab.selectedIndex].value;if(document.sFilter.subtab.disabled){AVP.CmMainTab()}else{AVP.CmSubTab()}};AVP.featuredInit=function(){BS_ajax=null;BS_ajax=new TruveoVideoSearch(truveo_appid);BS_ajax.results=fcVideoCount;BS_ajax.showAdult=fcShowAdult;BS_ajax.maxTitle=fcMaxTitleLength;BS_ajax.maxChannelName=maxChannelName;BS_ajax.maxCategoryName=maxCategoryName;BS_ajax.loaded=true;BS_ajax.pageLoad=false;AVP.isTitle=true;AVP.isSeasonNumber=false;AVP.isEpisodeNumber=false;AVP.isArtist=false;AVP.isChannel=true;AVP.isCategory=true;AVP.isDateFound=false;AVP.isRuntime=true;AVP.isBuyPrice=false;AVP.isPlayList=false;AVP.isViewcount=true;AVP.isRating=false;AVP.surrogateType="FC";AVP.isNoResult=false;AVP.handleFCResults()};AVP.handleFCResults=function(){try{if(fcCount!=0&&!AVP.isNoResult){var a=AVP.createSeeAllLink("","query",AVP.FC_queries[fcCount-1],AVP.global_SeeAllVideos);$("col"+(fcCount)+"_pagi").innerHTML=a}AVP.isNoResult=false;if(fcCount<3){execute=true;AVP.surContainer="col"+(fcCount+1)+"_res";AVP.handleInti(AVP.FC_queries[fcCount],false,"","");fcCount=fcCount+1;ftTimer=setTimeout("AVP.handleFCResults();",AVP.refreshTime)}}catch(b){}};AVP.createSeeAllLink=function(a,b,e,d){var c='<a class="'+a+'" title="'+d+'" href="'+AVP.createHref(b,e)+'">'+d+"</a><span></span>";return c};AVP.createHref=function(a,d){try{var c=videopagehostUrl;d=d.replace(/[%]/g,"%25");d=d.replace(/[ ]/g,"%20");d=d.replace(/[:]/g,"%3A");d=d.replace(/\"/g,"%22");d=d.replace(/[@]/g,"%40");d=d.replace(/[+]/g,"%2B");d=d.replace(/\//g,"%2F");d=d.replace(/[\']/g,"%27");c+="/video-search/"+a+"/"+d;if(isIcePage){c+="/skin/"+skinValue}c+="/familyfilter/"+familyFilter+"/type/standard";thiscountry=1;if(isThisCountry!="true"){thiscountry=0}c+="/thiscountry/"+thiscountry;if(languageName!=""){c+="/language/"+languageName}return c}catch(b){}};dmnTopResultsflag=false;dmnMiddleResultsflag=false;dmnBottomResultsflag=false;tagsTopResultsflag=false;function gslUI(a,b){var c="<li>";c+='<div class="g_title"><a href="'+a[b].redirect_url+'" target="_blank">'+a[b].title+"</a></div>";c+='<div class="g_desc"><a href="'+a[b].redirect_url+'" target="_blank">'+a[b].d1+" "+a[b].d2+"</a></div>";c+='<div class="g_url"><a href="'+a[b].redirect_url+'" target="_blank"><span>'+a[b].url+"</span></a></div>";c+="</li>";return c}function done(b){if(noResPage=="true"){if(b.length!=0){s='<p><a href="'+SponsoredLinksUrl+'" target="_blank">'+SponsoredLinksText+"</a></p><ul>";t=s;for(i=0;i<b.length&&i<topAdsCount;i++){dmnTopResultsflag=true;s+=gslUI(b,i)}s+="</ul>";for(i=topAdsCount;i<b.length;i++){dmnBottomResultsflag=true;t+=gslUI(b,i)}t+="</ul>";if(dmnTopResultsflag&&$("nores_sl_top")){$("nores_sl_top").innerHTML=s;$("nores_sl_top").style.display="block"}if(dmnBottomResultsflag&&$("nores_sl_bottom")){$("nores_sl_bottom").innerHTML=t;$("nores_sl_bottom").style.display="block"}}}else{if(isCompView=="true"){if(b.length!=0){s='<p><a href="'+SponsoredLinksUrl+'" target="_blank">'+SponsoredLinksText+"</a></p><ul>";t=s;u=s;var a=topAdsCount;if(a>b.length){a=b.length}for(i=0;i<a;i++){dmnTopResultsflag=true;s+=gslUI(b,i)}s+="</ul>";a=topAdsCount+middleAdsCount;if(a>b.length){a=b.length}for(i=topAdsCount;i<a;i++){dmnMiddleResultsflag=true;t+=gslUI(b,i)}t+="</ul>";for(i=a;i<b.length;i++){dmnBottomResultsflag=true;u+=gslUI(b,i)}u+="</ul>";if(dmnTopResultsflag&&$("comp_sl_top")){$("comp_sl_top").innerHTML=s;$("comp_sl_top").style.display="block"}if(dmnMiddleResultsflag&&$("comp_sl_middle")){$("comp_sl_middle").innerHTML=t;$("comp_sl_middle").style.display="block"}if(dmnBottomResultsflag&&$("comp_sl_bottom")){$("comp_sl_bottom").innerHTML=u;$("comp_sl_bottom").style.display="block"}}if(!dmnTopResultsflag){showRelTags()}}else{if(isCompView=="false"){if(b.length!=0){s='<p><a href="'+SponsoredLinksUrl+'" target="_blank">'+SponsoredLinksText+"</a></p><ul>";t=s;u=s;var a=topAdsCount;if(a>b.length){a=b.length}for(i=0;i<a;i++){dmnTopResultsflag=true;s+=gslUI(b,i)}s+="</ul>";a=topAdsCount+middleAdsCount;if(a>b.length){a=b.length}for(i=topAdsCount;i<a;i++){dmnMiddleResultsflag=true;t+=gslUI(b,i)}t+="</ul>";for(i=a;i<b.length;i++){dmnBottomResultsflag=true;u+=gslUI(b,i)}u+="</ul>";if(dmnTopResultsflag==true&&$("stan_sl_top")){$("stan_sl_top").innerHTML=s;$("stan_sl_top").style.display="block"}if(dmnMiddleResultsflag==true&&$("stan_sl_middle")){$("stan_sl_middle").innerHTML=t;$("stan_sl_middle").style.display="block"}if(dmnBottomResultsflag==true&&$("stan_sl_bottom")){$("stan_sl_bottom").innerHTML=u;$("stan_sl_bottom").style.display="block"}}if(!dmnTopResultsflag){showRelTags()}}}}}function showRelTags(){if(isCompView=="true"&&$("comp_sl_top")){var a=document.getElementById("reltag").childNodes;var c=a.length;var d=document.getElementById("comp_sl_top");var b=false;for(i=0,j=0;j<compositeTopTagsCount&&i<c;i++){if(!b&&a[i].nodeName=="H3"){b=true;n=a[i].cloneNode(true);d.appendChild(n)}else{if(a[i].nodeName=="A"){j++;tagsTopResultsflag=true;dmnTopResultsflag=true;n=a[i].cloneNode(true);d.appendChild(n)}}}if(tagsTopResultsflag){s='<div class="reltag">'+$("comp_sl_top").innerHTML+"</div>";$("comp_sl_top").innerHTML=s;$("comp_sl_top").style.display="block"}}else{if(isCompView=="false"&&$("stan_sl_top")&&standardViewTags.length>0){$("stan_sl_top").innerHTML='<div class="reltag"><h3>'+AVP.search_RealatedTagHeading+"</h3>"+standardViewTags+"</div>";$("stan_sl_top").style.display="block"}}}copySnagToClip=function(g,a){try{g.focus();g.select();if(g.createTextRange){var f=g.createTextRange();if(f){f.execCommand("Copy")}}else{var c="SnagFlash";if(!$(c)){var h=document.createElement("div");h.id=c;document.body.appendChild(h)}$(c).innerHTML="";$(c).innerHTML="";var b='<embed src="'+a+'" FlashVars="clipboard='+escape(g.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';$(c).innerHTML=b}}catch(d){}};function Playlist(){}Playlist.assetId="";Playlist.screenName="";Playlist.first=false;Playlist.Id=new Array();Playlist.playId_old=null;Playlist.playId_cur=null;Playlist.isSearchPlaylist=false;Playlist.showList=false;Playlist.apiUrl="http://music.aol.com/api/playlists";Playlist.profileLink="http://music.aol.com/profile/playlists/";Playlist.errGivePlaylistName="Please give that playlist a title.";Playlist.errPlaylistExists="Playlist with that name already exists.";Playlist.errSelectPlaylist="Please select at least one playlist.";Playlist.okBtn="OK";Playlist.cancelBtn="Cancel";Playlist.addBtn="Add";Playlist.saveBtn="Save";Playlist.txtViewPlaylists="View All Your Playlists";Playlist.maxTitleChar="35 Character max";Playlist.txtCreatePlaylist="Create A New Video Playlist";Playlist.errDefaultTxt="There was a problem loading your playlists. Please try again.";Playlist.txtLoading="LOADING PLAYLISTS ...";Playlist.txtAdded="ADDED!";Playlist.txtAddVideo="ADD VIDEO TO...";Playlist.txtError="ERROR";Playlist.txtNameFirstList="Name Your First Playlist";Playlist.txtSignIn="Sign-in to View/Edit Your Playlists";Playlist.txtClickOn="Just click on";Playlist.txtAddSongsVideo="ADD whenever<br>you see songs or videos.";Playlist.listCount=0;Playlist.maxVideos=250;Playlist.maxTitleLenght=35;Playlist.maxTitleDisplayLenght=16;Playlist.maxTitleDisplayAfterAdd=25;Playlist.txtViewEditLink="View/Edit Your Playlists";Playlist.txtClose="Close";Playlist.isGifPng="png";Playlist.x=0;Playlist.y=0;Playlist.isAolasset=false;Playlist.closeMargin="margin: 18px 24px 0pt 0pt; _margin: 24px 14px 0px 0px;";Playlist.idType="pmms";Playlist.initialize=function(m,d,f,o,j,v,r,x,h,t,q,e,s,p,n,g,c,A,w,z,u,b,l,k,a){if(m!="null"&&m!=""){Playlist.isAolasset=true}if(d!="null"&&d!=""){Playlist.screenName=d}if(f!="null"&&f!=""){Playlist.apiUrl=f}if(o!="null"&&o!=""){Playlist.txtViewEditLink=o}if(j!="null"&&j!=""){Playlist.txtClose=j}if(v!="null"&&v!=""){Playlist.saveBtn=v}if(r!="null"&&r!=""){Playlist.addBtn=r}if(x!="null"&&x!=""){Playlist.txtLoading=x}if(h!="null"&&h!=""){Playlist.errGivePlaylistName=h}if(t!="null"&&t!=""){Playlist.errPlaylistExists=t}if(q!="null"&&q!=""){Playlist.maxTitleChar=q}if(e!="null"&&e!=""){Playlist.okBtn=e}if(s!="null"&&s!=""){Playlist.cancelBtn=s}if(p!="null"&&p!=""){Playlist.errSelectPlaylist=p}if(n!="null"&&n!=""){Playlist.txtError=n}if(g!="null"&&g!=""){Playlist.txtViewPlaylists=g}if(c!="null"&&c!=""){Playlist.errDefaultTxt=c}if(A!="null"&&A!=""){Playlist.txtAdded=A}if(w!="null"&&w!=""){Playlist.txtAddVideo=w}if(z!="null"&&z!=""){Playlist.txtCreatePlaylist=z}if(u!="null"&&u!=""){Playlist.profileLink=u}if(b!="null"&&b!=""){Playlist.txtAddSongsVideo=b}if(l!="null"&&l!=""){Playlist.txtClickOn=l}if(k!="null"&&k!=""){Playlist.txtSignIn=k}if(a!="null"&&a!=""){Playlist.txtNameFirstList=a}if(navigator.appName=="Microsoft Internet Explorer"){Playlist.isGifPng="gif"}userA=navigator.userAgent.toLowerCase();if(userA.indexOf("msie 7.0")>-1){Playlist.closeMargin="margin: 18px 24px 0pt 0pt; _margin: 24px 24px 0px 0px;"}};Playlist.callDiplayList=function(a){if(a!=null&&a!=""){if(a.response.statusCode==409){alert(Playlist.errPlaylistExists);return}}Playlist.isAolasset=true;if(Playlist.isAolasset){try{url=Playlist.apiUrl+"/list?f=json&type=video&c=Playlist.diplayPlaylist&cacheBust="+Math.random();Playlist.makeRequest(url)}catch(b){}}else{return}};Playlist.createNewOpen=function(){var a='<div class="show" style="display: block;" id="playlistsModule_createNew">';a+="<h1>"+Playlist.txtCreatePlaylist+"</h1>";a+='<input id="playlistsModule_createNewInput" style="border: 1px solid rgb(206, 206, 206); padding: 3px; margin-bottom: 4px; background-color: rgb(250, 250, 250); width: 90%; color: rgb(51, 51, 51);" maxlength="35">';a+="<br >";a+='<div id="playlistsModule_createNewSave" onclick="Playlist.callCreateNewPlaylist()" style="margin: 10px 5px 0px 0px; background: transparent url(http://o.aolcdn.com/art/ch_music2/playlistsmodule_save) no-repeat scroll 0% 50%; float: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 100px; height: 22px; line-height: 22px; color: rgb(255, 255, 255); text-align: center; font-weight: bold; font-size: 11px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.saveBtn+"</div>";a+='<div id="playlistsModule_createNewCancel" onclick="Playlist.callDiplayList(\'\')" style="margin: 10px 0px 0px; background: transparent url(http://o.aolcdn.com/art/ch_music2/playlistsmodule_cancel) no-repeat scroll 0% 50%; float: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 62px; height: 22px; line-height: 22px; color: rgb(40, 100, 180); text-align: center; font-weight: bold; font-size: 11px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.cancelBtn+"</div>";a+='<div style="clear: both;"></div>';a+="</div>";$("playlistCreateNew").innerHTML=a};Playlist.callCreateNewPlaylist=function(){var b=document.getElementById("playlistsModule_createNewInput").value;while(b.match("&")){b=b.replace("&","%26")}if(document.getElementById("playlistsModule_createNewInput").value!=""){var a=Playlist.apiUrl+"/create?f=json&name="+b+"&type=video&c=Playlist.callDiplayList&cacheBust="+Math.random();Playlist.makeRequest(a)}else{alert(Playlist.errGivePlaylistName)}};Playlist.getclick=function(c){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}Playlist.x=c.clientX+b+60;Playlist.y=c.clientY+a-30};Playlist.diplayPlaylist=function(b){if(b.response.statusCode==200){Playlist.listCount=b.response.data.playlists.length}else{Playlist.listCount=0}var a='<div class="playlistsModule" id="playlistsModuleDiv">';if(Playlist.screenName!=null&&Playlist.screenName!=""){a+='<div class="playlistsModule_top">';a+='<img alt="Your Playlists" src="http://www.aolcdn.com/ch_music2/playlistsmodule_playlistsprivate" />('+Playlist.listCount+")";a+="</div>"}if(Playlist.listCount>0){if(Playlist.listCount>4){a+='<div class="playlistsModule_main" style="display: block; height: 160px; overflow-y: auto">'}else{a+='<div class="playlistsModule_main" style="display: block; height: auto; overflow-y: hidden">'}a+="<ul>";for(i=0;i<Playlist.listCount;i++){var c=b.response.data.playlists[i].listName;Playlist.Id[i]=b.response.data.playlists[i].listId;a+='<li class="playlistsModuleVideo"><a href='+Playlist.profileLink+b.response.data.playlists[i].listId+">"+c+"</a></li>"}a+="</ul>";a+="</div>";a+='<div id = "playlistCreateNew"><div class="playlistsModule_bottom" style="display: block">';a+='<img src="http://www.aolcdn.com/ch_music2/playlistsmodule_footer" /><a href='+Playlist.profileLink+">"+Playlist.txtViewEditLink+"</a><br />";a+='<img src="http://www.aolcdn.com/ch_music2/playlistsmodule_footer" /><span onclick="Playlist.createNewOpen();">'+Playlist.txtCreatePlaylist+"</span>";a+="</div></div>"}else{a+='<div style="display: block;" class="playlistsModule_empty">';a+='<img src="http://www.aolcdn.com/ch_music2/playlistsmodule_fillupsmall" alt="Fill Up Some Playlists"><br>';a+='<div class="spacer"></div>'+Playlist.txtClickOn+' <img src="http://www.aolcdn.com/ch_music2/playlistsmodule_add" style="padding: 0px 5px; position: relative; top: 3px;"> '+Playlist.txtAddSongsVideo+"";a+="</div>";a+='<div id = "playlistCreateNew">';a+='<div style="display: block;" class="playlistsModule_bottom">';if(Playlist.screenName!=null&&Playlist.screenName!=""){a+='<img src="http://www.aolcdn.com/ch_music2/playlistsmodule_footer"><span onclick="Playlist.createNewOpen();">'+Playlist.txtCreatePlaylist+"</span>"}else{a+="<img src=\"http://www.aolcdn.com/ch_music2/playlistsmodule_footer\"><a href=\"javascript:vid_SignInWidget(Utils.p_o('playlistCreateNew'),'',lu,0,10,'playlist');\" onclick=\"javascript:Playlist.getclick(event);\">Sign-in to View/Edit Your Playlists</a>"}a+="</div></div>"}a+="</div>";$("sizPlaylist").innerHTML=a};Playlist.hover=function(a){$(a).style.zIndex=2;divlen=document.getElementsByTagName("div").length;for(y=1;y<=divlen;y++){if(document.getElementsByTagName("div")[y].className=="resultItem"){divtag=document.getElementsByTagName("div")[y].id;if(a!=divtag){$(divtag).style.zIndex=1}}}};Playlist.makeRequest=function(c){try{var b="";b=document.createElement("script");b.setAttribute("src",c);document.head.appendChild(b)}catch(a){}};Playlist.list=function(a,d){if(pageId&&a.indexOf("o")==-1){if(a.indexOf("_")==-1){if(document.getElementById("comAolMusicModulesFlyoutBodyBrowse")!=null){document.getElementById("comAolMusicModulesFlyoutBodyBrowse").style.visibility="hidden"}}else{if(document.getElementById("comAolMusicModulesFlyoutBody")!=null){document.getElementById("comAolMusicModulesFlyoutBody").style.visibility="hidden"}}}if(a=="0"){AVP.UPsavPanel(1);return}Playlist.idType=d;Playlist.assetId=a;var c="",b="";if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){b+='<div class="comAolMusicModulesFlyoutBody" id="comAolMusicModulesFlyoutBody" style="overflow: hidden; width: 257px; position: absolute;z-index: 9000; display: block; visibility: visible; opacity: 1; left: 0px; top: 0px;">';b+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-right'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{if(Playlist.isSearchPlaylist==true){b+='<div class="comAolMusicModulesFlyoutBodySearch" id="comAolMusicModulesFlyoutBodySearch" style="overflow: hidden; width: 257px; position: absolute;z-index: 9000; display: block; visibility: visible; opacity: 1; left: 7px; top: -38px;">';b+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{b+='<div class="comAolMusicModulesFlyoutBodyBrowse" id="comAolMusicModulesFlyoutBodyBrowse" style="overflow: hidden; width: 257px; position: absolute;z-index: 9000; display: block; visibility: visible; opacity: 1; left: 5px; top: 174px;">';b+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}}b+='<div title="'+Playlist.txtClose+'" class="flyoutCloseOverlayButton" onclick="Playlist.close();" style="'+Playlist.closeMargin+' background: transparent url(http://o.aolcdn.com/art/ch_music2/delete-sprite2) repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; float: right; cursor: pointer; width: 15px; height: 15px;"></div>';b+='<div style="clear: both;"></div>';b+='<div id="comAolMusicModulesFlyoutTopHeader" style="margin: 0px 0pt 4px 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-small-loader) no-repeat scroll 0pt 300px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(51, 51, 51); font-weight: bold; font-size: 13px; width: 185px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.txtLoading+"</div>";b+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 0pt 35px 0pt 30px;"></div><div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 0pt 30px;"></div>';b+="</div>";b+='<div style="background: transparent url(http://o.aolcdn.com/art/ch_music2/bottom'+Playlist.isGifPng+') no-repeat scroll 0% 0%; z-index: 3997; height: 55px; width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></div>';b+="</div>";if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){document.getElementById("playlist").innerHTML=b}else{Playlist.playId_cur=a;if(Playlist.playId_cur==Playlist.playId_old||Playlist.playId_old!=null){if(Playlist.showList!=true){if(document.getElementById(Playlist.playId_old)!=null){document.getElementById(Playlist.playId_old).style.display="none"}}}document.getElementById(Playlist.playId_cur).innerHTML=b;document.getElementById(Playlist.playId_cur).style.display="block";Playlist.playId_old=Playlist.playId_cur}c=Playlist.apiUrl+"/list?f=json&type=video&cacheBust="+Math.random()+"&c=Playlist.listData";Playlist.makeRequest(c);Playlist.showList=false};Playlist.close=function(){if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){document.getElementById("comAolMusicModulesFlyoutBody").style.display="none"}else{if(Playlist.isSearchPlaylist==true){document.getElementById("comAolMusicModulesFlyoutBodySearch").style.display="none";document.getElementById(Playlist.playId_cur).style.display="none"}else{document.getElementById("comAolMusicModulesFlyoutBodyBrowse").style.display="none";document.getElementById(Playlist.playId_cur).style.display="none"}}};Playlist.callCreatePlaylist=function(){var b=document.getElementById("comAolMusicModulesFlyoutNewPlaylistInputBox").value;while(b.match("&")){b=b.replace("&","%26")}if(document.getElementById("comAolMusicModulesFlyoutNewPlaylistInputBox").value!=""){var a=Playlist.apiUrl+"/create?f=json&name="+b+"&type=video&c=Playlist.createList&cacheBust="+Math.random();Playlist.makeRequest(a)}else{alert(Playlist.errGivePlaylistName)}};Playlist.createList=function(a){if(a.response.statusCode==200){Playlist.first=true;Playlist.showList=true;Playlist.list(Playlist.assetId,Playlist.idType);Playlist.callDiplayList("")}else{if(a.response.statusCode==409){alert(Playlist.errPlaylistExists)}else{Playlist.showError(a.response.statusText)}}};Playlist.createPlaylistUI=function(){var a='<div style="clear: both;"></div>';a+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 10px 35px 0pt 30px;"></div>';a+='<div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 7px 30px;"></div>';a+='<div id="comAolMusicModulesFlyoutCreateNew" style="margin: 0pt 0pt 0pt 30px; color: rgb(40, 100, 180); font-size: 12px; font-weight: bold; font-family: Arial,Helvetica,sans-serif; cursor: pointer; display: none;">Create A New Video Playlist</div>';a+='<div id="comAolMusicModulesFlyoutMiddleHeader" style="margin: 0px 0pt 8px 30px; color: rgb(102, 102, 102); font-weight: bold; font-size: 11px; width: 196px; font-family: Arial,Helvetica,sans-serif;">Create A New Video Playlist</div><input charcount="comAolMusicModulesFlyoutCharCountTitle" submitonenter="true" maxchars="'+Playlist.maxTitleLenght+'" id="comAolMusicModulesFlyoutNewPlaylistInputBox" onkeyup="return Playlist.checkMaxCharlength(this)" style="border: 1px solid rgb(206, 206, 206); margin: 0pt 0pt 3px 30px; padding: 3px; background-color: rgb(250, 250, 250); width: 190px; color: rgb(103, 103, 103); font-size: 11px; font-family: Arial,Helvetica,sans-serif;">';a+='<div id="comAolMusicModulesFlyoutCharCountTitle" style="margin: 0pt 0pt 15px 30px; color: rgb(153, 153, 153); font-size: 10px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.maxTitleChar+"</div>";a+='<div id="comAolMusicModulesFlyoutBlueButton" onclick="Playlist.callCreatePlaylist();" style="margin: 0pt 5px 4px 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-blue-button) no-repeat scroll 0% 0%; float: left; display: inline; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 61px; height: 22px; line-height: 22px; color: rgb(255, 255, 255); text-align: center; font-weight: bold; font-size: 12px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.okBtn+"</div>";a+='<div id="comAolMusicModulesFlyoutGrayButton" onclick="Playlist.close();" style="background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-gray-button) no-repeat scroll 0% 0%; float: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 63px; height: 22px; line-height: 22px; color: rgb(40, 100, 180); text-align: center; font-weight: bold; font-size: 11px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.cancelBtn+"</div>";$("createPlayList").innerHTML=a};Playlist.checkMaxCharlength=function(c){var b=c.getAttribute?parseInt(c.getAttribute("maxchars")):"";var a=c.value.length;if(c.getAttribute&&c.value.length>b){c.value=c.value.substring(0,b)}if(a<b){$("comAolMusicModulesFlyoutCharCountTitle").style.color="rgb(153, 153, 153)";$("comAolMusicModulesFlyoutCharCountTitle").innerHTML=a+"/"+b}else{$("comAolMusicModulesFlyoutCharCountTitle").style.color="rgb(255, 0, 0)";$("comAolMusicModulesFlyoutCharCountTitle").innerHTML=b+"/"+b}};Playlist.addToPlaylist=function(){var c="",d="";c+="&listId=[";for(i=0;i<Playlist.listCount;i++){if($("playlist_"+Playlist.Id[i]).checked==true){d+=Playlist.Id[i];if(i!=(Playlist.listCount-1)){d+=","}}}if(d==""){alert(Playlist.errSelectPlaylist);return}else{c=c+d}c+="]";if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){var b=Playlist.apiUrl+"/add?f=json&type=video"+c+"&aolId="+Playlist.assetId+"&videoType="+Playlist.idType+"&c=Playlist.addTolist&cacheBust="+Math.random();Playlist.makeRequest(b)}else{var a=Playlist.assetId.split("_");var b=Playlist.apiUrl+"/add?f=json&type=video"+c+"&aolId="+a[1]+"&videoType="+Playlist.idType+"&c=Playlist.addTolist&cacheBust="+Math.random();Playlist.makeRequest(b)}};Playlist.showError=function(b){if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){var a='<div class="comAolMusicModulesFlyoutBody" id="comAolMusicModulesFlyoutBody" style="overflow: hidden; width: 257px; position: absolute; z-index: 9000; display: block; visibility: visible; opacity: 1; left: 0px; top: 0px;">';a+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-right'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{if(Playlist.isSearchPlaylist==true){var a='<div class="comAolMusicModulesFlyoutBodySearch" id="comAolMusicModulesFlyoutBodySearch" style="overflow: hidden; width: 257px; position: absolute; z-index: 9000; display: block; visibility: visible; opacity: 1; left: 7px; top: -38px;">';a+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{var a='<div class="comAolMusicModulesFlyoutBodyBrowse" id="comAolMusicModulesFlyoutBodyBrowse" style="overflow: hidden; width: 257px; position: absolute; z-index: 9000; display: block; visibility: visible; opacity: 1; left: 5px; top: 174px;">';a+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}}a+='<div title="'+Playlist.txtClose+'" class="flyoutCloseOverlayButton" onclick="Playlist.close();" style="'+Playlist.closeMargin+'; background: transparent url(http://o.aolcdn.com/art/ch_music2/delete-sprite2) repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; float: right; cursor: pointer; width: 15px; height: 15px;"></div>';a+='<div style="clear: both;"></div>';a+='<div id="comAolMusicModulesFlyoutTopHeader" style="margin: 0px 0pt 4px 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-small-loader) no-repeat scroll 0pt 300px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(51, 51, 51); font-weight: bold; font-size: 13px; width: 185px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.txtError+"</div>";a+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 0pt 35px 0pt 30px;"></div>';a+='<div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 0pt 30px;"></div>';a+="</div>";a+='<div id="comAolMusicModulesFlyoutMiddle" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/middle'+Playlist.isGifPng+') repeat-y scroll 0% 100%; overflow: hidden; z-index: 3998; color: rgb(51, 51, 51); width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">';a+='<div id="comAolMusicModulesFlyoutMiddleHeader" style="margin: 0px 0pt 8px 30px; color: rgb(102, 102, 102); font-weight: bold; font-size: 11px; width: 196px; font-family: Arial,Helvetica,sans-serif;">'+b+"</div>";a+="</div>";a+='<div style="background: transparent url(http://o.aolcdn.com/art/ch_music2/bottom'+Playlist.isGifPng+') no-repeat scroll 0% 0%; z-index: 3997; height: 55px; width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></div>';a+="</div>";if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){$("playlist").innerHTML=a}else{$(Playlist.playId_cur).innerHTML=a}setTimeout("Playlist.close()",5000)};Playlist.addTolist=function(b){var a="",d="";if(b.response.statusCode==200){var c=b.response.data.playlists.length;if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){a+='<div class="comAolMusicModulesFlyoutBody" id="comAolMusicModulesFlyoutBody" style="overflow: hidden; width: 257px; position: absolute; z-index: 9000; display: block; visibility: visible; opacity: 1; left: 0px; top: 0px;">';a+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-right'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{if(Playlist.isSearchPlaylist==true){a+='<div class="comAolMusicModulesFlyoutBodySearch" id="comAolMusicModulesFlyoutBodySearch" style="overflow: hidden; width: 257px; position: absolute; z-index: 9000; display: block; visibility: visible; opacity: 1; left: 7px; top: -38px;">';a+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{a+='<div class="comAolMusicModulesFlyoutBodyBrowse" id="comAolMusicModulesFlyoutBodyBrowse" style="overflow: hidden; width: 257px; position: absolute; z-index: 9000; display: block; visibility: visible; opacity: 1; left: 5px; top: 174px;">';a+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}}a+='<div title="'+Playlist.txtClose+'" class="flyoutCloseOverlayButton" onclick="Playlist.close();" style="'+Playlist.closeMargin+'; background: transparent url(http://o.aolcdn.com/art/ch_music2/delete-sprite2) repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; float: right; cursor: pointer; width: 15px; height: 15px;"></div>';a+='<div style="clear: both;"></div>';a+='<div id="comAolMusicModulesFlyoutTopHeader" style="margin: 0px 0pt 4px 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-small-loader) no-repeat scroll 0pt 300px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(51, 51, 51); font-weight: bold; font-size: 13px; width: 185px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.txtAdded+"</div>";a+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 0pt 35px 0pt 30px;"></div>';a+='<div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 0pt 30px;"></div>';a+="</div>";a+='<div id="comAolMusicModulesFlyoutMiddle" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/middle'+Playlist.isGifPng+') repeat-y scroll 0% 100%; overflow: hidden; z-index: 3998; color: rgb(51, 51, 51); width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">';for(i=0;i<c;i++){d=b.response.data.playlists[i].listName;if(d.length>Playlist.maxTitleDisplayAfterAdd){d=d.substring(0,Playlist.maxTitleDisplayAfterAdd)+"..."}a+='<div style="margin: 4px 0pt 0pt 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/community-video-icon) no-repeat scroll 0pt 0pt; font-size: 12px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-indent: 22px;"><a title="'+d+'" href='+Playlist.profileLink+b.response.data.playlists[i].listId+'/ style="color: rgb(40, 100, 180); font-size: 12px; font-family: Arial,Helvetica,sans-serif; text-decoration: none;">'+d+"</a></div>"}a+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 10px 35px 0pt 30px;"></div>';a+='<div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 10px 30px;"></div>';a+='<div style="margin: 0pt 0pt 0pt 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/community-green-arrow-right) no-repeat scroll 0pt 3px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-indent: 16px;"><a href='+Playlist.profileLink+' style="color: rgb(40, 100, 180); font-size: 12px; font-weight: bold; font-family: Arial,Helvetica,sans-serif; text-decoration: none;">'+Playlist.txtViewPlaylists+"</a></div>";a+="</div>";a+='<div style="background: transparent url(http://o.aolcdn.com/art/ch_music2/bottom'+Playlist.isGifPng+') no-repeat scroll 0% 0%; z-index: 3997; height: 55px; width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></div>';a+="</div>";if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){$("playlist").innerHTML=a}else{$(Playlist.playId_cur).innerHTML=a}setTimeout("Playlist.close()",5000)}else{if(b.response.statusCode==462){Playlist.showError(b.response.statusText)}else{Playlist.showError(Playlist.errDefaultTxt)}}};Playlist.listData=function(f){var d=f;var b="",e="",c="",a="",g="";if(d.response.statusCode==200){Playlist.listCount=d.response.data.playlists.length;if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){b+='<div class="comAolMusicModulesFlyoutBody" id="comAolMusicModulesFlyoutBody" style="overflow: hidden; width: 257px; position: absolute;z-index: 9000; display: block; visibility: visible; opacity: 1; left: 0px; top: 0px;">';b+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-right'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{if(Playlist.isSearchPlaylist==true){b+='<div class="comAolMusicModulesFlyoutBodySearch" id="comAolMusicModulesFlyoutBodySearch" style="overflow: hidden; width: 257px; position: absolute;z-index: 9000; display: block; visibility: visible; opacity: 1; left: 7px; top: -38px;">';b+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}else{b+='<div class="comAolMusicModulesFlyoutBodyBrowse" id="comAolMusicModulesFlyoutBodyBrowse" style="overflow: hidden; width: 257px; position: absolute;z-index: 9000; display: block; visibility: visible; opacity: 1; left: 5px; top: 174px;">';b+='<div id="comAolMusicModulesFlyoutTop" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/top-left'+Playlist.isGifPng+') no-repeat scroll 0% 0%; height: 63px; width: 257px; z-index: 3999; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">'}}b+='<div title="'+Playlist.txtClose+'" class="flyoutCloseOverlayButton" onclick="Playlist.close();" style="'+Playlist.closeMargin+'; background: transparent url(http://o.aolcdn.com/art/ch_music2/delete-sprite2) repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; float: right; cursor: pointer; width: 15px; height: 15px;"></div>';b+='<div style="clear: both;"></div>';b+='<div id="comAolMusicModulesFlyoutTopHeader" style="margin: 0px 0pt 4px 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-small-loader) no-repeat scroll 0pt 300px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(51, 51, 51); font-weight: bold; font-size: 13px; width: 185px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.txtAddVideo+"</div>";b+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 0pt 35px 0pt 30px;"></div><div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 0pt 30px;"></div>';b+="</div>";b+='<div id="comAolMusicModulesFlyoutMiddle" style="margin: 0pt; background: transparent url(http://o.aolcdn.com/art/ch_music2/middle'+Playlist.isGifPng+') repeat-y scroll 0% 100%; overflow: hidden; z-index: 3998; color: rgb(51, 51, 51); width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">';if(Playlist.listCount>0){b+='<div id="comAolMusicModulesFlyoutPlaylistBox" style="margin: 0pt 0pt 0pt 30px; overflow: auto; width: 190px; height: 85px;">';for(i=0;i<Playlist.listCount;i++){if(Playlist.first){Playlist.first=false;e="checked"}if(d.response.data.playlists[i].itemCount>=Playlist.maxVideos){a="color: rgb(153, 153, 153);";c='disabled="disabled"'}else{a="";c=""}g=d.response.data.playlists[i].listName;if(g.length>Playlist.maxTitleDisplayLenght){g=g.substring(0,Playlist.maxTitleDisplayLenght)+"..."}b+="<div title="+d.response.data.playlists[i].listName+" listid="+d.response.data.playlists[i].listId+' style="margin: 4px 0pt; font-size: 11px; font-family: Arial,Helvetica,sans-serif; '+a+'">';b+="	<input "+c+' style=" margin: 0pt 4px 0pt 0pt;" name=playlist_'+d.response.data.playlists[i].listId+" id=playlist_"+d.response.data.playlists[i].listId+' type="checkbox"'+e+">"+g+" ("+d.response.data.playlists[i].itemCount+"/"+Playlist.maxVideos+")";b+="</div>";e="";Playlist.Id[i]=d.response.data.playlists[i].listId}b+="</div>";b+='<div id="createPlayList">';b+='<div id="comAolMusicModulesFlyoutBlueButton" onclick="Playlist.addToPlaylist();" style="margin: 15px 0pt 0pt 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-blue-button) no-repeat scroll 0% 0%; float: left; display: inline; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 61px; height: 22px; line-height: 22px; color: rgb(255, 255, 255); text-align: center; font-weight: bold; font-size: 12px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.addBtn+"</div>";b+='<div style="clear: both;"></div>';b+='<div style="border-bottom: 1px solid rgb(176, 176, 176); margin: 10px 35px 0pt 30px;"></div>';b+='<div style="border-bottom: 1px solid rgb(255, 255, 255); margin: 0pt 35px 7px 30px;"></div>';b+='<div id="comAolMusicModulesFlyoutCreateNew" onclick="Playlist.createPlaylistUI();" style="margin: 0pt 0pt 0pt 30px; color: rgb(40, 100, 180); font-size: 12px; font-weight: bold; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.txtCreatePlaylist+"</div>";b+="</div>"}else{b+='<div id="comAolMusicModulesFlyoutMiddleHeader" style="margin: 0px 0pt 8px 30px; color: rgb(102, 102, 102); font-weight: bold; font-size: 11px; width: 196px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.txtNameFirstList+"</div>";b+='<input charcount="comAolMusicModulesFlyoutCharCountTitle" submitonenter="true" maxchars="'+Playlist.maxTitleLenght+'" id="comAolMusicModulesFlyoutNewPlaylistInputBox" onkeyup="return Playlist.checkMaxCharlength(this)" style="border: 1px solid rgb(206, 206, 206); margin: 0pt 0pt 3px 30px; padding: 3px; background-color: rgb(250, 250, 250); width: 190px; color: rgb(103, 103, 103); font-size: 11px; font-family: Arial,Helvetica,sans-serif;">';b+='<div id="comAolMusicModulesFlyoutCharCountTitle" style="margin: 0pt 0pt 15px 30px; color: rgb(153, 153, 153); font-size: 10px; font-family: Arial,Helvetica,sans-serif;">'+Playlist.maxTitleChar+"</div>";b+='<div id="comAolMusicModulesFlyoutBlueButton" onclick="Playlist.callCreatePlaylist();" style="margin: 0pt 5px 4px 30px; background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-blue-button) no-repeat scroll 0% 0%; float: left; display: inline; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 61px; height: 22px; line-height: 22px; color: rgb(255, 255, 255); text-align: center; font-weight: bold; font-size: 12px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.okBtn+"</div>";b+='<div id="comAolMusicModulesFlyoutGrayButton" onclick="Playlist.close();" style="background: transparent url(http://o.aolcdn.com/art/ch_music2/flyout-gray-button) no-repeat scroll 0% 0%; float: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 63px; height: 22px; line-height: 22px; color: rgb(40, 100, 180); text-align: center; font-weight: bold; font-size: 11px; font-family: Arial,Helvetica,sans-serif; cursor: pointer;">'+Playlist.cancelBtn+"</div>"}b+="</div>";b+='<div style="background: transparent url(http://o.aolcdn.com/art/ch_music2/bottom'+Playlist.isGifPng+') no-repeat scroll 0% 0%; z-index: 3997; height: 55px; width: 257px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></div>';b+="</div>";if(Playlist.assetId.indexOf("playlistId_")!=0&&Playlist.assetId.indexOf("aolmodelId_")!=0){$("playlist").innerHTML=b}else{$(Playlist.playId_cur).innerHTML=b}}else{Playlist.showError(Playlist.errDefaultTxt)}};	
AVP.global_SeeAllVideos="See All Videos";	
AVP.global_SeeMoreVideos="See More Videos";	
AVP.global_MoreRelatedVideos="More Related Videos";	
AVP.global_moreText="More";	
AVP.global_backText="Back";	
AVP.global_SeasonText="Season";	
AVP.global_EpisodeText="Episode";	
AVP.global_SeaText="Sea";	
AVP.global_EpText="Ep";	
AVP.global_CategoryText="Category";	
AVP.global_ChannelText="Channel";	
AVP.global_ArtistText="Artist";	
AVP.global_addedText="Added";	
AVP.global_ShowText="Show";	
AVP.global_ViewsText="Views";	
AVP.global_DistributorText="Distributor";
AVP.global_Copy="Copy";
AVP.global_Previous="Previous";
AVP.global_Next="Next";
AVP.global_Continue = "Continue";
AVP.global_Thanks = "Thanks!";
AVP.global_Add = "Add";
AVP.upm_cmntOnThisVideo="Comment on this Video";	
AVP.upm_shareThisVideo="Share this Video";	
AVP.upm_saveThisVideo="Save this Video";	
AVP.upm_rateThisVideo="Rate this Video";	
AVP.upm_embedThisVideo="Embed this Video";	
AVP.upm_commentTab_name="COMMENT";	
AVP.upm_shareTab_name="SHARE";	
AVP.upm_saveTab_name="SAVE";	
AVP.upm_rateTab_name="RATE";	
AVP.upm_embedTab_name="EMBED";	
AVP.upm_shareTab_imThisVideo="IM This Video";	
AVP.upm_shareTab_emailThisVideo="Email This Video";	
AVP.upm_shareTab_videoGiftVideo="Video Gift";	
AVP.upm_shareTab_sendInstantMessage="Send Instant Message";	
AVP.upm_shareTab_downloadIm="Download AIM";	
AVP.aimUrl="http://www.aim.com/";	
AVP.upm_currentVideoRating="Current Video Rating";	
AVP.upm_embedTab_myspace="Myspace";	
AVP.upm_embedTab_other="Other";	
AVP.upm_embedTab_videoUrl="Video Url";	
AVP.upm_bookMark="Bookmark";	
AVP.upm_tag="Tag";	
AVP.upm_UmustBe="You must be";	
AVP.upm_signedIn="signed in";	
AVP.upm_toUseThis="to use this feature";	
AVP.upm_addantrcmt="Add another comment";	
AVP.upm_thankForComment="Thank you for your comment";	
AVP.upm_viewYourCmt="View your comment";	
AVP.upm_shareOrComment="Share or Comment on this Video";	
AVP.upm_oneStar="1 star out of 5";	
AVP.upm_twoStar="2 stars out of 5";	
AVP.upm_threeStar="3 stars out of 5";	
AVP.upm_fourStar="4 stars out of 5";	
AVP.upm_fiveStar="5 stars out of 5";
AVP.upm_ImNotification = "To share this media with a friend, you must have AIM installed.Click the \"download AIM\" button to install AIM. If you already have AIM, click the \"Send Instant Message\"";
AVP.upm_VideoGiftUrl = "http://apps.facebook.com/videogifts/previewcustom.php?";
AVP.upm_smtToAol = "submit to AOL Favorites";
AVP.upm_smtToDigg = "Digg it!";
AVP.upm_smtToDel = "submit to del.icio.us";
AVP.upm_smtToNewsvine = "submit to Newsvine";
AVP.upm_smtToTechnorite = "submit to Technorati";
AVP.upm_smtToRedit = "submit to Reddit";
AVP.upm_smtToMangolia = "submit to Magnolia";
AVP.upm_smtToBlink = "submit to Blinklist";
AVP.upm_smtToFurl = "submit to Furl";
AVP.upm_smtToPropeller = "submit to Propeller";
AVP.upm_tagVideo = "Tag Video";
AVP.upm_tagViewAll = "View All Tags";
AVP.upm_tagClear = "Clear";
AVP.upm_tagSaveTag = "Save Tag";
AVP.upm_tagTagsColon = "Tags:";
AVP.upm_tagYourTagsAdded = "Your tags have been added";
AVP.upm_tagNoValidTags = "Please enter valid tags";
AVP.upm_tagDirtyTags = "Tags cannot contain objectionable language";
AVP.upm_tagServerError = "There is some problem in posting your request.";
AVP.upm_tagServerErrorSecondLine = "Please try after sometime.";
AVP.upm_tagUseCommas = "Use commas to separate  multiple tags";
AVP.upm_playlistAddToPlaylist = "Add to Playlist";
AVP.error_Apology="We apologize for the inconvenience, but we are currently experiencing technical difficulties.";	
AVP.error_Confirmation="Please check back regularly as we are diligently trying to fix this issue.";	
AVP.browseSurrogate_noDataFound="No Data found for this tab";	
AVP.browseSurrogate_of="of";	
AVP.main_BuyText="Buy";

AVP.loc_category = new Array();
//variable = ""stingname,stringvalue";
AVP.loc_category[0] = "news,News";
AVP.loc_category[1] = "sports,Sports";
AVP.loc_category[2] = "entertainment,Entertainment";
AVP.loc_category[3] = "movies,Movies";
AVP.loc_category[4] = "music,Music";
AVP.loc_category[5] = "videogames,Video Games";
AVP.loc_category[6] = "technology,Technology";
AVP.loc_category[7] = "business,Business";
AVP.loc_category[8] = "government,Government";
AVP.loc_category[9] = "lifestyles,Lifestyles";
AVP.loc_category[10] = "health&fitness,Health & Fitness";
AVP.loc_category[11] = "comedy,Comedy";
AVP.loc_category[12] = "commercials,Commercials";
AVP.loc_category[13] = "dance,Dance";
AVP.loc_category[14] = "documentary,Documentary";
AVP.loc_category[15] = "educational,Educational";
AVP.loc_category[16] = "gambling,Gambling";
AVP.loc_category[17] = "homevideo,Home Video";
AVP.loc_category[18] = "nature,Nature";
AVP.loc_category[19] = "religious,Religious";
AVP.loc_category[20] = "stockfootage,Stock Footage";
AVP.loc_category[21] = "travel,Travel";
AVP.loc_category[22] = "autos&vehicles,Autos & Vehicles";
AVP.loc_category[23] = "arts&literature,Arts & Literature";
AVP.loc_category[24] = "animation,Animation";
AVP.loc_category[25] = "pets&animals,Pets & Animals";
AVP.loc_category[26] = "adult,Adult";
AVP.loc_category[27] = "history,History";
AVP.loc_category[28] = "fashion,Fashion";
AVP.loc_category[29] = "food,Food";
AVP.loc_category[30] = "home&garden,Home & Garden";
AVP.loc_category[31] = "science,Science";
AVP.loc_category[32] = "women,Women";
AVP.loc_category[33] = "stunts,Stunts";
AVP.Omniture_mainRow = "Main Row"
AVP.Omniture_showBrowseRow = "Browse Row"
AVP.Omnitur_categoryNavRow = "Category Navigation Row"
AVP.search_RealatedTagHeading = "Related Tags";var avpGlobalSearchBoxOverrides = {
	selectSuggestion : function(e) {
		e.preventDefault();
				
		var core = this, coreVars = core.getVars(), ui = coreVars.ui, local = coreVars.local;

		if (e !== undefined && e.type === 'click') {
			var target = e.target;
			if (target.nodeName === 'B') { target = target.parentNode; }
			ui.$input.val($(target).text());
		}
		
		if (ui.$input.val() !== '' && ui.$input.val() !== local.ghostText) {
			return srchSub('151'); AVHeader.chkFamily();
		}
	},
	processInputFocus : function(e) {				
		com.aol.video.portal.Events.inputHeadClear();
	},
	processInputBlur : function(e) {
		com.aol.video.portal.Events.inputHeadText();
	}
}

function srchSub(id) {
	var frm=document.GH_search_form;
	if(Utils.trim(frm.query.value) != "" && Utils.trim(frm.query.value) != 	com.aol.video.portal.searchDefaultText &&  com.aol.video.portal.userHeadInput){
	    AVP.showGSL("1");
		var hostname = videopagehostUrl;
		frm.query.value=Utils.trim(frm.query.value);
		frm.sourceType.value=id;
		if(id==151) {
			if(frm.query.value!="") {
				var frmValue = frm.query.value;
				var frmStr = Utils.escapeHTMLString(frmValue);
				var loc_searchurl = hostname+"/video-search/query/"+frmStr;
				if(frm.query.value!="" && frm.familyFilter.value!=0) {
					window.location = loc_searchurl;
				} else {
					window.location = loc_searchurl+"/familyFilter/0";
				}
				return false;
			}
			return false;
		} else if(frm.sourceType.value==415) { 
			if(frm.query.value!="") {
				var audioUrl = "http://aolsearch.aol.com/aol/audio?invocationType=topsearchbox.audiohome&query="+frm.query.value;
				window.location = audioUrl;
			} 
		} else{
			if(frm.query.value!=""){
			frm.submit();return false;
			}
		}
		return true;
	}
	else{
		return false;
	}
}

function srchfSub(id){
	var frmfoot=document.av_fsearch;
	if(Utils.trim(frmfoot.q.value) != "" && Utils.trim(frmfoot.q.value) != 	com.aol.video.portal.searchDefaultText && com.aol.video.portal.userFootInput){
		AVP.showGSL("1");
		var hostname = videopagehostUrl; 
		frmfoot.q.value=Utils.trim(frmfoot.q.value);
		if(id==151) {
			if(frmfoot.q.value!="") {
				var frmfootValue = frmfoot.q.value;
				var frmfootStr = Utils.escapeHTMLString(frmfootValue);
				var loc_searchurl = hostname+"/video-search/query/"+frmfootStr;
				window.location = loc_searchurl;
				
			}
			return false;
		} 
	}
	else{
		return false;
	}
}/*
	name : globalHeader
	file : jquery.globalheader.js
	author : Ali Hasan
	(c) Copyright 2009 AOL LLC
	$LastChangedDate: 2009-11-24 08:30:32 -0500 (Tue, 24 Nov 2009) $
	$Rev: 134091 $
*/
(function(a){a.fn.globalHeader=function(d){var c={activeTab:null,moreLinks:[],morePromoCount:2,moreText:"Watch More Video:",moreAnd:"and",moreMore:"More",moreTextHeadline:"More Videos You Might Like",uiHat:"#GH_hat",uiHatLinks:"#GH_hat_links",uiHatTools:"#GH_hat_tools",uiNavLi:"li.GH_nav_LI",uiNavADd:".GH_nav_dd_A",auth:{doAuth:false,authenticated:false,authState:null,unauthState:null},search:{uiSearch:"#GH_search",params:{}},fn:{}},e={},h=this,g={},f={activeTab:null,moreLinksBuilt:false},b={init:function(i){g.$d=a(document);g.$c=a(i);g.hat=a(e.uiHat)[0];g.hatLinks=a(e.uiHatLinks)[0];g.$hatTools=a(e.uiHatTools);g.$search=a(e.search.uiSearch);g.$searchInput=g.$search.find("input:first");g.$searchSubmit=g.$search.find("input:last");g.$navLi=g.$c.find(e.uiNavLi);g.$navADd=g.$c.find(e.uiNavADd);b.setActiveTab(null,e.activeTab);if(e.auth.doAuth){b.buildAuth()}b.buildMoreLinks();b.buildDropDowns();g.$c.bind("setActiveTab",function(k,j){b.setActiveTab(k,j)});g.$c.bind("setAuthState",function(k,j){b.buildAuth(k,j)});if(e.search.params.initFocus!==undefined&&e.search.params.initFocus){g.$search.globalSearchBox(e.search.params)}else{g.$searchInput.bind("focus.GH",function(j){b.buildSearch(j)}).attr("autocomplete","off");g.$searchSubmit.bind("mouseover.GH",function(j){b.buildSearch(j)});if(e.search.params.searchText!==undefined&&e.search.params.searchText!==""){g.$searchInput.val(e.search.params.searchText)}}},getVars:function(){return{options:e,ui:g,local:f}},buildSearch:function(i){g.$searchInput.unbind("focus.GH");g.$searchSubmit.unbind("mouseover.GH");if(i.target===g.$searchInput[0]){g.$searchInput.addClass("GH_search_active").attr("value","")}g.$search.globalSearchBox(e.search.params)},buildAuth:function(j,i){if(i!==undefined){a.extend(true,e.auth,i)}g.$hatTools.empty().append((e.auth.authenticated)?e.auth.authState:e.auth.unauthState)},buildMoreLinks:function(){var o=e.moreLinks,m=0,j=o.length;if(j>=e.morePromoCount){var n,k=a("<li />").addClass("GH_hat_LI").append(n=a("<ul />").attr("id","GH_hat_more").addClass("GH_hat_UL").append(a("<li />").addClass("GH_hat_LI").text(e.moreText+"\xa0 ")));for(;m<e.morePromoCount;m++){n.append(a("<li />").addClass("GH_hat_LI").append(a("<a />").attr({href:o[m][1],target:(o[m][2]!==undefined)?o[m][2]:"_self"}).addClass("GH_hat_A GH_hat_more_A").text(o[m][0])).append((m<e.morePromoCount-1)?",\xa0":""))}if(j>e.morePromoCount){n.append(g.$hatLIMore=a("<li />").addClass("GH_hat_LI GH_hat_LI_more").append("\xa0"+e.moreAnd+"\xa0").append(g.$hatMoreLink=a("<a />").attr({id:"GH_hat_more_link",href:"#"}).addClass("GH_hat_A GH_hat_more_A").text(e.moreMore).bind("mouseover.GH",function(i){b.showMoreLinks(i)})))}k.appendTo(g.hatLinks)}},showMoreLinks:function(p){p.preventDefault();if(f.moreLinksBuilt===false){var n=e.moreLinks.slice(e.morePromoCount),o=0,m=n.length,j=Math.ceil(m/3),k=Math.ceil(m/3*2),s,r,q,t;g.$hatMoreList=a("<div />").attr("id","GH_more_list").append(a("<b />").attr("id","GH_more_list_lab").text(e.moreTextHeadline)).append(s=a("<ul />").addClass("GH_more_list_UL")).append(r=a("<ul />").addClass("GH_more_list_UL")).append(q=a("<ul />").addClass("GH_more_list_UL"));for(;o<m;o++){t=a("<li />").append(a("<a />").attr({href:n[o][1],target:(n[o][2]!==undefined)?n[o][2]:"_self"}).text(n[o][0]));if(o<j){t.appendTo(s)}else{if(o<k){t.appendTo(r)}else{t.appendTo(q)}}}g.$hatMoreList.css("left",g.$hatLIMore.offset().left-g.$c.offset().left+14).appendTo(g.hat);f.moreLinksBuilt=true}if(g.$hatMoreList.css("display")==="none"){g.$d.bind("mousemove.GHTEMP",function(i){b.kill(i)});g.$hatMoreList.fadeIn("fast")}},kill:function(j){var i=a(j.target);if(i.closest("#GH_hat_more_link").length===0&&i.closest("#GH_more_list").length===0){g.$d.unbind("mousemove.GHTEMP");g.$hatMoreList.fadeOut("fast")}},setActiveTab:function(j,i){if(i!==undefined&&i!==null){if(f.activeTab!==null){f.activeTab.removeAttr("id");if(f.activeTab.hasClass("GH_nav_list")){a("#GH_nav_act_B").removeAttr("id")}}f.activeTab=g.$navLi.eq(i).attr("id","GH_nav_act");f.activeTab.children().eq(0).css("clear","both");if(f.activeTab.hasClass("GH_nav_list")){f.activeTab.children().eq(0).wrapInner('<b id="GH_nav_act_B"></b>')}}},buildDropDowns:function(){g.$navLi.each(function(){var i=a(this);if(i.hasClass("GH_nav_list")){i.mouseover(function(){if(i.showtimer){clearInterval(i.showtimer);i.showtimer=null}i.addClass("GH_nav_list_open").find("ul").fadeIn("fast")}).mouseout(function(){i.showtimer=setTimeout(function(){if(i.showtimer){clearInterval(i.showtimer);i.showtimer=null}i.removeClass("GH_nav_list_open").find("ul").fadeOut("fast")},250)})}})}};a.extend(true,e,c,d);a.extend(true,b,e.fn);b.init(h);return h}})(jQuery);/*	name : globalSearchBox
	file : jquery.globalsearchbox-d.js
	author : Ali Hasan
	(c) Copyright 2009 AOL LLC
	$LastChangedDate: 2009-11-20 14:21:28 -0500 (Fri, 20 Nov 2009) $
	$Rev: 133745 $
*/
(function(a){a.fn.globalSearchBox=function(d){var c={apiUrl:"http://autocomplete.search.aol.com/autocomplete/get",apiIt:"ops-test",apiOutput:"json",apiCount:8,apiQueryParam:"q",apiDictionary:"",ui_form:"#GH_search_form",ui_input:"#GH_search_field",ui_submit:"#GH_search_button",ui_output:"#GH_search_results",initSmartSearch:true,searchText:"",preserveGhostText:false,initFocus:false,fn:{}},e={},h=this,g={},f={ghostText:"",query:"",results:[],highlight:-1,$highlight:null,timer:null},b={init:function(i){g.$c=a(i);g.$input=a(e.ui_input);g.$output=a(e.ui_output);g.form=a(e.ui_form)[0];g.submit=a(e.ui_submit)[0];f.ghostText=g.$input.attr("defaultValue");g.$input.attr("autocomplete","off").bind("focus.GH",function(j){b.processInputFocus(j)}).bind("blur.GH",function(j){b.processInputBlur(j)});a(g.form).bind("submit.GH",function(j){b.selectSuggestion(j)});if(e.initSmartSearch){e.apiUrl=e.apiUrl+"?it="+e.apiIt+"&count="+e.apiCount+"&output="+e.apiOutput;if(e.apiDictionary!==""){e.apiUrl=e.apiUrl+"&dict="+e.apiDictionary}g.$input.bind("keyup.GH",function(j){b.processKeyPress(j)});g.$output.bind("mouseover.GH",function(j){b.moveHighlightMouse(j)}).bind("mouseover.GH",function(j){b.suspendBlurDetection(j)}).bind("mouseleave.GH",function(j){b.resumeBlurDetection(j)}).bind("click.GH",function(j){b.selectSuggestion(j)})}if(e.initFocus){g.$input.focus()}if(e.preserveGhostText){g.$label=a("<label />").attr("id","GH_search_label").text(f.ghostText).appendTo(g.form);g.$label.bind("click.GH_SL",function(j){b.preserveGhostText(true)});g.$input.bind("keyup.GH_SL",function(j){b.preserveGhostText(j)}).bind("click.GH_SL",function(j){b.preserveGhostText(j)}).bind("blur.GH_SL",function(j){setTimeout(function(){b.preserveGhostText(j)},250)})}if(e.searchText!==""){g.$input.val(e.searchText)}},getVars:function(){return{options:e,ui:g,local:f}},processInputFocus:function(i){g.$input.addClass("GH_search_active").val((g.$input.val()===f.ghostText)?"":g.$input.val())},processInputBlur:function(i){g.$input.removeClass("GH_search_active").val((g.$input.val()==="")?f.ghostText:g.$input.val());b.displaySuggestions()},preserveGhostText:function(i){if(typeof i==="boolean"&&i){g.$input.focus()}g.$input.unbind("keyup.GH_SL").unbind("click.GH_SL").unbind("blur.GH_SL");g.$label.remove()},processKeyPress:function(l){var j=l.keyCode;if(j===38){b.moveHighlightKey(-1)}else{if(j===40){b.moveHighlightKey(1)}else{var i=l.target,k=a.trim(i.value);if(k!==""){if(f.timer!==null){clearTimeout(f.timer)}f.timer=setTimeout(function(){b.getSuggestions(k)},200)}else{b.displaySuggestions()}}}},moveHighlightKey:function(j){if(f.$highlight!==null){f.$highlight.removeClass("GH_highlight")}f.highlight=f.highlight+j;if(f.highlight>=f.results.length||f.highlight===-1){f.highlight=-1;g.$input.val(f.query)}else{if(f.highlight<-1){f.highlight=f.results.length-1}}if(f.highlight>-1){f.$highlight=a(f.results[f.highlight]);f.$highlight.addClass("GH_highlight");g.$input.val(f.$highlight.text())}},moveHighlightMouse:function(j){var i=j.target;if(i.nodeName==="B"){i=i.parentNode}if(f.$highlight!==null){f.$highlight.removeClass("GH_highlight")}f.highlight=f.results.index(i);f.$highlight=a(i).addClass("GH_highlight")},selectSuggestion:function(j){j.preventDefault();if(j!==undefined&&j.type==="click"){var i=j.target;if(i.nodeName==="B"){i=i.parentNode}g.$input.val(a(i).text())}g.$input.val(a.trim(g.$input.val()));if(g.$input.val()!==""&&g.$input.val()!==f.ghostText){g.form.submit()}},getSuggestions:function(j){var i=e.apiUrl+"&"+e.apiQueryParam+"="+j;a.ajax({dataType:"jsonp",url:i,jsonp:"cb",success:function(k){b.displaySuggestions(k)},error:function(){b.displaySuggestions()}})},suspendBlurDetection:function(){g.$input.unbind("blur.GH")},resumeBlurDetection:function(){g.$input.bind("blur.GH",function(i){b.processInputBlur(i)})},displaySuggestions:function(p){f.highlight=-1;f.$highlight=null;if(p!==undefined&&p[1].length>0){f.query=p[0];var o=p[1],j=a("<ul />"),m,k=o.length,n=new RegExp(f.query,"i"),q="<b>"+f.query+"</b>";for(m=0;m<k;m++){a("<li />").html(o[m].replace(n,q)).appendTo(j)}f.results=j.find("li");g.$output.empty().append(j).fadeIn("fast")}else{f.query="";f.results=[];g.$output.fadeOut("fast").empty()}}};a.extend(true,e,c,d);a.extend(true,b,e.fn);b.init(h);return h}})(jQuery);