(function(){if(typeof window.InSkinParams=="undefined")window.InSkinParams={};var N=typeof window.InSkin!="undefined"?window.InSkin:window.InSkin={};if(typeof N["4.2"]=="undefined")N["4.2"]={};var Pa="";typeof N.jQuery==="undefined"&&function(c,a,d){function h(){if(!f.isReady){try{C.documentElement.doScroll("left")}catch(b){setTimeout(h,1);return}f.ready()}}function k(b,e){e.src?f.ajax({url:e.src,async:false,dataType:"script"}):f.globalEval(e.text||e.textContent||e.innerHTML||"");e.parentNode&&e.parentNode.removeChild(e)}
function q(b,e,g,j,i,n){var o=b.length;if(typeof e==="object"){for(var w in e)q(b,w,e[w],j,i,g);return b}if(g!==d){j=!n&&j&&f.isFunction(g);for(w=0;w<o;w++)i(b[w],e,j?g.call(b[w],w,i(b[w],e)):g,n);return b}return o?i(b[0],e):null}function x(){return(new Date).getTime()}function D(){return false}function K(){return true}function W(b,e,g){g[0].type=b;return f.event.handle.apply(e,g)}function X(b){var e,g=[],j=[],i=arguments,n,o,w,y,u,L,Q=f.extend({},f.data(this,"events").live);if(!(b.button&&b.type===
"click")){for(y in Q){o=Q[y];if(o.live===b.type||o.altLive&&f.inArray(b.type,o.altLive)>-1){n=o.data;n.beforeFilter&&n.beforeFilter[b.type]&&!n.beforeFilter[b.type](b)||j.push(o.selector)}else delete Q[y]}n=f(b.target).closest(j,b.currentTarget);u=0;for(L=n.length;u<L;u++)for(y in Q){o=Q[y];w=n[u].elem;j=null;if(n[u].selector===o.selector){if(o.live==="mouseenter"||o.live==="mouseleave")j=f(b.relatedTarget).closest(o.selector)[0];if(!j||j!==w)g.push({elem:w,fn:o})}}u=0;for(L=g.length;u<L;u++){n=g[u];
b.currentTarget=n.elem;b.data=n.fn.data;if(n.fn.apply(n.elem,i)===false){e=false;break}}return e}}function ma(b,e){return"live."+(b?b+".":"")+e.replace(/\./g,"`").replace(/ /g,"&")}function da(b,e){var g=0;e.each(function(){if(this.nodeName===(b[g]&&b[g].nodeName)){var j=f.data(b[g++]),i=f.data(this,j);if(j=j&&j.events){delete i.handle;i.events={};for(var n in j)for(var o in j[n])f.event.add(this,n,j[n][o],j[n][o].data)}}})}function na(b,e,g){var j,i,n;if(b.length===1&&typeof b[0]==="string"&&b[0].length<
512&&b[0].indexOf("<option")<0&&(f.support.checkClone||!Xa.test(b[0]))){i=true;if(n=f.fragments[b[0]])if(n!==1)j=n}if(!j){e=e&&e[0]?e[0].ownerDocument||e[0]:C;j=e.createDocumentFragment();f.clean(b,e,j,g)}if(i)f.fragments[b[0]]=n?j:1;return{fragment:j,cacheable:i}}function ga(b,e){var g={};f.each(Ya.concat.apply([],Ya.slice(0,e)),function(){g[this]=b});return g}function pa(b){return"scrollTo"in b&&b.document?b:b.nodeType===9?b.defaultView||b.parentWindow:false}var f=function(b,e){return new f.fn.init(b,
e)},Ea=a.jQuery,V=a.$,C=a.document,ea,oa=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,ia=/^.[^:#\[\.,]*$/,E=/\S/,fa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,U=navigator.userAgent,ba=false,qa=[],ja,va=Object.prototype.toString,s=Object.prototype.hasOwnProperty,G=Array.prototype.push,S=Array.prototype.slice,ka=Array.prototype.indexOf;f.fn=f.prototype={init:function(b,e){var g,j;if(!b)return this;if(b.nodeType){this.context=this[0]=b;this.length=1;return this}if(typeof b==="string")if((g=
oa.exec(b))&&(g[1]||!e))if(g[1]){j=e?e.ownerDocument||e:C;if(b=ya.exec(b))if(f.isPlainObject(e)){b=[C.createElement(b[1])];f.fn.attr.call(b,e,true)}else b=[j.createElement(b[1])];else{b=na([g[1]],[j]);b=(b.cacheable?b.fragment.cloneNode(true):b.fragment).childNodes}}else{if(e=C.getElementById(g[2])){if(e.id!==g[2])return ea.find(b);this.length=1;this[0]=e}this.context=C;this.selector=b;return this}else if(!e&&/^\w+$/.test(b)){this.selector=b;this.context=C;b=C.getElementsByTagName(b)}else return!e||
e.jquery?(e||ea).find(b):f(e).find(b);else if(f.isFunction(b))return ea.ready(b);if(b.selector!==d){this.selector=b.selector;this.context=b.context}return f.isArray(b)?this.setArray(b):f.makeArray(b,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return S.call(this,0)},get:function(b){return b==null?this.toArray():b<0?this.slice(b)[0]:this[b]},pushStack:function(b,e,g){b=f(b||null);b.prevObject=this;b.context=this.context;if(e==="find")b.selector=
this.selector+(this.selector?" ":"")+g;else if(e)b.selector=this.selector+"."+e+"("+g+")";return b},setArray:function(b){this.length=0;G.apply(this,b);return this},each:function(b,e){return f.each(this,b,e)},ready:function(b){f.bindReady();if(f.isReady)b.call(C,f);else qa&&qa.push(b);return this},eq:function(b){return b===-1?this.slice(b):this.slice(b,+b+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(S.apply(this,arguments),"slice",
S.call(arguments).join(","))},map:function(b){return this.pushStack(f.map(this,function(e,g){return b.call(e,g,e)}))},end:function(){return this.prevObject||f(null)},push:G,sort:[].sort,splice:[].splice};f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var b=arguments[0]||{},e=1,g=arguments.length,j=false,i,n,o,w;if(typeof b==="boolean"){j=b;b=arguments[1]||{};e=2}if(typeof b!=="object"&&!f.isFunction(b))b={};if(g===e){b=this;--e}for(;e<g;e++)if((i=arguments[e])!=null)for(n in i){o=b[n];w=
i[n];if(b!==w)if(j&&w&&(f.isPlainObject(w)||f.isArray(w))){o=o&&(f.isPlainObject(o)||f.isArray(o))?o:f.isArray(w)?[]:{};b[n]=f.extend(j,o,w)}else if(w!==d)b[n]=w}return b};f.extend({noConflict:function(b){a.$=V;if(b)a.jQuery=Ea;return f},isReady:false,ready:function(){if(!f.isReady){if(!C.body)return setTimeout(f.ready,13);f.isReady=true;if(qa){for(var b,e=0;b=qa[e++];)b.call(C,f);qa=null}f.fn.triggerHandler&&f(C).triggerHandler("ready")}},bindReady:function(){if(!ba){ba=true;if(C.readyState==="complete")return f.ready();
if(C.addEventListener){C.addEventListener("DOMContentLoaded",ja,false);a.addEventListener("load",f.ready,false)}else if(C.attachEvent){C.attachEvent("onreadystatechange",ja);a.attachEvent("onload",f.ready);var b=false;try{b=a.frameElement==null}catch(e){}C.documentElement.doScroll&&b&&h()}}},isFunction:function(b){return va.call(b)==="[object Function]"},isArray:function(b){return va.call(b)==="[object Array]"},isPlainObject:function(b){if(!b||va.call(b)!=="[object Object]"||b.nodeType||b.setInterval)return false;
if(b.constructor&&!s.call(b,"constructor")&&!s.call(b.constructor.prototype,"isPrototypeOf"))return false;for(var e in b);return e===d||s.call(b,e)},isEmptyObject:function(b){for(var e in b)return false;return true},error:function(b){throw b;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return a.JSON&&
a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();else f.error("Invalid JSON: "+b)},noop:function(){},globalEval:function(b){if(b&&E.test(b)){var e=C.getElementsByTagName("head")[0]||C.documentElement,g=C.createElement("script");g.type="text/javascript";if(f.support.scriptEval)g.appendChild(C.createTextNode(b));else g.text=b;e.insertBefore(g,e.firstChild);e.removeChild(g)}},nodeName:function(b,e){return b.nodeName&&b.nodeName.toUpperCase()===e.toUpperCase()},each:function(b,e,g){var j,i=
0,n=b.length,o=n===d||f.isFunction(b);if(g)if(o)for(j in b){if(e.apply(b[j],g)===false)break}else for(;i<n;){if(e.apply(b[i++],g)===false)break}else if(o)for(j in b){if(e.call(b[j],j,b[j])===false)break}else for(g=b[0];i<n&&e.call(g,i,g)!==false;g=b[++i]);return b},trim:function(b){return(b||"").replace(fa,"")},makeArray:function(b,e){e=e||[];if(b!=null)b.length==null||typeof b==="string"||f.isFunction(b)||typeof b!=="function"&&b.setInterval?G.call(e,b):f.merge(e,b);return e},inArray:function(b,
e){if(e.indexOf)return e.indexOf(b);for(var g=0,j=e.length;g<j;g++)if(e[g]===b)return g;return-1},merge:function(b,e){var g=b.length,j=0;if(typeof e.length==="number")for(var i=e.length;j<i;j++)b[g++]=e[j];else for(;e[j]!==d;)b[g++]=e[j++];b.length=g;return b},grep:function(b,e,g){for(var j=[],i=0,n=b.length;i<n;i++)!g!==!e(b[i],i)&&j.push(b[i]);return j},map:function(b,e,g){for(var j=[],i,n=0,o=b.length;n<o;n++){i=e(b[n],n,g);if(i!=null)j[j.length]=i}return j.concat.apply([],j)},guid:1,proxy:function(b,
e,g){if(arguments.length===2)if(typeof e==="string"){g=b;b=g[e];e=d}else if(e&&!f.isFunction(e)){g=e;e=d}if(!e&&b)e=function(){return b.apply(g||this,arguments)};if(b)e.guid=b.guid=b.guid||e.guid||f.guid++;return e},uaMatch:function(b){b=b.toLowerCase();b=/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||!/compatible/.test(b)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(b)||[];return{browser:b[1]||"",version:b[2]||"0"}},browser:{}});U=f.uaMatch(U);
if(U.browser){f.browser[U.browser]=true;f.browser.version=U.version}if(f.browser.webkit)f.browser.safari=true;if(ka)f.inArray=function(b,e){return ka.call(e,b)};ea=f(C);if(C.addEventListener)ja=function(){C.removeEventListener("DOMContentLoaded",ja,false);f.ready()};else if(C.attachEvent)ja=function(){if(C.readyState==="complete"){C.detachEvent("onreadystatechange",ja);f.ready()}};(function(){f.support={};var b=C.documentElement,e=C.createElement("script"),g=C.createElement("div"),j="script"+x();
g.style.display="none";g.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var i=g.getElementsByTagName("*"),n=g.getElementsByTagName("a")[0];if(!(!i||!i.length||!n)){f.support={leadingWhitespace:g.firstChild.nodeType===3,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(n.getAttribute("style")),hrefNormalized:n.getAttribute("href")==="/a",opacity:/^0.55$/.test(n.style.opacity),
cssFloat:!!n.style.cssFloat,checkOn:g.getElementsByTagName("input")[0].value==="on",optSelected:C.createElement("select").appendChild(C.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(C.createTextNode("window."+j+"=1;"))}catch(o){}b.insertBefore(e,b.firstChild);if(a[j]){f.support.scriptEval=true;delete a[j]}b.removeChild(e);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function w(){f.support.noCloneEvent=
false;g.detachEvent("onclick",w)});g.cloneNode(true).fireEvent("onclick")}g=C.createElement("div");g.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";b=C.createDocumentFragment();b.appendChild(g.firstChild);f.support.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;f(function(){var w=C.createElement("div");w.style.width=w.style.paddingLeft="1px";C.body.appendChild(w);f.boxModel=f.support.boxModel=w.offsetWidth===2;C.body.removeChild(w).style.display="none"});b=function(w){var y=
C.createElement("div");w="on"+w;var u=w in y;if(!u){y.setAttribute(w,"return;");u=typeof y[w]==="function"}return u};f.support.submitBubbles=b("submit");f.support.changeBubbles=b("change");b=e=g=i=n=null}})();f.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ca="jQuery"+x(),wa=0,Fa={},La={};f.extend({cache:{},expando:ca,noData:{embed:true,
object:true,applet:true},data:function(b,e,g){if(!(b.nodeName&&f.noData[b.nodeName.toLowerCase()])){b=b==a?Fa:b;var j=b[ca],i=f.cache;if(!e&&!j)return null;j||(j=++wa);if(typeof e==="object"){b[ca]=j;i=i[j]=f.extend(true,{},e)}else i=i[j]?i[j]:typeof g==="undefined"?La:i[j]={};if(g!==d){b[ca]=j;i[e]=g}return typeof e==="string"?i[e]:i}},removeData:function(b,e){if(!(b.nodeName&&f.noData[b.nodeName.toLowerCase()])){b=b==a?Fa:b;var g=b[ca],j=f.cache,i=j[g];if(e){if(i){delete i[e];f.isEmptyObject(i)&&
f.removeData(b)}}else{try{delete b[ca]}catch(n){b.removeAttribute&&b.removeAttribute(ca)}delete j[g]}}}});f.fn.extend({data:function(b,e){if(typeof b==="undefined"&&this.length)return f.data(this[0]);else if(typeof b==="object")return this.each(function(){f.data(this,b)});var g=b.split(".");g[1]=g[1]?"."+g[1]:"";if(e===d){var j=this.triggerHandler("getData"+g[1]+"!",[g[0]]);if(j===d&&this.length)j=f.data(this[0],b);return j===d&&g[1]?this.data(g[0]):j}else return this.trigger("setData"+g[1]+"!",[g[0],
e]).each(function(){f.data(this,b,e)})},removeData:function(b){return this.each(function(){f.removeData(this,b)})}});f.extend({queue:function(b,e,g){if(b){e=(e||"fx")+"queue";var j=f.data(b,e);if(!g)return j||[];if(!j||f.isArray(g))j=f.data(b,e,f.makeArray(g));else j.push(g);return j}},dequeue:function(b,e){e=e||"fx";var g=f.queue(b,e),j=g.shift();if(j==="inprogress")j=g.shift();if(j){e==="fx"&&g.unshift("inprogress");j.call(b,function(){f.dequeue(b,e)})}}});f.fn.extend({queue:function(b,e){if(typeof b!==
"string"){e=b;b="fx"}if(e===d)return f.queue(this[0],b);return this.each(function(){var g=f.queue(this,b,e);b==="fx"&&g[0]!=="inprogress"&&f.dequeue(this,b)})},dequeue:function(b){return this.each(function(){f.dequeue(this,b)})},delay:function(b,e){b=f.fx?f.fx.speeds[b]||b:b;e=e||"fx";return this.queue(e,function(){var g=this;setTimeout(function(){f.dequeue(g,e)},b)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var H=/[\n\t]/g,p=/\s+/,v=/\r/g,B=/href|src|style/,F=/(button|input)/i,I=
/(button|input|object|select|textarea)/i,T=/^(a|area)$/i,P=/radio|checkbox/;f.fn.extend({attr:function(b,e){return q(this,b,e,true,f.attr)},removeAttr:function(b){return this.each(function(){f.attr(this,b,"");this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(f.isFunction(b))return this.each(function(y){var u=f(this);u.addClass(b.call(this,y,u.attr("class")))});if(b&&typeof b==="string")for(var e=(b||"").split(p),g=0,j=this.length;g<j;g++){var i=this[g];if(i.nodeType===1)if(i.className)for(var n=
" "+i.className+" ",o=0,w=e.length;o<w;o++){if(n.indexOf(" "+e[o]+" ")<0)i.className+=" "+e[o]}else i.className=b}return this},removeClass:function(b){if(f.isFunction(b))return this.each(function(y){var u=f(this);u.removeClass(b.call(this,y,u.attr("class")))});if(b&&typeof b==="string"||b===d)for(var e=(b||"").split(p),g=0,j=this.length;g<j;g++){var i=this[g];if(i.nodeType===1&&i.className)if(b){for(var n=(" "+i.className+" ").replace(H," "),o=0,w=e.length;o<w;o++)n=n.replace(" "+e[o]+" "," ");i.className=
n.substring(1,n.length-1)}else i.className=""}return this},toggleClass:function(b,e){var g=typeof b,j=typeof e==="boolean";if(f.isFunction(b))return this.each(function(i){var n=f(this);n.toggleClass(b.call(this,i,n.attr("class"),e),e)});return this.each(function(){if(g==="string")for(var i,n=0,o=f(this),w=e,y=b.split(p);i=y[n++];){w=j?w:!o.hasClass(i);o[w?"addClass":"removeClass"](i)}else if(g==="undefined"||g==="boolean"){this.className&&f.data(this,"__className__",this.className);this.className=
this.className||b===false?"":f.data(this,"__className__")||""}})},hasClass:function(b){b=" "+b+" ";for(var e=0,g=this.length;e<g;e++)if((" "+this[e].className+" ").replace(H," ").indexOf(b)>-1)return true;return false},val:function(b){if(b===d){var e=this[0];if(e){if(f.nodeName(e,"option"))return(e.attributes.value||{}).specified?e.value:e.text;if(f.nodeName(e,"select")){var g=e.selectedIndex,j=[],i=e.options;e=e.type==="select-one";if(g<0)return null;var n=e?g:0;for(g=e?g+1:i.length;n<g;n++){var o=
i[n];if(o.selected){b=f(o).val();if(e)return b;j.push(b)}}return j}if(P.test(e.type)&&!f.support.checkOn)return e.getAttribute("value")===null?"on":e.value;return(e.value||"").replace(v,"")}return d}var w=f.isFunction(b);return this.each(function(y){var u=f(this),L=b;if(this.nodeType===1){if(w)L=b.call(this,y,u.val());if(typeof L==="number")L+="";if(f.isArray(L)&&P.test(this.type))this.checked=f.inArray(u.val(),L)>=0;else if(f.nodeName(this,"select")){var Q=f.makeArray(L);f("option",this).each(function(){this.selected=
f.inArray(f(this).val(),Q)>=0});if(!Q.length)this.selectedIndex=-1}else this.value=L}})}});f.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,e,g,j){if(!b||b.nodeType===3||b.nodeType===8)return d;if(j&&e in f.attrFn)return f(b)[e](g);j=b.nodeType!==1||!f.isXMLDoc(b);var i=g!==d;e=j&&f.props[e]||e;if(b.nodeType===1){var n=B.test(e);if(e in b&&j&&!n){if(i){e==="type"&&F.test(b.nodeName)&&b.parentNode&&f.error("type property can't be changed");
b[e]=g}if(f.nodeName(b,"form")&&b.getAttributeNode(e))return b.getAttributeNode(e).nodeValue;if(e==="tabIndex")return(e=b.getAttributeNode("tabIndex"))&&e.specified?e.value:I.test(b.nodeName)||T.test(b.nodeName)&&b.href?0:d;return b[e]}if(!f.support.style&&j&&e==="style"){if(i)b.style.cssText=""+g;return b.style.cssText}i&&b.setAttribute(e,""+g);b=!f.support.hrefNormalized&&j&&n?b.getAttribute(e,2):b.getAttribute(e);return b===null?d:b}return f.style(b,e,g)}});var $=function(b){return b.replace(/[^\w\s\.\|`]/g,
function(e){return"\\"+e})};f.event={add:function(b,e,g,j){if(!(b.nodeType===3||b.nodeType===8)){if(b.setInterval&&b!==a&&!b.frameElement)b=a;if(!g.guid)g.guid=f.guid++;if(j!==d){g=f.proxy(g);g.data=j}var i=f.data(b,"events")||f.data(b,"events",{}),n=f.data(b,"handle"),o;if(!n){o=function(){return typeof f!=="undefined"&&!f.event.triggered?f.event.handle.apply(o.elem,arguments):d};n=f.data(b,"handle",o)}if(n){n.elem=b;e=e.split(/\s+/);for(var w,y=0;w=e[y++];){var u=w.split(".");w=u.shift();if(y>1){g=
f.proxy(g);if(j!==d)g.data=j}g.type=u.slice(0).sort().join(".");var L=i[w],Q=this.special[w]||{};if(!L){L=i[w]={};if(!Q.setup||Q.setup.call(b,j,u,g)===false)if(b.addEventListener)b.addEventListener(w,n,false);else b.attachEvent&&b.attachEvent("on"+w,n)}if(Q.add)if((u=Q.add.call(b,g,j,u,L))&&f.isFunction(u)){u.guid=u.guid||g.guid;u.data=u.data||g.data;u.type=u.type||g.type;g=u}L[g.guid]=g;this.global[w]=true}b=null}}},global:{},remove:function(b,e,g){if(!(b.nodeType===3||b.nodeType===8)){var j=f.data(b,
"events"),i,n,o;if(j){if(e===d||typeof e==="string"&&e.charAt(0)===".")for(n in j)this.remove(b,n+(e||""));else{if(e.type){g=e.handler;e=e.type}e=e.split(/\s+/);for(var w=0;n=e[w++];){var y=n.split(".");n=y.shift();var u=!y.length,L=f.map(y.slice(0).sort(),$);L=RegExp("(^|\\.)"+L.join("\\.(?:.*\\.)?")+"(\\.|$)");var Q=this.special[n]||{};if(j[n]){if(g){o=j[n][g.guid];delete j[n][g.guid]}else for(var aa in j[n])if(u||L.test(j[n][aa].type))delete j[n][aa];Q.remove&&Q.remove.call(b,y,o);for(i in j[n])break;
if(!i){if(!Q.teardown||Q.teardown.call(b,y)===false)if(b.removeEventListener)b.removeEventListener(n,f.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+n,f.data(b,"handle"));i=null;delete j[n]}}}}for(i in j)break;if(!i){if(aa=f.data(b,"handle"))aa.elem=null;f.removeData(b,"events");f.removeData(b,"handle")}}}},trigger:function(b,e,g,j){var i=b.type||b;if(!j){b=typeof b==="object"?b[ca]?b:f.extend(f.Event(i),b):f.Event(i);if(i.indexOf("!")>=0){b.type=i=i.slice(0,-1);b.exclusive=true}if(!g){b.stopPropagation();
this.global[i]&&f.each(f.cache,function(){this.events&&this.events[i]&&f.event.trigger(b,e,this.handle.elem)})}if(!g||g.nodeType===3||g.nodeType===8)return d;b.result=d;b.target=g;e=f.makeArray(e);e.unshift(b)}b.currentTarget=g;(j=f.data(g,"handle"))&&j.apply(g,e);j=g.parentNode||g.ownerDocument;try{if(!(g&&g.nodeName&&f.noData[g.nodeName.toLowerCase()]))if(g["on"+i]&&g["on"+i].apply(g,e)===false)b.result=false}catch(n){}if(!b.isPropagationStopped()&&j)f.event.trigger(b,e,j,true);else if(!b.isDefaultPrevented()){g=
b.target;var o;if(!(f.nodeName(g,"a")&&i==="click")&&!(g&&g.nodeName&&f.noData[g.nodeName.toLowerCase()])){try{if(g[i]){if(o=g["on"+i])g["on"+i]=null;this.triggered=true;g[i]()}}catch(w){}if(o)g["on"+i]=o;this.triggered=false}}},handle:function(b){var e,g;b=arguments[0]=f.event.fix(b||a.event);b.currentTarget=this;g=b.type.split(".");b.type=g.shift();e=!g.length&&!b.exclusive;var j=RegExp("(^|\\.)"+g.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");g=(f.data(this,"events")||{})[b.type];for(var i in g){var n=
g[i];if(e||j.test(n.type)){b.handler=n;b.data=n.data;n=n.apply(this,arguments);if(n!==d){b.result=n;if(n===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(b){if(b[ca])return b;var e=b;b=f.Event(e);for(var g=this.props.length,j;g;){j=this.props[--g];b[j]=e[j]}if(!b.target)b.target=b.srcElement||C;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){e=C.documentElement;g=C.body;b.pageX=b.clientX+(e&&e.scrollLeft||g&&g.scrollLeft||0)-(e&&e.clientLeft||g&&g.clientLeft||0);b.pageY=b.clientY+(e&&e.scrollTop||
g&&g.scrollTop||0)-(e&&e.clientTop||g&&g.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==d)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(b,e){f.extend(b,e||{});b.guid+=e.selector+e.live;e.liveProxy=b;f.event.add(this,e.live,X,e)},remove:function(b){if(b.length){var e=
0,g=RegExp("(^|\\.)"+b[0]+"(\\.|$)");f.each(f.data(this,"events").live||{},function(){g.test(this.type)&&e++});e<1&&f.event.remove(this,b[0],X)}},special:{}},beforeunload:{setup:function(b,e,g){if(this.setInterval)this.onbeforeunload=g;return false},teardown:function(b,e){if(this.onbeforeunload===e)this.onbeforeunload=null}}}};f.Event=function(b){if(!this.preventDefault)return new f.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=x();this[ca]=true};f.Event.prototype=
{preventDefault:function(){this.isDefaultPrevented=K;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=K;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K;this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var Z=function(b){for(var e=b.relatedTarget;e&&
e!==this;)try{e=e.parentNode}catch(g){break}if(e!==this){b.type=b.data;f.event.handle.apply(this,arguments)}},Aa=function(b){b.type=b.data;f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,e){f.event.special[b]={setup:function(g){f.event.add(this,e,g&&g.selector?Aa:Z,b)},teardown:function(g){f.event.remove(this,e,g&&g.selector?Aa:Z)}}});if(!f.support.submitBubbles)f.event.special.submit={setup:function(b,e,g){if(this.nodeName.toLowerCase()!=="form"){f.event.add(this,
"click.specialSubmit."+g.guid,function(j){var i=j.target,n=i.type;if((n==="submit"||n==="image")&&f(i).closest("form").length)return W("submit",this,arguments)});f.event.add(this,"keypress.specialSubmit."+g.guid,function(j){var i=j.target,n=i.type;if((n==="text"||n==="password")&&f(i).closest("form").length&&j.keyCode===13)return W("submit",this,arguments)})}else return false},remove:function(b,e){f.event.remove(this,"click.specialSubmit"+(e?"."+e.guid:""));f.event.remove(this,"keypress.specialSubmit"+
(e?"."+e.guid:""))}};if(!f.support.changeBubbles){var Ba=/textarea|input|select/i,xa=function(b){var e=b.type,g=b.value;if(e==="radio"||e==="checkbox")g=b.checked;else if(e==="select-multiple")g=b.selectedIndex>-1?f.map(b.options,function(j){return j.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")g=b.selectedIndex;return g},ra=function(b,e){var g=b.target,j,i;if(!(!Ba.test(g.nodeName)||g.readOnly)){j=f.data(g,"_change_data");i=xa(g);if(b.type!=="focusout"||g.type!=="radio")f.data(g,
"_change_data",i);if(!(j===d||i===j))if(j!=null||i){b.type="change";return f.event.trigger(b,e,g)}}};f.event.special.change={filters:{focusout:ra,click:function(b){var e=b.target,g=e.type;if(g==="radio"||g==="checkbox"||e.nodeName.toLowerCase()==="select")return ra.call(this,b)},keydown:function(b){var e=b.target,g=e.type;if(b.keyCode===13&&e.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")return ra.call(this,b)},beforeactivate:function(b){b=
b.target;b.nodeName.toLowerCase()==="input"&&b.type==="radio"&&f.data(b,"_change_data",xa(b))}},setup:function(b,e,g){for(var j in za)f.event.add(this,j+".specialChange."+g.guid,za[j]);return Ba.test(this.nodeName)},remove:function(b,e){for(var g in za)f.event.remove(this,g+".specialChange"+(e?"."+e.guid:""),za[g]);return Ba.test(this.nodeName)}};var za=f.event.special.change.filters}C.addEventListener&&f.each({focus:"focusin",blur:"focusout"},function(b,e){function g(j){j=f.event.fix(j);j.type=e;
return f.event.handle.call(this,j)}f.event.special[e]={setup:function(){this.addEventListener(b,g,true)},teardown:function(){this.removeEventListener(b,g,true)}}});f.each(["bind","one"],function(b,e){f.fn[e]=function(g,j,i){if(typeof g==="object"){for(var n in g)this[e](n,j,g[n],i);return this}if(f.isFunction(j)){i=j;j=d}var o=e==="one"?f.proxy(i,function(w){f(this).unbind(w,o);return i.apply(this,arguments)}):i;return g==="unload"&&e!=="one"?this.one(g,j,i):this.each(function(){f.event.add(this,
g,o,j)})}});f.fn.extend({unbind:function(b,e){if(typeof b==="object"&&!b.preventDefault){for(var g in b)this.unbind(g,b[g]);return this}return this.each(function(){f.event.remove(this,b,e)})},trigger:function(b,e){return this.each(function(){f.event.trigger(b,e,this)})},triggerHandler:function(b,e){if(this[0]){b=f.Event(b);b.preventDefault();b.stopPropagation();f.event.trigger(b,e,this[0]);return b.result}},toggle:function(b){for(var e=arguments,g=1;g<e.length;)f.proxy(b,e[g++]);return this.click(f.proxy(b,
function(j){var i=(f.data(this,"lastToggle"+b.guid)||0)%g;f.data(this,"lastToggle"+b.guid,i+1);j.preventDefault();return e[i].apply(this,arguments)||false}))},hover:function(b,e){return this.mouseenter(b).mouseleave(e||b)}});f.each(["live","die"],function(b,e){f.fn[e]=function(g,j,i){var n,o=0;if(f.isFunction(j)){i=j;j=d}for(g=(g||"").split(/\s+/);(n=g[o++])!=null;){n=n==="focus"?"focusin":n==="blur"?"focusout":n==="hover"?g.push("mouseleave")&&"mouseenter":n;e==="live"?f(this.context).bind(ma(n,
this.selector),{data:j,selector:this.selector,live:n},i):f(this.context).unbind(ma(n,this.selector),i?{guid:i.guid+this.selector+n}:null)}return this}});f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(b,e){f.fn[e]=function(g){return g?this.bind(e,g):this.trigger(e)};if(f.attrFn)f.attrFn[e]=true});a.attachEvent&&!a.addEventListener&&
a.attachEvent("onunload",function(){for(var b in f.cache)if(f.cache[b].handle)try{f.event.remove(f.cache[b].handle.elem)}catch(e){}});(function(){function b(l){for(var m="",r,t=0;l[t];t++){r=l[t];if(r.nodeType===3||r.nodeType===4)m+=r.nodeValue;else if(r.nodeType!==8)m+=b(r.childNodes)}return m}function e(l,m,r,t,A,z){A=0;for(var M=t.length;A<M;A++){var J=t[A];if(J){J=J[l];for(var R=false;J;){if(J.sizcache===r){R=t[J.sizset];break}if(J.nodeType===1&&!z){J.sizcache=r;J.sizset=A}if(J.nodeName.toLowerCase()===
m){R=J;break}J=J[l]}t[A]=R}}}function g(l,m,r,t,A,z){A=0;for(var M=t.length;A<M;A++){var J=t[A];if(J){J=J[l];for(var R=false;J;){if(J.sizcache===r){R=t[J.sizset];break}if(J.nodeType===1){if(!z){J.sizcache=r;J.sizset=A}if(typeof m!=="string"){if(J===m){R=true;break}}else if(y.filter(m,[J]).length>0){R=J;break}}J=J[l]}t[A]=R}}}var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i=0,n=Object.prototype.toString,o=false,
w=true;[0,0].sort(function(){w=false;return 0});var y=function(l,m,r,t){r=r||[];var A=m=m||C;if(m.nodeType!==1&&m.nodeType!==9)return[];if(!l||typeof l!=="string")return r;for(var z=[],M,J,R,Ka,Ca=true,Ga=O(m),Da=l;(j.exec(""),M=j.exec(Da))!==null;){Da=M[3];z.push(M[1]);if(M[2]){Ka=M[3];break}}if(z.length>1&&L.exec(l))if(z.length===2&&u.relative[z[0]])J=Qa(z[0]+z[1],m);else for(J=u.relative[z[0]]?[m]:y(z.shift(),m);z.length;){l=z.shift();if(u.relative[l])l+=z.shift();J=Qa(l,J)}else{if(!t&&z.length>
1&&m.nodeType===9&&!Ga&&u.match.ID.test(z[0])&&!u.match.ID.test(z[z.length-1])){M=y.find(z.shift(),m,Ga);m=M.expr?y.filter(M.expr,M.set)[0]:M.set[0]}if(m){M=t?{expr:z.pop(),set:aa(t)}:y.find(z.pop(),z.length===1&&(z[0]==="~"||z[0]==="+")&&m.parentNode?m.parentNode:m,Ga);J=M.expr?y.filter(M.expr,M.set):M.set;if(z.length>0)R=aa(J);else Ca=false;for(;z.length;){var sa=z.pop();M=sa;if(u.relative[sa])M=z.pop();else sa="";if(M==null)M=m;u.relative[sa](R,M,Ga)}}else R=[]}R||(R=J);R||y.error(sa||l);if(n.call(R)===
"[object Array]")if(Ca)if(m&&m.nodeType===1)for(l=0;R[l]!=null;l++){if(R[l]&&(R[l]===true||R[l].nodeType===1&&ta(m,R[l])))r.push(J[l])}else for(l=0;R[l]!=null;l++)R[l]&&R[l].nodeType===1&&r.push(J[l]);else r.push.apply(r,R);else aa(R,r);if(Ka){y(Ka,A,r,t);y.uniqueSort(r)}return r};y.uniqueSort=function(l){if(la){o=w;l.sort(la);if(o)for(var m=1;m<l.length;m++)l[m]===l[m-1]&&l.splice(m--,1)}return l};y.matches=function(l,m){return y(l,null,null,m)};y.find=function(l,m,r){var t,A;if(!l)return[];for(var z=
0,M=u.order.length;z<M;z++){var J=u.order[z];if(A=u.leftMatch[J].exec(l)){var R=A[1];A.splice(1,1);if(R.substr(R.length-1)!=="\\"){A[1]=(A[1]||"").replace(/\\/g,"");t=u.find[J](A,m,r);if(t!=null){l=l.replace(u.match[J],"");break}}}}t||(t=m.getElementsByTagName("*"));return{set:t,expr:l}};y.filter=function(l,m,r,t){for(var A=l,z=[],M=m,J,R,Ka=m&&m[0]&&O(m[0]);l&&m.length;){for(var Ca in u.filter)if((J=u.leftMatch[Ca].exec(l))!=null&&J[2]){var Ga=u.filter[Ca],Da,sa;sa=J[1];R=false;J.splice(1,1);if(sa.substr(sa.length-
1)!=="\\"){if(M===z)z=[];if(u.preFilter[Ca])if(J=u.preFilter[Ca](J,M,r,z,t,Ka)){if(J===true)continue}else R=Da=true;if(J)for(var Ma=0;(sa=M[Ma])!=null;Ma++)if(sa){Da=Ga(sa,J,Ma,M);var Za=t^!!Da;if(r&&Da!=null)if(Za)R=true;else M[Ma]=false;else if(Za){z.push(sa);R=true}}if(Da!==d){r||(M=z);l=l.replace(u.match[Ca],"");if(!R)return[];break}}}if(l===A)if(R==null)y.error(l);else break;A=l}return M};y.error=function(l){throw"Syntax error, unrecognized expression: "+l;};var u=y.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\))?/},leftMatch:{},attrMap:{"class":"className",
"for":"htmlFor"},attrHandle:{href:function(l){return l.getAttribute("href")}},relative:{"+":function(l,m){var r=typeof m==="string",t=r&&!/\W/.test(m);r=r&&!t;if(t)m=m.toLowerCase();t=0;for(var A=l.length,z;t<A;t++)if(z=l[t]){for(;(z=z.previousSibling)&&z.nodeType!==1;);l[t]=r||z&&z.nodeName.toLowerCase()===m?z||false:z===m}r&&y.filter(m,l,true)},">":function(l,m){var r=typeof m==="string";if(r&&!/\W/.test(m)){m=m.toLowerCase();for(var t=0,A=l.length;t<A;t++){var z=l[t];if(z){r=z.parentNode;l[t]=
r.nodeName.toLowerCase()===m?r:false}}}else{t=0;for(A=l.length;t<A;t++)if(z=l[t])l[t]=r?z.parentNode:z.parentNode===m;r&&y.filter(m,l,true)}},"":function(l,m,r){var t=i++,A=g;if(typeof m==="string"&&!/\W/.test(m)){var z=m=m.toLowerCase();A=e}A("parentNode",m,t,l,z,r)},"~":function(l,m,r){var t=i++,A=g;if(typeof m==="string"&&!/\W/.test(m)){var z=m=m.toLowerCase();A=e}A("previousSibling",m,t,l,z,r)}},find:{ID:function(l,m,r){if(typeof m.getElementById!=="undefined"&&!r)return(l=m.getElementById(l[1]))?
[l]:[]},NAME:function(l,m){if(typeof m.getElementsByName!=="undefined"){var r=[];m=m.getElementsByName(l[1]);for(var t=0,A=m.length;t<A;t++)m[t].getAttribute("name")===l[1]&&r.push(m[t]);return r.length===0?null:r}},TAG:function(l,m){return m.getElementsByTagName(l[1])}},preFilter:{CLASS:function(l,m,r,t,A,z){l=" "+l[1].replace(/\\/g,"")+" ";if(z)return l;z=0;for(var M;(M=m[z])!=null;z++)if(M)if(A^(M.className&&(" "+M.className+" ").replace(/[\t\n]/g," ").indexOf(l)>=0))r||t.push(M);else if(r)m[z]=
false;return false},ID:function(l){return l[1].replace(/\\/g,"")},TAG:function(l){return l[1].toLowerCase()},CHILD:function(l){if(l[1]==="nth"){var m=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(l[2]==="even"&&"2n"||l[2]==="odd"&&"2n+1"||!/\D/.test(l[2])&&"0n+"+l[2]||l[2]);l[2]=m[1]+(m[2]||1)-0;l[3]=m[3]-0}l[0]=i++;return l},ATTR:function(l,m,r,t,A,z){m=l[1].replace(/\\/g,"");if(!z&&u.attrMap[m])l[1]=u.attrMap[m];if(l[2]==="~=")l[4]=" "+l[4]+" ";return l},PSEUDO:function(l,m,r,t,A){if(l[1]==="not")if((j.exec(l[3])||
"").length>1||/^\w/.test(l[3]))l[3]=y(l[3],null,null,m);else{l=y.filter(l[3],m,r,true^A);r||t.push.apply(t,l);return false}else if(u.match.POS.test(l[0])||u.match.CHILD.test(l[0]))return true;return l},POS:function(l){l.unshift(true);return l}},filters:{enabled:function(l){return l.disabled===false&&l.type!=="hidden"},disabled:function(l){return l.disabled===true},checked:function(l){return l.checked===true},selected:function(l){return l.selected===true},parent:function(l){return!!l.firstChild},empty:function(l){return!l.firstChild},
has:function(l,m,r){return!!y(r[3],l).length},header:function(l){return/h\d/i.test(l.nodeName)},text:function(l){return"text"===l.type},radio:function(l){return"radio"===l.type},checkbox:function(l){return"checkbox"===l.type},file:function(l){return"file"===l.type},password:function(l){return"password"===l.type},submit:function(l){return"submit"===l.type},image:function(l){return"image"===l.type},reset:function(l){return"reset"===l.type},button:function(l){return"button"===l.type||l.nodeName.toLowerCase()===
"button"},input:function(l){return/input|select|textarea|button/i.test(l.nodeName)}},setFilters:{first:function(l,m){return m===0},last:function(l,m,r,t){return m===t.length-1},even:function(l,m){return m%2===0},odd:function(l,m){return m%2===1},lt:function(l,m,r){return m<r[3]-0},gt:function(l,m,r){return m>r[3]-0},nth:function(l,m,r){return r[3]-0===m},eq:function(l,m,r){return r[3]-0===m}},filter:{PSEUDO:function(l,m,r,t){var A=m[1],z=u.filters[A];if(z)return z(l,r,m,t);else if(A==="contains")return(l.textContent||
l.innerText||b([l])||"").indexOf(m[3])>=0;else if(A==="not"){m=m[3];r=0;for(t=m.length;r<t;r++)if(m[r]===l)return false;return true}else y.error("Syntax error, unrecognized expression: "+A)},CHILD:function(l,m){var r=m[1],t=l;switch(r){case "only":case "first":for(;t=t.previousSibling;)if(t.nodeType===1)return false;if(r==="first")return true;t=l;case "last":for(;t=t.nextSibling;)if(t.nodeType===1)return false;return true;case "nth":r=m[2];var A=m[3];if(r===1&&A===0)return true;m=m[0];var z=l.parentNode;
if(z&&(z.sizcache!==m||!l.nodeIndex)){var M=0;for(t=z.firstChild;t;t=t.nextSibling)if(t.nodeType===1)t.nodeIndex=++M;z.sizcache=m}l=l.nodeIndex-A;return r===0?l===0:l%r===0&&l/r>=0}},ID:function(l,m){return l.nodeType===1&&l.getAttribute("id")===m},TAG:function(l,m){return m==="*"&&l.nodeType===1||l.nodeName.toLowerCase()===m},CLASS:function(l,m){return(" "+(l.className||l.getAttribute("class"))+" ").indexOf(m)>-1},ATTR:function(l,m){var r=m[1];l=u.attrHandle[r]?u.attrHandle[r](l):l[r]!=null?l[r]:
l.getAttribute(r);r=l+"";var t=m[2];m=m[4];return l==null?t==="!=":t==="="?r===m:t==="*="?r.indexOf(m)>=0:t==="~="?(" "+r+" ").indexOf(m)>=0:!m?r&&l!==false:t==="!="?r!==m:t==="^="?r.indexOf(m)===0:t==="$="?r.substr(r.length-m.length)===m:t==="|="?r===m||r.substr(0,m.length+1)===m+"-":false},POS:function(l,m,r,t){var A=u.setFilters[m[2]];if(A)return A(l,r,m,t)}}},L=u.match.POS,Q;for(Q in u.match){u.match[Q]=RegExp(u.match[Q].source+/(?![^\[]*\])(?![^\(]*\))/.source);u.leftMatch[Q]=RegExp(/(^(?:.|\r|\n)*?)/.source+
u.match[Q].source.replace(/\\(\d+)/g,function(l,m){return"\\"+(m-0+1)}))}var aa=function(l,m){l=Array.prototype.slice.call(l,0);if(m){m.push.apply(m,l);return m}return l};try{Array.prototype.slice.call(C.documentElement.childNodes,0)}catch(ha){aa=function(l,m){m=m||[];if(n.call(l)==="[object Array]")Array.prototype.push.apply(m,l);else if(typeof l.length==="number")for(var r=0,t=l.length;r<t;r++)m.push(l[r]);else for(r=0;l[r];r++)m.push(l[r]);return m}}var la;if(C.documentElement.compareDocumentPosition)la=
function(l,m){if(!l.compareDocumentPosition||!m.compareDocumentPosition){if(l==m)o=true;return l.compareDocumentPosition?-1:1}l=l.compareDocumentPosition(m)&4?-1:l===m?0:1;if(l===0)o=true;return l};else if("sourceIndex"in C.documentElement)la=function(l,m){if(!l.sourceIndex||!m.sourceIndex){if(l==m)o=true;return l.sourceIndex?-1:1}l=l.sourceIndex-m.sourceIndex;if(l===0)o=true;return l};else if(C.createRange)la=function(l,m){if(!l.ownerDocument||!m.ownerDocument){if(l==m)o=true;return l.ownerDocument?
-1:1}var r=l.ownerDocument.createRange(),t=m.ownerDocument.createRange();r.setStart(l,0);r.setEnd(l,0);t.setStart(m,0);t.setEnd(m,0);l=r.compareBoundaryPoints(Range.START_TO_END,t);if(l===0)o=true;return l};(function(){var l=C.createElement("div"),m="script"+(new Date).getTime();l.innerHTML="<a name='"+m+"'/>";var r=C.documentElement;r.insertBefore(l,r.firstChild);if(C.getElementById(m)){u.find.ID=function(t,A,z){if(typeof A.getElementById!=="undefined"&&!z)return(A=A.getElementById(t[1]))?A.id===
t[1]||typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id").nodeValue===t[1]?[A]:d:[]};u.filter.ID=function(t,A){var z=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&z&&z.nodeValue===A}}r.removeChild(l);r=l=null})();(function(){var l=C.createElement("div");l.appendChild(C.createComment(""));if(l.getElementsByTagName("*").length>0)u.find.TAG=function(m,r){r=r.getElementsByTagName(m[1]);if(m[1]==="*"){m=[];for(var t=0;r[t];t++)r[t].nodeType===1&&
m.push(r[t]);r=m}return r};l.innerHTML="<a href='#'></a>";if(l.firstChild&&typeof l.firstChild.getAttribute!=="undefined"&&l.firstChild.getAttribute("href")!=="#")u.attrHandle.href=function(m){return m.getAttribute("href",2)};l=null})();C.querySelectorAll&&function(){var l=y,m=C.createElement("div");m.innerHTML="<p class='TEST'></p>";if(!(m.querySelectorAll&&m.querySelectorAll(".TEST").length===0)){y=function(t,A,z,M){A=A||C;if(!M&&A.nodeType===9&&!O(A))try{return aa(A.querySelectorAll(t),z)}catch(J){}return l(t,
A,z,M)};for(var r in l)y[r]=l[r];m=null}}();(function(){var l=C.createElement("div");l.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!l.getElementsByClassName||l.getElementsByClassName("e").length===0)){l.lastChild.className="e";if(l.getElementsByClassName("e").length!==1){u.order.splice(1,0,"CLASS");u.find.CLASS=function(m,r,t){if(typeof r.getElementsByClassName!=="undefined"&&!t)return r.getElementsByClassName(m[1])};l=null}}})();var ta=C.compareDocumentPosition?function(l,
m){return l.compareDocumentPosition(m)&16}:function(l,m){return l!==m&&(l.contains?l.contains(m):true)},O=function(l){return(l=(l?l.ownerDocument||l:0).documentElement)?l.nodeName!=="HTML":false},Qa=function(l,m){var r=[],t="",A;for(m=m.nodeType?[m]:m;A=u.match.PSEUDO.exec(l);){t+=A[0];l=l.replace(u.match.PSEUDO,"")}l=u.relative[l]?l+"*":l;A=0;for(var z=m.length;A<z;A++)y(l,m[A],r);return y.filter(t,r)};f.find=y;f.expr=y.selectors;f.expr[":"]=f.expr.filters;f.unique=y.uniqueSort;f.getText=b;f.isXMLDoc=
O;f.contains=ta})();var Ha=/Until$/,jb=/^(?:parents|prevUntil|prevAll)/,kb=/,/;S=Array.prototype.slice;var $a=function(b,e,g){if(f.isFunction(e))return f.grep(b,function(i,n){return!!e.call(i,n,i)===g});else if(e.nodeType)return f.grep(b,function(i){return i===e===g});else if(typeof e==="string"){var j=f.grep(b,function(i){return i.nodeType===1});if(ia.test(e))return f.filter(e,j,!g);else e=f.filter(e,j)}return f.grep(b,function(i){return f.inArray(i,e)>=0===g})};f.fn.extend({find:function(b){for(var e=
this.pushStack("","find",b),g=0,j=0,i=this.length;j<i;j++){g=e.length;f.find(b,this[j],e);if(j>0)for(var n=g;n<e.length;n++)for(var o=0;o<g;o++)if(e[o]===e[n]){e.splice(n--,1);break}}return e},has:function(b){var e=f(b);return this.filter(function(){for(var g=0,j=e.length;g<j;g++)if(f.contains(this,e[g]))return true})},not:function(b){return this.pushStack($a(this,b,false),"not",b)},filter:function(b){return this.pushStack($a(this,b,true),"filter",b)},is:function(b){return!!b&&f.filter(b,this).length>
0},closest:function(b,e){if(f.isArray(b)){var g=[],j=this[0],i,n={},o;if(j&&b.length){i=0;for(var w=b.length;i<w;i++){o=b[i];n[o]||(n[o]=f.expr.match.POS.test(o)?f(o,e||this.context):o)}for(;j&&j.ownerDocument&&j!==e;){for(o in n){i=n[o];if(i.jquery?i.index(j)>-1:f(j).is(i)){g.push({selector:o,elem:j});delete n[o]}}j=j.parentNode}}return g}var y=f.expr.match.POS.test(b)?f(b,e||this.context):null;return this.map(function(u,L){for(;L&&L.ownerDocument&&L!==e;){if(y?y.index(L)>-1:f(L).is(b))return L;
L=L.parentNode}return null})},index:function(b){if(!b||typeof b==="string")return f.inArray(this[0],b?f(b):this.parent().children());return f.inArray(b.jquery?b[0]:b,this)},add:function(b,e){b=typeof b==="string"?f(b,e||this.context):f.makeArray(b);e=f.merge(this.get(),b);return this.pushStack(!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:f.unique(e))},andSelf:function(){return this.add(this.prevObject)}});f.each({parent:function(b){return(b=
b.parentNode)&&b.nodeType!==11?b:null},parents:function(b){return f.dir(b,"parentNode")},parentsUntil:function(b,e,g){return f.dir(b,"parentNode",g)},next:function(b){return f.nth(b,2,"nextSibling")},prev:function(b){return f.nth(b,2,"previousSibling")},nextAll:function(b){return f.dir(b,"nextSibling")},prevAll:function(b){return f.dir(b,"previousSibling")},nextUntil:function(b,e,g){return f.dir(b,"nextSibling",g)},prevUntil:function(b,e,g){return f.dir(b,"previousSibling",g)},siblings:function(b){return f.sibling(b.parentNode.firstChild,
b)},children:function(b){return f.sibling(b.firstChild)},contents:function(b){return f.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:f.makeArray(b.childNodes)}},function(b,e){f.fn[b]=function(g,j){var i=f.map(this,e,g);Ha.test(b)||(j=g);if(j&&typeof j==="string")i=f.filter(j,i);i=this.length>1?f.unique(i):i;if((this.length>1||kb.test(j))&&jb.test(b))i=i.reverse();return this.pushStack(i,b,S.call(arguments).join(","))}});f.extend({filter:function(b,e,g){if(g)b=":not("+b+")";return f.find.matches(b,
e)},dir:function(b,e,g){var j=[];for(b=b[e];b&&b.nodeType!==9&&(g===d||b.nodeType!==1||!f(b).is(g));){b.nodeType===1&&j.push(b);b=b[e]}return j},nth:function(b,e,g){e=e||1;for(var j=0;b;b=b[g])if(b.nodeType===1&&++j===e)break;return b},sibling:function(b,e){for(var g=[];b;b=b.nextSibling)b.nodeType===1&&b!==e&&g.push(b);return g}});var ab=/ jQuery\d+="(?:\d+|null)"/g,Na=/^\s+/,bb=/(<([\w:]+)[^>]*?)\/>/g,lb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,cb=/<([\w:]+)/,mb=/<tbody/i,nb=/<|&\w+;/,
Xa=/checked\s*(?:[^=]|=\s*.checked.)/i,db=function(b,e,g){return lb.test(g)?b:e+"></"+g+">"},ua={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ua.optgroup=ua.option;ua.tbody=ua.tfoot=ua.colgroup=ua.caption=ua.thead;ua.th=
ua.td;if(!f.support.htmlSerialize)ua._default=[1,"div<div>","</div>"];f.fn.extend({text:function(b){if(f.isFunction(b))return this.each(function(e){var g=f(this);g.text(b.call(this,e,g.text()))});if(typeof b!=="object"&&b!==d)return this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(b));return f.getText(this)},wrapAll:function(b){if(f.isFunction(b))return this.each(function(g){f(this).wrapAll(b.call(this,g))});if(this[0]){var e=f(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&
e.insertBefore(this[0]);e.map(function(){for(var g=this;g.firstChild&&g.firstChild.nodeType===1;)g=g.firstChild;return g}).append(this)}return this},wrapInner:function(b){if(f.isFunction(b))return this.each(function(e){f(this).wrapInner(b.call(this,e))});return this.each(function(){var e=f(this),g=e.contents();g.length?g.wrapAll(b):e.append(b)})},wrap:function(b){return this.each(function(){f(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},
append:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this)});else if(arguments.length){var b=f(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,f(arguments[0]).toArray());return b}},clone:function(b){var e=this.map(function(){if(!f.support.noCloneEvent&&!f.isXMLDoc(this)){var g=this.outerHTML,j=this.ownerDocument;if(!g){g=j.createElement("div");g.appendChild(this.cloneNode(true));g=g.innerHTML}return f.clean([g.replace(ab,"").replace(Na,
"")],j)[0]}else return this.cloneNode(true)});if(b===true){da(this,e);da(this.find("*"),e.find("*"))}return e},html:function(b){if(b===d)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ab,""):null;else if(typeof b==="string"&&!/<script/i.test(b)&&(f.support.leadingWhitespace||!Na.test(b))&&!ua[(cb.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(bb,db);try{for(var e=0,g=this.length;e<g;e++)if(this[e].nodeType===1){f.cleanData(this[e].getElementsByTagName("*"));this[e].innerHTML=b}}catch(j){this.empty().append(b)}}else f.isFunction(b)?
this.each(function(i){var n=f(this),o=n.html();n.empty().append(function(){return b.call(this,i,o)})}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(f.isFunction(b))return this.each(function(e){var g=f(this),j=g.html();g.replaceWith(b.call(this,e,j))});else b=f(b).detach();return this.each(function(){var e=this.nextSibling,g=this.parentNode;f(this).remove();e?f(e).before(b):f(g).append(b)})}else return this.pushStack(f(f.isFunction(b)?b():b),"replaceWith",
b)},detach:function(b){return this.remove(b,true)},domManip:function(b,e,g){var j,i,n=b[0],o=[];if(!f.support.checkClone&&arguments.length===3&&typeof n==="string"&&Xa.test(n))return this.each(function(){f(this).domManip(b,e,g,true)});if(f.isFunction(n))return this.each(function(y){var u=f(this);b[0]=n.call(this,y,e?u.html():d);u.domManip(b,e,g)});if(this[0]){j=b[0]&&b[0].parentNode&&b[0].parentNode.nodeType===11?{fragment:b[0].parentNode}:na(b,this,o);if(i=j.fragment.firstChild){e=e&&f.nodeName(i,
"tr");i=0;for(var w=this.length;i<w;i++)g.call(e?f.nodeName(this[i],"table")?this[i].getElementsByTagName("tbody")[0]||this[i].appendChild(this[i].ownerDocument.createElement("tbody")):this[i]:this[i],j.cacheable||this.length>1||i>0?j.fragment.cloneNode(true):j.fragment)}o&&f.each(o,k)}return this}});f.fragments={};f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,e){f.fn[b]=function(g){var j=[];g=f(g);for(var i=0,n=g.length;i<
n;i++){var o=(i>0?this.clone(true):this).get();f.fn[e].apply(f(g[i]),o);j=j.concat(o)}return this.pushStack(j,b,g.selector)}});f.each({remove:function(b,e){if(!b||f.filter(b,[this]).length){if(!e&&this.nodeType===1){f.cleanData(this.getElementsByTagName("*"));f.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&f.cleanData(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(b,e){f.fn[b]=function(){return this.each(e,
arguments)}});f.extend({clean:function(b,e,g,j){e=e||C;if(typeof e.createElement==="undefined")e=e.ownerDocument||e[0]&&e[0].ownerDocument||C;var i=[];f.each(b,function(n,o){if(typeof o==="number")o+="";if(o){if(typeof o==="string"&&!nb.test(o))o=e.createTextNode(o);else if(typeof o==="string"){o=o.replace(bb,db);var w=(cb.exec(o)||["",""])[1].toLowerCase(),y=ua[w]||ua._default,u=y[0];n=e.createElement("div");for(n.innerHTML=y[1]+o+y[2];u--;)n=n.lastChild;if(!f.support.tbody){u=mb.test(o);w=w==="table"&&
!u?n.firstChild&&n.firstChild.childNodes:y[1]==="<table>"&&!u?n.childNodes:[];for(y=w.length-1;y>=0;--y)f.nodeName(w[y],"tbody")&&!w[y].childNodes.length&&w[y].parentNode.removeChild(w[y])}!f.support.leadingWhitespace&&Na.test(o)&&n.insertBefore(e.createTextNode(Na.exec(o)[0]),n.firstChild);o=f.makeArray(n.childNodes)}if(o.nodeType)i.push(o);else i=f.merge(i,o)}});if(g)for(b=0;i[b];b++)if(j&&f.nodeName(i[b],"script")&&(!i[b].type||i[b].type.toLowerCase()==="text/javascript"))j.push(i[b].parentNode?
i[b].parentNode.removeChild(i[b]):i[b]);else{i[b].nodeType===1&&i.splice.apply(i,[b+1,0].concat(f.makeArray(i[b].getElementsByTagName("script"))));g.appendChild(i[b])}return i},cleanData:function(b){for(var e=0,g;(g=b[e])!=null;e++){f.event.remove(g);f.removeData(g)}}});var ob=/z-?index|font-?weight|opacity|zoom|line-?height/i,eb=/alpha\([^)]*\)/,fb=/opacity=([^)]*)/,Ra=/float/i,Sa=/-([a-z])/ig,pb=/([A-Z])/g,qb=/^-?\d+(?:px)?$/i,rb=/^-?\d/,sb={position:"absolute",visibility:"hidden",display:"block"},
tb=["Left","Right"],ub=["Top","Bottom"],vb=C.defaultView&&C.defaultView.getComputedStyle,gb=f.support.cssFloat?"cssFloat":"styleFloat",Ta=function(b,e){return e.toUpperCase()};f.fn.css=function(b,e){return q(this,b,e,true,function(g,j,i){if(i===d)return f.curCSS(g,j);if(typeof i==="number"&&!ob.test(j))i+="px";f.style(g,j,i)})};f.extend({style:function(b,e,g){if(!b||b.nodeType===3||b.nodeType===8)return d;if((e==="width"||e==="height")&&parseFloat(g)<0)g=d;var j=b.style||b,i=g!==d;if(!f.support.opacity&&
e==="opacity"){if(i){j.zoom=1;e=parseInt(g,10)+""==="NaN"?"":"alpha(opacity="+g*100+")";b=j.filter||f.curCSS(b,"filter")||"";j.filter=eb.test(b)?b.replace(eb,e):e}return j.filter&&j.filter.indexOf("opacity=")>=0?parseFloat(fb.exec(j.filter)[1])/100+"":""}if(Ra.test(e))e=gb;e=e.replace(Sa,Ta);if(i)j[e]=g;return j[e]},css:function(b,e,g,j){if(e==="width"||e==="height"){var i,n=e==="width"?tb:ub;g=function(){i=e==="width"?b.offsetWidth:b.offsetHeight;j!=="border"&&f.each(n,function(){j||(i-=parseFloat(f.curCSS(b,
"padding"+this,true))||0);if(j==="margin")i+=parseFloat(f.curCSS(b,"margin"+this,true))||0;else i-=parseFloat(f.curCSS(b,"border"+this+"Width",true))||0})};b.offsetWidth!==0?g():f.swap(b,sb,g);return Math.max(0,Math.round(i))}return f.curCSS(b,e,g)},curCSS:function(b,e,g){var j,i=b.style;if(!f.support.opacity&&e==="opacity"&&b.currentStyle){j=fb.test(b.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return j===""?"1":j}if(Ra.test(e))e=gb;if(!g&&i&&i[e])j=i[e];else if(vb){if(Ra.test(e))e=
"float";e=e.replace(pb,"-$1").toLowerCase();i=b.ownerDocument.defaultView;if(!i)return null;if(b=i.getComputedStyle(b,null))j=b.getPropertyValue(e);if(e==="opacity"&&j==="")j="1"}else if(b.currentStyle){g=e.replace(Sa,Ta);j=b.currentStyle[e]||b.currentStyle[g];if(!qb.test(j)&&rb.test(j)){e=i.left;var n=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;i.left=g==="fontSize"?"1em":j||0;j=i.pixelLeft+"px";i.left=e;b.runtimeStyle.left=n}}return j},swap:function(b,e,g){var j={},i;for(i in e){j[i]=
b.style[i];b.style[i]=e[i]}g.call(b);for(i in e)b.style[i]=j[i]}});if(f.expr&&f.expr.filters){f.expr.filters.hidden=function(b){var e=b.offsetWidth,g=b.offsetHeight,j=b.nodeName.toLowerCase()==="tr";return e===0&&g===0&&!j?true:e>0&&g>0&&!j?false:f.curCSS(b,"display")==="none"};f.expr.filters.visible=function(b){return!f.expr.filters.hidden(b)}}var wb=x(),xb=/<script(.|\s)*?\/script>/gi,yb=/select|textarea/i,zb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
Ia=/=\?(&|$)/,Ua=/\?/,Ab=/(\?|&)_=.*?(&|$)/,Bb=/^(\w+:)?\/\/([^\/?#]+)/,Cb=/%20/g;f.fn.extend({_load:f.fn.load,load:function(b,e,g){if(typeof b!=="string")return this._load(b);else if(!this.length)return this;var j=b.indexOf(" ");if(j>=0){var i=b.slice(j,b.length);b=b.slice(0,j)}j="GET";if(e)if(f.isFunction(e)){g=e;e=null}else if(typeof e==="object"){e=f.param(e,f.ajaxSettings.traditional);j="POST"}var n=this;f.ajax({url:b,type:j,dataType:"html",data:e,complete:function(o,w){if(w==="success"||w===
"notmodified")n.html(i?f("<div />").append(o.responseText.replace(xb,"")).find(i):o.responseText);g&&n.each(g,[o.responseText,w,o])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||yb.test(this.nodeName)||zb.test(this.type))}).map(function(b,e){b=f(this).val();return b==null?null:f.isArray(b)?f.map(b,
function(g){return{name:e.name,value:g}}):{name:e.name,value:b}}).get()}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,e){f.fn[e]=function(g){return this.bind(e,g)}});f.extend({get:function(b,e,g,j){if(f.isFunction(e)){j=j||g;g=e;e=null}return f.ajax({type:"GET",url:b,data:e,success:g,dataType:j})},getScript:function(b,e){return f.get(b,null,e,"script")},getJSON:function(b,e,g){return f.get(b,e,g,"json")},post:function(b,e,g,j){if(f.isFunction(e)){j=
j||g;g=e;e={}}return f.ajax({type:"POST",url:b,data:e,success:g,dataType:j})},ajaxSetup:function(b){f.extend(f.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:a.XMLHttpRequest&&(a.location.protocol!=="file:"||!a.ActiveXObject)?function(){return new a.XMLHttpRequest}:function(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}},accepts:{xml:"application/xml, text/xml",html:"text/html",
script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(b){function e(){i.success&&i.success.call(y,w,o,O);i.global&&j("ajaxSuccess",[O,i])}function g(){i.complete&&i.complete.call(y,O,o);i.global&&j("ajaxComplete",[O,i]);i.global&&!--f.active&&f.event.trigger("ajaxStop")}function j(A,z){(i.context?f(i.context):f.event).trigger(A,z)}var i=f.extend(true,{},f.ajaxSettings,b),n,o,w,y=b&&b.context||
i,u=i.type.toUpperCase();if(i.data&&i.processData&&typeof i.data!=="string")i.data=f.param(i.data,i.traditional);if(i.dataType==="jsonp"){if(u==="GET")Ia.test(i.url)||(i.url+=(Ua.test(i.url)?"&":"?")+(i.jsonp||"callback")+"=?");else if(!i.data||!Ia.test(i.data))i.data=(i.data?i.data+"&":"")+(i.jsonp||"callback")+"=?";i.dataType="json"}if(i.dataType==="json"&&(i.data&&Ia.test(i.data)||Ia.test(i.url))){n=i.jsonpCallback||"jsonp"+wb++;if(i.data)i.data=(i.data+"").replace(Ia,"="+n+"$1");i.url=i.url.replace(Ia,
"="+n+"$1");i.dataType="script";a[n]=a[n]||function(A){w=A;e();g();a[n]=d;try{delete a[n]}catch(z){}aa&&aa.removeChild(ha)}}if(i.dataType==="script"&&i.cache===null)i.cache=false;if(i.cache===false&&u==="GET"){var L=x(),Q=i.url.replace(Ab,"$1_="+L+"$2");i.url=Q+(Q===i.url?(Ua.test(i.url)?"&":"?")+"_="+L:"")}if(i.data&&u==="GET")i.url+=(Ua.test(i.url)?"&":"?")+i.data;i.global&&!f.active++&&f.event.trigger("ajaxStart");L=(L=Bb.exec(i.url))&&(L[1]&&L[1]!==location.protocol||L[2]!==location.host);if(i.dataType===
"script"&&u==="GET"&&L){var aa=C.getElementsByTagName("head")[0]||C.documentElement,ha=C.createElement("script");ha.src=i.url;if(i.scriptCharset)ha.charset=i.scriptCharset;if(!n){var la=false;ha.onload=ha.onreadystatechange=function(){if(!la&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){la=true;e();g();ha.onload=ha.onreadystatechange=null;aa&&ha.parentNode&&aa.removeChild(ha)}}}aa.insertBefore(ha,aa.firstChild);return d}var ta=false,O=i.xhr();if(O){i.username?O.open(u,
i.url,i.async,i.username,i.password):O.open(u,i.url,i.async);try{if(i.data||b&&b.contentType)O.setRequestHeader("Content-Type",i.contentType);if(i.ifModified){f.lastModified[i.url]&&O.setRequestHeader("If-Modified-Since",f.lastModified[i.url]);f.etag[i.url]&&O.setRequestHeader("If-None-Match",f.etag[i.url])}L||O.setRequestHeader("X-Requested-With","XMLHttpRequest");O.setRequestHeader("Accept",i.dataType&&i.accepts[i.dataType]?i.accepts[i.dataType]+", */*":i.accepts._default)}catch(Qa){}if(i.beforeSend&&
i.beforeSend.call(y,O,i)===false){i.global&&!--f.active&&f.event.trigger("ajaxStop");O.abort();return false}i.global&&j("ajaxSend",[O,i]);var l=O.onreadystatechange=function(A){if(!O||O.readyState===0||A==="abort"){ta||g();ta=true;if(O)O.onreadystatechange=f.noop}else if(!ta&&O&&(O.readyState===4||A==="timeout")){ta=true;O.onreadystatechange=f.noop;o=A==="timeout"?"timeout":!f.httpSuccess(O)?"error":i.ifModified&&f.httpNotModified(O,i.url)?"notmodified":"success";var z;if(o==="success")try{w=f.httpData(O,
i.dataType,i)}catch(M){o="parsererror";z=M}if(o==="success"||o==="notmodified")n||e();else f.handleError(i,O,o,z);g();A==="timeout"&&O.abort();if(i.async)O=null}};try{var m=O.abort;O.abort=function(){O&&m.call(O);l("abort")}}catch(r){}i.async&&i.timeout>0&&setTimeout(function(){O&&!ta&&l("timeout")},i.timeout);try{O.send(u==="POST"||u==="PUT"||u==="DELETE"?i.data:null)}catch(t){f.handleError(i,O,null,t);g()}i.async||l();return O}},handleError:function(b,e,g,j){if(b.error)b.error.call(b.context||b,
e,g,j);if(b.global)(b.context?f(b.context):f.event).trigger("ajaxError",[e,b,j])},active:0,httpSuccess:function(b){try{return!b.status&&location.protocol==="file:"||b.status>=200&&b.status<300||b.status===304||b.status===1223||b.status===0}catch(e){}return false},httpNotModified:function(b,e){var g=b.getResponseHeader("Last-Modified"),j=b.getResponseHeader("Etag");if(g)f.lastModified[e]=g;if(j)f.etag[e]=j;return b.status===304||b.status===0},httpData:function(b,e,g){var j=b.getResponseHeader("content-type")||
"",i=e==="xml"||!e&&j.indexOf("xml")>=0;b=i?b.responseXML:b.responseText;i&&b.documentElement.nodeName==="parsererror"&&f.error("parsererror");if(g&&g.dataFilter)b=g.dataFilter(b,e);if(typeof b==="string")if(e==="json"||!e&&j.indexOf("json")>=0)b=f.parseJSON(b);else if(e==="script"||!e&&j.indexOf("javascript")>=0)f.globalEval(b);return b},param:function(b,e){function g(o,w){if(f.isArray(w))f.each(w,function(y,u){e?j(o,u):g(o+"["+(typeof u==="object"||f.isArray(u)?y:"")+"]",u)});else!e&&w!=null&&typeof w===
"object"?f.each(w,function(y,u){g(o+"["+y+"]",u)}):j(o,w)}function j(o,w){w=f.isFunction(w)?w():w;i[i.length]=encodeURIComponent(o)+"="+encodeURIComponent(w)}var i=[];if(e===d)e=f.ajaxSettings.traditional;if(f.isArray(b)||b.jquery)f.each(b,function(){j(this.name,this.value)});else for(var n in b)g(n,b[n]);return i.join("&").replace(Cb,"+")}});var Va={},Db=/toggle|show|hide/,Eb=/^([+-]=)?([\d+-.]+)(.*)$/,Oa,Ya=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];f.fn.extend({show:function(b,e){if(b||b===0)return this.animate(ga("show",3),b,e);else{b=0;for(e=this.length;b<e;b++){var g=f.data(this[b],"olddisplay");this[b].style.display=g||"";if(f.css(this[b],"display")==="none"){g=this[b].nodeName;var j;if(Va[g])j=Va[g];else{var i=f("<"+g+" />").appendTo("body");j=i.css("display");if(j==="none")j="block";i.remove();Va[g]=j}f.data(this[b],"olddisplay",j)}}b=0;for(e=this.length;b<e;b++)this[b].style.display=
f.data(this[b],"olddisplay")||"";return this}},hide:function(b,e){if(b||b===0)return this.animate(ga("hide",3),b,e);else{b=0;for(e=this.length;b<e;b++){var g=f.data(this[b],"olddisplay");!g&&g!=="none"&&f.data(this[b],"olddisplay",f.css(this[b],"display"))}b=0;for(e=this.length;b<e;b++)this[b].style.display="none";return this}},_toggle:f.fn.toggle,toggle:function(b,e){var g=typeof b==="boolean";if(f.isFunction(b)&&f.isFunction(e))this._toggle.apply(this,arguments);else b==null||g?this.each(function(){var j=
g?b:f(this).is(":hidden");f(this)[j?"show":"hide"]()}):this.animate(ga("toggle",3),b,e);return this},fadeTo:function(b,e,g){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},b,g)},animate:function(b,e,g,j){var i=f.speed(e,g,j);if(f.isEmptyObject(b))return this.each(i.complete);return this[i.queue===false?"each":"queue"](function(){var n=f.extend({},i),o,w=this.nodeType===1&&f(this).is(":hidden"),y=this;for(o in b){var u=o.replace(Sa,Ta);if(o!==u){b[u]=b[o];delete b[o];
o=u}if(b[o]==="hide"&&w||b[o]==="show"&&!w)return n.complete.call(this);if((o==="height"||o==="width")&&this.style){n.display=f.css(this,"display");n.overflow=this.style.overflow}if(f.isArray(b[o])){(n.specialEasing=n.specialEasing||{})[o]=b[o][1];b[o]=b[o][0]}}if(n.overflow!=null)this.style.overflow="hidden";n.curAnim=f.extend({},b);f.each(b,function(L,Q){var aa=new f.fx(y,n,L);if(Db.test(Q))aa[Q==="toggle"?w?"show":"hide":Q](b);else{var ha=Eb.exec(Q),la=aa.cur(true)||0;if(ha){Q=parseFloat(ha[2]);
var ta=ha[3]||"px";if(ta!=="px"){y.style[L]=(Q||1)+ta;la=(Q||1)/aa.cur(true)*la;y.style[L]=la+ta}if(ha[1])Q=(ha[1]==="-="?-1:1)*Q+la;aa.custom(la,Q,ta)}else aa.custom(la,Q,"")}});return true})},stop:function(b,e){var g=f.timers;b&&this.queue([]);this.each(function(){for(var j=g.length-1;j>=0;j--)if(g[j].elem===this){e&&g[j](true);g.splice(j,1)}});e||this.dequeue();return this}});f.each({slideDown:ga("show",1),slideUp:ga("hide",1),slideToggle:ga("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},
function(b,e){f.fn[b]=function(g,j){return this.animate(e,g,j)}});f.extend({speed:function(b,e,g){var j=b&&typeof b==="object"?b:{complete:g||!g&&e||f.isFunction(b)&&b,duration:b,easing:g&&e||e&&!f.isFunction(e)&&e};j.duration=f.fx.off?0:typeof j.duration==="number"?j.duration:f.fx.speeds[j.duration]||f.fx.speeds._default;j.old=j.complete;j.complete=function(){j.queue!==false&&f(this).dequeue();f.isFunction(j.old)&&j.old.call(this)};return j},easing:{linear:function(b,e,g,j){return g+j*b},swing:function(b,
e,g,j){return(-Math.cos(b*Math.PI)/2+0.5)*j+g}},timers:[],fx:function(b,e,g){this.options=e;this.elem=b;this.prop=g;if(!e.orig)e.orig={}}});f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(f.fx.step[this.prop]||f.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];
return(b=parseFloat(f.css(this.elem,this.prop,b)))&&b>-1E4?b:parseFloat(f.curCSS(this.elem,this.prop))||0},custom:function(b,e,g){function j(n){return i.step(n)}this.startTime=x();this.start=b;this.end=e;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var i=this;j.elem=this.elem;if(j()&&f.timers.push(j)&&!Oa)Oa=setInterval(f.fx.tick,13)},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop===
"height"?1:0,this.cur());f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var e=x(),g=true;if(b||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var j in this.options.curAnim)if(this.options.curAnim[j]!==true)g=false;if(g){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
b=f.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(f.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&f(this.elem).hide();if(this.options.hide||this.options.show)for(var i in this.options.curAnim)f.style(this.elem,i,this.options.orig[i]);this.options.complete.call(this.elem)}return false}else{i=e-this.startTime;this.state=i/this.options.duration;b=this.options.easing||(f.easing.swing?"swing":"linear");this.pos=f.easing[this.options.specialEasing&&
this.options.specialEasing[this.prop]||b](this.state,i,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};f.extend(f.fx,{tick:function(){for(var b=f.timers,e=0;e<b.length;e++)b[e]()||b.splice(e--,1);b.length||f.fx.stop()},stop:function(){clearInterval(Oa);Oa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){f.style(b.elem,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=
(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit;else b.elem[b.prop]=b.now}}});if(f.expr&&f.expr.filters)f.expr.filters.animated=function(b){return f.grep(f.timers,function(e){return b===e.elem}).length};f.fn.offset="getBoundingClientRect"in C.documentElement?function(b){var e=this[0];if(b)return this.each(function(i){f.offset.setOffset(this,b,i)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return f.offset.bodyOffset(e);var g=e.getBoundingClientRect(),j=e.ownerDocument;
e=j.body;j=j.documentElement;return{top:g.top+(self.pageYOffset||f.support.boxModel&&j.scrollTop||e.scrollTop)-(j.clientTop||e.clientTop||0),left:g.left+(self.pageXOffset||f.support.boxModel&&j.scrollLeft||e.scrollLeft)-(j.clientLeft||e.clientLeft||0)}}:function(b){var e=this[0];if(b)return this.each(function(L){f.offset.setOffset(this,b,L)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return f.offset.bodyOffset(e);f.offset.initialize();var g=e.offsetParent,j=e,i=e.ownerDocument,
n,o=i.documentElement,w=i.body;j=(i=i.defaultView)?i.getComputedStyle(e,null):e.currentStyle;for(var y=e.offsetTop,u=e.offsetLeft;(e=e.parentNode)&&e!==w&&e!==o;){if(f.offset.supportsFixedPosition&&j.position==="fixed")break;n=i?i.getComputedStyle(e,null):e.currentStyle;y-=e.scrollTop;u-=e.scrollLeft;if(e===g){y+=e.offsetTop;u+=e.offsetLeft;if(f.offset.doesNotAddBorder&&!(f.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(e.nodeName))){y+=parseFloat(n.borderTopWidth)||0;u+=parseFloat(n.borderLeftWidth)||
0}j=g;g=e.offsetParent}if(f.offset.subtractsBorderForOverflowNotVisible&&n.overflow!=="visible"){y+=parseFloat(n.borderTopWidth)||0;u+=parseFloat(n.borderLeftWidth)||0}j=n}if(j.position==="relative"||j.position==="static"){y+=w.offsetTop;u+=w.offsetLeft}if(f.offset.supportsFixedPosition&&j.position==="fixed"){y+=Math.max(o.scrollTop,w.scrollTop);u+=Math.max(o.scrollLeft,w.scrollLeft)}return{top:y,left:u}};f.offset={initialize:function(){var b=C.body,e=C.createElement("div"),g,j,i,n=parseFloat(f.curCSS(b,
"marginTop",true))||0;f.extend(e.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});e.innerHTML="<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>";b.insertBefore(e,b.firstChild);g=e.firstChild;j=g.firstChild;
i=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=j.offsetTop!==5;this.doesAddBorderForTableAndCells=i.offsetTop===5;j.style.position="fixed";j.style.top="20px";this.supportsFixedPosition=j.offsetTop===20||j.offsetTop===15;j.style.position=j.style.top="";g.style.overflow="hidden";g.style.position="relative";this.subtractsBorderForOverflowNotVisible=j.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=b.offsetTop!==n;b.removeChild(e);f.offset.initialize=f.noop},bodyOffset:function(b){var e=
b.offsetTop,g=b.offsetLeft;f.offset.initialize();if(f.offset.doesNotIncludeMarginInBodyOffset){e+=parseFloat(f.curCSS(b,"marginTop",true))||0;g+=parseFloat(f.curCSS(b,"marginLeft",true))||0}return{top:e,left:g}},setOffset:function(b,e,g){if(/static/.test(f.curCSS(b,"position")))b.style.position="relative";var j=f(b),i=j.offset(),n=parseInt(f.curCSS(b,"top",true),10)||0,o=parseInt(f.curCSS(b,"left",true),10)||0;if(f.isFunction(e))e=e.call(b,g,i);g={top:e.top-i.top+n,left:e.left-i.left+o};"using"in
e?e.using.call(b,g):j.css(g)}};f.fn.extend({position:function(){if(!this[0])return null;var b=this[0],e=this.offsetParent(),g=this.offset(),j=/^body|html$/i.test(e[0].nodeName)?{top:0,left:0}:e.offset();g.top-=parseFloat(f.curCSS(b,"marginTop",true))||0;g.left-=parseFloat(f.curCSS(b,"marginLeft",true))||0;j.top+=parseFloat(f.curCSS(e[0],"borderTopWidth",true))||0;j.left+=parseFloat(f.curCSS(e[0],"borderLeftWidth",true))||0;return{top:g.top-j.top,left:g.left-j.left}},offsetParent:function(){return this.map(function(){for(var b=
this.offsetParent||C.body;b&&!/^body|html$/i.test(b.nodeName)&&f.css(b,"position")==="static";)b=b.offsetParent;return b})}});f.each(["Left","Top"],function(b,e){var g="scroll"+e;f.fn[g]=function(j){var i=this[0],n;if(!i)return null;return j!==d?this.each(function(){if(n=pa(this))n.scrollTo(!b?j:f(n).scrollLeft(),b?j:f(n).scrollTop());else this[g]=j}):(n=pa(i))?"pageXOffset"in n?n[b?"pageYOffset":"pageXOffset"]:f.support.boxModel&&n.document.documentElement[g]||n.document.body[g]:i[g]}});f.each(["Height",
"Width"],function(b,e){var g=e.toLowerCase();f.fn["inner"+e]=function(){return this[0]?f.css(this[0],g,false,"padding"):null};f.fn["outer"+e]=function(j){return this[0]?f.css(this[0],g,false,j?"margin":"border"):null};f.fn[g]=function(j){var i=this[0];if(!i)return j==null?null:this;if(f.isFunction(j))return this.each(function(n){var o=f(this);o[g](j.call(this,n,o[g]()))});return"scrollTo"in i&&i.document?i.document.compatMode==="CSS1Compat"&&i.document.documentElement["client"+e]||i.document.body["client"+
e]:i.nodeType===9?Math.max(i.documentElement["client"+e],i.body["scroll"+e],i.documentElement["scroll"+e],i.body["offset"+e],i.documentElement["offset"+e]):j===d?f.css(i,g):this.css(g,typeof j==="string"?j:j+"px")}});c.jQuery=c.$=f}(N,window);if(typeof N.swfobject=="undefined")N.swfobject=function(){function c(){if(!ka){try{var p=E.getElementsByTagName("body")[0].appendChild(E.createElement("span"));p.parentNode.removeChild(p)}catch(v){return}ka=true;p=U.length;for(var B=0;B<p;B++)U[B]()}}function a(p){if(ka)p();
else U[U.length]=p}function d(p){if(typeof ia.addEventListener!=V)ia.addEventListener("load",p,false);else if(typeof E.addEventListener!=V)E.addEventListener("load",p,false);else if(typeof ia.attachEvent!=V)na(ia,"onload",p);else if(typeof ia.onload=="function"){var v=ia.onload;ia.onload=function(){v();p()}}else ia.onload=p}function h(){var p=E.getElementsByTagName("body")[0],v=E.createElement(C);v.setAttribute("type",ea);var B=p.appendChild(v);if(B){var F=0;(function(){if(typeof B.GetVariable!=V){var I=
B.GetVariable("$version");if(I){I=I.split(" ")[1].split(",");H.pv=[parseInt(I[0],10),parseInt(I[1],10),parseInt(I[2],10)]}}else if(F<10){F++;setTimeout(arguments.callee,10);return}p.removeChild(v);B=null;k()})()}else k()}function k(){var p=ba.length;if(p>0)for(var v=0;v<p;v++){var B=ba[v].id,F=ba[v].callbackFn,I={success:false,id:B};if(H.pv[0]>0){var T=da(B);if(T)if(ga(ba[v].swfVersion)&&!(H.wk&&H.wk<312)){f(B,true);if(F){I.success=true;I.ref=q(B);F(I)}}else if(ba[v].expressInstall&&x()){I={};I.data=
ba[v].expressInstall;I.width=T.getAttribute("width")||"0";I.height=T.getAttribute("height")||"0";if(T.getAttribute("class"))I.styleclass=T.getAttribute("class");if(T.getAttribute("align"))I.align=T.getAttribute("align");var P={};T=T.getElementsByTagName("param");for(var $=T.length,Z=0;Z<$;Z++)if(T[Z].getAttribute("name").toLowerCase()!="movie")P[T[Z].getAttribute("name")]=T[Z].getAttribute("value");D(I,P,B,F)}else{K(T);F&&F(I)}}else{f(B,true);if(F){if((B=q(B))&&typeof B.SetVariable!=V){I.success=
true;I.ref=B}F(I)}}}}function q(p){var v=null;if((p=da(p))&&p.nodeName=="OBJECT")if(typeof p.SetVariable!=V)v=p;else if(p=p.getElementsByTagName(C)[0])v=p;return v}function x(){return!ca&&ga("6.0.65")&&(H.win||H.mac)&&!(H.wk&&H.wk<312)}function D(p,v,B,F){ca=true;G=F||null;S={success:false,id:B};var I=da(B);if(I){if(I.nodeName=="OBJECT"){va=W(I);s=null}else{va=I;s=B}p.id=oa;if(typeof p.width==V||!/%$/.test(p.width)&&parseInt(p.width,10)<310)p.width="310";if(typeof p.height==V||!/%$/.test(p.height)&&
parseInt(p.height,10)<137)p.height="137";E.title=E.title.slice(0,47)+" - Flash Player Installation";F=H.ie&&H.win?"ActiveX":"PlugIn";F="MMredirectURL="+ia.location.toString().replace(/&/g,"%26")+"&MMplayerType="+F+"&MMdoctitle="+E.title;if(typeof v.flashvars!=V)v.flashvars+="&"+F;else v.flashvars=F;if(H.ie&&H.win&&I.readyState!=4){F=E.createElement("div");B+="SWFObjectNew";F.setAttribute("id",B);I.parentNode.insertBefore(F,I);I.style.display="none";(function(){I.readyState==4?I.parentNode.removeChild(I):
setTimeout(arguments.callee,10)})()}X(p,v,B)}}function K(p){if(H.ie&&H.win&&p.readyState!=4){var v=E.createElement("div");p.parentNode.insertBefore(v,p);v.parentNode.replaceChild(W(p),v);p.style.display="none";(function(){p.readyState==4?p.parentNode.removeChild(p):setTimeout(arguments.callee,10)})()}else p.parentNode.replaceChild(W(p),p)}function W(p){var v=E.createElement("div");if(H.win&&H.ie)v.innerHTML=p.innerHTML;else if(p=p.getElementsByTagName(C)[0])if(p=p.childNodes)for(var B=p.length,F=
0;F<B;F++)!(p[F].nodeType==1&&p[F].nodeName=="PARAM")&&p[F].nodeType!=8&&v.appendChild(p[F].cloneNode(true));return v}function X(p,v,B){var F,I=da(B);if(H.wk&&H.wk<312)return F;if(I){if(typeof p.id==V)p.id=B;if(H.ie&&H.win){var T="",P;for(P in p)if(p[P]!=Object.prototype[P])if(P.toLowerCase()=="data")v.movie=p[P];else if(P.toLowerCase()=="styleclass")T+=' class="'+p[P]+'"';else if(P.toLowerCase()!="classid")T+=" "+P+'="'+p[P]+'"';P="";for(var $ in v)if(v[$]!=Object.prototype[$])P+='<param name="'+
$+'" value="'+v[$]+'" />';I.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+T+">"+P+"</object>";qa[qa.length]=p.id;F=da(p.id)}else{$=E.createElement(C);$.setAttribute("type",ea);for(var Z in p)if(p[Z]!=Object.prototype[Z])if(Z.toLowerCase()=="styleclass")$.setAttribute("class",p[Z]);else Z.toLowerCase()!="classid"&&$.setAttribute(Z,p[Z]);for(T in v)if(v[T]!=Object.prototype[T]&&T.toLowerCase()!="movie"){p=$;P=T;Z=v[T];B=E.createElement("param");B.setAttribute("name",P);B.setAttribute("value",
Z);p.appendChild(B)}I.parentNode.replaceChild($,I);F=$}}return F}function ma(p){var v=da(p);if(v&&v.nodeName=="OBJECT")if(H.ie&&H.win){v.style.display="none";(function(){if(v.readyState==4){var B=da(p);if(B){for(var F in B)if(typeof B[F]=="function")B[F]=null;B.parentNode.removeChild(B)}}else setTimeout(arguments.callee,10)})()}else v.parentNode.removeChild(v)}function da(p){var v=null;try{v=E.getElementById(p)}catch(B){}return v}function na(p,v,B){p.attachEvent(v,B);ja[ja.length]=[p,v,B]}function ga(p){var v=
H.pv;p=p.split(".");p[0]=parseInt(p[0],10);p[1]=parseInt(p[1],10)||0;p[2]=parseInt(p[2],10)||0;return v[0]>p[0]||v[0]==p[0]&&v[1]>p[1]||v[0]==p[0]&&v[1]==p[1]&&v[2]>=p[2]?true:false}function pa(p,v,B,F){if(!(H.ie&&H.mac)){var I=E.getElementsByTagName("head")[0];if(I){B=B&&typeof B=="string"?B:"screen";if(F)Fa=wa=null;if(!wa||Fa!=B){F=E.createElement("style");F.setAttribute("type","text/css");F.setAttribute("media",B);wa=I.appendChild(F);if(H.ie&&H.win&&typeof E.styleSheets!=V&&E.styleSheets.length>
0)wa=E.styleSheets[E.styleSheets.length-1];Fa=B}if(H.ie&&H.win)wa&&typeof wa.addRule==C&&wa.addRule(p,v);else wa&&typeof E.createTextNode!=V&&wa.appendChild(E.createTextNode(p+" {"+v+"}"))}}}function f(p,v){if(La){var B=v?"visible":"hidden";if(ka&&da(p))da(p).style.visibility=B;else pa("#"+p,"visibility:"+B)}}function Ea(p){return/[\\\"<>\.;]/.exec(p)!=null&&typeof encodeURIComponent!=V?encodeURIComponent(p):p}var V="undefined",C="object",ea="application/x-shockwave-flash",oa="SWFObjectExprInst",
ia=window,E=document,fa=navigator,ya=false,U=[function(){ya?h():k()}],ba=[],qa=[],ja=[],va,s,G,S,ka=false,ca=false,wa,Fa,La=true,H=function(){var p=typeof E.getElementById!=V&&typeof E.getElementsByTagName!=V&&typeof E.createElement!=V,v=fa.userAgent.toLowerCase(),B=fa.platform.toLowerCase(),F=B?/win/.test(B):/win/.test(v);B=B?/mac/.test(B):/mac/.test(v);v=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var I=!+"\u000b1",T=[0,0,0],P=null;if(typeof fa.plugins!=V&&typeof fa.plugins["Shockwave Flash"]==
C){if((P=fa.plugins["Shockwave Flash"].description)&&!(typeof fa.mimeTypes!=V&&fa.mimeTypes[ea]&&!fa.mimeTypes[ea].enabledPlugin)){ya=true;I=false;P=P.replace(/^.*\s+(\S+\s+\S+$)/,"$1");T[0]=parseInt(P.replace(/^(.*)\..*$/,"$1"),10);T[1]=parseInt(P.replace(/^.*\.(.*)\s.*$/,"$1"),10);T[2]=/[a-zA-Z]/.test(P)?parseInt(P.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof ia.ActiveXObject!=V)try{var $=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if($)if(P=$.GetVariable("$version")){I=true;P=
P.split(" ")[1].split(",");T=[parseInt(P[0],10),parseInt(P[1],10),parseInt(P[2],10)]}}catch(Z){}return{w3:p,pv:T,wk:v,ie:I,win:F,mac:B}}();(function(){if(H.w3){if(typeof E.readyState!=V&&E.readyState=="complete"||typeof E.readyState==V&&(E.getElementsByTagName("body")[0]||E.body))c();if(!ka){typeof E.addEventListener!=V&&E.addEventListener("DOMContentLoaded",c,false);if(H.ie&&H.win){E.attachEvent("onreadystatechange",function(){if(E.readyState=="complete"){E.detachEvent("onreadystatechange",arguments.callee);
c()}});ia==top&&function(){if(!ka){try{E.documentElement.doScroll("left")}catch(p){setTimeout(arguments.callee,0);return}c()}}()}H.wk&&function(){ka||(/loaded|complete/.test(E.readyState)?c():setTimeout(arguments.callee,0))}();d(c)}}})();(function(){H.ie&&H.win&&window.attachEvent("onunload",function(){for(var p=ja.length,v=0;v<p;v++)ja[v][0].detachEvent(ja[v][1],ja[v][2]);p=qa.length;for(v=0;v<p;v++)ma(qa[v]);for(var B in H)H[B]=null;H=null;for(var F in N.swfobject)N.swfobject[F]=null;N.swfobject=
null})})();return{registerObject:function(p,v,B,F){if(H.w3&&p&&v){var I={};I.id=p;I.swfVersion=v;I.expressInstall=B;I.callbackFn=F;ba[ba.length]=I;f(p,false)}else F&&F({success:false,id:p})},getObjectById:function(p){if(H.w3)return q(p)},embedSWF:function(p,v,B,F,I,T,P,$,Z,Aa){var Ba={success:false,id:v};if(H.w3&&!(H.wk&&H.wk<312)&&p&&v&&B&&F&&I){f(v,false);a(function(){B+="";F+="";var xa={};if(Z&&typeof Z===C)for(var ra in Z)xa[ra]=Z[ra];xa.data=p;xa.width=B;xa.height=F;ra={};if($&&typeof $===C)for(var za in $)ra[za]=
$[za];if(P&&typeof P===C)for(var Ha in P)if(typeof ra.flashvars!=V)ra.flashvars+="&"+Ha+"="+P[Ha];else ra.flashvars=Ha+"="+P[Ha];if(ga(I)){za=X(xa,ra,v);xa.id==v&&f(v,true);Ba.success=true;Ba.ref=za}else if(T&&x()){xa.data=T;D(xa,ra,v,Aa);return}else f(v,true);Aa&&Aa(Ba)})}else Aa&&Aa(Ba)},switchOffAutoHideShow:function(){La=false},ua:H,getFlashPlayerVersion:function(){return{major:H.pv[0],minor:H.pv[1],release:H.pv[2]}},hasFlashPlayerVersion:ga,createSWF:function(p,v,B){if(H.w3)return X(p,v,B)},
showExpressInstall:function(p,v,B,F){H.w3&&x()&&D(p,v,B,F)},removeSWF:function(p){H.w3&&ma(p)},createCSS:function(p,v,B,F){H.w3&&pa(p,v,B,F)},addDomLoadEvent:a,addLoadEvent:d,getQueryParamValue:function(p){var v=E.location.search||E.location.hash;if(v){if(/\?/.test(v))v=v.split("?")[1];if(p==null)return Ea(v);v=v.split("&");for(var B=0;B<v.length;B++)if(v[B].substring(0,v[B].indexOf("="))==p)return Ea(v[B].substring(v[B].indexOf("=")+1))}return""},expressInstallCallback:function(){if(ca){var p=da(oa);
if(p&&va){p.parentNode.replaceChild(va,p);if(s){f(s,true);if(H.ie&&H.win)va.style.display="block"}G&&G(S)}ca=false}}}}();(function(c){if(typeof c.Class=="undefined"){var a=false,d=/xyz/.test(function(){})?/\b_super\b/:/.*/;c.Class=function(){};c.Class.extend=function(h){function k(){!a&&this.construct&&this.construct.apply(this,arguments)}var q=this.prototype;a=true;var x=new this;a=false;for(var D in h)x[D]=typeof h[D]=="function"&&typeof q[D]=="function"&&d.test(h[D])?function(K,W){return function(){var X=
this._super;this._super=q[K];var ma=W.apply(this,arguments);this._super=X;return ma}}(D,h[D]):h[D];k.prototype=x;k.constructor=k;k.extend=arguments.callee;return k}}})(N);(function(c){function a(){var s=[];for(type in ba)s.push(['<span class="',type,'" type="',type,'"></span>'].join(""));var G=document.createElement("DIV");G.id=U.blackbird;G.style.display="none";G.innerHTML=['<div class="header"><div class="left"><div id="',U.filters,'" class="filters" title="click to filter by message type">',s.join(""),
'</div></div><div class="right"><div id="',U.controls,'" class="controls"><span id="',U.size,'" title="contract" op="resize"></span><span class="clear" title="clear" op="clear"></span><span class="close" title="close" op="close"></span></div></div></div><div class="main"><div class="left"></div><div class="mainBody"><ol>',ia.join(""),'</ol></div><div class="right"></div></div><div class="footer"><div class="left"><label for="',U.checkbox,'"><input type="checkbox" id="',U.checkbox,'" />Visible on load</label><label for="',
U.checkbox2,'"><input type="checkbox" id="',U.checkbox2,'" />No scroll</label></div><div class="right"></div></div>'].join("");return G}function d(){var s=document.getElementsByTagName("BODY")[0];if(s.currentStyle&&C){if(s.currentStyle.backgroundImage=="none")s.style.backgroundImage="url(about:blank)";if(s.currentStyle.backgroundAttachment=="scroll")s.style.backgroundAttachment="fixed"}}function h(s,G){G=G.constructor==Array?G.join(""):G;if(oa){var S=document.createElement("LI");S.className=s;S.innerHTML=
['<span class="icon"></span>',G].join("");oa.appendChild(S);K()}else ia.push(['<li class="',s,'"><span class="icon"></span>',G,"</li>"].join(""))}function k(s){if(!s)s=window.event;s=s.target?s.target:s.srcElement;if(s.tagName=="SPAN")switch(s.getAttributeNode("op").nodeValue){case "resize":da();break;case "clear":oa.innerHTML="";break;case "close":W()}}function q(s){if(!s)s=window.event;var G=s.target?s.target:s.srcElement;if(G&&G.tagName=="SPAN"){var S=G.getAttributeNode("type").nodeValue;if(s.altKey){s=
document.getElementById(U.filters).getElementsByTagName("SPAN");G=0;for(entry in ba)ba[entry]&&G++;G=G==1&&ba[S];for(var ka=0;s[ka];ka++){var ca=s[ka].getAttributeNode("type").nodeValue;s[ka].className=G||ca==S?ca:ca+"Disabled";ba[ca]=G||ca==S}}else{ba[S]=!ba[S];G.className=ba[S]?S:S+"Disabled"}s=[];for(S in ba)ba[S]||s.push(S);s.push("");oa.className=s.join("Hidden ");K()}}function x(s){if(!s)s=window.event;E.load=(s.target?s.target:s.srcElement).checked;na()}function D(s){if(!s)s=window.event;E.noscroll=
(s.target?s.target:s.srcElement).checked;na()}function K(){if(!E.noscroll)oa.scrollTop=oa.scrollHeight}function W(){ea.style.display="none"}function X(){var s=document.getElementsByTagName("BODY")[0];s.removeChild(ea);s.appendChild(ea);ea.style.display="block"}function ma(s){if(s===undefined||s==null)s=E&&E.pos===null?1:(E.pos+1)%4;switch(s){case 0:fa[0]="bbTopLeft";break;case 1:fa[0]="bbTopRight";break;case 2:fa[0]="bbBottomLeft";break;case 3:fa[0]="bbBottomRight"}E.pos=s;na()}function da(s){if(s===
undefined||s===null)s=E&&E.size==null?0:(E.size+1)%2;fa[1]=s===0?"bbSmall":"bbLarge";var G=document.getElementById(U.size);G.title=s===1?"small":"large";G.className=G.title;E.size=s;na();K()}function na(){var s=[];for(entry in E)s.push(entry+":"+(E[entry]&&E[entry].constructor===String?'"'+E[entry]+'"':E[entry]));s=s.join(",");var G=new Date;G.setDate(G.getDate()+14);document.cookie=["blackbird={",s,"}; expires=",G.toUTCString(),";"].join("");s=[];for(word in fa)s.push(fa[word]);ea.className=s.join(" ")}
function ga(s){if(!s)s=window.event;if(s&&s.keyCode==113){var G=ea.style.display=="block";if(G&&s.shiftKey&&s.altKey)oa.innerHTML="";else if(G&&s.shiftKey)ma();else if(!s.shiftKey&&!s.altKey)G?W():X()}}function pa(s,G,S){s=s.constructor===String?document.getElementById(s):s;if(s.attachEvent){s["e"+G+S]=S;s[G+S]=function(){s["e"+G+S](window.event)};s.attachEvent("on"+G,s[G+S])}else s.addEventListener(G,S,false)}function f(s,G,S){s=s.constructor===String?document.getElementById(s):s;if(s.detachEvent){s.detachEvent("on"+
G,s[G+S]);s[G+S]=null}else s.removeEventListener(G,S,false)}function Ea(){if(!va){va=true;ea=document.getElementsByTagName("BODY")[0].appendChild(a());oa=ea.getElementsByTagName("OL")[0];d();pa(U.checkbox,"click",x);pa(U.checkbox2,"click",D);pa(U.filters,"click",q);pa(U.controls,"click",k);pa(document,"keyup",ga);da(E.size);ma(E.pos);if(E.load){X();document.getElementById(U.checkbox).checked=true}if(E.noscroll)document.getElementById(U.checkbox2).checked=true;K();c[V].init=function(){X();c[V].error(["<b>",
V,"</b> can only be initialized once"])};pa(window,"unload",function(){f(U.checkbox,"click",x);f(U.checkbox2,"click",D);f(U.filters,"click",q);f(U.controls,"click",k);f(document,"keyup",ga)})}}if(typeof c.Logger=="undefined"){var V="Logger",C=true,ea,oa,ia=[],E=function(){var s=RegExp(/blackbird=({[^;]+})(;|\b|$)/).exec(document.cookie);return s&&s[1]?eval("("+s[1]+")"):{pos:null,size:null,load:null,noscroll:null}}(),fa={},ya={},U={blackbird:"blackbird",checkbox:"bbVis",checkbox2:"bbNoScroll",filters:"bbFilters",
controls:"bbControls",size:"bbSize"},ba={debug:true,info:true,warn:true,error:true,profile:true},qa=false,ja=false,va=false;c[V]={load:function(s){qa=true;if(s||ja)Ea()},toggle:function(){ea.style.display=="block"?W():X()},resize:function(){da()},clear:function(){oa.innerHTML=""},move:function(){ma()},debug:function(s){h("debug",s)},warn:function(s){h("warn",s)},info:function(s){h("info",s)},error:function(s){h("error",s)},profile:function(s){var G=new Date;if(s==undefined||s=="")h("error","<b>ERROR:</b> Please specify a label for your profile statement");
else if(ya[s]){h("profile",[s,": ",G-ya[s],"ms"].join(""));delete ya[s]}else{ya[s]=G;h("profile",s)}return G}};pa(window,"load",function(){ja=true;qa&&Ea()})}})(N);(function(c){if(typeof c.Util=="undefined")window.InSkinUtil=c.Util={random:function(){return parseInt(Math.random()*1E6)},setCookie:function(a,d,h,k,q,x){if(h){var D=new Date;D.setTime(D.getTime()+h*1E3);h=D}a=a+"="+escape(d)+(h?"; expires="+h.toGMTString():"")+(k?"; path="+k:"")+(q?"; domain="+q:"")+(x?"; secure":"");document.cookie=
a},getCookie:function(a){var d=document.cookie;a=a+"=";var h=d.indexOf("; "+a);if(h==-1){h=d.indexOf(a);if(h!=0)return null}else h+=2;var k=document.cookie.indexOf(";",h);if(k==-1)k=d.length;return unescape(d.substring(h+a.length,k))},delCookie:function(a,d,h){if(this.getCookie(a))document.cookie=a+"="+(d?"; path="+d:"")+(h?"; domain="+h:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"},URLEncode:function(a){for(var d="",h=0;h<a.length;h++){var k=a.charAt(h);if(k==" ")d+="+";else if("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()".indexOf(k)!=
-1)d+=k;else{k=k.charCodeAt(0);if(k>255)d+="+";else{d+="%";d+="0123456789ABCDEF".charAt(k>>4&15);d+="0123456789ABCDEF".charAt(k&15)}}}return d},URLDecode:function(a){for(var d="",h=0;h<a.length;){var k=a.charAt(h);if(k=="+"){d+=" ";h++}else if(k=="%")if(h<a.length-2&&"0123456789ABCDEFabcdef".indexOf(a.charAt(h+1))!=-1&&"0123456789ABCDEFabcdef".indexOf(a.charAt(h+2))!=-1){d+=unescape(a.substr(h,3));h+=3}else h++;else{d+=k;h++}}return d},tryFunctionNTimes:function(a,d,h,k,q){q||(q=250);k--;var x=false;
try{x=a()}catch(D){x=false}if(x)d();else if(k>0){var K=this;setTimeout(function(){K.tryFunctionNTimes(a,d,h,k,q)},q)}else h()},getObject:function(a,d){if(d){if(d[a])return d[a];if(navigator.appName.indexOf("Microsoft Internet")==-1){if(d.embeds&&d.embeds[a])return d.embeds[a]}else return d.getElementById(a)}else{if(window.document[a])return window.document[a];if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a])return document.embeds[a]}else return document.getElementById(a)}},
getFrameDoc:function(a){if(a=document.getElementById(a))return a.contentDocument?a.contentDocument:a.contentWindow?a.contentWindow.document:a.document;return null},calculateMaxWH:function(a,d,h){var k=d;d=Math.round(d/a);if(d>h){d=h;k=Math.round(h*a)}return{w:k,h:d}},loadURL:function(a){try{var d=c.$('<img width="1" height="0" src="'+a+'" />').appendTo(document.body);setTimeout(function(){d.remove()},15E3)}catch(h){}},getURLParam:function(a){try{for(var d=window.location.search.substring(1).split("&"),
h=0;h<d.length;h++){var k=d[h].split("=");if(k[0]==a)return k[1]}}catch(q){}return null},getURLParams:function(){try{for(var a={},d=window.location.search.substring(1).split("&"),h=0;h<d.length;h++){var k=d[h].split("=");a[k[0]]=k[1]}return a}catch(q){}return{}},getInSkinParams:function(a){var d={};if(typeof InSkinParams!="undefined"&&typeof InSkinParams[a]=="object")d=InSkinParams[a];if(!d.srv_UserID||d.srv_UserID=="")if(!(d.srv_UserID=this.getCookie("InSkinUserID"))){d.srv_UserID=this.random();
this.setCookie("InSkinUserID",d.srv_UserID,31536E3,"/")}if(!d.srv_SessionID||d.srv_SessionID=="")if(!(d.srv_SessionID=this.getCookie("InSkinSessionID"))){d.srv_SessionID=this.random();this.setCookie("InSkinSessionID",d.srv_SessionID,0,"/")}if(!d.srv_Resolution||d.srv_Resolution=="")d.srv_Resolution=screen.width;a=this.getURLParams();for(var h in a)if(h=="BASE_URL"||h=="DEBUG"||h=="InSkinDebug"||h.match(/^(srv|sas|plr|cnt|skn)_/))d[h]=a[h];return d},getMetaParams:function(a){for(var d={},h=0;h<a.length;h+=
2){var k=c.$("meta[name='"+a[h+1]+"']").attr("content");if(k){if(a[h]=="srv_Keywords")k=this.convertMetaKeywords(k);this.addToParams(d,a[h],k)}}return d},convertMetaKeywords:function(a){if(a){var d=a.split(",");a="";for(var h=0;h<d.length;h++){var k=d[h].replace(/[^a-zA-Z0-9]/g,"");if(k.length>0)a+="meta-"+k+", "}}return a},addToParams:function(a,d,h){if(typeof a[d]!="undefined"&&a[d].length>0)h=a[d]+","+h;a[d]=h},registerGlobalFunction:function(a,d,h){var k=typeof window[a]=="function"?window[a]:
null;window[a]=function(){var q=d.apply(h,arguments);if(k)k.apply(window,q?q:arguments)}},embedWithSWFObject1x:function(a,d,h,k,q,x,D){if(typeof c.SWFObject!="undefined"){a=new c.SWFObject(a,D.id,h,k,"8","");for(var K in q)a.addVariable(K,q[K]);for(K in x)a.addParam(K,x[K]);a.write(d);if(typeof D.styleclass!="undefined")(d=this.getObject(D.id))&&d.setAttribute("class",D.styleclass)}else c.Debug.error("Error: SWFObject (1.x) is not defined.")},embedWithSWFObject2x:function(a,d,h,k,q,x,D){typeof c.swfobject!=
"undefined"?c.swfobject.embedSWF(a,d,h,k,"8.0.0","",q,x,D):c.Debug.error("Error: swfobject (2.x) is not defined.")},embedWithHTML:function(a,d,h,k,q,x,D){if(d.constructor===String)d=document.getElementById(d);if(d){var K=[],W;for(W in q)K.push(W+"="+escape(q[W]));q=K.join("&");K="";K+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+h+'" height="'+k+'" id="'+D.id+'"'+(D.styleclass?
' class="'+D.styleclass+'"':"")+">";for(W in x)K+='<param name="'+W+'" value="'+x[W]+'" />';K+='<param name="flashvars" value="'+q+'" />';K+='<param name="movie" value="'+a+'" />';K+='<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="'+a+'" width="'+h+'" height="'+k+'" name="'+D.name+'" flashvars="'+q+'"'+(D.styleclass?' class="'+D.styleclass+'"':"");for(W in x)K+=" "+W+'="'+x[W]+'"';K+=" />";K+="</object>";d.innerHTML=K}},callFlash:function(a,
d){try{for(var h=[],k=2;k<arguments.length;k++)h.push(arguments[k]);return a[d](h)}catch(q){c.Debug.error('Error: Util::callFlash() caught exception calling "'+d+'".');c.Debug.error(a[d]);for(k=0;k<h.length;k++)c.Debug.error(h[k])}return null},loadCSS:function(a,d){d||(d=document);var h=d.createElement("link");h.setAttribute("type","text/css");h.setAttribute("href",a);h.setAttribute("rel","stylesheet");try{d.getElementsByTagName("head")[0].appendChild(h)}catch(k){c.Debug.error('Error: unable to load CSS file "'+
a+'".')}},getWindowW:function(a){a||(a=window);return this.getWindowFilter(a.innerWidth?a.innerWidth:0,a.document.documentElement?a.document.documentElement.clientWidth:0,a.document.body?a.document.body.clientWidth:0)},getWindowH:function(a){a||(a=window);return this.getWindowFilter(a.innerHeight?a.innerHeight:0,a.document.documentElement?a.document.documentElement.clientHeight:0,a.document.body?a.document.body.clientHeight:0)},getWindowScrollT:function(a){a||(a=window);return this.getWindowFilter(a.pageYOffset?
a.pageYOffset:0,a.document.documentElement?a.document.documentElement.scrollTop:0,a.document.body?a.document.body.scrollTop:0)},getWindowScrollL:function(a){a||(a=window);return this.getWindowFilter(a.pageXOffset?a.pageXOffset:0,a.document.documentElement?a.document.documentElement.scrollLeft:0,a.document.body?a.document.body.scrollLeft:0)},getWindowFilter:function(a,d,h){a=a?a:0;if(d&&(!a||a>d))a=d;return h&&(!a||a>h)?h:a},getDocumentW:function(a){a||(a=document);return Math.max(Math.max(a.body&&
a.body.scrollWidth?a.body.scrollWidth:0,a.documentElement&&a.documentElement.scrollWidth?a.documentElement.scrollWidth:0),Math.max(a.body&&a.body.offsetWidth?a.body.offsetWidth:0,a.documentElement&&a.documentElement.offsetWidth?a.documentElement.offsetWidth:0),Math.max(a.body&&a.body.clientWidth?a.body.clientWidth:0,a.documentElement&&a.documentElement.clientWidth?a.documentElement.clientWidth:0))},getDocumentH:function(a){a||(a=document);return Math.max(Math.max(a.body&&a.body.scrollHeight?a.body.scrollHeight:
0,a.documentElement&&a.documentElement.scrollHeight?a.documentElement.scrollHeight:0),Math.max(a.body&&a.body.offsetHeight?a.body.offsetHeight:0,a.documentElement&&a.documentElement.offsetHeight?a.documentElement.offsetHeight:0),Math.max(a.body&&a.body.clientHeight?a.body.clientHeight:0,a.documentElement&&a.documentElement.clientHeight?a.documentElement.clientHeight:0))},iesixFixHeight:function(a){if(a&&a.id&&a.id.substr(0,20)=="InSkinBaseContainer_"){var d=a.parentNode.offsetHeight;if(d){a=a.id.substr(20);
if(a=document.getElementById(a))a.style.height=d+"px";return d+"px"}}return"auto"},track:function(a,d){d||(d="http://data.inskinmedia.com/trackports/rep/base/track.php");try{c.$.ajax({type:"GET",url:d,data:a,success:function(){},dataType:"jsonp"})}catch(h){}},getFlashVersion:function(){if(typeof c.swfobject!="undefined"){var a=c.swfobject.getFlashPlayerVersion();if(typeof a.major!="undefined")return a.major}return 0},objToString:function(a,d){d||(d=1);var h="",k="",q=0;for(q=0;q<d;q++)h+="        ";
for(q=1;q<d;q++)k+="        ";q="{\n";for(var x in a)q+=a[x]&&typeof a[x]=="object"?h+x+": "+this.objToString(a[x],d+1)+"\n":h+x+": "+a[x]+"\n";q+=k+"}\n";return q},replaceTokens:function(a){a+="";return a.replace("${timestamp}",(new Date).getTime()).replace("${random}",Math.random())},getScriptURLParameters:function(a,d){d||(d="&");for(var h=document.getElementsByTagName("script"),k,q=0;q<h.length;q++)if(k=h[q].src.match(a)){h={};k=k[1].split(d);for(q=0;q<k.length;q++)if(k[q]!=""){var x=k[q].split("=");
h[x[0]]=typeof x[1]!="undefined"?this.URLDecode(x[1]):""}return h}return null},getMetaTag:function(a){return c.$("meta[name="+a+"]")},setMetaTag:function(a,d){var h=this.getMetaTag(a);h.length||(h=c.$("<meta />").attr("name",a).appendTo("head"));h.attr(d)},getMetaTagAttr:function(a,d){d||(d="content");return this.getMetaTag(a).attr(d)},setMetaTagAttr:function(a,d,h){h||(h="content");var k={};k[h]=d;this.setMetaTag(a,k)},getMetaTagParams:function(a,d){var h={},k;if(k=this.getMetaTagAttr(a,d)){k=k.split(/\s*[,;]\s*/);
for(var q={},x=0;x<k.length;x++){var D=k[x].split(/\s*=\s*/);q[D[0]]=D[1]?D[1]:null}c.$.extend(h,q)}return h},setMetaTagParams:function(a,d,h){var k=this.getMetaTagParams(a,h);c.$.extend(k,d);d=[];for(var q in k)d.push(q+(k[q]?"="+k[q]:""));this.setMetaTagAttr(a,d.join(","),h)},survey:function(a,d){function h(){setTimeout(function(){k.empty().remove();a.closeCallback()},0)}var k=c.$("<div></div>").addClass("InSkinSurvey").css({width:"382px",height:"244px","margin-left":-Math.round(191)+"px","margin-top":-Math.round(122)+
"px"});a.cfg.dialogueText||(a.cfg.dialogueText="");a.cfg.dialogueExitText||(a.cfg.dialogueExitText="");var q=a.cfg.link?a.cfg.link:"javascript:;";q=function(na){if(!na)return"";if(a.params)for(var ga in a.params)na=na.split("${"+ga+"}").join(a.params[ga]);return na}(q);var x=c.$("<div></div>").addClass("textcontainer").appendTo(k),D=c.$("<div></div>").addClass("dialoguetext").html(a.cfg.dialogueText).appendTo(x),K=c.$("<div></div>").addClass("exittext").html(a.cfg.dialogueExitText).appendTo(x);x=
c.$("<div></div>").addClass("buttoncontainer").appendTo(k);var W=c.$("<div></div>").addClass("dialoguebuttons").appendTo(x),X=a.cfg.okButtonText?a.cfg.okButtonText:"";X='<img src="http://cdn.inskinmedia.com/InSkinFiles/survey/buttonOff.png" width="147" height="30" border="0" />';q=c.$('<a target="_blank"></a>').addClass("ok").attr("href",q).html(X).appendTo(W);X=a.cfg.koButtonText?a.cfg.koButtonText:"";X='<img src="http://cdn.inskinmedia.com/InSkinFiles/survey/decline.png?v=1" width="98" height="10" />';
X=c.$('<a href="javascript:;"></a>').addClass("ko").html(X).appendTo(W);var ma=c.$("<div></div>").addClass("exitbuttons").appendTo(x);x=a.cfg.exitButtonText?a.cfg.exitButtonText:"";x='<img src="http://cdn.inskinmedia.com/InSkinFiles/survey/return.png" width="147" height="30" />';x=c.$('<a href="javascript:;"></a>').addClass("exit").html(x).appendTo(ma);var da=c.$('<a href="javascript:;"><img src="http://cdn.inskinmedia.com/InSkinFiles/survey/close.png" width="18" height="17" /></a>').addClass("close").appendTo(k);
q.click(function(){c.Util.setCookie("InSkinSurvey","1",2592E3,"/");D.hide();W.hide();K.show();ma.show()});X.click(h);x.click(h);da.click(h);k.appendTo(d.body)},createDetachedSWFUnitContainer:function(a){var d=c.$("<div><div></div></div>",a.win.document).addClass("InSkinUnitContainer").css({position:"absolute",width:"1px",height:"1px"}).prependTo(a.win.document.body);return new c["4.2"].SWFUnitContainer(c.$.extend(a,{jcontainer:d,jtarget:d.children(":first")}))},showElements:function(a,d,h){h||(h=
document);a&&a!=""&&c.$(a,h).find("*").andSelf().css("visibility","visible");d&&d!=""&&c.$(d,h).show()},hideElements:function(a,d,h){h||(h=document);a&&a!=""&&c.$(a,h).find("*").andSelf().css("visibility","hidden");d&&d!=""&&c.$(d,h).hide()}}})(N);(function(c){if(typeof c.EventDispatcher=="undefined")c.EventDispatcher=c.Class.extend({construct:function(){this.listeners={}},addEventListener:function(a,d,h){if(typeof this.listeners[a]=="undefined")this.listeners[a]=[];this.listeners[a].push({func:d,
thisObj:h})},removeEventListener:function(a,d,h){if(typeof this.listeners[a]!="undefined")for(var k=this.listeners[a].length-1;k>=0;k--)this.listeners[a][k].func===d&&this.listeners[a][k].thisObj===h&&this.listeners[a].splice(k,1)},dispatchEvent:function(a,d){if(typeof this.listeners[a]!="undefined"||typeof this.listeners["*"]!="undefined")for(var h={name:a,target:this,data:d},k=[].concat(this.listeners[a]||[]).concat(this.listeners["*"]||[]),q=0;q<k.length;q++)if(typeof k[q].func=="function")k[q].func.apply(k[q].thisObj,
[h]);else typeof k[q].func=="string"&&typeof k[q].thisObj=="object"&&typeof k[q].thisObj[k[q].func]=="function"&&k[q].thisObj[k[q].func].apply(k[q].thisObj,[h])},forwardEvent:function(a){this.dispatchEvent(a.name,a.data)}})})(N);(function(c){function a(d,h){h||(h=d);var k=typeof window[d]=="function"?window[d]:null;window[d]=function(q,x){var D=acudeoComponents[x].id,K;for(K in c.BaseInstances)if((!D||D==c.BaseInstances[K].objContent.id)&&typeof c.BaseInstances[K].objContent.objTremor!="undefined")typeof c.BaseInstances[K].objContent.objTremor[h]==
"function"&&c.BaseInstances[K].objContent.objTremor[h].apply(c.BaseInstances[K].objContent.objTremor,arguments);k&&k.apply(null,arguments)}}if(typeof c.TremorAPI=="undefined"){c.TremorAPI=c.EventDispatcher.extend({construct:function(d){this._super();this.objContent=d;this.hasIRoll=this.comboAd=false;this.acudeoInstanceIndex=null},tmIsmSetAcudeoIndex:function(d){c.Debug.trace("TremorAPI::tmIsmSetAcudeoIndex() called. Acudeo index: "+d);this.acudeoInstanceIndex=d;this.objContent.objBase.swReady?this.initializeInSkinTremorCommunication():
this.objContent.objBase.addEventListener(this.objContent.objBase.EVENT_READY,"initializeInSkinTremorCommunication",this)},initializeInSkinTremorCommunication:function(){c.Debug.trace("TremorAPI::initializeInSkinTremorCommunication() called.");var d='InSkin.BaseInstances["'+this.objContent.objBase.params.plr_InSkinID+'"].objContent.objTremor';try{acudeoComponents[this.acudeoInstanceIndex].ismTmSetInskinInstance(d)}catch(h){}},tmIsmAdCall:function(){c.Debug.trace("TremorAPI::tmIsmAdCall() called.");
this.objContent.objBase.addEventListener(this.objContent.objBase.EVENT_AD_CALL_RESULT,"onAdCallResult",this);this.objContent.objBase.addEventListener(this.objContent.objBase.EVENT_AD_CALL_ERROR,"onAdCallError",this);this.objContent.objBase.addEventListener(this.objContent.objBase.EVENT_AD_SERVED,"onAdServed",this);this.objContent.objBase.params.srv_SectionID!=""?this.objContent.objBase.makeAdCall({srv_SectionID:this.objContent.objBase.params.srv_SectionID,sas_AdTag:this.objContent.objBase.params.sas_PauseAdTag,
sas_AdTagURL:this.objContent.objBase.params.sas_PauseAdTagURL,sas_AdTagResult:this.objContent.objBase.params.sas_PauseAdTagResult}):acudeoComponents[this.acudeoInstanceIndex].ismTmAdAvailable(false)},onAdCallResult:function(d){try{this.comboAd=(this.hasIRoll=d.data.hasIRoll)&&d.data.hasSkin;acudeoComponents[this.acudeoInstanceIndex].ismTmAdAvailable(d.data.hasIRoll);c.Debug.trace("TremorAPI::acudeoComponents["+this.acudeoInstanceIndex+"].ismTmAdAvailable("+d.data.hasIRoll+") called.");if(d.data.hasIRoll){this.objContent.objBase.addEventListener(this.objContent.objBase.EVENT_AD_CLICK,
"onAdClick",this);this.objContent.objBase.addEventListener(this.objContent.objBase.EVENT_IROLL_COMPLETE,"onIRollComplete",this)}else{this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CALL_RESULT,"onAdCallResult",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CALL_ERROR,"onAdCallError",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_SERVED,"onAdServed",this)}}catch(h){}},onAdCallError:function(){try{acudeoComponents[this.acudeoInstanceIndex].ismTmAdAvailable(false);
c.Debug.trace("TremorAPI::acudeoComponents["+this.acudeoInstanceIndex+"].ismTmAdAvailable(false) called.")}catch(d){}this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CALL_RESULT,"onAdCallResult",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CALL_ERROR,"onAdCallError",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_SERVED,"onAdServed",this)},onAdServed:function(d){if(d.data.type=="IRoll")try{c.Debug.trace("TremorAPI::acudeoComponents["+
this.acudeoInstanceIndex+"].ismTmAdImpression() called.");acudeoComponents[this.acudeoInstanceIndex].ismTmAdImpression()}catch(h){}},onAdClick:function(){try{c.Debug.trace("TremorAPI::acudeoComponents["+this.acudeoInstanceIndex+"].ismTmAdEngagement() called.");acudeoComponents[this.acudeoInstanceIndex].ismTmAdEngagement()}catch(d){}},onIRollComplete:function(){try{c.Debug.trace("TremorAPI::acudeoComponents["+this.acudeoInstanceIndex+"].ismTmAdComplete() called.");acudeoComponents[this.acudeoInstanceIndex].ismTmAdComplete()}catch(d){}this.hasIRoll=
false;this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CALL_RESULT,"onAdCallResult",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CALL_ERROR,"onAdCallError",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_SERVED,"onAdServed",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_AD_CLICK,"onAdClick",this);this.objContent.objBase.removeEventListener(this.objContent.objBase.EVENT_IROLL_COMPLETE,
"onIRollComplete",this)},onAdVideoStart:function(){c.Debug.debug("TREMOR EVENT: onAdVideoStart");this.hasIRoll||this.dispatchEvent("onAdVideoStart")},onStartContent:function(){c.Debug.debug("TREMOR EVENT: onStartContent");this.dispatchEvent("onStartContent")},onAdVideoProgress:function(d){c.Debug.debug("TREMOR EVENT: onAdVideoProgress");this.hasIRoll||this.dispatchEvent("onAdVideoProgress",d)}});window.tmIsmSetAcudeoIndex=function(d){var h=null;if(typeof acudeoComponents!="undefined"&&acudeoComponents[d]&&
typeof acudeoComponents[d].id!="undefined")h=acudeoComponents[d].id;if(h)for(var k in c.BaseInstances)if(h&&h==c.BaseInstances[k].objContent.id&&typeof c.BaseInstances[k].objContent.objTremor!="undefined")return c.BaseInstances[k].objContent.objTremor.tmIsmSetAcudeoIndex(d);try{acudeoComponents[d].ismTmSetInSkinInstance(null)}catch(q){}};a("onAdVideoStart");a("onStartContent");a("onResumeContent","onStartContent");a("onAdVideoProgress")}})(N);(function(c){if(typeof c.Debug=="undefined")c.Debug={level:0,
startTime:(new Date).getTime(),loaded:false,init:function(a,d){d||(d=false);this.level=a&&!isNaN(parseInt(a))?parseInt(a):0;if(this.level>0&&!this.loaded){this.loaded=true;c.Logger.load(d)}},error:function(a){this.level>=1&&this.print("error",a)},warn:function(a){this.level>=2&&this.print("warn",a)},info:function(a){this.level>=3&&this.print("info",a)},debug:function(a){this.level>=4&&this.print("debug",a)},trace:function(a){this.level>=5&&this.print("debug",a)},print:function(a,d){if(typeof c.Logger!=
"undefined"){d+="";c.Logger[a](d.replace(/lt;/g,"&lt;").replace(/gt;/g,"&gt;"))}},htmlEscape:function(a){a+="";return a.replace(/</g,"lt;").replace(/>/g,"gt;")}}})(N);(function(c){if(typeof c.Timer=="undefined")c.Timer=c.Class.extend({construct:function(a){this.settings=a;this.swStarted=false;this.startTime=this.timerValue=this.total=0;this.capping=typeof this.settings.capping!="undefined"?this.settings.capping:-1},now:function(){return(new Date).getTime()},start:function(){if(!this.swStarted){this.swStarted=
true;this.startTime=this.now()}},stop:function(){if(this.swStarted){this.swStarted=false;this.timerValue+=this.now()-this.startTime}},reset:function(){this.startTime=this.now();this.timerValue=0},get:function(a){if(typeof a=="undefined")a=true;var d=Math.round((this.swStarted?this.timerValue+this.now()-this.startTime:this.timerValue)/1E3);if(this.capping>-1){if(this.total+d>this.capping)d=this.capping-this.total;this.total+=d}a&&this.reset();return{label:this.settings.label,data:this.settings.data,
value:d}}})})(N);(function(c){if(typeof c.Base=="undefined"){c.BaseInstances={};c.ContentAPIs={};c.Base=c.EventDispatcher.extend({EVENT_READY:"ready",EVENT_AD_CALL_RESULT:"adCallResult",EVENT_AD_CALL_ERROR:"adCallError",EVENT_AD_SERVED:"adServed",EVENT_AD_CLICK:"adClick",EVENT_EXPANDABLE_OPEN:"expandableOpen",EVENT_EXPANDABLE_CLOSE:"expandableClose",EVENT_REQUEST_PLAY:"requestPlay",EVENT_REQUEST_PAUSE:"requestPause",EVENT_IROLL_START:"irollStart",EVENT_IROLL_COMPLETE:"irollComplete",EVENT_AD_SHOW:"adShow",
EVENT_AD_HIDE:"adHide",EVENT_AD_UNLOAD:"adUnload",EVENT_LAYOUT_CHANGE:"layoutChange",EVENT_SHORTNAME:{"com.inskinmedia.isfe.as2.core.CCore.events.AD_CALL_RESULT":"adCallResult","com.inskinmedia.isfe.as2.core.CCore.events.AD_CALL_ERROR":"adCallError","com.inskinmedia.isfe.as2.core.CCore.events.AD_SERVED":"adServed","com.inskinmedia.isfe.as2.core.CCore.events.AD_CLICK":"adClick","com.inskinmedia.isfe.as2.core.CCore.events.EXPANDABLE_OPEN":"expandableOpen","com.inskinmedia.isfe.as2.core.CCore.events.EXPANDABLE_CLOSE":"expandableClose",
"com.inskinmedia.isfe.as2.core.CCore.events.REQUEST_PLAY":"requestPlay","com.inskinmedia.isfe.as2.core.CCore.events.REQUEST_PAUSE":"requestPause","com.inskinmedia.isfe.as2.core.CCore.events.IROLL_START":"irollStart","com.inskinmedia.isfe.as2.core.CCore.events.IROLL_COMPLETE":"irollComplete"},construct:function(a){this._super();this.params={BASE_URL:"http://cdn.inskinmedia.com/isfe/4.1",DEBUG:0,plr_InSkinID:a,plr_ContentID:"",plr_FrameTop:60,plr_FrameSide:30,plr_FrameSideRight:"",plr_FrameBottom:40,
plr_InitialLayout:"",plr_NoSkinContentResize:false,plr_NoSkinContentW:"",plr_NoSkinContentH:"",plr_NoSkinInSkinResize:false,plr_NoSkinInSkinW:"",plr_NoSkinInSkinH:"",plr_HideContentOnDetachedExpandable:false,plr_HideContentVersion:1,plr_HideSkinOnExternalAd:"",plr_ShowSkinAfterExternalAd:false,plr_ResizeOnExternalAd:false,plr_ResizeOnHideSkin:false,plr_Autopilot:true,plr_MakeAdCallOnInit:true,plr_NoCache:false,plr_EnableTracking:true,plr_ASVersion:"2"};this.id=a;a=c.Util.getInSkinParams(this.id);
for(var d in a)this.params[d]=a[d];this.j=c.jQuery;this.swContentInitComplete=this.swInitComplete=this.swIntegrationParametersOK=false;this.currentLayout="";this.jobj={};this.ids={div_container:"InSkinContainer_"+this.id,div_content_container:"InSkinContentContainer_"+this.id,div_base_container:"InSkinBaseContainer_"+this.id,div_base:"InSkinIDiv_"+this.id};this.swf_base=null;if(this.params.DEBUG>0){c.Util.loadCSS(this.params.BASE_URL+"/css/blackbird.css");c.Debug.init(this.params.DEBUG)}if(!this.checkParams()){c.Debug.error("Error: checkParams() failed.");
return false}this.swIntegrationParametersOK=true;c.Debug.debug("==========================================================");c.Debug.debug("InSkinBase v4.1");c.Debug.debug("Copyright (c) InSkin Media Ltd, http://www.inskinmedia.com");c.Debug.debug("==========================================================");this.swReady=false;this.queue=[];if(this.params.plr_ContentType!=""){this.objContent=c.ContentManager.create(this.params.plr_ContentType,this);this.registerContentEventHandlers();this.retContentInit=
this.objContent.init()}c.BaseInstances[this.id]=this},dispatchEvent:function(a,d){if(typeof this.EVENT_SHORTNAME[a]!="undefined")a=this.EVENT_SHORTNAME[a];this._super(a,d);typeof InSkinEvent=="function"&&InSkinEvent(this,a,d)},init:function(){c.Debug.trace("Base::init() called.");var a=0,d="";if(!this.swIntegrationParametersOK){c.Debug.error("Error: init procedure aborted due to bad integration parameters.");a=1;d="integration-parameters"}if(!a&&!this.checkElements()){c.Debug.error("Error: init procedure aborted due to checkElements() fail.");
a=1;d="check-elements"}if(!a&&!this.checkCompatibility()){c.Debug.warn("Warning: init procedure aborted due to compatibility issues.");this.setLayout(false);a=1;d="compatibility"}if(!a&&typeof this.retContentInit!="undefined"&&this.retContentInit===false){c.Debug.warn("Warning: init procedure aborted due to content init returning false.");this.setLayout(false);a=1;d="content-init-false"}if(!a){var h=this.jobj.div_content_container.width()+this.params.plr_FrameSide+this.params.plr_FrameSideRight;this.jobj.div_base_container.css({"max-height":Math.floor(74E5/
h)+"px"})}if(!a){h=c.Util.getFlashVersion();if(h<8){c.Debug.warn("Warning: init procedure aborted due to unacceptable Flash version.");this.setLayout(false);a=1;d="flash-version-"+h}}if(this.params.plr_EnableTracking)c.Util.track(c.$.extend({type:"init",section_id:this.params.srv_SectionIDPlay||this.params.srv_SectionID,content_type:this.params.plr_ContentType,cfg:this.objContent.serialiseIntegrationData(),failed:a,reason:d,keywords:this.params.srv_Keywords,page_url:document.location.href},this.objContent.getTrackingInfo()));
if(a)return false;if(this.params.plr_InitialLayout!="")this.setLayout(this.params.plr_InitialLayout=="skin"?true:false);if(c.$.browser.msie&&this.params.plr_ContentType=="PAGESKIN"&&this.params.plr_EnableActiveResize){if(typeof this.params.plr_ContentHAdjustment=="undefined")this.params.plr_ContentHAdjustment=0;var k=this;setInterval(function(){k.activeResize()},250)}this.embed()},checkReady:function(){c.Debug.trace("Base::checkInitReady() called.");if(this.swInitComplete&&(!this.objContent||this.swContentInitComplete))this.onReady()},
onReady:function(){c.Debug.trace("Base::onReady() called.");this.swReady=true;this.playQueue();this.dispatchEvent(this.EVENT_READY,null);this.toSWF_Ready(this.objContent?this.objContent.getData():{})},registerContentEventHandlers:function(){c.Debug.trace("Base::registerContentEventHandlers() called.");this.objContent.addEventListener(this.objContent.EVENT_INIT_COMPLETE,"onContentInitComplete",this);this.objContent.addEventListener(this.objContent.EVENT_PLAY,"onContentPlay",this);this.objContent.addEventListener(this.objContent.EVENT_PAUSE,
"onContentPause",this);this.objContent.addEventListener(this.objContent.EVENT_COMPLETE,"onContentComplete",this);this.objContent.addEventListener(this.objContent.EVENT_NEW_ITEM,"onContentNewItem",this);this.objContent.addEventListener(this.objContent.EVENT_AD_START,"onContentAdStart",this);this.objContent.addEventListener(this.objContent.EVENT_AD_COMPLETE,"onContentAdComplete",this)},embed:function(){c.Debug.trace("Base::embed() called.");var a={},d;for(d in this.params)a[d]=this.params[d];d={base:this.params.BASE_URL+
"/swf/",allowscriptaccess:"always",swliveconnect:true,wmode:"transparent",scale:"noScale"};var h={id:this.id,name:this.id,styleclass:"InSkinBase"},k=this.params.BASE_URL+"/swf/base"+this.params.plr_ASVersion+".swf";if(this.params.plr_NoCache)k+="?"+(new Date).getTime();c.Debug.debug("Base SWF object loaded from: "+k);c.Util.embedWithSWFObject2x(k,this.ids.div_base,"100%","100%",a,d,h)},activeResize:function(){typeof this.jobj.base!="undefined"&&this.jobj.base.hide().show()},queueEvent:function(a,
d){c.Debug.trace("Base::queueEvent() called. Event name: "+a.name);if(c.$.inArray(a.name,this.objContent.eventsToQueue)!=-1){c.Debug.info("QUEUED CONTENT EVENT: "+a.name);this.addToQueue(d,[a])}},addToQueue:function(a,d){this.queue.push({func:a,args:d})},playQueue:function(){c.Debug.trace("Base::playQueue() called.");for(var a=0;a<this.queue.length;a++)this[this.queue[a].func].apply(this,this.queue[a].args);this.queue=[]},fromSWF_Loaded:function(){c.Debug.trace("Base::fromSWF_Loaded() called.");this.jobj.div_content_container.css("display",
"block");this.jobj.div_base_container.css({left:"0px",top:"0px"});this.jobj.base=c.$("#"+this.id);this.swf_base=c.Util.getObject(this.id);this.swInitComplete=true;this.checkReady()},fromSWF_UpdateCfg:function(a){c.Debug.trace("Base::fromSWF_UpdateCfg() called.");for(var d in a)this.params[d]=a[d]},fromSWF_AdCallResult:function(a){c.Debug.trace("Base::fromSWF_AdCallResult() called.");this.hasSkin=a.hasSkin;this.params.plr_ContentType=="PAGESKIN"?this.setLayout(a.hasSkin):this.setLayout(a.hasSkin||
a.hasIRoll)},fromSWF_AdCallError:function(){c.Debug.trace("Base::fromSWF_AdCallError() called.")},fromSWF_ContentPlay:function(){c.Debug.trace("Base::fromSWF_ContentPlay() called.");this.doContentPlay()},fromSWF_ContentPause:function(){c.Debug.trace("Base::fromSWF_ContentPause() called.");this.doContentPause()},fromSWF_ContentShow:function(){c.Debug.trace("Base::fromSWF_ContentShow() called.");this.showContentContainer()},fromSWF_ContentHide:function(){c.Debug.trace("Base::fromSWF_ContentHide() called.");
this.hideContentContainer()},fromSWF_IRollComplete:function(){c.Debug.trace("Base::fromSWF_IRollComplete() called.");this.setLayout(this.hasSkin?true:false)},callFlash:function(){c.Debug.trace("Base::callFlash() called.");if(this.swf_base){for(var a=[],d=0;d<arguments.length;d++)a.push(arguments[d]);return c.Util.callFlash.apply(c.Util,[this.swf_base,"callInSkinBaseMethod"].concat(a))}return null},toSWF_Ready:function(a){c.Debug.trace("Base::toSWF_Ready() called.");this.callFlash("fromJS_Ready",a)},
toSWF_OnContentPlay:function(){c.Debug.trace("Base::toSWF_OnContentPlay() called.");this.callFlash("fromJS_OnContentPlay")},toSWF_OnContentPause:function(){c.Debug.trace("Base::toSWF_OnContentPause() called.");this.callFlash("fromJS_OnContentPause")},toSWF_OnContentComplete:function(){c.Debug.trace("Base::toSWF_OnContentComplete() called.");this.callFlash("fromJS_OnContentComplete")},toSWF_OnContentNewItem:function(){c.Debug.trace("Base::toSWF_OnContentNewItem() called.");this.callFlash("fromJS_OnContentNewItem")},
toSWF_OnContentAdStart:function(){c.Debug.trace("Base::toSWF_OnContentAdStart() called.");this.callFlash("fromJS_OnContentAdStart")},toSWF_OnContentAdComplete:function(){c.Debug.trace("Base::toSWF_OnContentAdComplete() called.");this.callFlash("fromJS_OnContentAdComplete")},doContentPlay:function(){c.Debug.trace("Base::doContentPlay() called.");try{this.objContent.doPlay()}catch(a){c.Debug.warn("Warning: Base::doContentPlay() caught exception from interface.")}},doContentPause:function(){c.Debug.trace("Base::doContentPause() called.");
try{this.objContent.doPause()}catch(a){c.Debug.warn("Warning: Base::doContentPause() caught exception from interface.")}},onContentInitComplete:function(a){c.Debug.trace("Base::onContentInitComplete() called.");a.data.success||c.Debug.warn("Warning: content initialization was unsuccessful.");this.swContentInitComplete=true;this.checkReady()},onContentPlay:function(a){if(this.swReady){c.Debug.trace("Base::onContentPlay() called.");this.toSWF_OnContentPlay()}else this.queueEvent(a,"onContentPlay")},
onContentPause:function(a){if(this.swReady){c.Debug.trace("Base::onContentPause() called.");this.toSWF_OnContentPause()}else this.queueEvent(a,"onContentPause")},onContentComplete:function(a){if(this.swReady){c.Debug.trace("Base::onContentComplete() called.");this.toSWF_OnContentComplete()}else this.queueEvent(a,"onContentComplete")},onContentNewItem:function(a){if(this.swReady){c.Debug.trace("Base::onContentNewItem() called.");this.toSWF_OnContentNewItem()}else this.queueEvent(a,"onContentNewItem")},
onContentAdStart:function(a){if(this.swReady){c.Debug.trace("Base::onContentAdStart() called.");this.toSWF_OnContentAdStart()}else this.queueEvent(a,"onContentAdStart")},onContentAdComplete:function(a){if(this.swReady){c.Debug.trace("Base::onContentAdComplete() called.");this.toSWF_OnContentAdComplete()}else this.queueEvent(a,"onContentAdComplete")},setLayout:function(a){c.Debug.trace("Base::setLayout() called. Has Skin: "+a);a?this.setLayoutForSkin():this.setLayoutForNoSkin();this.dispatchEvent(this.EVENT_LAYOUT_CHANGE,
{currentLayout:this.currentLayout,w:this.jobj.div_container.width(),h:this.jobj.div_container.height(),contentW:this.jobj.div_content_container.width(),contentH:this.jobj.div_content_container.height()})},setLayoutForSkin:function(){c.Debug.trace("Base::setLayoutForSkin() called.");this.currentLayout="skin";var a={width:this.params.plr_ContentW+"px",margin:[this.params.plr_FrameTop+"px",this.params.plr_FrameSideRight+"px",this.params.plr_FrameBottom+"px",this.params.plr_FrameSide+"px"].join(" ")},
d={width:this.params.plr_ContentW+this.params.plr_FrameSide+this.params.plr_FrameSideRight+"px"};if(!isNaN(this.params.plr_ContentH)){a.height=this.params.plr_ContentH+"px";d.height=this.params.plr_ContentH+this.params.plr_FrameTop+this.params.plr_FrameBottom+"px"}this.jobj.div_container.css(d);this.jobj.div_content_container.css(a);if(c.$.browser.msie){c.$.browser.version>=7&&this.jobj.div_base_container.hide().show();if(c.$.browser.version>=8){var h=this;this.params.plr_ContentType!="PAGESKIN"&&
setTimeout(function(){h.jobj.div_content_container.css("float","left")},250)}}},setLayoutForNoSkin:function(){c.Debug.trace("Base::setLayoutForNoSkin() called.");if(this.params.plr_NoSkinInSkinResize||this.params.plr_NoSkinContentResize){this.currentLayout="noskin";var a=[0,0,0,0],d={width:this.params.plr_ContentW},h={width:this.params.plr_ContentW+this.params.plr_FrameSide+this.params.plr_FrameSideRight};if(!isNaN(this.params.plr_ContentH)){d.height=this.params.plr_ContentH;h.height=this.params.plr_ContentH+
this.params.plr_FrameTop+this.params.plr_FrameBottom}if(this.params.plr_NoSkinContentResize)if(isNaN(this.params.plr_NoSkinContentW)&&isNaN(this.params.plr_NoSkinContentH))if(isNaN(this.params.plr_ContentH))c.Debug.warn('Warning: cannot auto-resize content container when "plr_ContentH" is not specified.');else{var k=c.Util.calculateMaxWH(this.params.plr_ContentW/this.params.plr_ContentH,h.width,h.height);d.width=k.w;d.height=k.h}else{isNaN(this.params.plr_NoSkinContentW)||(d.width=this.params.plr_NoSkinContentW);
isNaN(this.params.plr_NoSkinContentH)||(d.height=this.params.plr_NoSkinContentH)}if(this.params.plr_NoSkinInSkinResize){h.width=!isNaN(this.params.plr_NoSkinInSkinW)&&this.params.plr_NoSkinInSkinW>=d.width?this.params.plr_NoSkinInSkinW:d.width;if(!isNaN(this.params.plr_NoSkinInSkinH)&&(isNaN(d.height)||this.params.plr_NoSkinInSkinH>=d.height))h.height=this.params.plr_NoSkinInSkinH;else isNaN(d.height)||(h.height=d.height)}a[1]=a[3]=Math.floor((h.width-d.width)/2);if(!isNaN(h.height)&&!isNaN(d.height))a[0]=
a[2]=Math.floor((h.height-d.height)/2);k={};var q={},x;for(x in d)k[x]=d[x]+"px";k.margin=[a[0]+"px",a[1]+"px",a[2]+"px",a[3]+"px"].join(" ");for(x in h)q[x]=h[x]+"px";this.jobj.div_container.css(q);this.jobj.div_content_container.css(k)}},showContentContainer:function(){c.Debug.trace("Base::showContentContainer() called.");if(this.params.plr_HideContentVersion==1)this.showContentContainerV1();else this.params.plr_HideContentVersion==2&&this.showContentContainerV2()},hideContentContainer:function(){c.Debug.trace("Base::hideContentContainer() called.");
if(this.params.plr_HideContentVersion==1)this.hideContentContainerV1();else this.params.plr_HideContentVersion==2&&this.hideContentContainerV2()},showContentContainerV1:function(){c.Debug.trace("Base::hideContentContainerV1() called.");var a=parseInt(this.jobj.div_base_container.css("z-index")),d=parseInt(this.jobj.div_content_container.css("z-index"));if(!isNaN(a)&&!isNaN(d)&&a>d){this.jobj.div_base_container.css("z-index",d);this.jobj.div_content_container.css("z-index",a)}},showContentContainerV2:function(){c.Debug.trace("Base::hideContentContainerV2() called.");
this.jobj.div_content_container.css("visibility","visible")},hideContentContainerV1:function(){c.Debug.trace("Base::hideContentContainerV1() called.");var a=parseInt(this.jobj.div_base_container.css("z-index")),d=parseInt(this.jobj.div_content_container.css("z-index"));if(!isNaN(a)&&!isNaN(d)&&a<d){this.jobj.div_base_container.css("z-index",d);this.jobj.div_content_container.css("z-index",a)}},hideContentContainerV2:function(){c.Debug.trace("Base::hideContentContainerV2() called.");this.jobj.div_content_container.css("visibility",
"hidden")},checkParams:function(){c.Debug.trace("Base::checkParams() called.");if(!this.params.plr_InSkinID||this.params.plr_InSkinID==""){c.Debug.error('Error: integration parameter "plr_InSkinID" is not specified.');return false}if(!this.params.plr_ContentID||this.params.plr_ContentID==""){c.Debug.error('Error: integration parameter "plr_ContentID" is not specified.');return false}if(isNaN(this.params.plr_ContentW)||this.params.plr_ContentW<=0){c.Debug.error('Error: integration parameter "plr_ContentW" is not specified or is not a number greater than 0.');
return false}this.params.plr_FrameTop=parseInt(this.params.plr_FrameTop);if(isNaN(this.params.plr_FrameTop)){c.Debug.error('Error: integration parameter "plr_FrameTop" is not a number.');return false}this.params.plr_FrameSide=parseInt(this.params.plr_FrameSide);if(isNaN(this.params.plr_FrameSide)){c.Debug.error('Error: integration parameter "plr_FrameSide" is not a number.');return false}this.params.plr_FrameBottom=parseInt(this.params.plr_FrameBottom);if(isNaN(this.params.plr_FrameBottom)){c.Debug.error('Error: integration parameter "plr_FrameBottom" is not a number.');
return false}this.params.plr_FrameSideRight=parseInt(this.params.plr_FrameSideRight);if(isNaN(this.params.plr_FrameSideRight))this.params.plr_FrameSideRight=this.params.plr_FrameSide;if(typeof this.params.plr_NoSkinInSkinW!="undefined")this.params.plr_NoSkinInSkinW=parseInt(this.params.plr_NoSkinInSkinW);if(typeof this.params.plr_NoSkinInSkinH!="undefined")this.params.plr_NoSkinInSkinH=parseInt(this.params.plr_NoSkinInSkinH);if(typeof this.params.plr_NoSkinContentW!="undefined")this.params.plr_NoSkinContentW=
parseInt(this.params.plr_NoSkinContentW);if(typeof this.params.plr_NoSkinContentH!="undefined")this.params.plr_NoSkinContentH=parseInt(this.params.plr_NoSkinContentH);this.verifyBooleans();return true},verifyBooleans:function(){for(var a=["plr_NoSkinContentResize","plr_NoSkinInSkinResize","plr_HideContentOnDetachedExpandable","plr_ShowSkinAfterExternalAd","plr_ResizeOnExternalAd","plr_ResizeOnHideSkin","plr_Autopilot","plr_MakeAdCallOnInit","plr_NoCache","plr_EnableTracking"],d=0;d<a.length;d++)if(typeof this.params[a[d]]!=
"undefined")this.params[a[d]]=String(this.params[a[d]]).toLowerCase()=="true"?true:false},checkElements:function(){c.Debug.trace("Base::checkElements() called.");this.jobj.div_content_container=this.j("#"+this.ids.div_content_container);if(this.jobj.div_content_container.length!=1){c.Debug.error('Error: could not find DIV with ID "'+this.ids.div_content_container+'".');return false}this.jobj.div_container=this.j("#"+this.ids.div_container);if(this.jobj.div_container.length!=1){this.jobj.div_content_container.wrap(this.j('<div id="'+
this.ids.div_container+'"></div>').attr("id",this.ids.div_container));this.jobj.div_container=this.j("#"+this.ids.div_container);if(this.jobj.div_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_container+'".');return false}this.jobj.div_container.addClass("InSkinContainer")}this.jobj.div_base_container=this.j("#"+this.ids.div_base_container);if(this.jobj.div_base_container.length!=1){this.jobj.div_container.append(this.j('<div id="'+this.ids.div_base_container+
'"></div>').attr("id",this.ids.div_base_container));this.jobj.div_base_container=this.j("#"+this.ids.div_base_container);if(this.jobj.div_base_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_base_container+'".');return false}this.jobj.div_base_container.addClass("InSkinBaseContainer");this.params.plr_Fixed&&this.jobj.div_base_container.addClass("InSkinFixed")}this.jobj.div_base=this.j("#"+this.ids.div_base);if(this.jobj.div_base.length!=1){this.jobj.div_base_container.append(this.j('<div id="'+
this.ids.div_base+'"></div>').attr("id",this.ids.div_base));this.jobj.div_base=this.j("#"+this.ids.div_base);if(this.jobj.div_base.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_base+'".');return false}}return true},checkCompatibility:function(){c.Debug.trace("Base::checkCompatibility() called.");if(typeof this.params.plr_ExcludePlatform!="undefined")for(var a=this.params.plr_ExcludePlatform.toLowerCase().split(","),d=navigator.platform.toLowerCase(),h=0;h<a.length;h++){var k=
c.$.trim(a[h]);if(k!="")if(d.indexOf(k)!=-1){c.Debug.warn('Warning: platform "'+navigator.platform+'" excluded by configuration.');return false}}return true},resizeBaseContainer:function(a,d){c.Debug.trace("Base::resizeBaseContainer() called.");if(!c.$.browser.msie&&a*d>75E5)d=Math.floor(74E5/a);this.jobj.div_container.css("height",d+"px");this.jobj.div_base_container.css("height",d+"px")},setCfg:function(a){if(this.swReady){c.Debug.trace("Base::setCfg() called.");return this.callFlash("fromJS_SetCfg",
a)}else this.addToQueue("setCfg",[a])},getCfg:function(a){c.Debug.trace("Base::getCfg() called.");return this.callFlash("fromJS_GetCfg",a)},makeAdCall:function(a){c.Debug.trace("Base::makeAdCall() called.");return this.callFlash("fromJS_MakeAdCall",a)},loadAd:function(a){c.Debug.trace("Base::loadAd() called.");return this.callFlash("fromJS_LoadAd",a)},unloadAd:function(a){c.Debug.trace("Base::unloadAd() called.");return this.callFlash("fromJS_UnloadAd",a)},skipIRoll:function(a){c.Debug.trace("Base::skipIRoll() called.");
return this.callFlash("fromJS_SkipIRoll",a)},showAd:function(a){c.Debug.trace("Base::showAd() called.");return this.callFlash("fromJS_ShowAd",a)},hideAd:function(a){c.Debug.trace("Base::hideAd() called.");return this.callFlash("fromJS_HideAd",a)},contentPlay:function(a){c.Debug.trace("Base::contentPlay() called.");return this.callFlash("fromJS_ContentPlay",a)},contentPause:function(a){c.Debug.trace("Base::contentPause() called.");return this.callFlash("fromJS_ContentPause",a)},isContentPlaying:function(a){c.Debug.trace("Base::isContentPlaying() called.");
return this.callFlash("fromJS_IsContentPlaying",a)},openExpandable:function(a){c.Debug.trace("Base::openExpandable() called.");return this.callFlash("fromJS_OpenExpandable",a)},closeExpandable:function(a){c.Debug.trace("Base::closeExpandable() called.");return this.callFlash("fromJS_CloseExpandable",a)},isExpandableOpen:function(a){c.Debug.trace("Base::isExpandableOpen() called.");return this.callFlash("fromJS_IsExpandableOpen",a)},setCreativeData:function(a){c.Debug.trace("Base::setCreativeData() called.");
return this.callFlash("fromJS_SetCreativeData",a)}})}})(N);(function(c){if(typeof c.ContentManager=="undefined")c.ContentManager={objects:{},create:function(a,d){c.Debug.trace("ContentManager::create() called. Type: "+a+"; ID: "+d.params.plr_ContentID);if(typeof c.ContentAPIs[a]!="undefined"){if(typeof this.objects[a]=="undefined")this.objects[a]={};var h=d.params.plr_ContentID;if(h&&h!="")return this.objects[a][h]=new c.ContentAPIs[a](d)}else c.Debug.error('Unknown content type "'+a+'".');return null},
registerReadyEvent:function(a,d){c.Debug.trace("ContentManager::registerReadyEvent() called. Type: "+a+"; ID: "+d);if(this.objects[a])if(d&&this.objects[a][d])this.objects[a][d].swReadyEventReceived?c.Debug.warn('Second "ready" event received for the same content object.'):this.objects[a][d].initOnReadyEvent();else for(var h in this.objects[a])this.objects[a][h].swReadyEventReceived||this.objects[a][h].initOnReadyEvent()},getTremorAPI:function(a){return new c.TremorAPI(a)}}})(N);(function(c){if(typeof c.ContentAPI==
"undefined")c.ContentAPI=c.EventDispatcher.extend({EVENT_INIT_COMPLETE:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.INIT_COMPLETE",EVENT_PLAY:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.PLAY",EVENT_PAUSE:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.PAUSE",EVENT_COMPLETE:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.COMPLETE",EVENT_NEW_ITEM:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.NEW_ITEM",EVENT_AD_START:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.AD_START",
EVENT_AD_COMPLETE:"com.inskinmedia.isfe.InSkinBase.ContentAPI.events.AD_COMPLETE",initMethod:"none",construct:function(a){this._super();c.Debug.trace("ContentAPI object created. Type: "+this.type+"; ID: "+a.params.plr_ContentID);this.objBase=a;this.params=this.objBase.params;this.id=this.params.plr_ContentID;this.obj=null;this.swInitSuccess=this.swInitComplete=this.swReadyEventReceived=this.swInFrame=false;this.swIsPlaying=typeof this.params.cnt_IsPlaying!="undefined"?this.params.cnt_IsPlaying:null;
this.swIsAdPlaying=false;this.data={};if(typeof this.params.cnt_Title!="undefined")this.data.title=this.params.cnt_Title;if(typeof this.params.cnt_Keywords!="undefined")this.data.keywords=this.params.cnt_Keywords;if(typeof this.params.cnt_Description!="undefined")this.data.description=this.params.cnt_Description;this.eventsToQueue=[];this.AUTOADVANCE_MAX_CLIPS=(this.swAutoAdvance=this.params.cnt_AutoAdvance===true||this.params.cnt_AutoAdvance=="true"||typeof this.params.cnt_AutoAdvance!="undefined"&&
typeof this.params.cnt_AutoAdvance.cnt_ClipQuantity!="undefined"||typeof this.params.cnt_AutoAdvance!="undefined"&&typeof this.params.cnt_AutoAdvance.cnt_InSkinDuration!="undefined")&&typeof this.params.cnt_AutoAdvance.cnt_ClipQuantity!="undefined"?this.params.cnt_AutoAdvance.cnt_ClipQuantity:5;this.clipCounter=0;this.AUTOADVANCE_MAX_TIME=this.swAutoAdvance&&typeof this.params.cnt_AutoAdvance.cnt_InSkinDuration!="undefined"?this.params.cnt_AutoAdvance.cnt_InSkinDuration:600;this.swClipCompleted=false},
getData:function(){c.Debug.trace("ContentAPI::getData() called. Type: "+this.type+"; ID: "+this.id);return this.data},init:function(){c.Debug.trace("ContentAPI::init() called. Type: "+this.type+"; ID: "+this.id);if(this.initMethod=="polling")this.initByPolling();else this.initMethod=="none"&&this.initComplete(true)},initOnReadyEvent:function(){c.Debug.trace("ContentAPI::initOnReadyEvent() called. Type: "+this.type+"; ID: "+this.id);this.initComplete(this.initialize())},initByPolling:function(){c.Debug.trace("ContentAPI::initByPolling() called. Type: "+
this.type+"; ID: "+this.id);var a=this;c.Util.tryFunctionNTimes(function(){return a.initialize()},function(){a.initComplete(true)},function(){a.initComplete(false)},50)},initialize:function(){c.Debug.trace("ContentAPI::initialize() called. Type: "+this.type+"; ID: "+this.id);return(this.obj=this.getObject(this.id,this.getObjectFrame()))&&this.addEventHandlers()},getTrackingInfo:function(){return{}},serialiseIntegrationData:function(){for(var a=["plr_InSkinW","plr_InSkinH","plr_ContentW","plr_ContentH",
"plr_FrameTop","plr_FrameSide","plr_FrameBottom","srv_UseSAS"],d="",h=0;h<a.length;h++)d+=this.params[a[h]]!=undefined?this.params[a[h]]+"|":"null|";d+=screen.width+"|"+screen.height+"|"+navigator.platform;return d},getObjectFrame:function(){c.Debug.trace("ContentAPI::getObjectFrame() called. Type: "+this.type+"; ID: "+this.id);var a=null;if(this.params.plr_ContentFrameID&&this.params.plr_ContentFrameID!=""){this.swInFrame=true;a=c.Util.getFrameDoc(this.params.plr_ContentFrameID)}return a},getObject:function(a,
d){c.Debug.trace("ContentAPI::getObject() called. Type: "+this.type+"; ID: "+this.id);return c.Util.getObject(a,d)},initComplete:function(a){c.Debug.trace("ContentAPI::initComplete() called. Type: "+this.type+"; ID: "+this.id+"; Success: "+a);c.Debug.info("CONTENT EVENT: INITCOMPLETE (success = "+a+")");this.swInitComplete=true;(this.swInitSuccess=a)&&this.getDataFromContent();c.Debug.trace("ContentAPI::initComplete(): player auto-advance: "+this.swAutoAdvance);this.swAutoAdvance&&this.objBase.addEventListener("adServed",
"handler_adServed",this);this.dispatchEvent(this.EVENT_INIT_COMPLETE,{success:a})},getDataFromContent:function(){c.Debug.trace("ContentAPI::getDataFromContent() called. Type: "+this.type+"; ID: "+this.id)},addEventHandlers:function(){c.Debug.trace("ContentAPI::addEventHandlers() called. Type: "+this.type+"; ID: "+this.id);return true},getEventHandlerPath:function(a,d){c.Debug.trace("ContentAPI::getEventHandlerPath() called. Type: "+this.type+"; ID: "+this.id+"; Event name: "+a);d||(d=0);var h=this.swInFrame?
"parent.":"";h+=d?"InSkin.ContentManager.objects."+this.type+"."+this.id+".handler_"+a:"InSkin.ContentManager.objects."+this.type+'["'+this.id+'"].handler_'+a;return h},handler_adServed:function(){c.Debug.trace("ContentAPI::handler_adServed() called");this.inSkinTimer=(new Date).getTime();this.clipCounter=this.AUTOADVANCE_MAX_CLIPS},onPlay:function(){c.Debug.trace("ContentAPI::onPlay() called. Type: "+this.type+"; ID: "+this.id);c.Debug.info("CONTENT EVENT: PLAY");this.swIsPlaying=true;this.swClipCompleted=
false;this.dispatchEvent(this.EVENT_PLAY)},onPause:function(){c.Debug.trace("ContentAPI::onPause() called. Type: "+this.type+"; ID: "+this.id);c.Debug.info("CONTENT EVENT: PAUSE");this.swIsPlaying=false;this.dispatchEvent(this.EVENT_PAUSE)},onComplete:function(){c.Debug.trace("ContentAPI::onComplete() called. Type: "+this.type+"; ID: "+this.id);c.Debug.info("CONTENT EVENT: COMPLETE");this.swIsPlaying=false;this.dispatchEvent(this.EVENT_COMPLETE);this.swClipCompleted=true},onNewItem:function(){c.Debug.trace("ContentAPI::onNewItem() called. Type: "+
this.type+"; ID: "+this.id);if(this.swAutoAdvance&&this.swClipCompleted){c.Debug.warn("ContentAPI::onNewItem(): Ignoring new item call, player is probably auto-advancing");var a=(new Date).getTime();if(--this.clipCounter==0){c.Debug.trace("ContentAPI::onNewItem(): Unloading InSkin after "+this.AUTOADVANCE_MAX_CLIPS+" clips");this.objBase.unloadAd()}else if((a-this.inSkinTimer)/1E3>=this.AUTOADVANCE_MAX_TIME){c.Debug.trace("ContentAPI::onNewItem(): Unloading InSkin as "+this.AUTOADVANCE_MAX_TIME+" seconds have elapsed");
this.objBase.unloadAd()}}else{c.Debug.info("CONTENT EVENT: NEWITEM");this.dispatchEvent(this.EVENT_NEW_ITEM)}},onAdStart:function(){c.Debug.trace("ContentAPI::onAdStart() called. Type: "+this.type+"; ID: "+this.id);this.swAutoAdvance&&this.objBase.unloadAd();this.swIsAdPlaying=true;c.Debug.info("CONTENT EVENT: ADSTART");this.dispatchEvent(this.EVENT_AD_START)},onAdComplete:function(){c.Debug.trace("ContentAPI::onAdComplete() called. Type: "+this.type+"; ID: "+this.id);this.swIsAdPlaying=false;c.Debug.info("CONTENT EVENT: ADCOMPLETE");
this.dispatchEvent(this.EVENT_AD_COMPLETE)},doPlay:function(){c.Debug.trace("ContentAPI::doPlay() called.")},doPause:function(){c.Debug.trace("ContentAPI::doPause() called.")}})})(N);(function(c){if(typeof c["4.2"].Base=="undefined")c["4.2"].Base=c.EventDispatcher.extend({EVENT_READY:"ready",EVENT_AD_CALL_RESULT:"adCallResult",EVENT_AD_CALL_ERROR:"adCallError",EVENT_AD_SERVED:"adServed",EVENT_AD_CLICK:"adClick",EVENT_AD_SHOW:"adShow",EVENT_AD_HIDE:"adHide",EVENT_AD_UNLOAD:"adUnload",EVENT_EXPANDABLE_OPEN:"expandableOpen",
EVENT_EXPANDABLE_CLOSE:"expandableClose",EVENT_REQUEST_PLAY:"requestPlay",EVENT_REQUEST_PAUSE:"requestPause",EVENT_IROLL_START:"irollStart",EVENT_IROLL_COMPLETE:"irollComplete",EVENT_LAYOUT_CHANGE:"layoutChange",construct:function(a){this._super();this._params(a);if(this.params.DEBUG>0||this.params.InSkinDebug>0){c.Util.loadCSS(this.params.BASE_URL+"/css/blackbird.css");c.Debug.init(Math.max(this.params.DEBUG,this.params.InSkinDebug),this.params.plr_DebugLoad)}c.Debug.info("==========================================================");
c.Debug.info("InSkin For Web (v4.2)");c.Debug.info("Copyright (c) InSkin Media Ltd, http://www.inskinmedia.com");c.Debug.info("==========================================================");this.counterNewItem=0;this.swContentPrerollServed=false;this.lastReceivedContentEvent="";this.objContent=c.ContentManager.create(this.params.plr_ContentType,this);this._registerContentEventHandlers();this.retContentInit=this.objContent.init();c.BaseInstances[this.id]=this},dispatchEvent:function(a,d){this._super(a,
d);typeof InSkinEvent=="function"&&InSkinEvent(this,a,d)},init:function(){c.Debug.trace("Base::init() called.");if(!this._bootstrap())return false;this.ids={div_container:"InSkinContainer_"+this.id,div_content_container:"InSkinContentContainer_"+this.id,div_base_container:"InSkinBaseContainer_"+this.id,div_base2:"InSkinIDiv2_"+this.id,div_base3:"InSkinIDiv3_"+this.id};this.HDD={jobj:{},SWFUnitContainers:{}};if(this._checkIntegrationCode()){this.HDD.SWFUnitContainers.AS2Main=new c["4.2"].SWFUnitContainer({id:"InSkinAS2Unit_"+
this.id,win:window,url:this.params.BASE_URL+"/swf/unitcontainer2.swf",jcontainer:this.HDD.jobj.div_base_container,jtarget:this.HDD.jobj.div_base2});var a=this;this.HDD.SWFUnitContainers.AS2Main.addEventListener("READY",function(){a.HDD.jobj.div_content_container.css("display","block");a.HDD.jobj.div_base_container.css({left:"0px",top:"0px"})});this.HDD.SWFUnitContainers.AS2Main._embed();this.HDD.SWFUnitContainers.AS3Main=new c["4.2"].SWFUnitContainer({id:"InSkinAS3Unit_"+this.id,win:window,url:this.params.BASE_URL+
"/swf/unitcontainer3.swf",jcontainer:this.HDD.jobj.div_base_container,jtarget:this.HDD.jobj.div_base3});a=this;this.HDD.SWFUnitContainers.AS3Main.addEventListener("READY",function(){a.HDD.SWFUnitContainers.AS3Main.hide()});this.HDD.SWFUnitContainers.AS3Main._embed()}if(this.params.plr_InitialLayout!="")this.setLayout(this.params.plr_InitialLayout=="skin"?true:false);this.swInitComplete=true;this._checkReady();return true},_bootstrap:function(){c.Debug.trace("Base::_bootstrap() called.");var a=0,d=
"";if(!a&&!this._checkCompatibility()){c.Debug.warn("Warning: init procedure aborted due to compatibility issues.");this.setLayout(false);a=1;d="compatibility"}if(!a&&typeof this.retContentInit!="undefined"&&this.retContentInit===false){c.Debug.warn("Warning: init procedure aborted due to content init returning false.");this.setLayout(false);a=1;d="content-init-false"}if(!a){var h=c.Util.getFlashVersion();if(h<8){c.Debug.warn("Warning: init procedure aborted due to unacceptable Flash version.");this.setLayout(false);
a=1;d="flash-version-"+h}}if(this.params.plr_EnableTracking)c.Util.track(c.$.extend({type:"init",section_id:this.params.srv_SectionIDPlay||this.params.srv_SectionID,content_type:this.params.plr_ContentType,cfg:this.objContent.serialiseIntegrationData(),failed:a,reason:d,keywords:this.params.srv_Keywords,page_url:document.location.href},this.objContent.getTrackingInfo()));return a==0},_checkCompatibility:function(){c.Debug.trace("Base::_checkCompatibility() called.");if(typeof this.params.plr_ExcludePlatform!=
"undefined")for(var a=this.params.plr_ExcludePlatform.toLowerCase().split(","),d=navigator.platform.toLowerCase(),h=0;h<a.length;h++){var k=c.$.trim(a[h]);if(k!="")if(d.indexOf(k)!=-1){c.Debug.warn('Warning: platform "'+navigator.platform+'" excluded by configuration.');return false}}return true},_checkReady:function(){this.swInitComplete&&this.swContentInitComplete&&this._onReady()},_onReady:function(){c.Debug.trace("Base::_onReady() called.");this.objAdManager=new c["4.2"].AdManager(this);this._registerAdManagerEventHandlers();
this.swIsExpandableOpen=false;this.swReady=this.swMakeAdCallNeverCalled=true;this.dispatchEvent(this.EVENT_READY);if(this.objContent.swIsPlaying){this.counterNewItem=1;this.swContentInPlayMode=true}this.swMakeAdCallNeverCalled&&this.params.plr_Autopilot&&this.params.plr_MakeAdCallOnInit&&this.makeAdCall({usemap:true})},_params:function(a){this.id=a;this.params={BASE_URL:"http://cdn.inskinmedia.com/isfe/4.1",DEBUG:0,InSkinDebug:0,srv_SectionID:"",srv_SectionIDPlay:"",srv_SectionIDPlayPrimary:"",srv_Keywords:"",
srv_UseSAS:"false",sas_PrerollAdTag:"",sas_PrerollAdTagURL:"",sas_PrerollAdTagResult:"",sas_PauseAdTag:"",sas_PauseAdTagURL:"",sas_PauseAdTagResult:"",sas_PlayAdTag:"",sas_PlayAdTagURL:"",sas_PlayAdTagResult:"",sas_FrameURL:"",sas_FrameDomain:"",plr_FrameTop:60,plr_FrameSide:30,plr_FrameBottom:40,plr_FrameSideRight:null,plr_PollingInterval:20,plr_DetachedExpandable:true,plr_DetachedExpandableWMode:"transparent",plr_DisplayExpandableInParentFrame:false,plr_ExpandableW:900,plr_ExpandableH:600,plr_ExpandableTopMargin:40,
plr_HideContentVersion:1,plr_HideSkinOnExternalAd:"",plr_ShowSkinAfterExternalAd:false,plr_ResizeOnExternalAd:false,plr_ResizeOnHideSkin:false,plr_InitialLayout:"",plr_ExtendFrameSide:false,plr_SpaceTop:0,plr_SpaceSide:0,plr_SpaceBottom:0,plr_SpaceSideRight:null,plr_PageAlignment:"center",plr_SideFrameOverTLCorner:false,plr_SideFrameOverTRCorner:false,plr_SideFrameOverBLCorner:false,plr_SideFrameOverBRCorner:false,plr_HideElementsByClass:"",plr_HideElementsByID:"",plr_RemoveElementsByClass:"",plr_RemoveElementsByID:"",
plr_HideSelectors:"",plr_RemoveSelectors:"",plr_AdCallMap:{},plr_AdCallFrequencyMap:{},plr_Autopilot:true,plr_MakeAdCallOnInit:true,plr_AutoLoadAd:true,plr_MakeAdCallOnNewItem:true,plr_EnableAdRotation:true,plr_DebugLoad:false,plr_Offline:false,plr_AdCallResultURL:"",plr_DirectAdCall:false,plr_AdvertID:"",plr_CreativeID:"",plr_EnableTracking:true};c.$.extend(this.params,c.Util.getInSkinParams(a));a=null;if(typeof this.params.plr_GetParamsFromMeta=="object")a=c.Util.getMetaParams(this.params.plr_GetParamsFromMeta);
else if(this.params.srv_Keywords=="")a=c.Util.getMetaParams(["srv_Keywords","keywords","srv_Keywords","Keywords"]);if(a)for(var d in a)c.Util.addToParams(this.params,d,a[d]);if(this.params.plr_FrameSideRight===null)this.params.plr_FrameSideRight=this.params.plr_FrameSide;if(this.params.plr_SpaceSideRight===null)this.params.plr_SpaceSideRight=this.params.plr_SpaceSide;this._verifyBooleans();this._verifyIntegers();this._buildSelectors()},_verifyBooleans:function(){for(var a=["plr_DetachedExpandable",
"plr_DisplayExpandableInParentFrame","plr_Autopilot","plr_MakeAdCallOnInit","plr_AutoLoadAd","plr_MakeAdCallOnNewItem","plr_EnableAdRotation","plr_NoSkinInSkinResize","plr_NoSkinContentResize","plr_EnablePageSkin2","plr_SideFrameOverTLCorner","plr_SideFrameOverTRCorner","plr_SideFrameOverBLCorner","plr_SideFrameOverBRCorner","plr_DebugLoad","plr_ExtendFrameSide","plr_ShowSkinAfterExternalAd","plr_ResizeOnExternalAd","plr_ResizeOnHideSkin","plr_EnableTracking","plr_Offline","plr_DirectAdCall"],d=0;d<
a.length;d++)if(typeof this.params[a[d]]!="undefined")this.params[a[d]]=String(this.params[a[d]]).toLowerCase()=="true"?true:false},_verifyIntegers:function(){for(var a=["plr_FrameTop","plr_FrameSide","plr_FrameSideRight","plr_FrameBottom","plr_PollingInterval","plr_ExpandableW","plr_ExpandableH","plr_ExpandableTopMargin","plr_HideContentVersion","plr_SpaceTop","plr_SpaceSide","plr_SpaceSideRight","plr_SpaceBottom","plr_ContentW","plr_ContentH","DEBUG","InSkinDebug"],d=0;d<a.length;d++)if(typeof this.params[a[d]]!=
"undefined")this.params[a[d]]=parseInt(this.params[a[d]])},_buildSelectors:function(){for(var a=["Hide","Remove"],d=["Class","ID"],h={Hide:[".InSkinHide"],Remove:[]},k=0;k<a.length;k++)for(var q=0;q<d.length;q++)for(var x=this.params["plr_"+a[k]+"ElementsBy"+d[q]].split(","),D=0;D<x.length;D++){var K=c.$.trim(x[D]);if(K&&K!="")h[a[k]].push((q==0?".":"#")+K)}this.params.plr_HideSelectors=h.Hide.join(",");this.params.plr_RemoveSelectors=h.Remove.join(",")},loadCSS:function(a){c.Util.loadCSS(this.params.BASE_URL+
"/css/"+a)},_registerContentEventHandlers:function(){c.Debug.trace("Base::_registerContentEventHandlers() called.");this.objContent.addEventListener(this.objContent.EVENT_INIT_COMPLETE,"_onContentInitComplete",this);this.objContent.addEventListener(this.objContent.EVENT_PLAY,"_onContentPlay",this);this.objContent.addEventListener(this.objContent.EVENT_PAUSE,"_onContentPause",this);this.objContent.addEventListener(this.objContent.EVENT_COMPLETE,"_onContentComplete",this);this.objContent.addEventListener(this.objContent.EVENT_NEW_ITEM,
"_onContentNewItem",this);this.objContent.addEventListener(this.objContent.EVENT_AD_START,"_onContentAdStart",this);this.objContent.addEventListener(this.objContent.EVENT_AD_COMPLETE,"_onContentAdComplete",this)},_onContentInitComplete:function(a){c.Debug.trace("Base::_onContentInitComplete() called.");a.data.success||c.Debug.warn("Warning: content interface unsuccessful.");this.swContentInitComplete=true;this._checkReady()},_onContentPlay:function(){if(this.lastReceivedContentEvent!="play"){this.lastReceivedContentEvent=
"play";c.Debug.trace("Base::_onContentPlay() called.");this.swContentInPlayMode=true;this.swRequestPauseSent=false;if(this.counterNewItem==0){this.counterNewItem++;this.swReady&&this.params.plr_Autopilot&&this.makeAdCall({usemap:true,firstPlay:true})}if(this.swIRollRunning){c.Debug.warn('Warning: "play" event received from content while IRoll running.');this.swRequestPauseSent=true;this.contentPause();this.dispatchEvent(this.EVENT_REQUEST_PAUSE)}}},_onContentPause:function(){if(this.lastReceivedContentEvent!=
"pause"){this.lastReceivedContentEvent="pause";c.Debug.trace("Base::_onContentPause() called.");if(!this.swRequestPauseSent)this.swContentInPlayMode=false;this.swRequestPauseSent=false}},_onContentComplete:function(){c.Debug.trace("Base::_onContentComplete() called.");this.swContentInPlayMode=false},_onContentNewItem:function(){c.Debug.trace("Base::_onContentNewItem() called.");this.counterNewItem++;this.params.plr_Autopilot&&this.params.plr_MakeAdCallOnNewItem&&this.makeAdCall({usemap:true})},_onContentAdStart:function(){if(this.lastReceivedContentEvent!=
"adStart"){this.lastReceivedContentEvent="adStart";c.Debug.trace("Base::_onContentAdStart() called.");this.swContentPrerollServed=this.swContentInPlayMode=true;if(!this.PrerollKeywordAdded){this.swPrerollKeywordAdded=true;var a=this.params.srv_Keywords;a+=(a!=""?",":"")+"prerollserved";this.setCfg({srv_Keywords:a})}if(this.swIRollRunning){c.Debug.warn('Warning: "adStart" event received from content while IRoll running.');this.swRequestPauseSent=true;this.contentPause();this.dispatchEvent(this.EVENT_REQUEST_PAUSE)}this.objAdManager.objAd&&
this.objAdManager.objAd.onContentAdStart()}},_onContentAdComplete:function(){c.Debug.trace("Base::_onContentAdComplete() called.");this.objAdManager.objAd&&this.objAdManager.objAd.onContentAdComplete()},_registerAdManagerEventHandlers:function(){c.Debug.trace("Base::_registerAdManagerEventHandlers() called.");this.objAdManager.addEventListener("AD_CALL_RESULT","_onAdCallResult",this);this.objAdManager.addEventListener("SERVED","_onAdServed",this);this.objAdManager.addEventListener("CLICK","_onAdClick",
this);this.objAdManager.addEventListener("EXPANDABLE_OPEN","_onAdExpandableOpen",this);this.objAdManager.addEventListener("EXPANDABLE_CLOSE","_onAdExpandableClose",this);this.objAdManager.addEventListener("PLAY_VIDEO","_onAdPlayVideo",this);this.objAdManager.addEventListener("PAUSE_VIDEO","_onAdPauseVideo",this);this.objAdManager.addEventListener("IROLL_START","_onAdIRollStart",this);this.objAdManager.addEventListener("IROLL_COMPLETE","_onAdIRollComplete",this);this.objAdManager.addEventListener("SHOW_CONTENT",
"_onAdShowContent",this);this.objAdManager.addEventListener("HIDE_CONTENT","_onAdHideContent",this);this.objAdManager.addEventListener("ERROR","_onAdError",this)},_onAdCallResult:function(a){c.Debug.trace("Base::_onAdCallResult() called.");this.hasSkin=a.data.hasSkin;this.hasIRoll=a.data.hasIRoll;this.dispatchEvent(this.EVENT_AD_CALL_RESULT,a.data);this.params.plr_Autopilot&&this.params.plr_AutoLoadAd&&this.objAdManager.loadAd();this.hasSkin||this.hasIRoll||this.setLayout(false)},_onAdServed:function(a){c.Debug.trace("Base::_onAdServed() called.");
this.dispatchEvent(this.EVENT_AD_SERVED,a.data)},_onAdClick:function(a){c.Debug.trace("Base::_onAdClick() called.");this.dispatchEvent(this.EVENT_AD_CLICK,a.data)},_onAdExpandableOpen:function(a){c.Debug.trace("Base::_onAdExpandableOpen() called.");this.swIsExpandableOpen=true;this.dispatchEvent(this.EVENT_EXPANDABLE_OPEN,a.data)},_onAdExpandableClose:function(a){c.Debug.trace("Base::_onAdExpandableClose() called.");this.swIsExpandableOpen=false;this.dispatchEvent(this.EVENT_EXPANDABLE_CLOSE,a.data)},
_onAdPlayVideo:function(a){c.Debug.trace("Base::_onAdPlayVideo() called.");if(!((!a.data||typeof a.data.force=="undefined"||!a.data.force)&&!this.swContentInPlayMode)){this.contentPlay();this.dispatchEvent(this.EVENT_REQUEST_PLAY)}},_onAdPauseVideo:function(){c.Debug.trace("Base::_onAdPauseVideo() called.");this.swRequestPauseSent=true;this.contentPause();this.dispatchEvent(this.EVENT_REQUEST_PAUSE)},_onAdIRollStart:function(){c.Debug.trace("Base::_onAdIRollStart() called.");this.swIRollRunning=true;
this.dispatchEvent(this.EVENT_IROLL_START)},_onAdIRollComplete:function(){c.Debug.trace("Base::_onAdIRollComplete() called.");this.swIRollRunning=false;this.dispatchEvent(this.EVENT_IROLL_COMPLETE);this.setLayout(this.hasSkin)},_onAdShowContent:function(){c.Debug.trace("Base::_onAdShowContent() called.");this.contentShow()},_onAdHideContent:function(){c.Debug.trace("Base::_onAdHideContent() called.");this.contentHide()},_onAdError:function(){c.Debug.trace("Base::_onAdError() called.")},_checkIntegrationCode:function(){c.Debug.trace("Base::_checkIntegrationCode() called.");
if(typeof this.swIntegrationCode=="undefined")this.swIntegrationCode=this._createHTMLElements();return this.swIntegrationCode},_createHTMLElements:function(){c.Debug.trace("Base::_createHTMLElements() called.");var a=this.HDD.jobj;a.div_content_container=c.$("#"+this.ids.div_content_container);if(a.div_content_container.length!=1){c.Debug.error('Error: could not find DIV with ID "'+this.ids.div_content_container+'".');return false}a.div_container=c.$("#"+this.ids.div_container);if(a.div_container.length!=
1){a.div_content_container.wrap(c.$('<div id="'+this.ids.div_container+'"></div>').attr("id",this.ids.div_container));a.div_container=c.$("#"+this.ids.div_container);if(a.div_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_container+'".');return false}a.div_container.addClass("InSkinContainer")}a.div_base_container=c.$("#"+this.ids.div_base_container);if(a.div_base_container.length!=1){a.div_base_container=c.$('<div id="'+this.ids.div_base_container+
'"></div>').attr("id",this.ids.div_base_container).appendTo(a.div_container);if(a.div_base_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_base_container+'".');return false}var d=Math.floor(74E5/(this.params.plr_ContentW+this.params.plr_FrameSide+this.params.plr_FrameSideRight));a.div_base_container.addClass("InSkinBaseContainer").css("max-height",d+"px")}a.div_base2=c.$("#"+this.ids.div_base2);if(a.div_base2.length!=1){a.div_base2=c.$('<div id="'+this.ids.div_base2+
'"></div>').attr("id",this.ids.div_base2).appendTo(a.div_base_container);if(a.div_base2.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_base2+'".');return false}a.div_base2.addClass("InSkinIDiv2")}a.div_base3=c.$("#"+this.ids.div_base3);if(a.div_base3.length!=1){a.div_base3=c.$('<div id="'+this.ids.div_base3+'"></div>').attr("id",this.ids.div_base3).appendTo(a.div_base_container);if(a.div_base3.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+
this.ids.div_base3+'".');return false}a.div_base3.addClass("InSkinIDiv3")}return true},_setLayoutForSkin:function(){c.Debug.trace("Base::_setLayoutForSkin() called.");this.currentLayout="skin";var a=this.HDD.jobj,d={width:this.params.plr_ContentW+"px",margin:[this.params.plr_FrameTop+"px",this.params.plr_FrameSideRight+"px",this.params.plr_FrameBottom+"px",this.params.plr_FrameSide+"px"].join(" ")},h={width:this.params.plr_ContentW+this.params.plr_FrameSide+this.params.plr_FrameSideRight+"px"};if(!isNaN(this.params.plr_ContentH)){d.height=
this.params.plr_ContentH+"px";h.height=this.params.plr_ContentH+this.params.plr_FrameTop+this.params.plr_FrameBottom+"px"}a.div_container&&a.div_container.css(h);a.div_content_container&&a.div_content_container.css(d);if(c.$.browser.msie){c.$.browser.version>=7&&a.div_base_container&&a.div_base_container.hide().show();c.$.browser.version>=8&&this.params.plr_ContentType!="PAGESKIN"&&a.div_content_container&&setTimeout(function(){a.div_content_container.css("float","left")},250)}this._sendLayoutChange()},
_setLayoutForNoSkin:function(){c.Debug.trace("Base::_setLayoutForNoSkin() called.");var a=this.HDD.jobj;if(this.params.plr_NoSkinInSkinResize||this.params.plr_NoSkinContentResize){this.currentLayout="noskin";var d=[0,0,0,0],h={width:this.params.plr_ContentW},k={width:this.params.plr_ContentW+this.params.plr_FrameSide+this.params.plr_FrameSideRight};if(!isNaN(this.params.plr_ContentH)){h.height=this.params.plr_ContentH;k.height=this.params.plr_ContentH+this.params.plr_FrameTop+this.params.plr_FrameBottom}if(this.params.plr_NoSkinContentResize)if(isNaN(this.params.plr_NoSkinContentW)&&
isNaN(this.params.plr_NoSkinContentH))if(isNaN(this.params.plr_ContentH))c.Debug.warn('Warning: cannot auto-resize content container when "plr_ContentH" is not specified.');else{var q=c.Util.calculateMaxWH(this.params.plr_ContentW/this.params.plr_ContentH,k.width,k.height);h.width=q.w;h.height=q.h}else{isNaN(this.params.plr_NoSkinContentW)||(h.width=this.params.plr_NoSkinContentW);isNaN(this.params.plr_NoSkinContentH)||(h.height=this.params.plr_NoSkinContentH)}if(this.params.plr_NoSkinInSkinResize){k.width=
!isNaN(this.params.plr_NoSkinInSkinW)&&this.params.plr_NoSkinInSkinW>=h.width?this.params.plr_NoSkinInSkinW:h.width;if(!isNaN(this.params.plr_NoSkinInSkinH)&&(isNaN(h.height)||this.params.plr_NoSkinInSkinH>=h.height))k.height=this.params.plr_NoSkinInSkinH;else isNaN(h.height)||(k.height=h.height)}d[1]=d[3]=Math.floor((k.width-h.width)/2);if(!isNaN(k.height)&&!isNaN(h.height))d[0]=d[2]=Math.floor((k.height-h.height)/2);q={};var x={},D;for(D in h)q[D]=h[D]+"px";q.margin=[d[0]+"px",d[1]+"px",d[2]+"px",
d[3]+"px"].join(" ");for(D in k)x[D]=k[D]+"px";a.div_container&&a.div_container.css(x);a.div_content_container&&a.div_content_container.css(q);this._sendLayoutChange()}},_sendLayoutChange:function(){this.dispatchEvent(this.EVENT_LAYOUT_CHANGE,{currentLayout:this.currentLayout,w:this.HDD.jobj.div_container.width(),h:this.HDD.jobj.div_container.height(),contentW:this.HDD.jobj.div_content_container.width(),contentH:this.HDD.jobj.div_content_container.height()})},resizeBaseContainer:function(a,d){c.Debug.trace("Base::resizeBaseContainer() called.");
if(!c.$.browser.msie&&a*d>75E5)d=Math.floor(74E5/a);var h=this.HDD.jobj;h.div_container&&h.div_container.css("height",d+"px")},setCfg:function(a){c.Debug.trace("Base::setCfg() called.");c.$.extend(this.params,a);this._verifyBooleans();this._verifyIntegers()},getCfg:function(a){c.Debug.trace("Base::getCfg() called.");if(a&&a!=""){var d={};a=a.split(",");for(var h="",k=0;k<a.length;k++){h=c.$.trim(a[k]);if(typeof this.params[h]!="undefined")d[h]=this.params[h]}return d}else return this.params},makeAdCall:function(a){c.Debug.trace("Base::makeAdCall() called.");
this.swMakeAdCallNeverCalled=false;return this.swReady?this.objAdManager.makeAdCall(a):-1},loadAd:function(a){c.Debug.trace("Base::loadAd() called.");return this.swReady?this.objAdManager.loadAd(a):null},unloadAd:function(a){c.Debug.trace("Base::unloadAd() called.");return this.swReady?this.objAdManager.unloadAd(a):null},unloadIRoll:function(a){c.Debug.trace("Base::unloadIRoll() called.");return this.swReady&&this.objAdManager.objAd?this.objAdManager.objAd.unloadIRoll(a):null},showAd:function(a){c.Debug.trace("Base::showAd() called.");
(a=this.swReady&&this.objAdManager.objAd?this.objAdManager.objAd.show(a):null)&&this.dispatchEvent(this.EVENT_AD_SHOW);return a},hideAd:function(a){c.Debug.trace("Base::hideAd() called.");(a=this.swReady&&this.objAdManager.objAd?this.objAdManager.objAd.hide(a):null)&&this.dispatchEvent(this.EVENT_AD_HIDE);return a},contentShow:function(a){c.Debug.trace("Base::contentShow() called.");return this.swReady&&this.objAdManager.objAd?this.objAdManager.objAd.contentShow(a):null},contentHide:function(a){c.Debug.trace("Base::contentHide() called.");
return this.swReady&&this.objAdManager.objAd?this.objAdManager.objAd.contentHide(a):null},setLayout:function(a){c.Debug.trace("Base::setLayout() called.");if(this.objAdManager&&this.objAdManager.objAd)this.objAdManager.objAd.setLayout(a);else a?this._setLayoutForSkin():this._setLayoutForNoSkin();return null},setLayoutForSkin:function(){return this.setLayout(true)},setLayoutForNoSkin:function(){return this.setLayout(false)},contentPlay:function(){c.Debug.trace("Base::contentPlay() called.");try{this.objContent.doPlay()}catch(a){c.Debug.warn('Warning: caught exception from content interface when calling "doPlay()".')}},
contentPause:function(){c.Debug.trace("Base::contentPause() called.");try{this.objContent.doPause()}catch(a){c.Debug.warn('Warning: caught exception from content interface when calling "doPause()".')}},isContentPlaying:function(){c.Debug.trace("Base::isContentPlaying() called.");return this.objContent.swIsPlaying},openExpandable:function(a){c.Debug.trace("Base::openExpandable() called.");if(this.swReady){if(!this.swIsExpandableOpen)return this.objAdManager.openExpandable(a);return false}return null},
closeExpandable:function(a){c.Debug.trace("Base::closeExpandable() called.");if(this.swReady){if(this.swIsExpandableOpen)return this.objAdManager.closeExpandable(a);return false}return null},isExpandableOpen:function(){c.Debug.trace("Base::isExpandableOpen() called.");return this.swIsExpandableOpen},setCreativeData:function(a){c.Debug.trace("Base::setCreativeData() called.");return this.swReady&&this.objAdManager.objAd?this.objAdManager.objAd.setCreativeData(a):null},onContentInitComplete:function(){c.Debug.trace("Base::onContentInitComplete() called.");
this._onContentInitComplete()},onContentPlay:function(){c.Debug.trace("Base::onContentPlay() called.");this._onContentPlay()},onContentPause:function(){c.Debug.trace("Base::onContentPause() called.");this._onContentPause()},onContentComplete:function(){c.Debug.trace("Base::onContentComplete() called.");this._onContentComplete()},onContentNewItem:function(){c.Debug.trace("Base::onContentNewItem() called.");this._onContentNewItem()},onContentAdStart:function(){c.Debug.trace("Base::onContentAdStart() called.");
this._onContentAdStart()},onContentAdComplete:function(){c.Debug.trace("Base::onContentAdComplete() called.");this._onContentAdComplete()}})})(N);(function(c){if(typeof c["4.2"].AdManager=="undefined")c["4.2"].AdManager=c.EventDispatcher.extend({construct:function(a){this._super();c.Debug.trace("AdManager object created.");this.objBase=a;this.adCallCounter=0;this.objISAPClient=new c["4.2"].ISAPClient;this.objISAPClient.addEventListener("AD_CALL_RESULT","_onISAPAdCallResult",this);this.objISAPClient.addEventListener("AD_CALL_FAULT",
"_onISAPAdCallFault",this);this.objSASClient=new c["4.2"].SASClient(this);this.objSASClient.addEventListener("AD_CALL_RESULT","_onSASAdCallResult",this);this.objSASClient.addEventListener("AD_CALL_FAULT","_onSASAdCallFault",this);this.seenInteractions={}},makeAdCall:function(a){c.Debug.trace("AdManager::makeAdCall() called.");var d={id:++this.adCallCounter,params:a,adCallParams:{},options:{}};a=this._getAdCallParametersAndOptions(this.objBase.counterNewItem,a);for(var h in a){var k=h.substr(0,4).toLowerCase();
if(k=="srv_"||k=="sas_")d.adCallParams[h]=a[h];else d.options[h]=a[h]}c.Debug.info("--- BEGIN AD CALL (ID: "+d.id+"; Context: "+(this.objBase.counterNewItem>0?"item "+this.objBase.counterNewItem:"initial/paused state")+") ---");c.Debug.debug("["+d.id+"] Parameters:");for(h in d.adCallParams)c.Debug.debug("["+d.id+"] "+h+" = "+c.Debug.htmlEscape(d.adCallParams[h]));c.Debug.debug("["+d.id+"] Options:");for(h in d.options)c.Debug.debug("["+d.id+"] "+h+" = "+c.Debug.htmlEscape(d.options[h]));if(typeof d.adCallParams.srv_SectionID==
"undefined"||d.adCallParams.srv_SectionID==""){c.Debug.warn("Warning: cannot make ad call because no section ID is available.");c.Debug.info("--- AD CALL COMPLETE (ID: "+d.id+") ---");return-1}d.options.pauseVideo&&this.dispatchEvent("PAUSE_VIDEO");clearTimeout(this.timerAdRotation);this.swRotateAdOnceExpandableClosed=false;this.objBase.params.plr_Offline?this._makeOfflineAdCall(d):this._makeOnlineAdCall(d);return d.id},_onAdCallComplete:function(a){c.Debug.trace("["+a.id+"] AdManager::_onAdCallComplete() called.");
c.Debug.info("--- AD CALL COMPLETE (ID: "+a.id+") ---");if(this.adCallCounter==a.id){if(a.isap_Result)if(typeof a.isap_Result.AdType=="undefined")a.isap_Result.AdType="InSkin";c.Debug.info("ISAP Result:<br/><pre>\n"+c.Util.objToString(a.isap_Result)+"</pre>");this.adCallResult={p:a,objAd:this._createAdObject(a)};clearTimeout(this.timerAdRotation);if(this.objBase.params.plr_Autopilot&&this.objBase.params.plr_EnableAdRotation)if(a.isap_Result&&a.isap_Result.SiteAllowRotateAds&&a.isap_Result.DurationBetweenAds>
0){c.Debug.info("AD ROTATION: this ad call will be repeated in "+a.isap_Result.DurationBetweenAds+"s.");var d=this;this.timerAdRotation=setTimeout(function(){d._repeatLastAdCall()},a.isap_Result.DurationBetweenAds*1E3)}var h={hasSkin:false,hasSkinExpandable:false,hasIRoll:false,hasIRollExpandable:false};if(this.adCallResult.objAd)h=this.adCallResult.objAd.getInfo();a.options.pauseVideo&&!h.hasIRoll&&this.dispatchEvent("PLAY_VIDEO");this.dispatchEvent("AD_CALL_RESULT",h)}},_makeOnlineAdCall:function(a){c.Debug.trace("["+
a.id+"] AdManager::_makeOnlineAdCall() called.");if(this.objBase.params.plr_DirectAdCall){c.Debug.info("["+a.id+"] ATTENTION: making DIRECT ad call to ISAP...");if(this.objBase.params.plr_AdvertID&&this.objBase.params.plr_AdvertID!="")this.objISAPClient.makeAdCallByAdvertID(this.objBase.params.plr_AdvertID,a);else this.objBase.params.plr_CreativeID&&this.objBase.params.plr_CreativeID!=""?this.objISAPClient.makeAdCallByCreativeID(this.objBase.params.plr_CreativeID,a):c.Debug.warn("["+a.id+"] Warning: no advert ID or creative ID specified.")}else a.adCallParams.srv_UseSAS==
"true"&&!a.sas_CallComplete?this.objSASClient.makeAdCall(a):this.objISAPClient.makeAdCall(a)},_makeOfflineAdCall:function(a){c.Debug.trace("["+a.id+"] AdManager::_makeOfflineAdCall() called.");if(this.objBase.params.plr_AdCallResultURL&&this.objBase.params.plr_AdCallResultURL!=""){var d=this;c.$.ajax({url:this.objBase.params.plr_AdCallResultURL,dataType:"jsonp",success:function(h){a.isap_Result=h;d._onAdCallComplete(a)}})}},_repeatLastAdCall:function(){c.Debug.trace("AdManager::_repeatAdCall() called.");
if(this.swExpandableOpened)this.swRotateAdOnceExpandableClosed=true;else{var a={},d;for(d in this.adCallResult.p.params)a[d]=this.adCallResult.p.params[d];a.srv_Reload="true";if(this.adCallResult.p.isap_Result)if(this.adCallResult.p.isap_Result.InSkinAd)a.srv_LastAdvertID=this.adCallResult.p.isap_Result.InSkinAd.AdvertID;else if(this.adCallResult.p.isap_Result.PreRollAd)a.srv_LastAdvertID=this.adCallResult.p.isap_Result.PreRollAd.AdvertID;c.Debug.info("--- AD ROTATION ---");this.makeAdCall(a)}},_getAdCallParametersAndOptions:function(a,
d){c.Debug.trace("AdManager::_getAdCallParametersAndOptions() called. N: "+a);var h={};d||(d={});for(var k in this.objBase.params)if(k.substr(0,4).toLowerCase()=="srv_"&&k.substr(0,13)!="srv_SectionID")h[k]=this.objBase.params[k];a>0&&d&&typeof d.usemap!="undefined"&&d.usemap&&c.$.extend(h,this._getAdCallMapParametersAndOptions(a));c.$.extend(h,d);if(typeof h.srv_SectionID=="undefined")if(a>0)if(this.objBase.params.srv_SectionIDPlayPrimary!="")h.srv_SectionID=this.objBase.params.srv_SectionIDPlayPrimary;
else if(this.objBase.params.srv_SectionIDPlay!="")h.srv_SectionID=this.objBase.params.srv_SectionIDPlay;else{if(!d.firstPlay)h.srv_SectionID=this.objBase.params.srv_SectionID}else h.srv_SectionID=this.objBase.params.srv_SectionID;if(h.srv_UseSAS=="onplay")h.srv_UseSAS=a>0?"true":"false";if(h.srv_UseSAS=="true"){if(!(typeof h.sas_AdTag!="undefined"||typeof h.sas_AdTagURL!="undefined"||typeof h.sas_AdTagResult!="undefined")){h.sas_AdTagLabels=[];if(a>0){this._getSASTag("sas_PrerollAdTag")!=""&&h.sas_AdTagLabels.push("sas_PrerollAdTag");
if(this._getSASTag("sas_PlayAdTag")!="")h.sas_AdTagLabels.push("sas_PlayAdTag");else this._getSASTag("sas_PauseAdTag")!=""&&h.sas_AdTagLabels.push("sas_PauseAdTag")}else this._getSASTag("sas_PauseAdTag")!=""&&h.sas_AdTagLabels.push("sas_PauseAdTag")}if(typeof h.sas_FrameURL=="undefined")h.sas_FrameURL=this.objBase.params.sas_FrameURL;if(typeof h.sas_FrameDomain=="undefined")h.sas_FrameDomain=this.objBase.params.sas_FrameDomain}return h},_getSASTag:function(a){var d="";if(this.objBase.params[a+"Result"]!=
"")d+='<script type="text/javascript">'+this.objBase.params[a+"Result"]+"<\/script>";else if(this.objBase.params[a+"URL"]!="")d+='<script type="text/javascript" src="'+this.objBase.params[a+"URL"]+'"><\/script>';else if(this.objBase.params[a]!="")d+=this.objBase.params[a];return d},_getAdCallMapParametersAndOptions:function(a){c.Debug.trace("AdManager::_getAdCallMapParametersAndOptions() called. N: "+a);var d=a%2==0?"even":"odd";if(typeof this.objBase.params.plr_AdCallMap[a]!="undefined")if(this._canUseAdCallMapParams(this.objBase.params.plr_AdCallMap[a]))return this.objBase.params.plr_AdCallMap[a];
if(typeof this.objBase.params.plr_AdCallMap[d]!="undefined")if(this._canUseAdCallMapParams(this.objBase.params.plr_AdCallMap[d]))return this.objBase.params.plr_AdCallMap[d];for(var h in this.objBase.params.plr_AdCallFrequencyMap){var k=parseInt(h);if(h==d||!isNaN(k)&&a%k==0)if(this._canUseAdCallMapParams(this.objBase.params.plr_AdCallFrequencyMap[h]))return this.objBase.params.plr_AdCallFrequencyMap[h]}return{}},_canUseAdCallMapParams:function(a){if(typeof a.requireNoPreroll!="undefined"&&a.requireNoPreroll&&
this.objBase.swContentPrerollServed)return false;return true},_onISAPAdCallResult:function(a){c.Debug.trace("["+a.data.p.id+"] AdManager::_onISAPAdCallResult() called.");this._onAdCallComplete(a.data.p)},_onISAPAdCallFault:function(){c.Debug.warn("AdManager::_onISAPAdCallFailed() called.")},_onSASAdCallResult:function(a){c.Debug.trace("["+a.data.p.id+"] AdManager::_onSASClientAdCallResult() called.");c.Debug.info("SAS Result:<br/><pre>"+c.Util.objToString(a.data.p.sas_Result)+"</pre>");a=a.data.p;
a.sas_CallComplete=true;var d=[],h;for(h in a.sas_Result.isapData)d.push(h);a.adCallParams.srv_AdvertIDs=d.join(",");this._makeOnlineAdCall(a)},_onSASAdCallFault:function(){c.Debug.warn("AdManager::_onSASAdCallFault() called.")},_createAdObject:function(a){c.Debug.trace("AdManager::_createAdObject() called.");if(a.isap_Result)if(typeof c["4.2"].AdTypes[a.isap_Result.AdType]!="undefined")return new c["4.2"].AdTypes[a.isap_Result.AdType](this,a);else c.Debug.warn("Warning: unknown ad type received from ISAP ("+
a.isap_Result.AdType+").");return null},loadAd:function(){c.Debug.trace("AdManager::loadAd() called.");this.objAd&&this.unloadAd();if(!this.adCallResult){c.Debug.warn("Warning: loadAd() called, but no ad call result available.");return false}if(!this.adCallResult.objAd){c.Debug.warn("Warning: loadAd() called, but no ad object available.");this._adDone(null);return false}this.seenInteractions={};this.objAd=this.adCallResult.objAd;this.objAd.addEventListener("LOADED","_onAdLoaded",this);this.objAd.addEventListener("SERVED",
"_onAdServed",this);this.objAd.addEventListener("CLICK","forwardEvent",this);this.objAd.addEventListener("INTERACTION","_onAdInteraction",this);this.objAd.addEventListener("EXPANDABLE_OPEN","_onAdExpandableOpen",this);this.objAd.addEventListener("EXPANDABLE_CLOSE","_onAdExpandableClose",this);this.objAd.addEventListener("OPEN_URL","_onAdOpenURL",this);this.objAd.addEventListener("LOAD_URL","_onAdLoadURL",this);this.objAd.addEventListener("PLAY_VIDEO","forwardEvent",this);this.objAd.addEventListener("PAUSE_VIDEO",
"forwardEvent",this);this.objAd.addEventListener("IROLL_START","forwardEvent",this);this.objAd.addEventListener("IROLL_COMPLETE","forwardEvent",this);this.objAd.addEventListener("SHOW_CONTENT","forwardEvent",this);this.objAd.addEventListener("HIDE_CONTENT","forwardEvent",this);this.objAd.addEventListener("POLLING_DATA","_onAdPollingData",this);this.objAd.addEventListener("DONE","_onAdDone",this);return this.objAd.load()},unloadAd:function(){c.Debug.trace("AdManager::unloadAd() called.");if(this.objAd){this.objAd.unload();
this.objAd.removeEventListener("LOADED","_onAdLoaded",this);this.objAd.removeEventListener("SERVED","_onAdServed",this);this.objAd.removeEventListener("CLICK","forwardEvent",this);this.objAd.removeEventListener("INTERACTION","_onAdInteraction",this);this.objAd.removeEventListener("EXPANDABLE_OPEN","_onAdExpandableOpen",this);this.objAd.removeEventListener("EXPANDABLE_CLOSE","_onAdExpandableClose",this);this.objAd.removeEventListener("OPEN_URL","_onAdOpenURL",this);this.objAd.removeEventListener("LOAD_URL",
"_onAdLoadURL",this);this.objAd.removeEventListener("PLAY_VIDEO","forwardEvent",this);this.objAd.removeEventListener("PAUSE_VIDEO","forwardEvent",this);this.objAd.removeEventListener("IROLL_START","forwardEvent",this);this.objAd.removeEventListener("IROLL_COMPLETE","forwardEvent",this);this.objAd.removeEventListener("SHOW_CONTENT","forwardEvent",this);this.objAd.removeEventListener("HIDE_CONTENT","forwardEvent",this);this.objAd.removeEventListener("POLLING_DATA","_onAdPollingData",this);this.objAd.removeEventListener("DONE",
"_onAdDone",this);this.objAd=null;this.objBase.dispatchEvent(this.objBase.EVENT_AD_UNLOAD)}},_adDone:function(a){c.Debug.trace("AdManager::_adDone() called.");if(this.adCallResult&&this.adCallResult.p.options.fallbackWhenNoSkin)if(!a||!a.hasSkin)this.objBase.makeAdCall()},openExpandable:function(a){c.Debug.trace("AdManager::openExpandable() called.");return this.objAd&&!this.swExpandableOpened?this.objAd.openExpandable(a):null},closeExpandable:function(a){c.Debug.trace("AdManager::closeExpandable() called.");
return this.objAd&&this.swExpandableOpened?this.objAd.closeExpandable(a):null},_onAdLoaded:function(a){c.Debug.trace("AdManager::_onAdLoaded() called.");this.forwardEvent(a);this.objAd.serve()},_onAdServed:function(a){c.Debug.trace("AdManager::_onAdServed() called.");this.objISAPClient.updateStartTime(a.data.logID);this.forwardEvent(a)},_onAdClick:function(a){c.Debug.trace("AdManager::_onAdClick() called.");if(typeof this.adCallResult.p.sas_Data!="undefined"&&typeof this.adCallResult.p.sas_Data.isapData!=
"undefined"){var d=null;if(typeof this.adCallResult.p.sas_Data.isapData[a.data.advertID]!="undefined")d=this.adCallResult.p.sas_Data.isapData[a.data.advertID];else if(a.data.id=="IRoll"&&typeof this.adCallResult.p.sas_Data.isapData.NETWORKIROLL!="undefined")d=this.adCallResult.p.sas_Data.isapData.NETWORKIROLL;else if(a.data.id=="Skin"&&typeof this.adCallResult.p.sas_Data.isapData.NETWORKSKIN!="undefined")d=this.adCallResult.p.sas_Data.isapData.NETWORKSKIN;else if(typeof this.adCallResult.p.sas_Data.isapData.NETWORK!=
"undefined")d=this.adCallResult.p.sas_Data.isapData.NETWORK;d&&typeof d.clickURL!="undefined"&&c.Util.loadURL(d.clickURL)}this.forwardEvent(a)},_onAdInteraction:function(a){c.Debug.trace("AdManager::_onAdInteraction() called.");var d=a.data.logID+"|"+a.data.name,h=false;if(typeof this.seenInteractions[d]=="undefined"){this.seenInteractions[d]=0;h=true}this.seenInteractions[d]+=1;this.objISAPClient.reportInteraction(a.data.name,a.data.logID,h)},_onAdExpandableOpen:function(a){c.Debug.trace("AdManager::_onAdExpandableOpen() called.");
this.swExpandableOpened=true;this.forwardEvent(a)},_onAdExpandableClose:function(a){c.Debug.trace("AdManager::_onAdExpandableClose() called.");this.swExpandableOpened=false;this.swRotateAdOnceExpandableClosed&&this._repeatLastAdCall();this.forwardEvent(a)},_onAdOpenURL:function(){c.Debug.trace("AdManager::_onAdOpenURL() called.")},_onAdLoadURL:function(a){c.Debug.trace("AdManager::_onAdLoadURL() called.");/^https?:\/\//.test(a.data.url)?c.Util.loadURL(c.Util.replaceTokens(a.data.url)):c.Debug.warn('Warning: unable to load URL "'+
a.data.url+'".')},_onAdPollingData:function(a){c.Debug.trace("AdManager::_onAdPollingData() called.");for(var d in a.data){var h=[],k;for(k in a.data[d])h.push(k+"="+a.data[d][k]);this.objISAPClient.sendPollingData(d,h.join("&"))}},_onAdDone:function(a){c.Debug.trace("AdManager::_onAdDone() called.");this._adDone(a.target.getInfo())}})})(N);(function(c){if(typeof c["4.2"].ISAPClient=="undefined")c["4.2"].ISAPClient=c.EventDispatcher.extend({construct:function(){this._super();c.Debug.trace("ISAPClient object created.");
this.DEFAULT_URL="http://inskinad.com/ISAPAdServer/AdS.aspx";this.POLLING_URL="http://polling.inskinad.com/ISAPAdServer2/AdS.aspx"},makeAdCall:function(a){c.Debug.trace("["+a.id+"] ISAPClient::makeAdCall() called.");var d=[],h;for(h in a.adCallParams)h.substr(0,4)=="srv_"&&d.push(h+"="+a.adCallParams[h]);d=d.join("&");c.Debug.info("["+a.id+"] ISAP Ad Call: "+d);var k=this;this._call(this.DEFAULT_URL,"GetCampaignInformationFromUserData",{vstrCampaignData:d},function(q){k._onAdCallResult(q,a)})},makeAdCallByAdvertID:function(a,
d){var h=this;this._call(this.DEFAULT_URL,"GetCampaignInformationFromAdvertID",{vintAdvertID:a},function(k){h._onAdCallResult(k,d)})},makeAdCallByCreativeID:function(a,d){var h=this;this._call(this.DEFAULT_URL,"GetCampaignInformationFromCreativeID",{vintCreativeID:a},function(k){h._onAdCallResult(k,d)})},_onAdCallResult:function(a,d){c.Debug.trace("["+d.id+"] ISAPClient::_onAdCallResult() called.");d.isap_Result=a;this.dispatchEvent("AD_CALL_RESULT",{p:d})},updateStartTime:function(a){c.Debug.trace("ISAPClient::updateStartTime() called.");
this._call(this.DEFAULT_URL,"UpdateCampaignStartTime",{vstrLogID:a},"_onUpdateStartTimeResult")},_onUpdateStartTimeResult:function(){c.Debug.trace("ISAPClient::_onUpdateStartTimeResult() called.")},reportInteraction:function(a,d,h){c.Debug.trace("ISAPClient::reportInteraction() called.");c.Debug.info("INTERACTION: "+a+" (Unique: "+h+")");this._call(this.DEFAULT_URL,"UpdateCustomInteraction",{vstrLogID:d,vstrInteractionName:a,vblnIsUniqueClick:h?"true":"false"},"_onReportInteractionResult")},_onReportInteractionResult:function(){c.Debug.trace("ISAPClient::_onReportInteractionResult() called.")},
sendPollingData:function(a,d){c.Debug.trace("ISAPClient::sendPollingData() called.");c.Debug.debug("TIMERS: "+d);this._call(this.POLLING_URL,"UpdateCampaignViewTimeAll",{vstrLogID:a,vstrDurationData:d},"_onSendPollingDataResult")},_onSendPollingDataResult:function(){c.Debug.trace("ISAPClient::_onSendPollingDataResult() called.")},_call:function(a,d,h,k){h.method=d;a={url:a,data:h,dataType:"jsonp"};if(k)if(k.constructor===String){var q=this;a.success=function(x){q[k].apply(q,[x])}}else a.success=k;
c.$.ajax(a)}})})(N);(function(c){if(typeof c["4.2"].SASClient=="undefined")c["4.2"].SASClient=c.EventDispatcher.extend({construct:function(a){this._super();c.Debug.trace("SASClient object created.");this.objAdManager=a;this.data={}},makeAdCall:function(a){c.Debug.trace("["+a.id+"] SASClient::makeAdCall() called.");this.data[a.id]={adtag:this._buildAdTag(a),frame:this._createFrame(),p:a};c.Debug.info("SAS Ad Tag:<br/><pre>"+c.Debug.htmlEscape(this.data[a.id].adtag)+"</pre>");if(this.data[a.id].frame.length!=
1)c.Debug.warn("Warning: unable to create SAS IFRAME.");else if(a.adCallParams.sas_FrameURL&&a.adCallParams.sas_FrameURL!=""){var d=a.adCallParams.sas_FrameURL+"?v=4.2&id="+escape(this.objAdManager.objBase.id)+"&cid="+escape(a.id);if(a.adCallParams.sas_FrameDomain&&a.adCallParams.sas_FrameDomain!="")d+="&domain="+escape(a.adCallParams.sas_FrameDomain);this.data[a.id].frame.attr("src",d)}else{d="";d+='<html><body><script type="text/javascript">';d+='var objSAS = window.parent.InSkin.BaseInstances["'+
this.objAdManager.objBase.id+'"].objAdManager.objSASClient;';d+='var code = objSAS.getCode("'+a.id+'");';d+="document.write(code);";d+="window.onload = function() {";d+="var isap_data = null, custom_data = null;";d+='if (typeof(isapData) != "undefined") isap_data = isapData;';d+='if (typeof(customData) != "undefined") custom_data = customData;';d+="var advert_ids = null, click_urls = null;";d+='if (typeof(isapAdvertID) != "undefined") advert_ids = isapAdvertID;';d+='else if (typeof(isapAdvertIDs) != "undefined") advert_ids = isapAdvertIDs;';
d+='if (typeof(isapClickUrl) != "undefined") click_urls = isapClickUrl;';d+='else if (typeof(isapClickURLs) != "undefined") click_urls = isapClickURLs;';d+='objSAS.frameLoaded("'+a.id+'", isap_data, custom_data, advert_ids, click_urls);';d+="}";d+="<\/script></body></html>";if(a=c.Util.getFrameDoc(this.data[a.id].frame.attr("id"))){a.open();a.write(d);a.close()}else c.Debug.warn('Warning: unable to get the "document" property of the SAS IFRAME.')}},getCode:function(a){c.Debug.trace("SASClient::getCode() called.");
return typeof InSkinGetSASCode=="function"?InSkinGetSASCode(this.data[a].p):this.data[a].adtag},frameLoaded:function(a,d,h,k,q){c.Debug.trace("SASClient::frameLoaded() called.");d=d?d:{};h=h?h:{};if(k&&typeof k=="object")for(var x=0;x<k.length;x++){d[k[x]]={};if(q&&typeof q=="object"&&q[x])d[k[x]].clickURL=q[x]}k=this.data[a].p;k.sas_Result={isapData:d,customData:h};this.dispatchEvent("AD_CALL_RESULT",{p:k});var D=this;setTimeout(function(){D._removeFrame(a)},250)},_createFrame:function(){c.Debug.trace("SASClient::_createFrame() called.");
var a="InSkinSASFrame_"+this.objAdManager.objBase.id+"_"+(new Date).getTime();return c.$('<iframe id="'+a+'"></iframe>').attr("id",a).css({position:"absolute",display:"none",visibility:"hidden"}).appendTo(document.body)},_removeFrame:function(a){c.Debug.trace("SASClient::_removeFrame() called.");this.data[a]&&this.data[a].frame.remove();this.data[a]=null},_buildAdTag:function(a){c.Debug.trace("["+a.id+"] SASClient::_buildAdTag() called.");var d="";if(typeof a.adCallParams.sas_AdTagLabels!="undefined")for(var h=
0;h<a.adCallParams.sas_AdTagLabels.length;h++)if(this.objAdManager.objBase.params[a.adCallParams.sas_AdTagLabels[h]+"Result"]!="")d+='<script type="text/javascript">'+this.objAdManager.objBase.params[a.adCallParams.sas_AdTagLabels[h]+"Result"]+"<\/script>";else if(this.objAdManager.objBase.params[a.adCallParams.sas_AdTagLabels[h]+"URL"]!="")d+='<script type="text/javascript" src="'+this.objAdManager.objBase.params[a.adCallParams.sas_AdTagLabels[h]+"URL"]+'"><\/script>';else{if(this.objAdManager.objBase.params[a.adCallParams.sas_AdTagLabels[h]]!=
"")d+=this.objAdManager.objBase.params[a.adCallParams.sas_AdTagLabels[h]]}else if(typeof a.adCallParams.sas_AdTagResult!="undefined")d+='<script type="text/javascript">'+a.adCallParams.sas_AdTagResult+"<\/script>";else if(typeof a.adCallParams.sas_AdTagURL!="undefined")d+='<script type="text/javascript" src="'+a.adCallParams.sas_AdTagURL+'"><\/script>';else if(typeof a.adCallParams.sas_AdTag!="undefined")d+=a.adCallParams.sas_AdTag;return d}})})(N);(function(c){if(typeof c["4.2"].Ad=="undefined"){c["4.2"].AdTypes=
{};c["4.2"].Ad=c.EventDispatcher.extend({construct:function(a,d){this._super();c.Debug.trace("Ad object created.");this.objAdManager=a;this.p=d;this.params=this.objAdManager.objBase.params;this.HDD=this.objAdManager.objBase.HDD;this.pollingInterval=this.objAdManager.objBase.params.plr_PollingInterval;this.info={};this.units={};this.isapTrackers={}},_checkLoaded:function(){for(var a in this.units)if(!this.units[a].obj.swLoaded)return false;this._onLoaded()},_onLoaded:function(){c.Debug.trace("Ad::_onLoaded() called.");
this.dispatchEvent("LOADED")},_createAdUnit:function(a){if(!a)return false;c.Debug.trace("Ad::_createAdUnit() called. ID: "+a.settings.id);this.units[a.settings.id]={obj:a};return true},_createExpandableUnit:function(a,d){c.Debug.trace("Ad::_createExpandableUnit() called.");var h=null,k=window;if(this.params.plr_DisplayExpandableInParentFrame){k=window.parent;if(!this.HDD.swParentFramePrepared){this.HDD.swParentFramePrepared=true;c.Util.loadCSS(this.params.BASE_URL+"/css/core.css",k.document)}}if(d.ExpandableLayerFileUrl&&
d.ExpandableLayerFileUrl!=""){h={id:a,advertID:d.AdvertID,creativeID:d.CreativeID,logID:d.CampaignLogID,timerSettings:{label:"Expandable",capping:d.DwellTimeCap,data:{logID:d.CampaignLogID}},data:{url:d.ExpandableLayerFileUrl,designW:d.ExpandableWidth,designH:d.ExpandableHeight,useResizeMC:"always",isAS3:d.IsAS3Creative,showTopbar:true,initData:{cfg:{},ISAP:d},marginTop:0},swf_unit:this._getSWFUnitContainer((d.IsAS3Creative?"AS3":"AS2")+(this.params.plr_DetachedExpandable?"Expandable":"Main")),plr_DetachedExpandable:this.params.plr_DetachedExpandable,
plr_DisplayExpandableInParentFrame:this.params.plr_DisplayExpandableInParentFrame,plr_HideSelectors:this.params.plr_HideSelectors,plr_RemoveSelectors:this.params.plr_RemoveSelectors};if(this.params.plr_DetachedExpandable){h.data.w=this.params.plr_ExpandableW;h.data.h=this.params.plr_ExpandableH}h=new c["4.2"].AdUnitTypes.SWFUnit(this,h)}else if(d.TopBarUrls)if(this.objAdManager.objBase.params.plr_DetachedExpandable){h={id:a,advertID:d.AdvertID,creativeID:d.CreativeID,logID:d.CampaignLogID,timerSettings:{label:"Expandable",
capping:d.DwellTimeCap,data:{logID:d.CampaignLogID}},data:{TopBarUrls:d.TopBarUrls,designW:d.ExpandableWidth,designH:d.ExpandableHeight,marginTop:this.objAdManager.objBase.params.plr_ExpandableTopMargin},plr_DetachedExpandable:true,plr_DisplayExpandableInParentFrame:this.params.plr_DisplayExpandableInParentFrame,plr_HideSelectors:this.params.plr_HideSelectors,plr_RemoveSelectors:this.params.plr_RemoveSelectors};h=new c["4.2"].AdUnitTypes.MicrositeUnit(this,h)}else c.Debug.warn("Warning: microsite expandable served when plr_DetachedExpandable = false.");
if(h){h.addEventListener("LOADED","_onAdUnitLoaded",this);h.addEventListener("CLICK","_onClick",this);h.addEventListener("INTERACTION","_onInteraction",this);h.addEventListener("OPEN_URL","_onOpenURL",this);h.addEventListener("LOAD_URL","_onLoadURL",this);h.addEventListener("IMPRESSION","_onImpression",this);h.addEventListener("CLICK_TAG","_onClickTag",this);h.addEventListener("OPENED","_onExpandableOpened",this);h.addEventListener("CLOSED","_onExpandableClosed",this);h.addEventListener("CLOSE","_onExpandableClose",
this);return h}return null},_getSWFUnitContainer:function(a){c.Debug.trace("Ad::_getSWFUnitContainer() called. Label: "+a);if(typeof this.HDD.SWFUnitContainers[a]=="undefined")switch(a){case "AS2Expandable":case "AS3Expandable":this.HDD.SWFUnitContainers[a]=c.Util.createDetachedSWFUnitContainer({id:"InSkin"+a+"Unit_"+this.objAdManager.objBase.id,win:this.params.plr_DisplayExpandableInParentFrame?window.parent:window,url:this.params.BASE_URL+"/swf/unitcontainer"+(a=="AS2Expandable"?"2":"3")+".swf"});
break;case "AS2Main":case "AS3Main":this.HDD.SWFUnitContainers[a]=this._createMainSWFUnitContainer(a);break;default:c.Debug.warn("Warning: unknown label for SWFUnitContainer.")}return this.HDD.SWFUnitContainers[a]},_createMainSWFUnitContainer:function(){c.Debug.trace("Ad::_createMainSWFUnitContainer() called.");return null},_onAdUnitLoaded:function(a){c.Debug.trace("Ad::_onAdUnitLoaded() called. Unit ID: "+a.target.settings.id);this._checkLoaded()},_onInteraction:function(a){c.Debug.trace("Ad::_onInteraction() called. Unit ID: "+
a.target.settings.id);var d=a.data;d.logID=a.target.settings.logID;this.dispatchEvent("INTERACTION",d)},_onOpenExpandable:function(a){c.Debug.trace("Ad::_onOpenExpandable() called. Unit ID: "+a.target.settings.id);this.openExpandable()},_onPlayVideo:function(a){c.Debug.trace("Ad::_onPlayVideo() called. Unit ID: "+a.target.settings.id);this.dispatchEvent("PLAY_VIDEO",{force:true})},_onPauseVideo:function(a){c.Debug.trace("Ad::_onPauseVideo() called. Unit ID: "+a.target.settings.id);this.dispatchEvent("PAUSE_VIDEO",
{force:true})},_onOpenURL:function(a){c.Debug.trace("Ad::_onOpenURL() called. Unit ID: "+a.target.settings.id);this.dispatchEvent("OPEN_URL",a.data)},_onLoadURL:function(a){c.Debug.trace("Ad::_onLoadURL() called. Unit ID: "+a.target.settings.id);this.dispatchEvent("LOAD_URL",a.data)},_onImpression:function(a){c.Debug.trace("Ad::_onImpression() called. Unit ID: "+a.target.settings.id);this._handleISAPTracker(a.target.settings.advertID,a.data.name,a.data.urls)},_onClickTag:function(a){c.Debug.trace("Ad::_onClickTag() called. Unit ID: "+
a.target.settings.id);this._handleISAPTracker(a.target.settings.advertID,a.data.tag,a.data.urls)},_handleISAPTracker:function(a,d,h){c.Debug.trace("Ad::_handleISAPTracker() called. Advert ID: "+a+"; Key: "+d);if(!(!d||d=="")){var k=[];if(this.isapTrackers[a]&&this.isapTrackers[a][d])if(typeof this.isapTrackers[a][d]=="string")k=[this.isapTrackers[a][d]];else for(var q in this.isapTrackers[a][d])k.push(this.isapTrackers[a][d][q]);else if(h)for(var x in h)k.push(h[x]);for(a=0;a<k.length;a++)this.dispatchEvent("LOAD_URL",
{url:k[a]})}},_startPolling:function(){c.Debug.trace("Ad::_startPolling() called.");if(!this.swPollingStarted&&this.pollingInterval>0){this.swPollingStarted=true;this.maxTimerValue=this.pollingInterval;var a=this;this.pollingTimerID=setTimeout(function(){a._sendPollingData()},this.pollingInterval*1E3)}},_stopPolling:function(){c.Debug.trace("Ad::_stopPolling() called.");if(this.swPollingStarted){this.swPollingStarted=false;this._sendPollingData()}},_changePollingInterval:function(a){c.Debug.trace("Ad::_changePollingInterval() called. New interval: "+
a);this.pollingInterval=a;this.swPollingStarted&&this._sendPollingData()},_sendPollingData:function(){c.Debug.trace("Ad::_sendPollingData() called.");if(this.pollingTimerID){clearTimeout(this.pollingTimerID);this.pollingTimerID=null}for(var a=this.getTimers(),d=false,h={},k=null,q=0;q<a.length;q++){k=a[q].get();if(k.value>0){if(k.value>this.maxTimerValue)k.value=this.maxTimerValue;if(typeof h[k.data.logID]=="undefined")h[k.data.logID]={};h[k.data.logID][k.label]=k.value;d=true}}d&&this.dispatchEvent("POLLING_DATA",
h);if(this.swPollingStarted&&this.pollingInterval>0){this.maxTimerValue=this.pollingInterval;var x=this;this.pollingTimerID=setTimeout(function(){x._sendPollingData()},this.pollingInterval*1E3)}},load:function(){c.Debug.trace("Ad::load() called.");for(var a in this.units)this.units[a].obj.load()},unload:function(){c.Debug.trace("Ad::unload() called.");for(var a in this.units){this.units[a].obj.unload();this.units[a].obj=null}},unloadIRoll:function(){c.Debug.trace("Ad::unloadIRoll() called.")},show:function(){c.Debug.trace("Ad::show() called.")},
hide:function(){c.Debug.trace("Ad::hide() called.")},openExpandable:function(){c.Debug.trace("Ad::openExpandable() called.")},closeExpandable:function(){c.Debug.trace("Ad::closeExpandable() called.")},setCreativeData:function(a){c.Debug.trace("Ad::setCreativeData() called.");for(var d in this.units)this.units[d].obj.setCreativeData(a)},getInfo:function(){c.Debug.trace("Ad::getInfo() called.");return this.info},getTimers:function(){c.Debug.trace("Ad::getTimers() called.");var a=[],d;for(d in this.units)if(this.units[d]&&
this.units[d].obj)a=a.concat(this.units[d].obj.getTimers());return a},serve:function(){c.Debug.trace("Ad::serve() called.")},setLayout:function(){c.Debug.trace("Ad::setLayout() called.")},contentShow:function(){c.Debug.trace("Ad::contentShow() called.")},contentHide:function(){c.Debug.trace("Ad::contentHide() called.")},onContentAdStart:function(){c.Debug.trace("Ad::onContentAdStart() called.")},onContentAdComplete:function(){c.Debug.trace("Ad::onContentAdComplete() called.")}})}})(N);(function(c){if(typeof c["4.2"].AdUnit==
"undefined"){c["4.2"].AdUnitTypes={};c["4.2"].AdUnit=c.EventDispatcher.extend({construct:function(a,d){this._super();c.Debug.trace("AdUnit object created.");this.objAd=a;this.settings=d;this.settings.win=this.settings.plr_DisplayExpandableInParentFrame?window.parent:window;this.timers={};this.swLoaded=false},_onLoaded:function(){c.Debug.trace("AdUnit::_onLoaded() called. ID: "+this.settings.id);this.swLoaded=true;this.dispatchEvent("LOADED")},startTimer:function(a){if(!a)a=this.settings.timerSettings.label;
if(typeof this.timers[a]=="undefined")this.timers[a]=new c.Timer(this.settings.timerSettings);if(!this.timers[a].swStarted){c.Debug.info("TIMER START: "+a);this.timers[a].start()}},stopTimer:function(a){if(!a)a=this.settings.timerSettings.label;if(typeof this.timers[a]!="undefined")if(this.timers[a].swStarted){c.Debug.info("TIMER STOP: "+a);this.timers[a].stop()}},getTimers:function(){var a=[],d;for(d in this.timers)a.push(this.timers[d]);return a},load:function(){c.Debug.trace("AdUnit::load() called.")},
unload:function(){c.Debug.trace("AdUnit::unload() called.")},show:function(){},hide:function(){},openExpandable:function(){},closeExpandable:function(){},doStart:function(){},doPlay:function(){},doPause:function(){},doReset:function(){},setCreativeData:function(){},getViewportWHLT:function(){var a={w:0,h:0,l:0,t:0};a.w=Math.max(c.Util.getWindowW(this.settings.win),c.$(this.settings.win).width());a.h=Math.max(c.Util.getWindowH(this.settings.win),c.$(this.settings.win).height());a.l=c.Util.getWindowScrollL(this.settings.win);
a.t=c.Util.getWindowScrollT(this.settings.win);return a},showOverlay:function(a,d){this.joverlay=c.$("<div></div>",this.settings.win.document).addClass("InSkinOverlay").prependTo(this.settings.win.document.body);if(this.joverlay.length==1){c.Util.hideElements(this.settings.plr_HideSelectors,this.settings.plr_RemoveSelectors,this.settings.win.document);var h=this,k=this.getViewportWHLT();this.joverlay.css({position:"fixed",display:"block",width:k.w+"px",height:k.h+"px",left:"0px",top:"0px",opacity:0}).animate({opacity:0.8},
750,function(){d&&h.joverlay.click(d);a&&a()})}else{c.Debug.warn("Warning: unable to create overlay.");a&&a()}},hideOverlay:function(){this.joverlay&&this.joverlay.remove();this.joverlay=null;c.Util.showElements(this.settings.plr_HideSelectors,this.settings.plr_RemoveSelectors,this.settings.win.document)}})}})(N);(function(c){if(typeof c["4.2"].AdUnitTypes.SWFUnit=="undefined")c["4.2"].AdUnitTypes.SWFUnit=c["4.2"].AdUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("SWFUnit object created.")},
load:function(){c.Debug.trace("SWFUnit::load() called. Unit ID: "+this.settings.id);if(this.objSWFUnitContainer=this.settings.swf_unit){this.swf_id=this.settings.data.id=this.settings.id+(new Date).getTime();this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"LOADED","_onSWFUnitLoaded",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"CLICK","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"INTERACTION","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,
"OPEN_EXPANDABLE","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"PLAY_VIDEO","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"PAUSE_VIDEO","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"OPEN_URL","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"LOAD_URL","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"CLOSE","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,
"COMPLETE","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"IMPRESSION","forwardEvent",this);this.objSWFUnitContainer.addUnitEventListener(this.swf_id,"CLICK_TAG","forwardEvent",this);this.objSWFUnitContainer.show();this.objSWFUnitContainer.loadSWF(this.settings.data)}else{c.Debug.warn("Warning: no SWFUnitContainer provided; cannot load this ad unit (id: "+this.settings.id+").");this.dispatchEvent("ERROR")}},unload:function(){c.Debug.trace("SWFUnit::unload() called. Unit ID: "+
this.settings.id);this.objSWFUnitContainer.callFlash("unloadUnit",this.swf_id);this.objSWFUnitContainer.hide()},callUnit:function(a){c.Debug.trace("SWFUnit::callUnit() called. Method Name: "+a+"; Unit ID: "+this.settings.id);for(var d=[],h=1;h<arguments.length;h++)d.push(arguments[h]);return this.objSWFUnitContainer.callFlash("callUnitSWF",this.swf_id,a,d)},_onSWFUnitLoaded:function(){c.Debug.trace("SWFUnit::_onSWFUnitLoaded() called. Unit ID: "+this.settings.id);this._onLoaded()},doStart:function(a){c.Debug.trace("SWFUnit::doStart() called. Unit ID: "+
this.settings.id);this.callUnit("doStart",a)},doPlay:function(){c.Debug.trace("SWFUnit::doPlay() called. Unit ID: "+this.settings.id);this.callUnit("doPlay")||this.callUnit("preroll_resume")},doPause:function(){c.Debug.trace("SWFUnit::doPause() called. Unit ID: "+this.settings.id);this.callUnit("doPause")||this.callUnit("preroll_pause")},doReset:function(){c.Debug.trace("SWFUnit::doReset() called. Unit ID: "+this.settings.id);this.callUnit("doReset")||this.objSWFUnitContainer.callFlash("gotoAndStop",
this.swf_id,1)},setCreativeData:function(a){c.Debug.trace("SWFUnit::setCreativeData() called. Unit ID: "+this.settings.id);this.callUnit("setCreativeData",a)},openExpandable:function(){c.Debug.trace("SWFUnit::openExpandable() called. Unit ID: "+this.settings.id);if(this.settings.plr_DetachedExpandable){var a=this;this.showOverlay(function(){var d=a.getViewportWHLT();d.h-=a.settings.data.marginTop;var h=a.settings.data.w,k=a.settings.data.h;if(h==0)h=d.w;if(k==0)k=d.h;if(h>d.w||k>d.h){k=c.Util.calculateMaxWH(h/
k,d.w,d.h);h=k.w;k=k.h}var q=d.l+Math.floor((d.w-h)/2),x=d.t+Math.floor((d.h-k)/2);x=d.t+a.settings.data.marginTop;a.setSizeAndPosition(h,k,q,x);a._doOpenExpandable()},function(){a.dispatchEvent("CLOSE")})}else this._doOpenExpandable()},_doOpenExpandable:function(){this.show();this.callUnit("doPlay")||this.objSWFUnitContainer.callFlash("gotoAndPlay",this.swf_id,2);this.dispatchEvent("OPENED")},closeExpandable:function(){c.Debug.trace("SWFUnit::closeExpandable() called. Unit ID: "+this.settings.id);
this.doReset();this.hide();if(this.settings.plr_DetachedExpandable){this.setSizeAndPosition(1,1,0,0);this.hideOverlay()}this.dispatchEvent("CLOSED")},show:function(){c.Debug.trace("SWFUnit::show() called. Unit ID: "+this.settings.id);this.objSWFUnitContainer.show();this.objSWFUnitContainer.callFlash("showUnit",this.swf_id)},hide:function(){c.Debug.trace("SWFUnit::hide() called. Unit ID: "+this.settings.id);this.objSWFUnitContainer.callFlash("hideUnit",this.swf_id);this.objSWFUnitContainer.hide()},
setSizeAndPosition:function(a,d,h,k){c.Debug.trace("SWFUnit::setSizeAndPosition() called.");this.objSWFUnitContainer.setSizeAndPosition(a,d,h,k)}})})(N);(function(c){if(typeof c["4.2"].SWFUnitContainer=="undefined")c["4.2"].SWFUnitContainer=c.EventDispatcher.extend({construct:function(a){this._super();c.Debug.trace("SWFUnitContainer object created.");this.settings=a;this.swLoaded=this.swEmbedded=false;this.unit_listeners={};this.queue={};this.swf=null},show:function(){this.settings.jtarget.css("visibility",
"visible")},hide:function(){this.settings.jtarget.css("visibility","hidden")},loadSWF:function(a){c.Debug.trace("SWFUnitContainer::loadSWF() called.");if(this.swLoaded)this.callFlash("loadUnit",a);else{this.queue[a.id]=a;this.swEmbedded||this._embed()}},_embed:function(){if(!this.swEmbedded){this.swEmbedded=true;c.Debug.trace("SWFUnitContainer::_embed() called.");var a=this,d=this.settings.id+"_BRIDGE";this.settings.win[d]=function(q){if(typeof a[q]=="function"){for(var x=[],D=1;D<arguments.length;D++)x.push(arguments[D]);
a[q].apply(a,x)}else c.Debug.warn('Warning: cannot handle call from unit SWF container to "'+q+'".')};d={connectToFunction:d};var h={id:this.settings.id,name:this.settings.id,styleclass:"InSkinBase"},k=this.settings.url;c.Debug.debug("SWFUnitContainer loaded from: "+k);c.Util.embedWithHTML(k,this.settings.jtarget.get(0),"100%","100%",d,{allowscriptaccess:"always",swliveconnect:"true",wmode:"transparent",scale:"noscale"},h)}},_checkReady:function(){c.Debug.trace("SWFUnitContainer::_checkReady() called.");
if(typeof this.checkUnitReadyCounter=="undefined")this.checkUnitReadyCounter=5;this.checkUnitReadyCounter--;var a=c.Util.getObject(this.settings.id,this.settings.win.document);if(a&&typeof a.callInSkinUnitMethod!="undefined"){this.swf=a;this._onReady()}else if(this.checkUnitReadyCounter>0){var d=this;setTimeout(function(){d._checkReady()},125)}else c.Debug.warn("Warning: unit SWF container (ID: "+this.settings.id+") not ready in time.")},_onReady:function(){c.Debug.trace("SWFUnitContainer::_onReady() called.");
this.swLoaded=true;this.dispatchEvent("READY");for(var a in this.queue)this.callFlash("loadUnit",this.queue[a])},callFlash:function(a){c.Debug.trace("SWFUnitContainer::callFlash() called. Method Name: "+a);for(var d=[],h=0;h<arguments.length;h++)d.push(arguments[h]);return this.settings.win.InSkin.callSWFUnitContainer.apply(null,[this.swf,"callInSkinUnitMethod"].concat(d))},setSizeAndPosition:function(a,d,h,k){c.Debug.trace("SWFUnitContainer::setSizeAndPosition() called.");this.settings.jcontainer.css({width:a+
"px",height:d+"px",left:h+"px",top:k+"px"})},fromSWF_Loaded:function(){c.Debug.trace("SWFUnitContainer::fromSWF_Loaded() called.");this._checkReady()},fromSWF_UnitEvent:function(a,d,h){c.Debug.trace("SWFUnitContainer::fromSWF_UnitEvent() called. ID: "+a+"; Event Name: "+d);this.dispatchUnitEvent(a,d,h)},addUnitEventListener:function(a,d,h,k){if(typeof this.unit_listeners[a]=="undefined")this.unit_listeners[a]={};if(typeof this.unit_listeners[a][d]=="undefined")this.unit_listeners[a][d]=[];this.unit_listeners[a][d].push({func:h,
thisObj:k})},dispatchUnitEvent:function(a,d,h){if(typeof this.unit_listeners[a][d]!="undefined"){h={name:d,target:this,data:h};for(var k=0;k<this.unit_listeners[a][d].length;k++)if(typeof this.unit_listeners[a][d][k].func=="function")this.unit_listeners[a][d][k].func.apply(this.unit_listeners[a][d][k].thisObj,[h]);else typeof this.unit_listeners[a][d][k].func=="string"&&typeof this.unit_listeners[a][d][k].thisObj=="object"&&typeof this.unit_listeners[a][d][k].thisObj[this.unit_listeners[a][d][k].func]==
"function"&&this.unit_listeners[a][d][k].thisObj[this.unit_listeners[a][d][k].func].apply(this.unit_listeners[a][d][k].thisObj,[h])}}})})(N);(function(c){if(typeof c["4.2"].AdUnitTypes.MicrositeUnit=="undefined")c["4.2"].AdUnitTypes.MicrositeUnit=c["4.2"].AdUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("MicrositeUnit object created.");this.URLs=[];this.browser=null},load:function(){c.Debug.trace("MicrositeUnit::load() called.");for(var a in this.settings.data.TopBarUrls)this.URLs.push({id:this.settings.data.TopBarUrls[a].InteractionName,
title:this.settings.data.TopBarUrls[a].Title,url:this.settings.data.TopBarUrls[a].URL,pos:this.settings.data.TopBarUrls[a].ID});this.URLs.sort(function(d,h){return d.pos-h.pos});this.browser=new c.Browser(this.URLs,null,null,this.settings.win.document);this.browser.addEventListener(this.browser.EVENT_CLOSE,"_onBrowserClose",this);this.browser.addEventListener(this.browser.EVENT_LINK_OPEN,"_onBrowserLinkOpen",this);this.browser.addEventListener(this.browser.EVENT_LINK_CLOSE,"_onBrowserLinkClose",this);
this._onLoaded()},unload:function(){c.Debug.trace("MicrositeUnit::unload() called.")},openExpandable:function(){c.Debug.trace("MicrositeUnit::openExpandable() called.");var a=this;this.showOverlay(function(){var d=a.getViewportWHLT();d.h-=a.settings.data.marginTop;var h=a.settings.data.designW,k=a.settings.data.designH;if(h==0)h=d.w;if(k==0)k=d.h;if(h>d.w)h=d.w;if(k>d.h)k=d.h;var q=d.l+Math.floor((d.w-h)/2),x=d.t+Math.floor((d.h-k)/2);x=d.t+a.settings.data.marginTop;a.setSizeAndPosition(h,k,q,x);
a._doOpenExpandable()},function(){a.dispatchEvent("CLOSE")})},_doOpenExpandable:function(){this.swCloseExpandableCalled=false;this.browser.renderOnPage(this.sp.w,this.sp.h,0,this.sp.l,this.sp.t);this.dispatchEvent("OPENED")},closeExpandable:function(){c.Debug.trace("MicrositeUnit::closeExpandable() called.");this.swCloseExpandableCalled=true;this.browser.isClosed||this.browser.close();this.hideOverlay();this.dispatchEvent("CLOSED")},setSizeAndPosition:function(a,d,h,k){c.Debug.trace("MicrositeUnit::setSizeAndPosition() called.");
this.sp={w:a,h:d,l:h,t:k}},_onBrowserLinkOpen:function(a){c.Debug.trace("MicrositeUnit::_onBrowserLinkOpen() called.");this.dispatchEvent("INTERACTION",{name:a.data.id});this.startTimer(a.data.id)},_onBrowserLinkClose:function(a){c.Debug.trace("MicrositeUnit::_onBrowserLinkClose() called.");this.stopTimer(a.data.id)},_onBrowserClose:function(){c.Debug.trace("MicrositeUnit::_onBrowserClose() called.");this.swCloseExpandableCalled||this.dispatchEvent("CLOSE")}})})(N);(function(c){if(typeof c["4.2"].AdUnitTypes.PageSkinFrameUnit==
"undefined"){c["4.2"].AdUnitTypes.PageSkinFrameUnit=c["4.2"].AdUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("PageSkinFrameUnit object created.");this.jtarget=this.mainCreative=null;this.jobj={};this.targetTop=this.currentTop=0},load:function(){c.Debug.trace("PageSkinFrameUnit::load() called. Unit ID: "+this.settings.id);this.jtarget=typeof this.settings.jtarget=="string"?c.$("#"+this.settings.jtarget):this.settings.jtarget;this.offset=this.jtarget.offset();this.max_w=this.jtarget.width();
this.max_h=this.jtarget.height();this.max_scroll_h=Math.max(this.max_w-this.settings.data.designW,0);this.max_scroll_v=Math.max(this.max_h-this.settings.data.designH,0);var a={};if(this.settings.data.bgcolor)a["background-color"]=this.settings.data.bgcolor;if(this.settings.data.bgimage)a["background-image"]="url("+this.settings.data.bgimage+")";this.jtarget.css(a);this._loadMainCreative();this._createClickArea();this._onLoaded()},unload:function(){c.Debug.trace("PageSkinFrameUnit::unload() called. Unit ID: "+
this.settings.id)},_loadMainCreative:function(){c.Debug.trace("PageSkinFrameUnit::_loadMainCreative() called. Unit ID: "+this.settings.id);this._createMainContainer();var a=this.settings.data.url.match(/\.([^\.]+)$/);if(a)switch(a[1].toLowerCase()){case "jpg":case "png":case "gif":a={id:this.settings.id+(new Date).getTime(),data:{url:this.settings.data.url,designW:this.settings.data.designW,designH:this.settings.data.designH},jtarget:this.jobj.div_main_target};this.mainCreative=new c["4.2"].ImageUnit(null,
a)}this.mainCreative&&this.mainCreative.load()},_createMainContainer:function(){c.Debug.trace("PageSkinFrameUnit::_createMainContainer() called. Unit ID: "+this.settings.id);this._setMainContainerCSS();this.jobj.div_main=c.$("<div></div>").css({position:"absolute",overflow:"hidden"}).css(this.settings.div_main_css?this.settings.div_main_css:{}).appendTo(this.jtarget);this.jobj.div_main_target=c.$("<div></div>").css({position:"absolute",width:this.settings.data.designW+"px",height:this.settings.data.designH+
"px"}).css(this.settings.div_main_target_css?this.settings.div_main_target_css:{}).appendTo(this.jobj.div_main)},_setMainContainerCSS:function(){c.Debug.trace("PageSkinFrameUnit::_setMainContainerCSS() called. Unit ID: "+this.settings.id);this.settings.div_main_css={};this.settings.div_main_target_css={}},_createClickArea:function(){c.Debug.trace("PageSkinFrameUnit::_createClickArea() called. Unit ID: "+this.settings.id);var a=this,d={};if(this.settings.data.clickURL&&this.settings.data.clickURL!=
""){d.href=this.settings.data.clickURL;d.target="_blank"}this.jobj.a_clickarea=c.$('<a href="javascript:;"></a>').attr(d).css({position:"relative",display:"block",width:"100%",height:"100%",outline:"none","z-index":2}).click(function(){a.dispatchEvent("CLICK",{});a.dispatchEvent("INTERACTION",{name:"PAGESKIN_CLICKTAG_1"});a.dispatchEvent("CLICK_TAG",{tag:"PAGESKIN_CLICKTAG_1"})}).appendTo(this.jtarget)},scrollTop:function(a){this.scrollTopV4(a)},scrollTopV4:function(a){this.targetTop=a;if(!this.swScrolling){this.swScrolling=
true;this.currentTop=a;var d=this;this.jobj.div_main.animate({top:Math.min(this.max_scroll_v,Math.max(0,a-this.offset.top))+"px"},200,function(){d.swScrolling=false;d.targetTop!=d.currentTop&&d.scrollTopV4(d.targetTop)})}},scrollTopV0:function(a){this.jobj.div_main.css("top",Math.min(this.max_scroll_v,Math.max(0,a-this.offset.top))+"px")},scrollTopV1:function(a){this.targetTop=a=Math.min(this.max_scroll_v,Math.max(0,a-this.offset.top));if(!this.swScrolling&&this.targetTop!=this.currentTop){this.swScrolling=
true;this.currentTop=a;var d=this;this.jobj.div_main.animate({top:a+"px"},500,function(){d.swScrolling=false})}},scrollTopV:function(a){a=Math.min(this.max_scroll_v,Math.max(0,a-this.offset.top));if(a==0){var d=c.$.extend({},this.settings.div_main_css);d.position="absolute";d.left="auto";d.top="0px";this.jobj.div_main.css(d)}else if(a==this.max_scroll_v){d=c.$.extend({},this.settings.div_main_css);d.position="absolute";d.left="auto";d.top=a+"px";this.jobj.div_main.css(d)}else this.jobj.div_main.css({position:"fixed",
left:this.offset.left+"px",top:"0px",width:this.max_w+"px"})}});c["4.2"].AdUnitTypes.PageSkinFrameTopUnit=c["4.2"].AdUnitTypes.PageSkinFrameUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("PageSkinFrameTopUnit object created.")},_setMainContainerCSS:function(){c.Debug.trace("PageSkinFrameTopUnit::_setMainContainerCSS() called.");this.settings.div_main_css={right:"0px",top:"0px",width:Math.min(this.max_w,parseInt(this.settings.data.designW))+"px",height:"100%"};this.settings.div_main_target_css=
{right:"0px",bottom:"0px"}}});c["4.2"].AdUnitTypes.PageSkinFrameRightUnit=c["4.2"].AdUnitTypes.PageSkinFrameUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("PageSkinFrameRightUnit object created.")},_setMainContainerCSS:function(){c.Debug.trace("PageSkinFrameRightUnit::_setMainContainerCSS() called.");this.settings.div_main_css={right:"0px",top:"0px",width:"100%",height:Math.min(this.max_h,parseInt(this.settings.data.designH))+"px"};this.settings.div_main_target_css={left:"0px",
top:"0px"}}});c["4.2"].AdUnitTypes.PageSkinFrameBottomUnit=c["4.2"].AdUnitTypes.PageSkinFrameUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("PageSkinFrameBottomUnit object created.")},_setMainContainerCSS:function(){c.Debug.trace("PageSkinFrameBottomUnit::_setMainContainerCSS() called.");this.settings.div_main_css={right:"0px",bottom:"0px",width:Math.min(this.max_w,parseInt(this.settings.data.designW))+"px",height:"100%"};this.settings.div_main_target_css={right:"0px",top:"0px"}}});
c["4.2"].AdUnitTypes.PageSkinFrameLeftUnit=c["4.2"].AdUnitTypes.PageSkinFrameUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("PageSkinFrameLeftUnit object created.")},_setMainContainerCSS:function(){c.Debug.trace("PageSkinFrameLeftUnit::_setMainContainerCSS() called.");this.settings.div_main_css={left:"0px",top:"0px",width:"100%",height:Math.min(this.max_h,parseInt(this.settings.data.designH))+"px"};this.settings.div_main_target_css={right:"0px",top:"0px"}}})}})(N);(function(c){if(typeof c["4.2"].AdUnitTypes.ImageUnit==
"undefined")c["4.2"].AdUnitTypes.ImageUnit=c["4.2"].AdUnit.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("ImageUnit object created.");this.jtarget=null;this.jobj={}},load:function(){c.Debug.trace("ImageUnit::load() called. Unit ID: "+this.settings.id);this.jtarget=typeof this.settings.jtarget=="string"?c.$("#"+this.settings.jtarget):this.settings.jtarget;this.jtarget.css({"background-image":"url("+this.settings.data.url+")","background-repeat":"no-repeat"});this._onLoaded()},unload:function(){c.Debug.trace("ImageUnit::unload() called. Unit ID: "+
this.settings.id)}})})(N);(function(c){if(typeof c["4.2"].AdTypes.InSkin=="undefined")c["4.2"].AdTypes.InSkin=c["4.2"].Ad.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("AdTypes.InSkin object created.");if(this.objAdManager.objBase._checkIntegrationCode()){if(this._createAdUnit(this._createIRollUnit())){this._createAdUnit(this._createIRollExpandableUnit());if(this.p.isap_Result.PreRollAd.AssociatedThirdPartyTrackers)this.isapTrackers[this.p.isap_Result.PreRollAd.AdvertID]=this.p.isap_Result.PreRollAd.AssociatedThirdPartyTrackers}if(this._createAdUnit(this._createSkinUnit())){this._createAdUnit(this._createSkinExpandableUnit());
if(this.p.isap_Result.InSkinAd.AssociatedThirdPartyTrackers)this.isapTrackers[this.p.isap_Result.InSkinAd.AdvertID]=this.p.isap_Result.InSkinAd.AssociatedThirdPartyTrackers}this.info={hasIRoll:typeof this.units.IRoll!="undefined"?true:false,hasIRollExpandable:typeof this.units.IRollExpandable!="undefined"?true:false,hasSkin:typeof this.units.Skin!="undefined"?true:false,hasSkinExpandable:typeof this.units.SkinExpandable!="undefined"?true:false}}else c.Debug.error("Error: integration code required for this ad type.")},
_serveIRoll:function(){c.Debug.trace("AdTypes.InSkin::_serveIRoll() called.");this.swIRollRunning=true;this.dispatchEvent("PAUSE_VIDEO");this.contentHide();this.dispatchEvent("HIDE_CONTENT");this.units.IRoll.obj.show();this.units.IRoll.obj.doStart();this.units.IRoll.obj.startTimer();this.dispatchEvent("SERVED",{type:"IRoll",logID:this.units.IRoll.obj.settings.logID});this.dispatchEvent("IROLL_START")},_serveSkin:function(){c.Debug.trace("AdTypes.InSkin::_serveSkin() called.");this.units.Skin.obj.show();
this.units.Skin.obj.doStart();this.units.Skin.obj.startTimer();this.dispatchEvent("SERVED",{type:"InSkin",logID:this.units.Skin.obj.settings.logID});this.dispatchEvent("DONE")},_createIRollUnit:function(){c.Debug.trace("AdTypes.InSkin::_createIRollUnit() called.");if(this.p.isap_Result.SiteAllowPrerollAd&&this.p.isap_Result.PreRollAd)if(this.p.isap_Result.PreRollAd.PreRollFileUrl&&this.p.isap_Result.PreRollAd.PreRollFileUrl!=""){var a={id:"IRoll",advertID:this.p.isap_Result.PreRollAd.AdvertID,creativeID:this.p.isap_Result.PreRollAd.CreativeID,
logID:this.p.isap_Result.PreRollAd.CampaignLogID,timerSettings:{label:"PreRoll",capping:this.p.isap_Result.PreRollAd.DwellTimeCap,data:{logID:this.p.isap_Result.PreRollAd.CampaignLogID}},data:{url:this.p.isap_Result.PreRollAd.PreRollFileUrl,designW:this.p.isap_Result.PreRollAd.SkinWidth,designH:this.p.isap_Result.PreRollAd.SkinHeight,useResizeMC:"always",isAS3:this.p.isap_Result.PreRollAd.IsAS3Creative,showTopbar:false,initData:{cfg:{},ISAP:this.p.isap_Result.PreRollAd}},swf_unit:this._getSWFUnitContainer((this.p.isap_Result.PreRollAd.IsAS3Creative?
"AS3":"AS2")+"Main")};a=new c["4.2"].AdUnitTypes.SWFUnit(this,a);a.addEventListener("LOADED","_onAdUnitLoaded",this);a.addEventListener("CLICK","_onClick",this);a.addEventListener("INTERACTION","_onInteraction",this);a.addEventListener("OPEN_EXPANDABLE","_onOpenExpandable",this);a.addEventListener("OPEN_URL","_onOpenURL",this);a.addEventListener("LOAD_URL","_onLoadURL",this);a.addEventListener("IMPRESSION","_onImpression",this);a.addEventListener("CLICK_TAG","_onClickTag",this);a.addEventListener("COMPLETE",
"_onIRollComplete",this);return a}return null},_createIRollExpandableUnit:function(){c.Debug.trace("AdTypes.InSkin::_createIRollExpandableUnit() called.");return this._createExpandableUnit("IRollExpandable",this.p.isap_Result.PreRollAd)},_createSkinUnit:function(){c.Debug.trace("AdTypes.InSkin::_createSkinUnit() called.");if(this.p.isap_Result.InSkinAd)if(this.p.isap_Result.InSkinAd.InSkinFileUrl&&this.p.isap_Result.InSkinAd.InSkinFileUrl!=""){var a={id:"Skin",advertID:this.p.isap_Result.InSkinAd.AdvertID,
creativeID:this.p.isap_Result.InSkinAd.CreativeID,logID:this.p.isap_Result.InSkinAd.CampaignLogID,timerSettings:{label:"InSkin",capping:this.p.isap_Result.InSkinAd.DwellTimeCap,data:{logID:this.p.isap_Result.InSkinAd.CampaignLogID}},data:{url:this.p.isap_Result.InSkinAd.InSkinFileUrl,designW:this.p.isap_Result.InSkinAd.SkinWidth,designH:this.p.isap_Result.InSkinAd.SkinHeight,useResizeMC:this.params.plr_ContentType!="PAGESKIN"?"always":"",isAS3:this.p.isap_Result.InSkinAd.IsAS3Creative,showTopbar:false,
initData:{cfg:{},ISAP:this.p.isap_Result.InSkinAd},useMask:true,plr_FrameTop:this.params.plr_FrameTop,plr_FrameSide:this.params.plr_FrameSide,plr_FrameSideRight:this.params.plr_FrameSideRight,plr_FrameBottom:this.params.plr_FrameBottom},swf_unit:this._getSWFUnitContainer((this.p.isap_Result.InSkinAd.IsAS3Creative?"AS3":"AS2")+"Main")};a=new c["4.2"].AdUnitTypes.SWFUnit(this,a);a.addEventListener("LOADED","_onSkinAdUnitLoaded",this);a.addEventListener("CLICK","_onClick",this);a.addEventListener("INTERACTION",
"_onInteraction",this);a.addEventListener("OPEN_EXPANDABLE","_onOpenExpandable",this);a.addEventListener("PLAY_VIDEO","_onPlayVideo",this);a.addEventListener("PAUSE_VIDEO","_onPauseVideo",this);a.addEventListener("OPEN_URL","_onOpenURL",this);a.addEventListener("LOAD_URL","_onLoadURL",this);a.addEventListener("IMPRESSION","_onImpression",this);a.addEventListener("CLICK_TAG","_onClickTag",this);return a}return null},_createSkinExpandableUnit:function(){c.Debug.trace("AdTypes.InSkin::_createSkinExpandableUnit() called.");
return this._createExpandableUnit("SkinExpandable",this.p.isap_Result.InSkinAd)},_onClick:function(a){c.Debug.trace("AdTypes.InSkin::_onClick() called. Unit ID: "+a.target.settings.id);if(a.target.settings.id=="IRoll"||a.target.settings.id=="Skin"){this.dispatchEvent("CLICK",{advertID:a.target.settings.advertID});this.openExpandable()}},_onIRollComplete:function(){c.Debug.trace("AdTypes.InSkin::_onIRollComplete() called.");this.unloadIRoll()},_onSkinAdUnitLoaded:function(a){c.Debug.trace("AdTypes.InSkin::_onSkinAdUnitLoaded() called.");
if(this.params.plr_ContentType=="PAGESKIN")this.objAdManager.objBase.swf_base=a.target.objSWFUnitContainer.swf;this._onAdUnitLoaded(a)},_onExpandableOpened:function(a){c.Debug.trace("AdTypes.InSkin::_onExpandableOpened() called. Unit ID: "+a.target.settings.id);a.target.startTimer()},_onExpandableClosed:function(a){c.Debug.trace("AdTypes.InSkin::_onExpandableClosed() called. Unit ID: "+a.target.settings.id);a=this.swIRollRunning?this.units.IRoll.obj:this.units.Skin.obj;if(!this.params.plr_DetachedExpandable){this.contentShow();
a.show()}this.swIRollRunning?a.doPlay():this.dispatchEvent("PLAY_VIDEO");a.startTimer();this.dispatchEvent("EXPANDABLE_CLOSE",{type:this.swIRollRunning?"IRoll":"InSkin"})},_onExpandableClose:function(a){c.Debug.trace("AdTypes.InSkin::_onExpandableClose() called. Unit ID: "+a.target.settings.id);this.closeExpandable()},_showContentContainerV1:function(){c.Debug.trace("AdTypes.InSkin::_showContentContainerV1() called.");var a=this.HDD.jobj;if(a.div_base_container&&a.div_content_container){var d=parseInt(a.div_base_container.css("z-index")),
h=parseInt(a.div_content_container.css("z-index"));if(!isNaN(d)&&!isNaN(h)&&d>h){a.div_base_container.css("z-index",h);a.div_content_container.css("z-index",d)}}},_showContentContainerV2:function(){c.Debug.trace("AdTypes.InSkin::_showContentContainerV2() called.");var a=this.HDD.jobj;a.div_content_container&&a.div_content_container.css("visibility","visible")},_hideContentContainerV1:function(){c.Debug.trace("AdTypes.InSkin::_hideContentContainerV1() called.");var a=this.HDD.jobj;if(a.div_base_container&&
a.div_content_container){var d=parseInt(a.div_base_container.css("z-index")),h=parseInt(a.div_content_container.css("z-index"));if(!isNaN(d)&&!isNaN(h)&&d<h){a.div_base_container.css("z-index",h);a.div_content_container.css("z-index",d)}}},_hideContentContainerV2:function(){c.Debug.trace("AdTypes.InSkin::_hideContentContainerV2() called.");var a=this.HDD.jobj;a.div_content_container&&a.div_content_container.css("visibility","hidden")},load:function(){c.Debug.trace("AdTypes.InSkin::unload() called.");
if(this.info.hasIRoll||this.info.hasSkin){this.setLayout(true);this._super()}else this.dispatchEvent("DONE")},unload:function(){c.Debug.trace("AdTypes.InSkin::unload() called.");this._stopPolling();this.unloadIRoll();this.unloadSkin()},unloadIRoll:function(){c.Debug.trace("AdTypes.InSkin::unloadIRoll() called.");if(this.units.IRoll){this.swIRollRunning=false;this.units.IRoll.obj.stopTimer();this.units.IRollExpandable&&this.units.IRollExpandable.obj.stopTimer();this._changePollingInterval(this.params.plr_PollingInterval);
this.units.IRoll.obj.unload();this.units.IRoll=this.units.IRoll.obj=null;if(this.units.IRollExpandable){this.units.IRollExpandable.obj.unload();this.units.IRollExpandable=this.units.IRollExpandable.obj=null}this.dispatchEvent("IROLL_COMPLETE");this.contentShow();this.dispatchEvent("SHOW_CONTENT");this.dispatchEvent("PLAY_VIDEO");if(this.units.Skin)this._serveSkin();else{this._stopPolling();this.dispatchEvent("DONE")}}},unloadSkin:function(){c.Debug.trace("AdTypes.InSkin::unloadSkin() called.");if(this.units.Skin){this.units.Skin.obj.unload();
this.units.Skin=this.units.Skin.obj=null;if(this.units.SkinExpandable){this.units.SkinExpandable.obj.unload();this.units.SkinExpandable=this.units.SkinExpandable.obj=null}}},show:function(){c.Debug.trace("AdTypes.InSkin::show() called.");if(this.units.Skin){this.units.Skin.obj.show();this.params.plr_ResizeOnHideSkin&&this.setLayout(true);return true}},hide:function(){c.Debug.trace("AdTypes.InSkin::hide() called.");if(this.units.Skin){this.units.Skin.obj.hide();this.params.plr_ResizeOnHideSkin&&this.setLayout(false);
return true}},openExpandable:function(){c.Debug.trace("AdTypes.InSkin::openExpandable() called.");var a=null;if(this.swIRollRunning){if(this.units.IRoll)a=this.units.IRoll.obj}else if(this.units.Skin)a=this.units.Skin.obj;var d=null;if(this.swIRollRunning){if(this.units.IRollExpandable)d=this.units.IRollExpandable.obj}else if(this.units.SkinExpandable)d=this.units.SkinExpandable.obj;if(a&&d){this.swIRollRunning?a.doPause():this.dispatchEvent("PAUSE_VIDEO");if(!this.params.plr_DetachedExpandable){this.contentHide();
a.hide()}a.stopTimer();this.dispatchEvent("EXPANDABLE_OPEN",{type:this.swIRollRunning?"IRoll":"InSkin"});d.openExpandable()}},closeExpandable:function(){c.Debug.trace("AdTypes.InSkin::closeExpandable() called.");var a=null;if(this.swIRollRunning){if(this.units.IRollExpandable)a=this.units.IRollExpandable.obj}else if(this.units.SkinExpandable)a=this.units.SkinExpandable.obj;if(a){a.stopTimer();a.closeExpandable()}},serve:function(){c.Debug.trace("AdTypes.InSkin::serve() called.");if(this.units.IRoll){this._serveIRoll();
this._changePollingInterval(3);this._startPolling()}else if(this.units.Skin){this._serveSkin();this._startPolling()}else this.dispatchEvent("DONE")},setLayout:function(a){c.Debug.trace("AdTypes.InSkin::setLayout() called. Has Skin: "+a);return a?this.objAdManager.objBase._setLayoutForSkin():this.objAdManager.objBase._setLayoutForNoSkin()},contentShow:function(){c.Debug.trace("AdTypes.InSkin::contentShow() called.");if(this.params.plr_HideContentVersion==1)this._showContentContainerV1();else this.params.plr_HideContentVersion==
2&&this._showContentContainerV2()},contentHide:function(){c.Debug.trace("AdTypes.InSkin::contentHide() called.");if(this.params.plr_HideContentVersion==1)this._hideContentContainerV1();else this.params.plr_HideContentVersion==2&&this._hideContentContainerV2()},onContentAdStart:function(){c.Debug.trace("AdTypes.InSkin::onContentAdStart() called.");if(this.params.plr_HideSkinOnExternalAd=="all"||this.params.plr_HideSkinOnExternalAd=="onplay"&&this.objAdManager.objBase.counterNewItem)this.hide();this.params.plr_ResizeOnExternalAd&&
this.setLayout(false)},onContentAdComplete:function(){c.Debug.trace("AdTypes.InSkin::onContentAdComplete() called.");this.params.plr_ShowSkinAfterExternalAd&&this.show();this.params.plr_ResizeOnExternalAd&&this.setLayout(this.info.hasSkin)}})})(N);(function(c){if(typeof c["4.2"].AdTypes.PageSkin=="undefined")c["4.2"].AdTypes.PageSkin=c["4.2"].Ad.extend({construct:function(a,d){this._super(a,d);c.Debug.trace("AdTypes.PageSkin object created.");this.timer=null;var h=this.objAdManager.objBase.id;this.ids=
{div_ref:"InSkinReference_"+h,div_ft_container:"InSkinFrameTop_"+h,div_ft:"InSkinFT_"+h,div_fl_container:"InSkinFrameLeft_"+h,div_fl:"InSkinFL_"+h,div_fr_container:"InSkinFrameRight_"+h,div_fr:"InSkinFR_"+h,div_fb_container:"InSkinFrameBottom_"+h,div_fb:"InSkinFB_"+h};this.jobj=null;this.jobj=typeof this.objAdManager.objBase.HTMLElements.PageSkin!="undefined"?this.objAdManager.objBase.HTMLElements.PageSkin:this.objAdManager.objBase.HTMLElements.PageSkin={};this._createAdUnit(this._createFrameUnit({id:"FrameTop",
ISAPTag:"FrameTop",tag:"ft"}));this._createAdUnit(this._createFrameUnit({id:"FrameLeft",ISAPTag:"FrameLeft",tag:"fl"}));this._createAdUnit(this._createFrameUnit({id:"FrameRight",ISAPTag:"FrameRight",tag:"fr"}));this._createAdUnit(this._createFrameUnit({id:"FrameBottom",ISAPTag:"FrameBottom",tag:"fb"}));if(this.units.FrameTop||this.units.FrameLeft||this.units.FrameRight||this.units.FrameBottom){this._createAdUnit(this._createExpandableUnit("Expandable",this.p.isap_Result.PageSkinAd));this.advertID=
this.p.isap_Result.PageSkinAd.AdvertID;this.creativeID=this.p.isap_Result.PageSkinAd.CreativeID;this.logID=this.p.isap_Result.PageSkinAd.CampaignLogID;if(this.p.isap_Result.PageSkinAd.AssociatedThirdPartyTrackers)this.isapTrackers[this.AdvertID]=this.p.isap_Result.PageSkinAd.AssociatedThirdPartyTrackers}},getInfo:function(){c.Debug.trace("AdTypes.PageSkin::getInfo() called.");var a={hasFrameTop:this.units.FrameTop?true:false,hasFrameLeft:this.units.FrameLeft?true:false,hasFrameRight:this.units.FrameRight?
true:false,hasFrameBottom:this.units.FrameBottom?true:false,hasExpandable:this.units.Expandable?true:false};a.hasSkin=a.hasFrameTop||a.hasFrameLeft||a.hasFrameRight||a.hasFrameBottom;a.hasSkinExpandable=a.hasExpandable;return a},load:function(){c.Debug.trace("AdTypes.PageSkin::load() called.");if(!this._createFrame()){c.Debug.warn("Warning: unable to create PageSkin frame.");this.dispatchEvent("ERROR");return false}this._super();var a=this;this.onWindowScroll=function(){var d=c.$(this).scrollTop();
a.units.FrameLeft&&a.units.FrameLeft.obj.scrollTop(d);a.units.FrameRight&&a.units.FrameRight.obj.scrollTop(d)};c.$(window).scroll(this.onWindowScroll)},serve:function(){c.Debug.trace("AdTypes.PageSkin::serve() called.");for(var a in this.units)if(a!="Expandable"){this.units[a].obj.show();this.units[a].obj.doStart()}this.timerLabel="PageSkin";this.timerData={logID:this.logID};this.timer=new c.Timer(this.timerLabel,this.timerData);this._startTimer();this._handleISAPTracker(this.advertID,"PAGESKIN_IMPRESSION");
this.dispatchEvent("SERVED",{type:"PageSkin",logID:this.logID});this.dispatchEvent("DONE");this._startPolling()},_startTimer:function(){if(!this.timer.started){c.Debug.info("TIMER START: "+this.timerLabel);this.timer.start()}},_stopTimer:function(){if(this.timer.started){c.Debug.info("TIMER STOP: "+this.timerLabel);this.timer.stop()}},getTimers:function(){c.Debug.trace("AdTypes.PageSkin::getTimers() called.");var a=[this.timer];if(this.units.Expandable)a=a.concat(this.units.Expandable.obj.getTimers());
return a},_createFrame:function(){c.Debug.trace("AdTypes.PageSkin::_createFrame() called.");var a,d,h,k=this.objAdManager.objBase.params;if(!this.jobj.div_ref){this.jobj.div_ref=c.$('<div id="'+this.ids.div_ref+'"></div>').attr("id",this.ids.div_ref).css({position:"relative"}).prependTo(document.body);switch(k.plr_PageAlignment.toLowerCase()){case "center":case "centre":this.jobj.div_ref.css("margin","0px auto")}}if(this.jobj.div_ref.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+
this.ids.div_ref+'".');return false}a=k.plr_ContentW;d=k.plr_FrameTop;this.jobj.div_ref.css({width:a+"px",height:d+"px","margin-bottom":k.plr_SpaceTop+"px"});if(k.plr_ExtendFrameSide){a=c.$(window).width();d=this.jobj.div_ref.offset();d=Math.ceil(d.left-k.plr_SpaceSide);a=Math.floor(a-(d+k.plr_ContentW+k.plr_SpaceSideRight));k.plr_FrameSide=Math.max(k.plr_FrameSide,d);k.plr_FrameSideRight=Math.max(k.plr_FrameSideRight,a)}a=k.plr_FrameSide+k.plr_SpaceSide+k.plr_ContentW+k.plr_SpaceSideRight+k.plr_FrameSideRight;
c.Util.setMetaTagParams("viewport",{width:a});if(k.plr_PageAlignment.toLowerCase()=="left"){a=parseInt(c.$(document.body).css("margin-left"));if(isNaN(a))a=0;a=Math.max(k.plr_FrameSide+k.plr_SpaceSide,a);c.$(document.body).css("margin-left",a+"px")}this.jobj.div_ft_container||(this.jobj.div_ft_container=c.$('<div id="'+this.ids.div_ft_container+'"></div>').attr("id",this.ids.div_ft_container).css({position:"absolute"}).appendTo(this.jobj.div_ref));if(this.jobj.div_ft_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+
this.ids.div_ft_container+'".');return false}a=k.plr_ContentW+k.plr_SpaceSide+k.plr_SpaceSideRight;a+=k.plr_SideFrameOverTLCorner?0:k.plr_FrameSide;a+=k.plr_SideFrameOverTRCorner?0:k.plr_FrameSideRight;d=k.plr_FrameTop;h=-k.plr_SpaceSide;h+=k.plr_SideFrameOverTLCorner?0:-k.plr_FrameSide;this.jobj.div_ft_container.css({width:a+"px",height:d+"px",left:h+"px"});this.jobj.div_ft||(this.jobj.div_ft=c.$('<div id="'+this.ids.div_ft+'"></div>').attr("id",this.ids.div_ft).css({position:"relative",width:"100%",
height:"100%"}).appendTo(this.jobj.div_ft_container));if(this.jobj.div_ft.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_ft+'".');return false}this.jobj.div_fl_container||(this.jobj.div_fl_container=c.$('<div id="'+this.ids.div_fl_container+'"></div>').attr("id",this.ids.div_fl_container).css({position:"absolute"}).appendTo(this.jobj.div_ft_container));if(this.jobj.div_fl_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_fl_container+
'".');return false}a=k.plr_FrameSide;h=k.plr_SideFrameOverTLCorner?-k.plr_FrameSide:0;d=k.plr_SideFrameOverTLCorner?0:k.plr_FrameTop;this.jobj.div_fl_container.css({width:a+"px",left:h+"px",top:d+"px"});this.jobj.div_fl||(this.jobj.div_fl=c.$('<div id="'+this.ids.div_fl+'"></div>').attr("id",this.ids.div_fl).css({position:"relative",width:"100%",height:"100%"}).appendTo(this.jobj.div_fl_container));if(this.jobj.div_fl.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_fl+
'".');return false}this.jobj.div_fr_container||(this.jobj.div_fr_container=c.$('<div id="'+this.ids.div_fr_container+'"></div>').attr("id",this.ids.div_fr_container).css({position:"absolute"}).appendTo(this.jobj.div_ft_container));if(this.jobj.div_fr_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_fr_container+'".');return false}a=k.plr_FrameSideRight;h=k.plr_SideFrameOverTRCorner?-k.plr_FrameSideRight:0;d=k.plr_SideFrameOverTRCorner?0:k.plr_FrameTop;
this.jobj.div_fr_container.css({width:a+"px",right:h+"px",top:d+"px"});this.jobj.div_fr||(this.jobj.div_fr=c.$('<div id="'+this.ids.div_fr+'"></div>').attr("id",this.ids.div_fr).css({position:"relative",width:"100%",height:"100%"}).appendTo(this.jobj.div_fr_container));if(this.jobj.div_fr.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_fr+'".');return false}this.jobj.div_fb_container||(this.jobj.div_fb_container=c.$('<div id="'+this.ids.div_fb_container+'"></div>').attr("id",
this.ids.div_fb_container).css({position:"absolute"}).appendTo(this.jobj.div_fl_container));if(this.jobj.div_fb_container.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_fb_container+'".');return false}a=k.plr_ContentW+k.plr_SpaceSide+k.plr_SpaceSideRight;a+=k.plr_SideFrameOverBLCorner?0:k.plr_FrameSide;a+=k.plr_SideFrameOverBRCorner?0:k.plr_FrameSideRight;d=k.plr_FrameBottom;h=k.plr_SideFrameOverBLCorner?k.plr_FrameSide:0;this.jobj.div_fb_container.css({width:a+
"px",height:d+"px",left:h+"px",bottom:(k.plr_SideFrameOverBLCorner?0:-k.plr_FrameBottom)+"px"});this.jobj.div_fb||(this.jobj.div_fb=c.$('<div id="'+this.ids.div_fb+'"></div>').attr("id",this.ids.div_fb).css({position:"relative",width:"100%",height:"100%"}).appendTo(this.jobj.div_fb_container));if(this.jobj.div_fb.length!=1){c.Debug.error('Error: could not find or create DIV with ID "'+this.ids.div_fb+'".');return false}this._setHeightCounter=0;this._setHeight();return true},_setHeight:function(){c.Debug.trace("AdTypes.PageSkin::_setHeight() called.");
var a,d=this.objAdManager.objBase.params,h=c.$(document.body).height();a=c.$("<div></div>").css({"background-color":"red",width:"2px",height:"2px"}).appendTo(document.body);var k=a.offset(),q=parseInt(c.$(document.body).css("margin-top"));if(isNaN(q))q=0;var x=parseInt(c.$(document.body).css("border-top"));if(isNaN(x))x=0;var D=parseInt(c.$(document.body).css("padding-top"));if(isNaN(D))D=0;h=Math.round(Math.max(h,k.top-(q+x+D)));a.remove();a=h+d.plr_SpaceBottom;a+=d.plr_SideFrameOverTLCorner?0:-d.plr_FrameTop;
a+=d.plr_SideFrameOverBLCorner?d.plr_FrameBottom:0;this.jobj.div_fl_container.css("height",a+"px");a=h+d.plr_SpaceBottom;a+=d.plr_SideFrameOverTRCorner?0:-d.plr_FrameTop;a+=d.plr_SideFrameOverBRCorner?d.plr_FrameBottom:0;this.jobj.div_fr_container.css("height",a+"px");this._setHeightCounter++;if(this._setHeightCounter<40){var K=this;setTimeout(function(){K._setHeight()},250)}},_createFrameUnit:function(a){c.Debug.trace("AdTypes.PageSkin::_createFrameUnit() called.");if(this.p.isap_Result.PageSkinAd)if(this.p.isap_Result.PageSkinAd[a.ISAPTag]){var d=
new c["4.2"].AdUnitTypes["PageSkin"+a.id+"Unit"](this,{id:a.id,advertID:this.p.isap_Result.PageSkinAd.AdvertID,creativeID:this.p.isap_Result.PageSkinAd.CreativeID,logID:this.p.isap_Result.PageSkinAd.CampaignLogID,data:{url:this.p.isap_Result.PageSkinAd[a.ISAPTag].url,designW:this.p.isap_Result.PageSkinAd[a.ISAPTag].width,designH:this.p.isap_Result.PageSkinAd[a.ISAPTag].height,bgcolor:this.p.isap_Result.PageSkinAd[a.ISAPTag].bgcolor,bgimage:this.p.isap_Result.PageSkinAd[a.ISAPTag].bgimage,clickURL:this.p.isap_Result.PageSkinAd.ClickToSiteUrl},
jtarget:this.ids["div_"+a.tag]});d.addEventListener("LOADED","_onAdUnitLoaded",this);d.addEventListener("CLICK","_onClick",this);d.addEventListener("INTERACTION","_onInteraction",this);a.id=="Expandable"&&d.addEventListener("IMPRESSION","_onImpression",this);d.addEventListener("CLICK_TAG","_onClickTag",this);return d}return null},_onClick:function(a){c.Debug.trace("AdTypes.PageSkin::_onClick() called. Unit ID: "+a.target.settings.id);var d=a.target.settings.id;if(d=="FrameTop"||d=="FrameLeft"||d==
"FrameRight"||d=="FrameBottom")if(this.objAdManager.objBase.params.srv_Keywords=="touch")this.openTouchExpandable();else{this.dispatchEvent("CLICK",{advertID:a.target.settings.advertID});this.openExpandable()}},openTouchExpandable:function(){var a=screen.width/window.innerWidth,d=screen.width,h=Math.round(window.innerHeight*a);a=1/a;var k=c.$('<div>This is where an InSkin Expandable will be displayed. This area is the same size (or scale) regardless of your zoom level! As you can see, when this is displayed you cannot scroll the page, however you will be able to interact with the content inside.<br/>For a preview of what could be inside click on the link below:<br/><a target="_blank" href="http://dev.inskinmedia.com/~cata/demos/mobile/demo01.html">InSkin Touch Creative Demo</a><br/><br/></div>').css({position:"absolute",
width:d+"px",height:h+"px",left:document.body.scrollLeft+"px",top:document.body.scrollTop+"px","background-color":"#000",opacity:0.9,color:"#fff","z-index":1E9,"-webkit-transform-origin":"0 0","-webkit-transform":"scale("+a+")"}).appendTo(c.$("body"));k.bind("touchmove",function(){return false});$close=c.$('<input type="button" value="Close" />').appendTo(k);$close.click(function(){k.hide();setTimeout(function(){k.remove()},1E3)})},_onExpandableOpened:function(a){c.Debug.trace("AdTypes.PageSkin::_onExpandableOpened() called. Unit ID: "+
a.target.settings.id);a.target.startTimer()},_onExpandableClosed:function(a){c.Debug.trace("AdTypes.PageSkin::_onExpandableClosed() called. Unit ID: "+a.target.settings.id);this._startTimer();this.dispatchEvent("EXPANDABLE_CLOSE",{type:"InSkin"})},_onExpandableClose:function(a){c.Debug.trace("AdTypes.PageSkin::_onExpandableClose() called. Unit ID: "+a.target.settings.id);this.closeExpandable()},openExpandable:function(){c.Debug.trace("AdTypes.PageSkin::openExpandable() called.");if(this.units.Expandable){this._stopTimer();
this.dispatchEvent("EXPANDABLE_OPEN",{type:"InSkin"});this.units.Expandable.obj.openExpandable()}},closeExpandable:function(){c.Debug.trace("AdTypes.PageSkin::closeExpandable() called.");if(this.units.Expandable){this.units.Expandable.obj.stopTimer();this.units.Expandable.obj.closeExpandable()}},unload:function(){c.Debug.trace("AdTypes.PageSkin::unload() called.");if(this.onWindowScroll){c.$(window).unbind("scroll",this.onWindowScroll);this.onWindowScroll=null}}})})(N);(function(c){if(typeof c.Browser==
"undefined"){c.Browser=c.EventDispatcher.extend({EVENT_LINK_OPEN:"com.inskinmedia.isfe.InSkinBrowser.events.LINK_OPEN",EVENT_LINK_CLOSE:"com.inskinmedia.isfe.InSkinBrowser.events.LINK_CLOSE",EVENT_CLOSE:"com.inskinmedia.isfe.InSkinBrowser.events.CLOSE",construct:function(a,d,h,k){this._super();this.w=!isNaN(parseInt(d))?parseInt(d):900;this.h=!isNaN(parseInt(h))?parseInt(h):600;this.URLs=a?a:[];if(typeof c.BrowserInstances=="undefined")c.BrowserInstances=[];c.BrowserInstances[this.id=c.BrowserInstances.length]=
this;this.name="InSkinBrowser"+this.id;this.doc=k?k:document;this.div=null;this.isClosed=true},getHTML:function(a,d,h){a=parseInt(a);d=parseInt(d);this.idx=h?h:0;h="";h+='<table class="InSkinBrowser" cellspacing="0" cellpadding="0" width="'+a+'" height="'+d+'" style="width: '+a+"px; height: "+d+'px;">';h+='<tr class="hd"><td class="hd">';h+='<table cellspacing="0" cellpadding="0"><tr>';for(a=0;a<this.URLs.length;a++){var k=this.name+"_lnk"+a,q=a==this.idx?"active":"";h+='<td id="" class="min">';h+=
'<a id="'+k+'" class="'+q+'" xhref="javascript: void(0);">'+this.URLs[a].title+"</a>";h+="</td>";if(a<this.URLs.length-1)h+='<td class="min divider"></td>'}h+='<td class="max">&nbsp;</td>';h+='<td class="min close"><a id="'+(this.name+"_c")+'" xhref="javascript: void(0);">CLOSE EXPANDABLE</a></td>';h+='<td class="min close"><a id="'+(this.name+"_x")+'" xhref="javascript: void(0);"><span>&nbsp;</span></a></td>';h+="</tr></table>";h+="</td></tr>";a=this.name+"_if";h+='<tr class="bd"><td class="bd" style="height: '+
(d-26)+'px;">';h+='<iframe id="'+a+'" src="'+this.hideReferer(this.URLs[this.idx].url)+'" frameborder="0"></iframe>';h+="</td></tr>";h+="</table>";return h},registerEventListeners:function(){for(var a=this,d=0;d<this.URLs.length;d++)c.$("#"+this.name+"_lnk"+d,this.doc).bind("click",{idx:d},function(h){a.openLink(h.data.idx,h)});c.$("#"+this.name+"_c, #"+this.name+"_x",this.doc).click(function(){a.close()})},renderOnPage:function(a,d,h,k,q){this.ww=a;this.hh=d;k={left:k,top:q,position:"absolute","z-index":51E5};
this.div=c.$('<div id="'+this.name+'"></div>',this.doc).attr("id",this.name).css(k).prependTo(this.doc.body);this.div.html(this.getHTML(a,d,h));this.isClosed=false;this.registerEventListeners();this.dispatchEvent(this.EVENT_LINK_OPEN,{id:this.URLs[h].id})},openLink:function(a,d){if(this.idx!=a){c.$("#"+this.name+"_lnk"+this.idx,this.doc).removeClass("active");c.$("#"+this.name+"_lnk"+a,this.doc).addClass("active");if(this.URLs[a].popup)this.openLinkPopup(a,d);else{var h=this;this.bactive=true;clearTimeout(this.timeoutID);
this.timeoutID=setTimeout(function(){h.bactive=false},5E3);c.$("#"+this.name+"_if",this.doc).attr("src",this.hideReferer(this.URLs[a].url))}this.dispatchEvent(this.EVENT_LINK_CLOSE,{id:this.URLs[this.idx].id});this.dispatchEvent(this.EVENT_LINK_OPEN,{id:this.URLs[a].id});this.idx=a}},openLinkPopup:function(a,d){var h=d.screenX-d.pageX,k=d.screenY-d.pageY,q=this.div.offset();h=q.left+h;k=q.top+k+26;q=this.ww;var x=this.hh-26,D="";D+="status=no,toolbar=no,location=no,menubar=no,directories=no,scrollbars=yes,resizable=no";
D+=",width="+q+",height="+x;D+=",left="+h+",top="+k;window.open(this.hideReferer(this.URLs[a].url),"mywin",D)},hideReferer:function(a){return"http://cdn.inskinmedia.com/redirect/?url="+encodeURIComponent(a)},open:function(a,d){if(typeof a=="undefined")a=0;if(typeof d=="undefined")d=true;var h=c.$(window).width(),k=c.$(window).height()-40,q=this.w==0||this.w>h?h:this.w,x=this.h==0||this.h>k?k:this.h;k=c.$(document).scrollLeft();var D=c.$(document).scrollTop(),K=k+Math.floor((h-q)/2),W=D+40;if(d){this.isClosed=
false;var X=this;c.$(this.doc.body).prepend(c.$('<div id="'+this.name+'Overlay">&nbsp;</div>').attr("id",this.name+"Overlay").addClass("InSkinBrowserOverlay"));c.$("#"+this.name+"Overlay").css({display:"block",width:c.$(document).width()+"px",height:c.$(document).height()+"px",opacity:0,left:"0px",top:"0px"}).animate({opacity:0.8},750,function(){if(!X.isClosed){c.$("#"+X.name+"Overlay").click(function(){X.close()});X.renderOnPage(q,x,a,K,W)}})}else this.renderOnPage(q,x,a,K,W)},close:function(){this.div.remove();
c.$("#"+this.name+"Overlay",this.doc).remove();this.isClosed=true;window.onbeforeunload=function(){};clearInterval(this.intervalID);this.dispatchEvent(this.EVENT_LINK_CLOSE,{id:this.URLs[this.idx].id});this.dispatchEvent(this.EVENT_CLOSE)}});typeof InSkinBrowserLoaded=="function"&&InSkinBrowserLoaded()}})(N);(function(c){if(typeof c.ContentAPIs.PAGESKIN=="undefined"){Pa="PAGESKIN";c.ContentAPIs.PAGESKIN=c.ContentAPI.extend({type:"PAGESKIN",initMethod:"none",construct:function(a){this._super(a);c.Debug.trace("ContentAPIs.PAGESKIN object created.");
this.minScreenW=this.params.plr_ContentW+this.params.plr_FrameSide+this.params.plr_FrameSideRight;if(typeof this.params.cnt_MinScreenW!="undefined")this.minScreenW=this.params.cnt_MinScreenW},init:function(){c.Debug.trace("ContentAPIs.PAGESKIN::init() called.");if(screen.width<this.minScreenW){c.Debug.warn("Warning: Screen resolution too narrow for PageSkin.");return false}try{var a=this;c.$(window).scroll(function(){try{a.objBase.swf_base&&a.objBase.swf_base.reportScrollPos(c.$(this).scrollTop())}catch(h){}})}catch(d){}this._super()}})}})(N);
typeof InSkinLoaded=="function"&&InSkinLoaded();if(typeof N.jQuery=="undefined"&&typeof jQuery!="undefined")N.jQuery=N.$=jQuery;var Y=N.Util.getURLParam("InSkinVersion")=="4.2";if(!Y)if(typeof{}[Pa]!="undefined")Y=true;if(!Y)for(var Ja=document.location.href,hb=["demo.inskinmedia.com/cds/"],Wa=0;Wa<hb.length;Wa++)if(Ja.indexOf(hb[Wa])>=0){Y=true;break}if(Y)try{N.Base=N["4.2"].Base}catch(Fb){}if(Pa=="PAGESKINEXPRESS")if(Y=N.Util.getScriptURLParameters(/pageskinexpress\.js\?autoload;(.*)$/,";")){N.Base=
N["4.2"].Base;Ja=(new Date).getTime();if(typeof Y.plr_InSkinID=="undefined")Y.plr_InSkinID="myPageSkin"+Ja;if(typeof Y.plr_ContentType=="undefined")Y.plr_ContentType="PAGESKINEXPRESS";if(typeof Y.plr_ContentID=="undefined")Y.plr_ContentID="myContent"+Ja;if(typeof Y.srv_SectionID=="undefined")Y.srv_SectionID="000000";if(typeof Y.plr_Offline=="undefined")Y.plr_Offline=true;if(typeof Y.BASE_URL=="undefined")Y.BASE_URL="http://dev.inskinmedia.com/~cata/ikit-4.1/out";Ja=window.InSkinParams[Y.plr_InSkinID]=
{};for(var ib in Y)Ja[ib]=Y[ib];window[Y.plr_InSkinID]=new N.Base(Y.plr_InSkinID);window[Y.plr_InSkinID].loadCSS("pageskin.css");window[Y.plr_InSkinID].init()}})();

