if(typeof YAHOO=="undefined"){var YAHOO={}}YAHOO.namespace=function(){var a=arguments,b=null,d,e,c;for(d=0;d<a.length;d=d+1){c=a[d].split(".");b=YAHOO;for(e=(c[0]=="YAHOO")?1:0;e<c.length;e=e+1){b[c[e]]=b[c[e]]||{};b=b[c[e]]}}return b};YAHOO.log=function(b,a,c){var d=YAHOO.widget.Logger;if(d&&d.log){return d.log(b,a,c)}else{return false}};YAHOO.register=function(d,i,a){var e=YAHOO.env.modules;if(!e[d]){e[d]={versions:[],builds:[]}}var c=e[d],f=a.version,g=a.build,h=YAHOO.env.listeners;c.name=d;c.version=f;c.build=g;c.versions.push(f);c.builds.push(g);c.mainClass=i;for(var b=0;b<h.length;b=b+1){h[b](c)}if(i){i.VERSION=f;i.BUILD=g}else{YAHOO.log("mainClass is undefined for module "+d,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null};YAHOO.env.ua=function(){var b={ie:0,opera:0,gecko:0,webkit:0};var c=navigator.userAgent,a;if((/KHTML/).test(c)){b.webkit=1}a=c.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){b.webkit=parseFloat(a[1])}if(!b.webkit){a=c.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){b.opera=parseFloat(a[1])}else{a=c.match(/MSIE\s([^;]*)/);if(a&&a[1]){b.ie=parseFloat(a[1])}else{a=c.match(/Gecko\/([^\s]*)/);if(a){b.gecko=1;a=c.match(/rv:([^\s\)]*)/);if(a&&a[1]){b.gecko=parseFloat(a[1])}}}}}return b}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var d=YAHOO_config.listener,a=YAHOO.env.listeners,b=true,c;if(d){for(c=0;c<a.length;c=c+1){if(a[c]==d){b=false;break}}if(b){a.push(d)}}}})();YAHOO.lang={isArray:function(b){if(b){var a=YAHOO.lang;return a.isNumber(b.length)&&a.isFunction(b.splice)&&!a.hasOwnProperty(b.length)}return false},isBoolean:function(a){return typeof a==="boolean"},isFunction:function(a){return typeof a==="function"},isNull:function(a){return a===null},isNumber:function(a){return typeof a==="number"&&isFinite(a)},isObject:function(a){return(a&&(typeof a==="object"||YAHOO.lang.isFunction(a)))||false},isString:function(a){return typeof a==="string"},isUndefined:function(a){return typeof a==="undefined"},hasOwnProperty:function(a,b){if(Object.prototype.hasOwnProperty){return a.hasOwnProperty(b)}return !YAHOO.lang.isUndefined(a[b])&&a.constructor.prototype[b]!==a[b]},_IEEnumFix:function(e,f){if(YAHOO.env.ua.ie){var c=["toString","valueOf"],a;for(a=0;a<c.length;a=a+1){var b=c[a],d=f[b];if(YAHOO.lang.isFunction(d)&&d!=Object.prototype[b]){e[b]=d}}}},extend:function(c,b,d){if(!b||!c){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.")}var e=function(){};e.prototype=b.prototype;c.prototype=new e();c.prototype.constructor=c;c.superclass=b.prototype;if(b.prototype.constructor==Object.prototype.constructor){b.prototype.constructor=b}if(d){for(var a in d){c.prototype[a]=d[a]}YAHOO.lang._IEEnumFix(c.prototype,d)}},augmentObject:function(c,d){if(!d||!c){throw new Error("Absorb failed, verify dependencies.")}var a=arguments,e,b,f=a[2];if(f&&f!==true){for(e=2;e<a.length;e=e+1){c[a[e]]=d[a[e]]}}else{for(b in d){if(f||!c[b]){c[b]=d[b]}}YAHOO.lang._IEEnumFix(c,d)}},augmentProto:function(b,c){if(!c||!b){throw new Error("Augment failed, verify dependencies.")}var a=[b.prototype,c.prototype];for(var d=2;d<arguments.length;d=d+1){a.push(arguments[d])}YAHOO.lang.augmentObject.apply(this,a)},dump:function(d,h){var b=YAHOO.lang,a,i,f=[],e="{...}",c="f(){...}",g=", ",j=" => ";if(!b.isObject(d)){return d+""}else{if(d instanceof Date||("nodeType" in d&&"tagName" in d)){return d}else{if(b.isFunction(d)){return c}}}h=(b.isNumber(h))?h:3;if(b.isArray(d)){f.push("[");for(a=0,i=d.length;a<i;a=a+1){if(b.isObject(d[a])){f.push((h>0)?b.dump(d[a],h-1):e)}else{f.push(d[a])}f.push(g)}if(f.length>1){f.pop()}f.push("]")}else{f.push("{");for(a in d){if(b.hasOwnProperty(d,a)){f.push(a+j);if(b.isObject(d[a])){f.push((h>0)?b.dump(d[a],h-1):e)}else{f.push(d[a])}f.push(g)}}if(f.length>1){f.pop()}f.push("}")}return f.join("")},substitute:function(e,c,l){var o,p,q,i,h,f,a=YAHOO.lang,j=[],b,n="dump",k=" ",d="{",g="}";for(;;){o=e.lastIndexOf(d);if(o<0){break}p=e.indexOf(g,o);if(o+1>=p){break}b=e.substring(o+1,p);i=b;f=null;q=i.indexOf(k);if(q>-1){f=i.substring(q+1);i=i.substring(0,q)}h=c[i];if(l){h=l(i,h,f)}if(a.isObject(h)){if(a.isArray(h)){h=a.dump(h,parseInt(f,10))}else{f=f||"";var m=f.indexOf(n);if(m>-1){f=f.substring(4)}if(h.toString===Object.prototype.toString||m>-1){h=a.dump(h,parseInt(f,10))}else{h=h.toString()}}}else{if(!a.isString(h)&&!a.isNumber(h)){h="~-"+j.length+"-~";j[j.length]=b}}e=e.substring(0,o)+h+e.substring(p+1)}for(o=j.length-1;o>=0;o=o-1){e=e.replace(new RegExp("~-"+o+"-~"),"{"+j[o]+"}","g")}return e},trim:function(a){try{return a.replace(/^\s+|\s+$/g,"")}catch(b){return a}},merge:function(){var b={},a=arguments,c;for(c=0;c<a.length;c=c+1){YAHOO.lang.augmentObject(b,a[c],true)}return b},isValue:function(b){var a=YAHOO.lang;return(a.isObject(b)||a.isString(b)||a.isNumber(b)||a.isBoolean(b))}};YAHOO.util.Lang=YAHOO.lang;YAHOO.lang.augment=YAHOO.lang.augmentProto;YAHOO.augment=YAHOO.lang.augmentProto;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.3.1",build:"541"});(function(){var c=YAHOO.util,h,j,k=0,i={},m={};var b=YAHOO.env.ua.opera,g=YAHOO.env.ua.webkit,d=YAHOO.env.ua.gecko,l=YAHOO.env.ua.ie;var n={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var f=function(p){if(!n.HYPHEN.test(p)){return p}if(i[p]){return i[p]}var o=p;while(n.HYPHEN.exec(o)){o=o.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}i[p]=o;return o};var e=function(o){var p=m[o];if(!p){p=new RegExp("(?:^|\\s+)"+o+"(?:\\s+|$)");m[o]=p}return p};if(document.defaultView&&document.defaultView.getComputedStyle){h=function(r,o){var p=null;if(o=="float"){o="cssFloat"}var q=document.defaultView.getComputedStyle(r,"");if(q){p=q[f(o)]}return r.style[o]||p}}else{if(document.documentElement.currentStyle&&l){h=function(s,q){switch(f(q)){case"opacity":var o=100;try{o=s.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(p){try{o=s.filters("alpha").opacity}catch(p){}}return o/100;case"float":q="styleFloat";default:var r=s.currentStyle?s.currentStyle[q]:null;return(s.style[q]||r)}}}else{h=function(p,o){return p.style[o]}}}if(l){j=function(q,p,o){switch(p){case"opacity":if(YAHOO.lang.isString(q.style.filter)){q.style.filter="alpha(opacity="+o*100+")";if(!q.currentStyle||!q.currentStyle.hasLayout){q.style.zoom=1}}break;case"float":p="styleFloat";default:q.style[p]=o}}}else{j=function(q,p,o){if(p=="float"){p="cssFloat"}q.style[p]=o}}var a=function(p,o){return p&&p.nodeType==1&&(!o||o(p))};YAHOO.util.Dom={get:function(p){if(p&&(p.tagName||p.item)){return p}if(YAHOO.lang.isString(p)||!p){return document.getElementById(p)}if(p.length!==undefined){var o=[];for(var q=0,r=p.length;q<r;++q){o[o.length]=c.Dom.get(p[q])}return o}return p},getStyle:function(q,o){o=f(o);var p=function(r){return h(r,o)};return c.Dom.batch(q,p,c.Dom,true)},setStyle:function(r,p,o){p=f(p);var q=function(s){j(s,p,o)};c.Dom.batch(r,q,c.Dom,true)},getXY:function(p){var o=function(u){if((u.parentNode===null||u.offsetParent===null||this.getStyle(u,"display")=="none")&&u!=document.body){return false}var v=null;var q=[];var t;var s=u.ownerDocument;if(u.getBoundingClientRect){t=u.getBoundingClientRect();return[t.left+c.Dom.getDocumentScrollLeft(u.ownerDocument),t.top+c.Dom.getDocumentScrollTop(u.ownerDocument)]}else{q=[u.offsetLeft,u.offsetTop];v=u.offsetParent;var r=this.getStyle(u,"position")=="absolute";if(v!=u){while(v){q[0]+=v.offsetLeft;q[1]+=v.offsetTop;if(g&&!r&&this.getStyle(v,"position")=="absolute"){r=true}v=v.offsetParent}}if(g&&r){q[0]-=u.ownerDocument.body.offsetLeft;q[1]-=u.ownerDocument.body.offsetTop}}v=u.parentNode;while(v.tagName&&!n.ROOT_TAG.test(v.tagName)){if(c.Dom.getStyle(v,"display").search(/^inline|table-row.*$/i)){q[0]-=v.scrollLeft;q[1]-=v.scrollTop}v=v.parentNode}return q};return c.Dom.batch(p,o,c.Dom,true)},getX:function(p){var o=function(q){return c.Dom.getXY(q)[0]};return c.Dom.batch(p,o,c.Dom,true)},getY:function(p){var o=function(q){return c.Dom.getXY(q)[1]};return c.Dom.batch(p,o,c.Dom,true)},setXY:function(r,o,p){var q=function(u){var v=this.getStyle(u,"position");if(v=="static"){this.setStyle(u,"position","relative");v="relative"}var s=this.getXY(u);if(s===false){return false}var t=[parseInt(this.getStyle(u,"left"),10),parseInt(this.getStyle(u,"top"),10)];if(isNaN(t[0])){t[0]=(v=="relative")?0:u.offsetLeft}if(isNaN(t[1])){t[1]=(v=="relative")?0:u.offsetTop}if(o[0]!==null){u.style.left=o[0]-s[0]+t[0]+"px"}if(o[1]!==null){u.style.top=o[1]-s[1]+t[1]+"px"}if(!p){var w=this.getXY(u);if((o[0]!==null&&w[0]!=o[0])||(o[1]!==null&&w[1]!=o[1])){this.setXY(u,o,true)}}};c.Dom.batch(r,q,c.Dom,true)},setX:function(o,p){c.Dom.setXY(o,[p,null])},setY:function(p,o){c.Dom.setXY(p,[null,o])},getRegion:function(p){var o=function(r){if((r.parentNode===null||r.offsetParent===null||this.getStyle(r,"display")=="none")&&r!=document.body){return false}var q=c.Region.getRegion(r);return q};return c.Dom.batch(p,o,c.Dom,true)},getClientWidth:function(){return c.Dom.getViewportWidth()},getClientHeight:function(){return c.Dom.getViewportHeight()},getElementsByClassName:function(s,o,r,q){o=o||"*";r=(r)?c.Dom.get(r):null||document;if(!r){return[]}var v=[],w=r.getElementsByTagName(o),p=e(s);for(var u=0,t=w.length;u<t;++u){if(p.test(w[u].className)){v[v.length]=w[u];if(q){q.call(w[u],w[u])}}}return v},hasClass:function(p,q){var r=e(q);var o=function(s){return r.test(s.className)};return c.Dom.batch(p,o,c.Dom,true)},addClass:function(p,q){var o=function(r){if(this.hasClass(r,q)){return false}r.className=YAHOO.lang.trim([r.className,q].join(" "));return true};return c.Dom.batch(p,o,c.Dom,true)},removeClass:function(p,q){var r=e(q);var o=function(t){if(!this.hasClass(t,q)){return false}var s=t.className;t.className=s.replace(r," ");if(this.hasClass(t,q)){this.removeClass(t,q)}t.className=YAHOO.lang.trim(t.className);return true};return c.Dom.batch(p,o,c.Dom,true)},replaceClass:function(p,r,s){if(!s||r===s){return false}var q=e(r);var o=function(t){if(!this.hasClass(t,r)){this.addClass(t,s);return true}t.className=t.className.replace(q," "+s+" ");if(this.hasClass(t,r)){this.replaceClass(t,r,s)}t.className=YAHOO.lang.trim(t.className);return true};return c.Dom.batch(p,o,c.Dom,true)},generateId:function(q,o){o=o||"yui-gen";var p=function(s){if(s&&s.id){return s.id}var r=o+k++;if(s){s.id=r}return r};return c.Dom.batch(q,p,c.Dom,true)||p.apply(c.Dom,arguments)},isAncestor:function(p,o){p=c.Dom.get(p);if(!p||!o){return false}var q=function(r){if(p.contains&&r.nodeType&&!g){return p.contains(r)}else{if(p.compareDocumentPosition&&r.nodeType){return !!(p.compareDocumentPosition(r)&16)}else{if(r.nodeType){return !!this.getAncestorBy(r,function(s){return s==p})}}}return false};return c.Dom.batch(o,q,c.Dom,true)},inDocument:function(p){var o=function(q){if(g){while(q=q.parentNode){if(q==document.documentElement){return true}}return false}return this.isAncestor(document.documentElement,q)};return c.Dom.batch(p,o,c.Dom,true)},getElementsBy:function(o,u,t,r){u=u||"*";t=(t)?c.Dom.get(t):null||document;if(!t){return[]}var s=[],p=t.getElementsByTagName(u);for(var q=0,v=p.length;q<v;++q){if(o(p[q])){s[s.length]=p[q];if(r){r(p[q])}}}return s},batch:function(r,o,p,t){r=(r&&(r.tagName||r.item))?r:c.Dom.get(r);if(!r||!o){return false}var s=(t)?p:window;if(r.tagName||r.length===undefined){return o.call(s,r,p)}var q=[];for(var u=0,v=r.length;u<v;++u){q[q.length]=o.call(s,r[u],p)}return q},getDocumentHeight:function(){var o=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;var p=Math.max(o,c.Dom.getViewportHeight());return p},getDocumentWidth:function(){var o=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;var p=Math.max(o,c.Dom.getViewportWidth());return p},getViewportHeight:function(){var p=self.innerHeight;var o=document.compatMode;if((o||l)&&!b){p=(o=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return p},getViewportWidth:function(){var p=self.innerWidth;var o=document.compatMode;if(o||l){p=(o=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return p},getAncestorBy:function(p,o){while(p=p.parentNode){if(a(p,o)){return p}}return null},getAncestorByClassName:function(p,q){p=c.Dom.get(p);if(!p){return null}var o=function(r){return c.Dom.hasClass(r,q)};return c.Dom.getAncestorBy(p,o)},getAncestorByTagName:function(p,q){p=c.Dom.get(p);if(!p){return null}var o=function(r){return r.tagName&&r.tagName.toUpperCase()==q.toUpperCase()};return c.Dom.getAncestorBy(p,o)},getPreviousSiblingBy:function(p,o){while(p){p=p.previousSibling;if(a(p,o)){return p}}return null},getPreviousSibling:function(o){o=c.Dom.get(o);if(!o){return null}return c.Dom.getPreviousSiblingBy(o)},getNextSiblingBy:function(p,o){while(p){p=p.nextSibling;if(a(p,o)){return p}}return null},getNextSibling:function(o){o=c.Dom.get(o);if(!o){return null}return c.Dom.getNextSiblingBy(o)},getFirstChildBy:function(q,o){var p=(a(q.firstChild,o))?q.firstChild:null;return p||c.Dom.getNextSiblingBy(q.firstChild,o)},getFirstChild:function(p,o){p=c.Dom.get(p);if(!p){return null}return c.Dom.getFirstChildBy(p)},getLastChildBy:function(q,o){if(!q){return null}var p=(a(q.lastChild,o))?q.lastChild:null;return p||c.Dom.getPreviousSiblingBy(q.lastChild,o)},getLastChild:function(o){o=c.Dom.get(o);return c.Dom.getLastChildBy(o)},getChildrenBy:function(q,o){var p=c.Dom.getFirstChildBy(q,o);var r=p?[p]:[];c.Dom.getNextSiblingBy(p,function(s){if(!o||o(s)){r[r.length]=s}return false});return r},getChildren:function(o){o=c.Dom.get(o);if(!o){}return c.Dom.getChildrenBy(o)},getDocumentScrollLeft:function(o){o=o||document;return Math.max(o.documentElement.scrollLeft,o.body.scrollLeft)},getDocumentScrollTop:function(o){o=o||document;return Math.max(o.documentElement.scrollTop,o.body.scrollTop)},insertBefore:function(o,p){o=c.Dom.get(o);p=c.Dom.get(p);if(!o||!p||!p.parentNode){return null}return p.parentNode.insertBefore(o,p)},insertAfter:function(o,p){o=c.Dom.get(o);p=c.Dom.get(p);if(!o||!p||!p.parentNode){return null}if(p.nextSibling){return p.parentNode.insertBefore(o,p.nextSibling)}else{return p.parentNode.appendChild(o)}}}})();YAHOO.util.Region=function(c,b,a,d){this.top=c;this[1]=c;this.right=b;this.bottom=a;this.left=d;this[0]=d};YAHOO.util.Region.prototype.contains=function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(b){var d=Math.max(this.top,b.top);var c=Math.min(this.right,b.right);var a=Math.min(this.bottom,b.bottom);var e=Math.max(this.left,b.left);if(a>=d&&c>=e){return new YAHOO.util.Region(d,c,a,e)}else{return null}};YAHOO.util.Region.prototype.union=function(b){var d=Math.min(this.top,b.top);var c=Math.max(this.right,b.right);var a=Math.max(this.bottom,b.bottom);var e=Math.min(this.left,b.left);return new YAHOO.util.Region(d,c,a,e)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};YAHOO.util.Region.getRegion=function(d){var b=YAHOO.util.Dom.getXY(d);var e=b[1];var c=b[0]+d.offsetWidth;var a=b[1]+d.offsetHeight;var f=b[0];return new YAHOO.util.Region(e,c,a,f)};YAHOO.util.Point=function(a,b){if(YAHOO.lang.isArray(a)){b=a[1];a=a[0]}this.x=this.right=this.left=this[0]=a;this.y=this.top=this.bottom=this[1]=b};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.3.1",build:"541"});YAHOO.util.CustomEvent=function(c,e,d,a){this.type=c;this.scope=e||window;this.silent=d;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var b="_YUICEOnSubscribe";if(c!==b){this.subscribeEvent=new YAHOO.util.CustomEvent(b,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(c,b,a){if(!c){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(c,b,a)}this.subscribers.push(new YAHOO.util.Subscriber(c,b,a))},unsubscribe:function(d,b){if(!d){return this.unsubscribeAll()}var c=false;for(var f=0,a=this.subscribers.length;f<a;++f){var e=this.subscribers[f];if(e&&e.contains(d,b)){this._delete(f);c=true}}return c},fire:function(){var l=this.subscribers.length;if(!l&&this.silent){return true}var i=[],j=true,a,h=false;for(a=0;a<arguments.length;++a){i.push(arguments[a])}var d=i.length;if(!this.silent){}for(a=0;a<l;++a){var e=this.subscribers[a];if(!e){h=true}else{if(!this.silent){}var f=e.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var c=null;if(i.length>0){c=i[0]}try{j=e.fn.call(f,c,e.obj)}catch(k){this.lastError=k}}else{try{j=e.fn.call(f,this.type,i,e.obj)}catch(k){this.lastError=k}}if(false===j){if(!this.silent){}return false}}}if(h){var g=[],b=this.subscribers;for(a=0,l=b.length;a<l;a=a+1){g.push(b[a])}this.subscribers=g}return true},unsubscribeAll:function(){for(var b=0,a=this.subscribers.length;b<a;++b){this._delete(a-1-b)}this.subscribers=[];return b},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj}this.subscribers[a]=null},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};YAHOO.util.Subscriber=function(c,b,a){this.fn=c;this.obj=YAHOO.lang.isUndefined(b)?null:b;this.override=a};YAHOO.util.Subscriber.prototype.getScope=function(a){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return a};YAHOO.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b)}else{return(this.fn==a)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var h=false;var f=false;var g=[];var e=[];var i=[];var k=[];var b=0;var j=[];var c=[];var d=0;var a={63232:38,63233:40,63234:37,63235:39};return{POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,startInterval:function(){if(!this._interval){var l=this;var m=function(){l._tryPreloadAttach()};this._interval=setInterval(m,this.POLL_INTERVAL)}},onAvailable:function(n,l,m,o){j.push({id:n,fn:l,obj:m,override:o,checkReady:false});b=this.POLL_RETRYS;this.startInterval()},onDOMReady:function(l,m,n){if(f){setTimeout(function(){var o=window;if(n){if(n===true){o=m}else{o=n}}l.call(o,"DOMReady",[],m)},0)}else{this.DOMReadyEvent.subscribe(l,m,n)}},onContentReady:function(n,l,m,o){j.push({id:n,fn:l,obj:m,override:o,checkReady:true});b=this.POLL_RETRYS;this.startInterval()},addListener:function(x,z,o,t,y){if(!o||!o.call){return false}if(this._isValidCollection(x)){var n=true;for(var s=0,q=x.length;s<q;++s){n=this.on(x[s],z,o,t,y)&&n}return n}else{if(YAHOO.lang.isString(x)){var u=this.getEl(x);if(u){x=u}else{this.onAvailable(x,function(){YAHOO.util.Event.on(x,z,o,t,y)});return true}}}if(!x){return false}if("unload"==z&&t!==this){e[e.length]=[x,z,o,t,y];return true}var l=x;if(y){if(y===true){l=t}else{l=y}}var w=function(A){return o.call(l,YAHOO.util.Event.getEvent(A,x),t)};var m=[x,z,o,w,l,t,y];var r=g.length;g[r]=m;if(this.useLegacyEvent(x,z)){var v=this.getLegacyIndex(x,z);if(v==-1||x!=i[v][0]){v=i.length;c[x.id+z]=v;i[v]=[x,z,x["on"+z]];k[v]=[];x["on"+z]=function(A){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(A),v)}}k[v].push(m)}else{try{this._simpleAdd(x,z,w,false)}catch(p){this.lastError=p;this.removeListener(x,z,o);return false}}return true},fireLegacyEvent:function(q,s){var o=true,u,m,n,l,p;m=k[s];for(var t=0,r=m.length;t<r;++t){n=m[t];if(n&&n[this.WFN]){l=n[this.ADJ_SCOPE];p=n[this.WFN].call(l,q);o=(o&&p)}}u=i[s];if(u&&u[2]){u[2](q)}return o},getLegacyIndex:function(n,m){var l=this.generateId(n)+m;if(typeof c[l]=="undefined"){return -1}else{return c[l]}},useLegacyEvent:function(n,m){if(this.webkit&&("click"==m||"dblclick"==m)){var l=parseInt(this.webkit,10);if(!isNaN(l)&&l<418){return true}}return false},removeListener:function(v,w,n){var s,p,l;if(typeof v=="string"){v=this.getEl(v)}else{if(this._isValidCollection(v)){var m=true;for(s=0,p=v.length;s<p;++s){m=(this.removeListener(v[s],w,n)&&m)}return m}}if(!n||!n.call){return this.purgeElement(v,false,w)}if("unload"==w){for(s=0,p=e.length;s<p;s++){l=e[s];if(l&&l[0]==v&&l[1]==w&&l[2]==n){e[s]=null;return true}}return false}var r=null;var q=arguments[3];if("undefined"===typeof q){q=this._getCacheIndex(v,w,n)}if(q>=0){r=g[q]}if(!v||!r){return false}if(this.useLegacyEvent(v,w)){var t=this.getLegacyIndex(v,w);var u=k[t];if(u){for(s=0,p=u.length;s<p;++s){l=u[s];if(l&&l[this.EL]==v&&l[this.TYPE]==w&&l[this.FN]==n){u[s]=null;break}}}}else{try{this._simpleRemove(v,w,r[this.WFN],false)}catch(o){this.lastError=o;return false}}delete g[q][this.WFN];delete g[q][this.FN];g[q]=null;return true},getTarget:function(m,n){var l=m.target||m.srcElement;return this.resolveTextNode(l)},resolveTextNode:function(l){if(l&&3==l.nodeType){return l.parentNode}else{return l}},getPageX:function(m){var l=m.pageX;if(!l&&0!==l){l=m.clientX||0;if(this.isIE){l+=this._getScrollLeft()}}return l},getPageY:function(l){var m=l.pageY;if(!m&&0!==m){m=l.clientY||0;if(this.isIE){m+=this._getScrollTop()}}return m},getXY:function(l){return[this.getPageX(l),this.getPageY(l)]},getRelatedTarget:function(m){var l=m.relatedTarget;if(!l){if(m.type=="mouseout"){l=m.toElement}else{if(m.type=="mouseover"){l=m.fromElement}}}return this.resolveTextNode(l)},getTime:function(m){if(!m.time){var n=new Date().getTime();try{m.time=n}catch(l){this.lastError=l;return n}}return m.time},stopEvent:function(l){this.stopPropagation(l);this.preventDefault(l)},stopPropagation:function(l){if(l.stopPropagation){l.stopPropagation()}else{l.cancelBubble=true}},preventDefault:function(l){if(l.preventDefault){l.preventDefault()}else{l.returnValue=false}},getEvent:function(n,p){var o=n||window.event;if(!o){var m=this.getEvent.caller;while(m){o=m.arguments[0];if(o&&Event==o.constructor){break}m=m.caller}}if(o&&this.isIE){try{var q=o.srcElement;if(q){var r=q.type}}catch(l){o.target=p}}return o},getCharCode:function(m){var l=m.keyCode||m.charCode||0;if(YAHOO.env.ua.webkit&&(l in a)){l=a[l]}return l},_getCacheIndex:function(n,m,o){for(var p=0,q=g.length;p<q;++p){var l=g[p];if(l&&l[this.FN]==o&&l[this.EL]==n&&l[this.TYPE]==m){return p}}return -1},generateId:function(l){var m=l.id;if(!m){m="yuievtautoid-"+d;++d;l.id=m}return m},_isValidCollection:function(m){try{return(typeof m!=="string"&&m.length&&!m.tagName&&!m.alert&&typeof m[0]!=="undefined")}catch(l){return false}},elCache:{},getEl:function(l){return(typeof l==="string")?document.getElementById(l):l},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(m){if(!h){h=true;var l=YAHOO.util.Event;l._ready();l._tryPreloadAttach()}},_ready:function(m){if(!f){f=true;var l=YAHOO.util.Event;l.DOMReadyEvent.fire();l._simpleRemove(document,"DOMContentLoaded",l._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!f){this.startInterval();return false}}this.locked=true;var n=!h;if(!n){n=(b>0)}var o=[];var m=function(t,s){var u=t;if(s.override){if(s.override===true){u=s.obj}else{u=s.override}}s.fn.call(u,s.obj)};var r,l,p,q;for(r=0,l=j.length;r<l;++r){p=j[r];if(p&&!p.checkReady){q=this.getEl(p.id);if(q){m(q,p);j[r]=null}else{o.push(p)}}}for(r=0,l=j.length;r<l;++r){p=j[r];if(p&&p.checkReady){q=this.getEl(p.id);if(q){if(h||q.nextSibling){m(q,p);j[r]=null}}else{o.push(p)}}}b=(o.length===0)?0:b-1;if(n){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(p,o,m){var n=this.getListeners(p,m),q,l;if(n){for(q=0,l=n.length;q<l;++q){var r=n[q];this.removeListener(p,r.type,r.fn,r.index)}}if(o&&p&&p.childNodes){for(q=0,l=p.childNodes.length;q<l;++q){this.purgeElement(p.childNodes[q],o,m)}}},getListeners:function(r,t){var o=[],s;if(!t){s=[g,e]}else{if(t=="unload"){s=[e]}else{s=[g]}}for(var p=0;p<s.length;p=p+1){var l=s[p];if(l&&l.length>0){for(var n=0,m=l.length;n<m;++n){var q=l[n];if(q&&q[this.EL]===r&&(!t||t===q[this.TYPE])){o.push({type:q[this.TYPE],fn:q[this.FN],obj:q[this.OBJ],adjust:q[this.OVERRIDE],scope:q[this.ADJ_SCOPE],index:n})}}}}return(o.length)?o:null},_unload:function(m){var n=YAHOO.util.Event,p,q,s,l,r;for(p=0,l=e.length;p<l;++p){s=e[p];if(s){var o=window;if(s[n.ADJ_SCOPE]){if(s[n.ADJ_SCOPE]===true){o=s[n.UNLOAD_OBJ]}else{o=s[n.ADJ_SCOPE]}}s[n.FN].call(o,n.getEvent(m,s[n.EL]),s[n.UNLOAD_OBJ]);e[p]=null;s=null;o=null}}e=null;if(g&&g.length>0){q=g.length;while(q){r=q-1;s=g[r];if(s){n.removeListener(s[n.EL],s[n.TYPE],s[n.FN],r)}q=q-1}s=null;n.clearCache()}for(p=0,l=i.length;p<l;++p){i[p][0]=null;i[p]=null}i=null;n._simpleRemove(window,"unload",n._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var l=document.documentElement,m=document.body;if(l&&(l.scrollTop||l.scrollLeft)){return[l.scrollTop,l.scrollLeft]}else{if(m){return[m.scrollTop,m.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(n,m,o,l){n.addEventListener(m,o,(l))}}else{if(window.attachEvent){return function(n,m,o,l){n.attachEvent("on"+m,o)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(n,m,o,l){n.removeEventListener(m,o,(l))}}else{if(window.detachEvent){return function(n,m,l){n.detachEvent("on"+m,l)}}else{return function(){}}}}()}}();(function(){var c=YAHOO.util.Event;c.on=c.addListener;if(c.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var e,b=document,a=b.body;if(("undefined"!==typeof YAHOO_config)&&YAHOO_config.injecting){e=document.createElement("script");var d=b.getElementsByTagName("head")[0]||a;d.insertBefore(e,d.firstChild)}else{b.write('<script id="_yui_eu_dr" defer="true" src="//:"><\/script>');e=document.getElementById("_yui_eu_dr")}if(e){e.onreadystatechange=function(){if("complete"===this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready()}}}else{}e=null}else{if(c.webkit){c._drwatch=setInterval(function(){var f=document.readyState;if("loaded"==f||"complete"==f){clearInterval(c._drwatch);c._drwatch=null;c._ready()}},c.POLL_INTERVAL)}else{c._simpleAdd(document,"DOMContentLoaded",c._ready)}}c._simpleAdd(window,"load",c._load);c._simpleAdd(window,"unload",c._unload);c._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,e,b,c){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[a];if(d){d.subscribe(e,b,c)}else{this.__yui_subscribers=this.__yui_subscribers||{};var f=this.__yui_subscribers;if(!f[a]){f[a]=[]}f[a].push({fn:e,obj:b,override:c})}},unsubscribe:function(f,d,b){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(f){var c=a[f];if(c){return c.unsubscribe(d,b)}}else{var g=true;for(var e in a){if(YAHOO.lang.hasOwnProperty(a,e)){g=g&&a[e].unsubscribe(d,b)}}return g}return false},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(g,a){this.__yui_events=this.__yui_events||{};var d=a||{};var e=this.__yui_events;if(e[g]){}else{var f=d.scope||this;var i=(d.silent);var c=new YAHOO.util.CustomEvent(g,f,i,YAHOO.util.CustomEvent.FLAT);e[g]=c;if(d.onSubscribeCallback){c.subscribeEvent.subscribe(d.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var h=this.__yui_subscribers[g];if(h){for(var b=0;b<h.length;++b){c.subscribe(h[b].fn,h[b].obj,h[b].override)}}}return e[g]},fireEvent:function(d,e,a,f){this.__yui_events=this.__yui_events||{};var b=this.__yui_events[d];if(!b){return null}var g=[];for(var c=1;c<arguments.length;++c){g.push(arguments[c])}return b.fire.apply(b,g)},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true}}return false}};YAHOO.util.KeyListener=function(a,b,f,e){if(!a){}else{if(!b){}else{if(!f){}}}if(!e){e=YAHOO.util.KeyListener.KEYDOWN}var d=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof a=="string"){a=document.getElementById(a)}if(typeof f=="function"){d.subscribe(f)}else{d.subscribe(f.fn,f.scope,f.correctScope)}function c(g,h){if(!b.shift){b.shift=false}if(!b.alt){b.alt=false}if(!b.ctrl){b.ctrl=false}if(g.shiftKey==b.shift&&g.altKey==b.alt&&g.ctrlKey==b.ctrl){var j;var k;if(b.keys instanceof Array){for(var i=0;i<b.keys.length;i++){j=b.keys[i];if(j==g.charCode){d.fire(g.charCode,g);break}else{if(j==g.keyCode){d.fire(g.keyCode,g);break}}}}else{j=b.keys;if(j==g.charCode){d.fire(g.charCode,g)}else{if(j==g.keyCode){d.fire(g.keyCode,g)}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(a,e,c);this.enabledEvent.fire(b)}this.enabled=true};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(a,e,c);this.disabledEvent.fire(b)}this.enabled=false};this.toString=function(){return"KeyListener ["+b.keys+"] "+a.tagName+(a.id?"["+a.id+"]":"")}};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.3.1",build:"541"});YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.3.1",build:"541"});
if(typeof SKYPE=="undefined"){var SKYPE={}}SKYPE.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;++e){f=b[e].split(".");g=SKYPE;for(c=(f[0]=="SKYPE")?1:0;c<f.length;++c){g[f[c]]=g[f[c]]||{};g=g[f[c]]}}return g};SKYPE.__log_enabled=null;SKYPE.log=function(d,a,c){var b=YAHOO.lang;if(SKYPE.__log_enabled===null){SKYPE.__log_enabled=(location.host.indexOf(".test")>-1||document.cookie.indexOf("debug")>-1||location.search.indexOf("debug")>-1);if(!SKYPE.__log_enabled){return}SKYPE.__log_type=null;if(YAHOO.widget.Logger&&YAHOO.widget.Logger.log){SKYPE.__log_type="yui"}else{if(YAHOO.env.ua.gecko&&typeof console!="undefined"&&(b.isFunction(console.log)||b.isObject(console.log))){SKYPE.__log_type="firebug"}else{if(YAHOO.env.ua.webkit&&b.isObject(window.console)&&b.isFunction(window.console.log)){SKYPE.__log_type="webkit"}else{if(YAHOO.env.ua.opera&&b.isObject(opera)&&b.isFunction(opera.postError)){SKYPE.__log_type="opera"}}}}}if(!SKYPE.__log_enabled){return}switch(SKYPE.__log_type){case"yui":return YAHOO.widget.Logger.log(d,a,c);break;case"firebug":if(a&&(b.isFunction(console[a])||b.isObject(console[a]))){console[a](d)}else{console.log((a?"["+a.toUpperCase()+"] ":"")+d)}break;case"webkit":window.console.log((a?"["+a.toUpperCase()+"] ":"")+d);break;case"opera":opera.postError((a?"["+a.toUpperCase()+"] ":"")+d);break}};SKYPE.register=function(a,f,e){var k=SKYPE.env.modules;if(!k[a]){k[a]={versions:[],builds:[]}}var c=k[a],j=e.version,h=e.build,g=SKYPE.env.listeners;c.name=a;c.version=j;c.build=h;c.versions.push(j);c.builds.push(h);c.mainClass=f;for(var d=0;d<g.length;d=d+1){g[d](c)}if(f){f.VERSION=j;f.BUILD=h}else{SKYPE.log("mainClass is undefined for module "+a,"warn")}};SKYPE.env=SKYPE.env||{modules:[],listeners:[]};SKYPE.env.getVersion=function(a){return SKYPE.env.modules[a]||null};SKYPE.namespace("util","user");SKYPE.util.Browser=function(){var a=navigator.userAgent.toLowerCase();var h=document.compatMode=="CSS1Compat";var d=a.indexOf("opera")>-1;var j=/webkit|khtml/.test(a);var e=a.indexOf("msie")>-1;var g=a.indexOf("msie 7")>-1;var b=!j&&a.indexOf("gecko")>-1;var k=e&&!h;var f=(a.indexOf("windows")!=-1||a.indexOf("win32")!=-1);var i=(a.indexOf("macintosh")!=-1||a.indexOf("mac os x")!=-1);var c=/x11|linux|freebsd|netbsd/.test(a);return{isStrict:h,isOpera:d,isSafari:j,isIE:e,isIE7:g,isGecko:b,isBorderBox:k,isWindows:f,isMac:i,isLinux:c}}();SKYPE.register("skype",SKYPE,{version:"1.0.0",build:"1"});
SKYPE.namespace("navigation");SKYPE.namespace("util");SKYPE.namespace("user");SKYPE.navigation.mouseOverTabs=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){var c=b.getElementsBy(function(e){return e},"li","mainNavigation");for(var d=0;d<c.length;d++){if(!b.hasClass(c[d],"active")){a.addListener(c[d],"mouseover",function(){b.addClass(this,"hover")});a.addListener(c[d],"mouseout",function(){b.removeClass(this,"hover")})}}})}();SKYPE.navigation.removeIEFlicker=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){if(SKYPE.util.Browser.isIE&&!SKYPE.util.Browser.isIE7){try{document.execCommand("BackgroundImageCache",false,true)}catch(c){}}})}();SKYPE.navigation.clearSearchInput=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){if(b.get("google-input")){var d=b.get("google-input");var c=d.value;a.addListener(d,"focus",function(){if(d.value==c){d.value=""}});a.addListener(d,"blur",function(){if(d.value==""){d.value=c}})}})}();SKYPE.navigation.changeLanguage=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){a.addListener(b.get("userLanguage"),"change",function(){var f=b.get("userPreferencesForm").action.replace(/(%5B|\[)LC(%5D|\])/g,b.get("userLanguage").options[b.get("userLanguage").selectedIndex].value);SKYPE.user.Preferences.setLanguage(b.get("userLanguage").options[b.get("userLanguage").selectedIndex].value);SKYPE.user.Preferences.save();if(!b.get("userLanguage").options[b.get("userLanguage").selectedIndex].value.match("(zh-Hans|cs|da|nl|et|fi|ko|no|hu|pt-pt|es-world|ar)")&&!window.location.hostname.match("secure|search|share|support|about|jobs")){var d=new RegExp("(^"+window.location.protocol+"//"+window.location.hostname+"/)(intl/[a-zA-Z-]{2,8})?/?(.*)");var c=d.exec(window.location);if(typeof c[1]!=undefined){var e=c[1];e+="intl/"+b.get("userLanguage").options[b.get("userLanguage").selectedIndex].value+"/";if(typeof c[3]!=undefined){e+=c[3]}f=e}}window.location=f})})}();SKYPE.navigation.buttonHovers=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){var d=b.getElementsByClassName("button","a");for(var c=0;c<d.length;c++){a.addListener(d[c],"mouseover",function(){b.addClass(this,"buttonHover")});a.addListener(d[c],"mouseout",function(){b.removeClass(this,"buttonHover")});a.addListener(d[c],"mousedown",function(){b.addClass(this,"buttonActive")})}})}();SKYPE.loadImgPngAlpha=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.addListener(window,"load",function(){SKYPE.imgPngAlpha()})}();SKYPE.imgPngAlpha=function(){var a=YAHOO.util.Dom;var k=YAHOO.util.Event;if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){for(var d=0;d<document.images.length;d++){var e=document.images[d];var h=e.src.toUpperCase();if(h.substring(h.length-3,h.length)=="PNG"&&e.className.indexOf("alphaPng",0)!=-1){var f=(e.id)?"id='"+e.id+"' ":"";var j=(e.className)?"class='"+e.className+"' ":"";var c=(e.title)?"title='"+e.title+"' ":"title='"+e.alt+"' ";var g="display:inline-block;"+e.style.cssText;if(e.align=="left"){g="float:left;"+g}if(e.align=="right"){g="float:right;"+g}if(e.parentElement.href){g="cursor:hand;"+g}var b="<span "+f+j+c+' style="width:'+e.width+"px; height:"+e.height+"px;"+g+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e.src+"', sizingMethod='scale');\"></span>";e.outerHTML=b;d=d-1}}}};SKYPE.util.Cookie=function(a,c,b,g,e,f,d,h){this.document=a;this.name=c;if(b){this.expiration=new Date((new Date()).getTime()+b*3600000)}else{this.expiration=null}this.path=g?g:null;this.domain=e?e:null;this.secure=f?true:false;this.fieldsep=d?d:":";this.valuesep=h?h:"&";this.isSimpleValue=false;this.data={}};SKYPE.util.Cookie.prototype={store:function(e){var d="";var b="";var c=[];if(typeof this.data=="object"){for(var f in this.data){c.push(f)}if(e){c.sort()}for(var a=0;a<c.length;a++){if(d!=""){d+=this.fieldsep}d+=c[a]+this.valuesep+escape(this.data[c[a]])}}else{d=escape(this.data.toString())}b=this.name+"="+d;if(this.expiration){b+="; expires="+this.expiration.toGMTString()}if(this.path){b+="; path="+this.path}if(this.domain){b+="; domain="+this.domain}if(this.secure){b+="; secure"}this.document.cookie=b},load:function(){if(this.isSimpleValue&&typeof this.data!="string"){this.data=this.data.toString()}var e=this.document.cookie;if(e==""){return false}var g=e.indexOf(this.name+"=");if(g==-1){return false}g+=this.name.length+1;var c=e.indexOf(";",g);if(c==-1){c=e.length}var f=e.substring(g,c);if(!this.isSimpleValue){var b=f.split(this.fieldsep);for(var d=0;d<b.length;d++){b[d]=b[d].split(this.valuesep)}for(var d=0;d<b.length;d++){this.data[b[d][0]]=unescape(b[d][1])}}else{this.data=f}return true},remove:function(){var a=this.name+"=";if(this.path){a+="; path="+this.path}if(this.domain){a+="; domain="+this.domain}a+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.document.cookie=a}};SKYPE.user.Preferences=function(){var h={LC:"",CCY:"",CC:"",TZ:"",VER:"",TS:"",TM:"",VAT:"",UCP:"",ENV:""};var d=null;var g="SC";var b=null;var j="/";var a=false;var c=null;var f=false;var e={"0":"windows","1":"pocketpc","2":"linux","3":"osx"};return{init:function(){this.setDomain();c=365;this.parseCookie()},getCookie:function(){var k=new SKYPE.util.Cookie(document,g,c,j,d,a,":","=");k.load();return k},scrubCookieValue:function(k){return k.replace(/[\n\r]/g,"").replace(/</g,"&lt;").replace(/>/g,"&gt;")},setDomain:function(m){if(m){d=m}else{if(location&&location.hostname){var l=location.hostname.split(".");var k=l.length;if(k>=2&&isNaN(parseInt(l[k-1]))){d="."+l[k-2]+"."+l[k-1]}}}},parseCookie:function(){b=this.getCookie();var l={LC:"setLanguage",CCY:"setCurrency",CC:"setCountryCode",TZ:"setTimezone",VER:"setVersion",TS:"setTimeStamp",TM:"setTimeModified",VAT:"setVatEligible",UCP:"setClientProfile"};f=true;for(var k in b.data){if(k.search(/[A-Z]+/)!=-1){if(l[k]){this[l[k]](b.data[k])}else{this.setValue(k,b.data[k])}}}f=false;return true},save:function(){for(var k in h){b.data[k]=h[k]}b.store(true)},clear:function(){b.remove()},getValue:function(k,l){if(typeof l=="undefined"){l=""}if(h[k]&&h[k]!=null&&h[k].length){return h[k]}return l},setValue:function(k,l){h[k]=l.toString()},touchCookie:function(){var k=parseInt(new Date().getTime()/1000);if(f){return false}if(!this.getTimeStamp().length){this.setValue("TS",k)}this.setValue("TM",k);return true},setLanguage:function(k){this.setValue("LC",k.replace(/_/g,"-"));this.touchCookie();return true},getLanguage:function(k){return this.getValue("LC",k)},setCurrency:function(k){if(/^([A-Z]{3}|[0-9]{3})$/.test(k)==false){k=""}this.setValue("CCY",k);this.touchCookie();return true},getCurrency:function(k){return this.getValue("CCY",k)},setCountryCode:function(k){if(/^([A-Z]{2,3}|[0-9]{3})$/.test(k)==false){k=""}this.setValue("CC",k);this.touchCookie();return true},getCountryCode:function(k){return this.getValue("CC",k)},formatDecimal:function(k){if(k<10){return"0"+k}return k},setTimezone:function(o){if(/^([-+]((0[0-9]|1[0-3]):[0-5][0-9]|14:00)|Z)$/.test(o)==false){var n=o.match(/^([-+]?)([0-9]{1,2})(\.[0-9])?$/);if(n){var l=n[1]&&n[1].length?n[1]:"+";var k=parseInt(n[2]);var m=n[3]&&n[3].length?parseInt(60*parseFloat(n[3])):0;if(k>14){k=14}if(k==14){m=0}if(m>59){m=0}o=l+this.formatDecimal(k)+":"+this.formatDecimal(m)}}this.setValue("TZ",o);this.touchCookie();return true},getTimezone:function(k){return this.getValue("TZ",k)},setVersion:function(l){if(typeof l=="object"){var n={platform:"",platformname:"",version:"",campaign:"",partner:"",partnername:""};for(var m in n){if(l[m]==null){l[m]=n[m]}}var k=l.version.split(".");l=l.platform+"/"+k[0]+"."+k[1]+"."+(l.partner.length?l.partner:k[2])+"."+k[3]+"/"+l.campaign}if(/^[0-9]?\/[0-9]{1,2}(\.[0-9]{1,3}){3}\/[0-9]*$/.test(l)==false){return false}this.setValue("VER",l);this.touchCookie();return true},getVersion:function(k){return this.getValue("VER",k)},getParsedVersion:function(n){var l={platform:"",platformname:"",version:"",campaign:"",partner:"",partnername:""};var k=this.getVersion(n);if(!k.length){return l}var m=k.split("/");l.platform=m[0];l.version=m[1];l.campaign=m[2];m=l.version.split(".");l.partner=(m.length>2&&m[2])?m[2]:0;return l},setTimeStamp:function(k){this.setValue("TS",k);this.touchCookie()},getTimeStamp:function(k){return parseInt(this.getValue("TS",k))},setTimeModified:function(k){if(f){this.setValue("TM",k)}this.touchCookie()},getTimeModified:function(k){return parseInt(this.getValue("TM",k))},setClientProfile:function(k){this.setValue("UCP",k);this.touchCookie()},getClientProfile:function(k){return this.getValue("UCP",k)},setVatEligible:function(l){var k="";if(typeof l=="string"){if(l=="true"){k="true"}else{if(l=="false"){k="false"}else{k=""}}}else{if(typeof l=="boolean"){k=l?"true":"false"}else{if(typeof l=="number"){if(l==1){k="true"}else{if(l==0){k="false"}else{k=""}}}}}this.setValue("VAT",k);this.touchCookie()},isVatEligible:function(){var k=this.getValue("VAT");if(k=="true"){return true}else{if(k=="false"){return false}else{return null}}},setEnv:function(l){l=l.replace(/\//g,"-");if(!this.getEnv(l)){var k=this.getValue("ENV");k=k.length?k.split("/"):[];k.push(l);this.setValue("ENV",k.join("/"));this.touchCookie()}},getEnv:function(m){m=m.replace(/\//g,"-");var l=this.getValue("ENV").split("/");for(var k=0;k<l.length;k++){if(l[k]===m){return true}}return false},deleteEnv:function(m){var l=this.getValue("ENV").split("/");for(var k=0;k<l.length;k++){if(l[k]===m){l.splice(k,1)}}this.setValue("ENV",l.join("/"));this.touchCookie()},clearEnv:function(){this.setValue("ENV","");this.touchCookie()},debug:function(){var k="";for(var l in h){k=k+l+" = "+h[l]+"\n"}return k}}}();SKYPE.user.Preferences.init();SKYPE.findParentTag=function(b,a){a=a.toUpperCase();while(b.parentNode){if(b.parentNode.tagName.toUpperCase()==a){return b.parentNode}b=b.parentNode}return null};SKYPE.util.cancelDefault=function(b){var a=YAHOO.util.Event;a.preventDefault(b)};SKYPE.submitButtons=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){var l=document.getElementsByTagName("form");for(var t=0;t<l.length;t++){var v=l[t].getElementsByTagName("button");if(v[0]!=undefined){var p=v.length;for(var r=p-1;r>=0;r--){if(v[r].className.indexOf("submitButton")>-1||v[r].className.indexOf("glassButton")>-1){var e=v[r].className.split(" ");var o=v[r].innerHTML;var f=document.createElement("span");var x=document.createElement("a");var h=document.createElement("span");var g=true;var d,u;if(v[r].className.indexOf("big")>-1){b.addClass(f,"button")}else{b.addClass(f,"buttonSmall")}for(var s=0;s<e.length;s++){if(e[s]=="blue"||e[s]=="green"||e[s]=="yellow"){g=false;d=e[s]}else{if(e[s].match("shop")||e[s].match("skypeCredit")||e[s].match("skypeOnlineNr")||e[s].match("skypeVoicemail")){u=e[s]}else{b.addClass(f,e[s])}}if(e[s]=="disabled"){b.addClass(x,"disabled")}}if(g){b.addClass(x,"gray")}else{b.addClass(x,d)}b.addClass(x,u);f.appendChild(x);var m="submitButton"+t;if(v[r].id!=""){m=v[r].id}f.setAttribute("id",m);x.appendChild(h);if(v[r].className.indexOf("glassButton")>-1&&v[r].value.length>0){x.setAttribute("href",v[r].value)}else{x.setAttribute("href","#")}h.innerHTML=o;v[r].parentNode.appendChild(f);var q=v[r].getAttribute("type");if(q=="submit"){var c=b.get(m);a.addListener(x,"click",SKYPE.util.cancelDefault);a.addListener(x,"click",function(y){if(b.hasClass(x,"disabled")){YAHOO.util.Event.stopEvent(y);return false}var k=SKYPE.findParentTag(this,"form");if(typeof FIC_checkForm!="undefined"){var j=FIC_checkForm(y);if(!j){YAHOO.util.Event.stopEvent(y);return false}}k.submit()})}else{if(q=="reset"){var n=b.get(m);a.addListener(x,"click",SKYPE.util.cancelDefault);a.addListener(x,"click",function(){SKYPE.findParentTag(this,"form").reset()})}else{if(q=="button"&&v[r].getAttribute("onclick")){x.setAttribute("onclick",v[r].getAttribute("onclick"))}}}var w=v[r].parentNode.removeChild(v[r])}e=e.join(",");if(e.indexOf("submitButton")>-1){var c=b.get(m);a.addListener(c,"click",SKYPE.util.cancelDefault);a.addListener(c,"click",function(y){if(b.hasClass(x,"disabled")){YAHOO.util.Event.stopEvent(y);return false}var k=SKYPE.findParentTag(this,"form");if(typeof FIC_checkForm!="undefined"){var j=FIC_checkForm(y);if(!j){YAHOO.util.Event.stopEvent(y);return false}}k.submit()})}}}}})}();SKYPE.util.smartDefaultTextFields=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){b.getElementsByClassName("defaultText","","",function(){if(this.value==""){return}if(this.value==""&&this.value!=""){this.value=this.title}if(this.value!=this.title){b.removeClass(this,"defaultText")}a.addListener(this,"focus",function(){if(this.value==this.title){this.value="";b.removeClass(this,"defaultText")}});a.addListener(this,"blur",function(){if(this.value==""){this.value=this.title;b.addClass(this,"defaultText")}})})})}();SKYPE.loadCss=function(a){var b=document.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("href",a);if(typeof b!="undefined"){document.getElementsByTagName("head")[0].appendChild(b)}};SKYPE.subSelectBoxHandler=function(c,e){var b=function(g,k,j){var f=document.createElement("OPTION");if(j===false){f.text=g.title}else{f.text=k;f.value=j}try{g.add(f,null)}catch(h){g.add(f)}};var d=function(g,j,h){for(var f=1;f<j.length;f++){b(g,j[f],h)}};E.addListener(D.get(c),"change",function(){D.get(e).innerHTML="";var f=this.options[this.selectedIndex].value;if(f!=this.title){d(D.get(e),selectionsArray[f],true)}else{b(D.get(e),D.get(e).title,true)}});for(var a=0;a<selectionsArray.length;a++){b(D.get(c),selectionsArray[a][0],a)}};SKYPE.util.Scroll=function(){var c=YAHOO.util.Dom;var b=YAHOO.util.Event;var a={_minStep:100,_prevWin:{x:-1,y:-1},_delay:19,getPos:function(g){if(typeof g=="undefined"){var e=x2=x3=0;var f=y2=y3=0;if(document.documentElement){e=document.documentElement.scrollLeft||0;f=document.documentElement.scrollTop||0}if(document.body){x2=document.body.scrollLeft||0;y2=document.body.scrollTop||0}x3=window.scrollX||0;y3=window.scrollY||0;var d=Math.max(e,Math.max(x2,x3));var j=Math.max(f,Math.max(y2,y3))}else{var h=c.get(g);if(h){var d=h.offsetLeft;var j=h.offsetTop}else{var d=null;var j=null}}return{x:d,y:j}},to:function(f){if(typeof f=="undefined"){this.up()}else{var e=this.getPos(f);if(e.y!=null){var d=this.getPos();if(e.y<d.y){this.up(f)}else{if(e.y>d.y){this.down(f)}}}}},up:function(f){var e={};var d=this.getPos();if(typeof f!="undefined"){e=this.getPos(f);e.y=Math.max(0,e.y-8)}d.y=Math.max(d.y-(Math.max(this._minStep,Math.floor((d.y-e.y)/3))),e.y);window.scrollTo(e.x,d.y);if(d.y>e.y){window.setTimeout(function(){a.up(f)},this._delay)}},down:function(f){var e={};var d=this.getPos();if(this._prevWin.y==d.y){return true}this._prevWin.y=d.y;if(typeof f!="undefined"){e=this.getPos(f);e.y=Math.max(0,e.y-8)}d.y=Math.min(d.y+(Math.max(this._minStep,Math.floor((e.y-d.y)/3))),e.y);window.scrollTo(e.x,d.y);if(d.y<e.y&&this._prevWin.y!=d.y){window.setTimeout(function(){a.down(f)},this._delay)}}};return{init:function(){b.onDOMReady(function(){c.getElementsByClassName("smoothscroll","a",document,function(){var d=this.getAttribute("href").split("#");if(d[0]==document.location.href||d[0]==""){anchor=true}if(anchor){if(document.getElementById(d[1])){b.addListener(this,"click",SKYPE.util.cancelDefault);b.addListener(this,"click",function(){a.to(d[1])})}}})})}}}();SKYPE.util.Scroll.init();SKYPE.navigation.searchFieldTweaks=function(){var d=YAHOO.util.Dom;var c=YAHOO.util.Event;var b=function(e){if(typeof e=="undefined"||!e){return}if(e.tagName.toUpperCase()=="INPUT"){e.disabled=true}else{d.addClass(e,"disabled")}};var a=function(e){if(typeof e=="undefined"||!e){return}if(e.tagName.toUpperCase()=="INPUT"){e.disabled=false}else{d.removeClass(e,"disabled")}};c.onDOMReady(function(){d.getElementsByClassName("search","input",document,function(){var e=this.title;var k=d.getAncestorByTagName(this,"FORM");var j;var f=k.getElementsByTagName("input");for(var h=0;h<f.length;h++){if(f[h].type=="submit"){j=f[h];break}}if(!j){var g=d.getElementsByClassName("submitButton","span",k)[0];if(g){j=g.getElementsByTagName("a")[0]}}if(SKYPE.util.Browser.isSafari){this.setAttribute("type","search");this.setAttribute("accesskey","s");this.setAttribute("autosave","com.skype."+this.id+"_history");this.setAttribute("results","5")}if(this.value==""){this.value=e}if(this.value==e){this.style.color="#666666";b(j)}c.addListener(this,"focus",function(){if(this.value==e){this.style.color="#000000";this.value="";a(j)}});c.addListener(this,"blur",function(){if(this.value==""){this.style.color="#666666";this.value=e;b(j)}})})})}();SKYPE.navigation.formSubmitLinks=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){b.getElementsByClassName("formSubmit","a",document,function(){var c=SKYPE.findParentTag(this,"form");if(c){a.addListener(this,"click",cancelDefault);a.addListener(this,"click",function(){c.submit()})}})})}();SKYPE.util.alignElementToCenter=function(a){if(typeof a!="undefined"){var d=a.parentNode;var c=parseInt(d.offsetWidth)-(parseInt(D.getStyle(d,"padding-left"))+parseInt(D.getStyle(d,"padding-right")));if(c>a.offsetWidth){var b=(c-a.offsetWidth)/2+"px";D.setStyle(a,"margin-left",b)}}};SKYPE.util.FancyTips=function(){var b=YAHOO.util.Event;var c=YAHOO.util.Dom;var a=YAHOO.util.Anim;b.onDOMReady(function(){if(typeof a=="undefined"||!a||!c.getElementsByClassName("tooltip")){return}if(!c.get("fancyTip")){var f=document.createElement("div");f.id="fancyTip";f.innerHTML="<div class='pointer'></div><div class='tip'></div>";document.body.appendChild(f)}var d=new a(f,{opacity:{to:1},top:{by:-5}},0.1);var e=new a(f,{opacity:{to:0},top:{by:5}},0.08);e.onComplete.subscribe(function(){c.setXY(f,[-100,-100])});c.getElementsByClassName("tooltip","",document,function(){if(typeof this.title!="undefined"&&this.title){b.addListener(this,"mouseover",function(){if(e.isAnimated()){e.stop()}var j=c.getXY(this);c.setStyle(f,"opacity",0);var g=this.offsetHeight;c.setXY(f,[j[0]-5,j[1]+g]);var h=c.getElementsByClassName("tip","",f)[0];h.innerHTML=this.title;this.title="";d.animate()});b.addListener(this,"mouseout",function(){if(d.isAnimated()){d.stop()}e.animate();var g=c.getElementsByClassName("tip","",f)[0];this.title=g.innerHTML})}})})}();SKYPE.util.AbBlocksController=function(){var d=YAHOO.util.Dom;var c=YAHOO.util.Event;var e=0;var b=0;c.onDOMReady(function(){var h=d.getElementsByClassName("abBlockContainer");e=h.length;if(location.href.match(/[?&]ver=([^&]+)/)){var g=location.href.match(/[?&]ver=([^&]+)/)[1];if(!parseInt(g)){g=g.toUpperCase().charCodeAt(0)-64}}else{var g=false}if(g){if(g==0||g>e){g=1}a(g)}for(var f=0;f<e;f++){if(!d.hasClass(h[f],"hiddenBlock")){b=f+1}}});var a=function(g){var f=d.getElementsByClassName("abBlockContainer");blockCount=f.length;if(g<0||g>blockCount){return}if(blockCount>1){d.replaceClass(f,"shownBlock","hiddenBlock");d.replaceClass(f[g-1],"hiddenBlock","shownBlock");b=g}};return{count:function(){return e},activate:function(f){a(f)},current:function(){return b}}}();SKYPE.navigation.AutoDownload=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.on(window,"load",function(){b.getElementsByClassName("autodownload","A","",function(){location.href=this.href})})}();function hide(b){var a=document.getElementById(b);if(a){a.style.display="none"}}function show(b){var a=document.getElementById(b);if(a){a.style.display=""}}function selecttab(c){var b=c.parentNode.parentNode.childNodes;for(var a=0;a<b.length;a++){if(b[a].tagName=="LI"){b[a].className=""}}c.parentNode.className="selected"}SKYPE.util.targetBlank=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;a.onDOMReady(function(){var c=b.getElementsByClassName("targetBlank","a");for(i=0;i<c.length;i++){a.addListener(c[i],"click",SKYPE.util.cancelDefault);a.addListener(c[i],"click",function(){window.open(this.href);return false})}})}();
if(typeof SKYPE!="undefined"){SKYPE.namespace("analytics");SKYPE.analytics.ChannelTrack=function(){var g="CHANNEL_SOURCE";var b=document.referrer;var e=location;var j=(decodeURIComponent(location.search)).toLowerCase();var f="";var i=90;var c=function(m,n,o){var k="",l;if(o){l=new Date();l.setTime(l.getTime()+(o*24*60*60*1000));k="; expires="+l.toGMTString()}document.cookie=m+"="+n+k+"; path=/"};var d=function(l){var n=l+"=",k=document.cookie.split(";"),m,o;for(m=0;m<k.length;m=m+1){o=k[m];while(o.charAt(0)===" "){o=o.substring(1,o.length)}if(o.indexOf(n)===0){return o.substring(n.length,o.length)}}return null};var h=function(k){c(k,"",-1)};var a=function(){var k={"200504paffiliate":"COMISSIONJUNCTION",TRADEDOUBLER:"TRADEDOUBLER",AGENCY1:"AGENCY1",AGENCY2:"AGENCY2",AGENCY3:"AGENCY3",TRIBAL01:"TRIBAL01",MEDIABUY:"MEDIABUY",VALUECOMMERCE:"VALUECOMMERCE"};if(k[d("linkedcampaign")]!==undefined){f=k[d("linkedcampaign")];if(f=="COMISSIONJUNCTION"&&(j.indexOf("sid=1010")!==-1)){f="TRAFFICBROKER"}if(f=="COMISSIONJUNCTION"&&(j.indexOf("sid=2943525")!==-1)){f="TRACKABLE296"}}};return{detectTracking:function(){try{if(d("channel_source")!==null){return}a();if(f!==""){c("channel_source",f,i)}}catch(k){}}}}();SKYPE.analytics.ChannelTrack.detectTracking()};
/*global YAHOO, SKYPE, SWFObject, container, makeContainerDiv, document, console*/
/*jslint bitwise: true, browser: true, eqeqeq: true, immed: true, newcap: true, nomen: true, onevar: true, plusplus: true, white: true, widget: true, undef: true, indent: 2*/

if (typeof SKYPE.inclient === "undefined") { 
  SKYPE.namespace("inclient");
}

SKYPE.inclient.Trackable = (function () { 
  
  var the_referrer = (document.referrer).toLowerCase(),
  the_url          = location.pathname.toLowerCase(),
  the_param        = (decodeURIComponent(location.search)).toLowerCase(),
  
  createCookie = function (name, value, days) {
  
    var expires = "",
    date;
    
    if (days) {
      date = new Date();
      date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
      expires = "; expires=" + date.toGMTString();
    }
    
    document.cookie = name + "=" + value + expires + "; path=/";
  },
  
  readCookie = function (name) {
    var nameEQ  = name + "=",
    ca          = document.cookie.split(';'),
    i, c;
    
    for (i = 0; i < ca.length; i = i + 1) {
      c = ca[i];
      while (c.charAt(0) === ' ') {
        c = c.substring(1, c.length);
      }
      if (c.indexOf(nameEQ) === 0) {
        return c.substring(nameEQ.length, c.length);
      }
    }
    return null;
  },
  
  eraseCookie = function (name) {
    createCookie(name, "", -1);
  },
  
  dropCookie = function (cookie, cookie_time) {
    
    var MODE = "production";
    
    //check if we have a channel already
    if (readCookie("channel_source") !== null || (typeof cookie === "undefined") ||
        (cookie === "") || (typeof cookie_time === "undefined")) {
      return false;
    }
    else {
      createCookie("channel_source", cookie, cookie_time);
      
      if (MODE !== "production" && (typeof console !== "undefined") && 
          (typeof console.log !== "undefined")) {
        console.log("Inclient.Trackable.dropCookie:", arguments);
      }
      
      return true;
    }
  },
  
  /*********************
   * Trackable Channels  
   *********************/

  /* All the channels bellow are invoked in pre-defined way, 
   * so all are required to have same interfacing rules:
   * - trackable... = function (a_referrer, a_url, a_param) {
   * - return false, when no channel found.
   * - return { cookie: "", cookie_time: 90 }; when channel found.
   */
  
  trackableNatural = function (a_referrer, a_url, a_param) {

    //Excluding the stuff coming in with marketing tags
    if ((typeof a_referrer === "undefined") || a_referrer === "" ||
	(a_param.indexOf("cm_mmc=") !== -1) || (a_param.indexOf("source=") !== -1)) {
      return false;
    }
    
    var segment = { cookie: "", cookie_time: 90 },
    
    sengs   = [ /*Order matters, because it stops eval when match*/
      { regex: /google\..*(\?q=|&q=)([^&]+).*/,                    cookie: "NATURALGOOGLE" },
      { regex: /yahoo\.co.*(\?p=|&p=)([^&]+).*/,                   cookie: "NATURALYAHOO"  },
      { regex: /bing\..*(\?q=|&q=)([^&]+).*/,                      cookie: "NATURALMSN"    },
      { regex: /msn\..*(\?q=|&q=)([^&]+).*/,                       cookie: "NATURALMSN"    },
      { regex: /^http:\/\/search\.live\.com.*(\?q=|&q=)([^&]+).*/, cookie: "NATURALMSN"    },
      { regex: /yandex\.ru\/.*([\?|&]text=)([^&]+).*/,             cookie: "NATURALYANDEX" }
    ],

    tkey;
    
    //figure out which engine
    for (tkey in sengs) {
      if (a_referrer.match(sengs[tkey].regex)) {
        segment.cookie = sengs[tkey].cookie;
        break;
      }
    }
    
    return segment;
  },

  trackablePaid = function (a_referrer, a_url, a_param) {
    
    if (a_param.indexOf("cm_mmc=paids|") === -1) {
      return false; //not paid, drops off
    }

    var segment = { cookie: "", cookie_time: 90 },
    
    paids   = [
      // GAWS
      { name: "PAID",              regex: /paids\|gaws/, stop: false },
      { name: "BDPAID",            regex: /paids\|gaws\-_\-.*\-_\-bd\|/, stop: false },
      { name: "TRACKABLE298",      regex: /paids\|gaws\-_\-.*\-_\-bd\|lp/, stop: true },
      { name: "TRACKABLE299",      regex: /paids\|gaws\-_\-.*\-_\-bd\|sp/, stop: true },
      { name: "TRACKABLE300",      regex: /paids\|gaws\-_\-.*\-_\-bd\|ep/, stop: true },
      { name: "TRACKABLE301",      regex: /paids\|gaws\-_\-.*\-_\-bd\|np/, stop: true },
      { name: "GENERICPAID",       regex: /paids\|gaws\-_\-.*\-_\-gn\|/, stop: false },
      { name: "CORRIDORSPAID",     regex: /paids\|gaws\-_\-.*\-_\-cc\|/, stop: true },
      { name: "HARDWAREPAID",      regex: /paids\|gaws\-_\-.*\-_\-hw\|/, stop: true },
      { name: "USCORRIDOR253",     regex: /paids\|gaws\-_\-.*\-_\-sb\|/, stop: true },
/*    { name: "TRACKABLE287",      regex: /paids\|gaws\-_\-.*\-_\-sb\|/, stop: true }, BIZ version*/
      { name: "VIDEOPAID",         regex: /paids\|gaws\-_\-.*\-_\-vc\|video\-_\-/, stop: true },
      { name: "VOIPPAID",          regex: /paids\|gaws\-_\-.*\-_\-gn\|voipr\-_\-/, stop: true },
      { name: "TRACKABLE291",      regex: /paids\|gaws\-_\-.*\-_\-gn\|cards\-_\-/, stop: true },
      { name: "PAIDSEARCHTEST2",   regex: /paids\|gaws\-_\-.*\-_\-tc\|00002\-_\-/, stop: true },
      { name: "PAIDSEARCHTEST3",   regex: /paids\|gaws\-_\-.*\-_\-ev\|intwd\-_\-/, stop: true },
      { name: "USCORRIDOR257",     regex: /paids\|gaws\-_\-.*\-_\-ev\|mothd\-_\-/, stop: true },
      // GAWC                                 
      { name: "PAIDSEARCHCONBD",   regex: /paids\|gawc\-_\-.*\-_\-bd\|/, stop: false },
      { name: "PAIDSEARCHCONGEN",  regex: /paids\|gawc\-_\-.*\-_\-gn\|/, stop: false },
      { name: "PAIDSEARCHCONCC",   regex: /paids\|gawc\-_\-.*\-_\-cc\|/, stop: true },
      { name: "USCORRIDOR256",     regex: /paids\|gawc\-_\-.*\-_\-sb\|/, stop: true },
/*    { name: "TRACKABLE302",      regex: /paids\|gawc\-_\-.*\-_\-sb\|/, stop: true }, BIZ version*/
      { name: "PAIDSEARCHLAGTEST", regex: /paids\|gawc\-_\-.*\-_\-bd\|ebeta\-_\-/, stop: true },
      { name: "PAIDSEARCHTEST3",   regex: /paids\|gawc\-_\-.*\-_\-bd\|ebetb\-_\-/, stop: true }, 
      { name: "HWPRICECOMPARISON", regex: /paids\|gawc\-_\-.*\-_\-gn\|voipr\-_\-/, stop: true },
      { name: "PAIDSEARCHCONBAS",  regex: /paids\|gawc\-_\-.*\-_\-bl\|basel\-_\-/, stop: true },
      //MSN
      { name: "MSNPAID",           regex: /paids\|msns/, stop: false },
      { name: "USCORRIDOR255",     regex: /paids\|msns\-_\-.*\-_\-cc\|/, stop: true },
      { name: "TRACKABLE289",      regex: /paids\|msns\-_\-.*\-_\-gn\|voipr\-_\-/, stop: true },
      { name: "TRACKABLE294",      regex: /paids\|msns\-_\-.*\-_\-gn\|cards\-_\-/, stop: true },   
      //YAHOO
      { name: "YAHOOPAID",         regex: /paids\|ysms/, stop: false },
      { name: "USCORRIDOR254",     regex: /paids\|ysms\-_\-.*\-_\-cc\|/, stop: true },
      { name: "TRACKABLE290",      regex: /paids\|ysms\-_\-.*\-_\-gn\|cards\-_\-/, stop: true },
      { name: "TRACKABLE288",      regex: /paids\|ysms\-_\-.*\-_\-gn\|voipr\-_\-/, stop: true },                       
      //WAYN
      { name: "PAIDSEARCHTEST1",   regex: /paids\|wayn/, stop: true },
      //NAVS
      { name: "TRACKABLE297",      regex: /paids\|navs\-_\-aspac|kr\|.*\-_\-bd\|/, stop: true },
      //GAWP
      { name: "PAIDSEARCHCONPL",   regex: /paids\|gawp\-_\-.*\-_\-bd\|/, stop: true },
      { name: "TRACKABLE286",      regex: /paids\|gawp\-_\-.*\-_\-pl\|expat\-_\-/, stop: true },
      //FACE
      { name: "USCORRIDOR252",     regex: /paids\|face\-_\-.*\-_\-bd\|00001\-_\-/, stop: true },
      //YANS
      { name: "TRACKABLE355",      regex: /paids\|yans\-_\-.*\-_\-bd\|/, stop: true }
    ],
    amatch;
    
    //figure out which engine
    for (amatch in paids) { 
      if (a_param.match(paids[amatch].regex)) {
        segment.cookie = paids[amatch].name;
        if (paids[amatch].stop) {
          break;
        }
      }
    }
    return segment;
  },

  trackableTagger = function (a_referrer, a_url, a_param) {
    
    var tags = {
      "cm_mmc=viral|":                      { cookie: "TRACKABLE354",   cookie_time: 90 }, 
      "cm_mmc=banem|cnn":                   { cookie: "TRACKABLE295",   cookie_time: 90 },
      "cm_mmc=banna|yahoo":                 { cookie: "AGENCY1",        cookie_time: 90 },
      "cm_mmc=banna|gcn-_-":                { cookie: "NATEST3",        cookie_time: 90 },
      "cm_mmc=banna|gcnr-_-":               { cookie: "TRACKABLE316",   cookie_time: 90 },
      "cm_mmc=banna|turn":                  { cookie: "USTRACKABLE264", cookie_time: 90 },
      "cm_mmc=banna|vc":                    { cookie: "USTRACKABLE269", cookie_time: 90 },
      "cm_mmc=banna|vrta":                  { cookie: "TRACKABLE317",   cookie_time: 90 },
      "cm_mmc=hp-_-promo-_-client-_-08":    { cookie: "HPACKARD",  cookie_time: 90 },
      "cm_mmc=acceleration-_-email-_-wtaf": { cookie: "TAFWEB",    cookie_time: 90 },
      "cm_mmc=acceleration-_-email-_-taf":  { cookie: "TAFCLIENT", cookie_time: 90 }
    },
    tag = "";
    
    for (tag in tags) {
      if (a_param.indexOf(tag) !== -1) {
        return tags[tag];
      }
    }
    
    return false;
  },
  
  /* ******** */

  getAllSegmentMethods = function () { 
    return [trackableNatural, trackablePaid, trackableTagger];
  };
  
  return {

    segment: function (a_referrer, a_url, a_param) {
      
      var f_referrer  = (a_referrer || the_referrer).toLowerCase(),
      f_url           = (a_url || the_url).toLowerCase(),
      f_param         = (decodeURIComponent(a_param || the_param)).toLowerCase(),
      all_segment     = getAllSegmentMethods(),
      segment         = null,
      sucess          = false,
      i;

      for (i = 0; i < all_segment.length; i = i + 1) { 
        segment = all_segment[i](f_referrer, f_url, f_param);
        if (segment && segment.cookie !== "") {
          sucess = dropCookie(segment.cookie, segment.cookie_time);
          break;
        }
      }
         
      return ((sucess) ? "cookie:" + segment.cookie + ";cookie_time:" + segment.cookie_time : false);
    }
  };
}());

SKYPE.inclient.Trackable.segment();
/*global YAHOO, SKYPE, SWFObject, container, makeContainerDiv, document, console, pageTracker, chCustomSegment*/
/*jslint bitwise: true, browser: true, eqeqeq: true, immed: true, newcap: true, nomen: true, onevar: true, plusplus: true, white: true, widget: true, undef: true, indent: 2*/

if (typeof SKYPE.inclient === "undefined") {
  SKYPE.namespace("inclient");
}

SKYPE.inclient.Acquisition = (function () {
  
  var the_referrer  = document.referrer.toLowerCase(),
  the_url           = location.pathname.toLowerCase(),
  the_param         = (decodeURIComponent(location.search)).toLowerCase(),
  

  getCMTagValues = function (a_param) {
    
    var a_temp,
    segment     = { channel: "", source: "", group: "", detail: ""};
    
    if (a_param.indexOf("cm_mmc=") === -1) {
      return false; //if no cm_mmc, drops off
    }
    
    /* get the cm_mmc part */
    a_temp = a_param.match(/cm_mmc=([^&]*)/)[1];
    
    /* breaks into 4 */
    a_temp = a_temp.split("-_-");
    
    if (a_temp.length === 4) {
      segment.channel = a_temp[0];
      segment.source  = a_temp[1];
      segment.group   = a_temp[2];
      segment.detail  = a_temp[3];

      return segment;
    }
    else {
      return false;
    }
  },
  
  isSegmentValid = function (segment) {
    return ((typeof segment.channel !== "undefined") && (typeof segment.source !== "undefined") &&
            (typeof segment.group !== "undefined") && (typeof segment.detail !== "undefined"));
  },
  
  isInClientValid = function (acquisition_channel, partner_site, group, detailed_source) {
    return ((typeof acquisition_channel !== "undefined") && acquisition_channel.match(/^[A-Z-_|\.0-9]+$/i) &&
            (typeof partner_site !== "undefined") && partner_site.match(/^[A-Z-_|\.0-9]+$/i) &&
            (typeof group !== "undefined") && group.match(/^[A-Z-_|\.0-9]+$/i) &&
            (typeof detailed_source !== "undefined"));
  },

  writeTrackingFlash = function (trackingFlashUrl, acquisition_channel, partner_site, group, detailed_source) {
    var so = new SWFObject(trackingFlashUrl, "trackFls", "3", "3", 9, "#FFFFFF");
    so.addParam("wmode", "transparent");
    so.addParam("allowScriptAccess", "always");
    
    so.addVariable("acquisition_channel", acquisition_channel);
    so.addVariable("partner_site", partner_site);
    so.addVariable("group", group);
    if (typeof detailed_source !== "undefined") {
      so.addVariable("detailed_source", detailed_source);
    }
    
    so.write(makeContainerDiv("inclientreportingFlashDiv"));
  },
  
  makeContainerDiv = function (divId) {
    var container = document.createElement("DIV");
    container.id = divId;
    YAHOO.util.Dom.setStyle(container, "position", "absolute");
    YAHOO.util.Dom.setStyle(container, "width", "3px");
    YAHOO.util.Dom.setStyle(container, "height", "3px");
    YAHOO.util.Dom.setStyle(container, "font", "1px monospace");
    YAHOO.util.Dom.setStyle(container, "top", "0px");
    YAHOO.util.Dom.setStyle(container, "left", "0px");
    document.body.appendChild(container);
    return container;
  },
  
  /**********************
   *  Reporting Methods */
  inClientReport = function (acquisition_channel, partner_site, group, detailed_source) {

    if (!isInClientValid(acquisition_channel, partner_site, group, detailed_source)) {
      return false;
    }

    var MODE = "production",
    trackingFlashUrl = (MODE === "production") ? "http://c.skype.com/apps/inclient/tracker.swf" :
      "http://c.skype.com/apps/inclient/tracker-pretrack.swf";
    if (MODE === "production") {
      writeTrackingFlash(trackingFlashUrl, acquisition_channel, partner_site, group, detailed_source);
    }
    else {
      if ((typeof console !== "undefined") && (typeof console.log !== "undefined")) {
        console.log("Inclient.report: ", arguments);
      }
      writeTrackingFlash(trackingFlashUrl, acquisition_channel, partner_site, group, detailed_source);
    }
    return true;
  },

  /*************
   * Inclient Channels  
   *************/

  /* All the channels bellow are invoked in pre-defined way, 
   * so all are required to have same interfacing rules:
   * - inclient... = function (a_referrer, a_url, a_param) {
   * - return false, when no channel found.
   * - return { channel: "", source: "", group: "", detail: ""}, when channel found.
   */
  
  inclientNatural = function (a_referrer, a_url, a_param) {

    //Excluding the stuff coming in with marketing tags
    if ((typeof a_referrer === "undefined") || a_referrer === "" ||
    (a_param.indexOf("cm_mmc=") !== -1) || (a_param.indexOf("source=") !== -1)) {
      return false;
    }

    var segment = { channel: "", source: "", group: "", detail: ""},

    s_engines   = {/*Order matters, because it stops eval when match*/
      "google-suggest": /google\..*(\?q=|&q=)([^&]+).*source=suggest.*/,
      "google": /google\..*(\?q=|&q=)([^&]+).*/,
      "yahoo": /yahoo\.co.*(\?p=|&p=)([^&]+).*/,
      "bing": /bing\..*(\?q=|&q=)([^&]+).*/,
      "msn": /msn\..*(\?q=|&q=)([^&]+).*/,
      "msn.live": /^http:\/\/search\.live\.com.*(\?q=|&q=)([^&]+).*/,
      "yandex": /yandex\.ru\/.*([\?|&]text=)([^&]+).*/,
      "baidu": /baidu\.com\/.*([\?|&]wd=)([^&]+).*/,
      "naver": /naver\.com\/.*([\?|&]query=)([^&]+).*/

    },

    the_params  = {"google": /q=([^&]*)/,
           "google-suggest": /q=([^&]*)/,
           "yahoo": /p=([^&]*)/,
           "bing": /q=([^&]*)/,
           "msn": /q=([^&]*)/,
           "msn.live": /q=([^&]*)/,
           "yandex": /text=([^&]*)/,
           "baidu": /wd=([^&]*)/,
           "naver": /query=([^&]*)/
          },

    tkey, tkey2;

    //figure out which engine
    for (tkey in s_engines) {
      if (a_referrer.match(s_engines[tkey])) {
        segment.channel = "natural-search";
        segment.source = tkey;
        break;
      }
    }

    if (segment.channel === "") {
      return false; //no inclient neither cookie, drops off
    }

    //figure out the local
    segment.group = a_referrer.replace("http://", "").split("/")[0];

    //figure out the search keyword
    for (tkey2 in the_params) {
      if (tkey2 === segment.source) {
        segment.detail = a_referrer.match(the_params[tkey2])[1];
        break;
      }
    }
    return segment;
  },
  
  inclientTagger = function (a_referrer, a_url, a_param) {
    
    var tags = ["cm_mmc=paids|", "cm_mmc=aff",
		"cm_mmc=banem|cnn", "cm_mmc=banla|",
		"cm_mmc=banna|", "cm_mmc=viral|"],
    idx = 0;
    
    for (idx in tags) {
      if (a_param.indexOf(tags[idx]) !== -1) {
        return getCMTagValues(a_param);
      }
    }
    return false; //none matched, so drops off
  },

  /* To be used, to directly report values 
   * variables to be used:
   * var chCustomSegment = { channel: "", source: "", group: "", detail: ""};
   */
  inclientCustom = function (a_referrer, a_url, a_param) {
    if (typeof chCustomSegment  !== "undefined") {
      return chCustomSegment;
    }
  },

  getAllSegmentMethods = function () {
    return [inclientNatural, inclientTagger, inclientCustom];
  };

  YAHOO.util.Event.onDOMReady(function () {
    SKYPE.inclient.Acquisition.segment(the_referrer, the_url, the_param);
  });

  return {

    //SKYPE.inclient.Acquisition.segment();
    segment: function (a_referrer, a_url, a_param) {

      var f_referrer = (a_referrer || the_referrer).toLowerCase(),
      f_url          = (a_url || the_url).toLowerCase(),
      f_param        = (decodeURIComponent(a_param || the_param)).toLowerCase(),
      all_segment    = getAllSegmentMethods(),
      segment        = null,
      sucess         = false, 
      i;

      for (i = 0; i < all_segment.length; i = i + 1) {
        segment = all_segment[i](f_referrer, f_url, f_param);
        if (segment && isSegmentValid(segment) && segment.channel !== "") {
          sucess = inClientReport(segment.channel, segment.source, segment.group, segment.detail);
          break;
        }
      }

      return ((sucess) ? "channel:" + segment.channel + ";source:" + segment.source +
              ";group:" + segment.group + ";detail:" + segment.detail : false);
    }
  };
}());

// Deprecated. All sampling is now in PHP. Automatic download trigger moved to skype-helpers

if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
SKYPE.namespace("util");SKYPE.util.ClientDetection=function(){var n=false;var d=false;var e="/i/common/swf/clientdetection.swf";var h="detectionswf";var l="detection-container";var i=5000;var a=YAHOO.util.Dom;var o=YAHOO.util.Event;var k={};var f={};var b=function(){if(n){return}if(typeof SWFObject=="undefined"){return}var p=a.get(l);if(!p){p=document.createElement("DIV");p.id=l;a.setStyle(p,"position","absolute");a.setStyle(p,"width","10px");a.setStyle(p,"height","10px");a.setStyle(p,"font","1px monospace");a.setStyle(p,"bottom","0px");a.setStyle(p,"left","0px");a.setStyle(p,"overflow","hidden");document.body.appendChild(p)}var q=new SWFObject(e,h,"10","10","8","#FFFFFF");q.addParam("allowScriptAccess","always");q.write(l);n=true;window.setTimeout(g,i)};var c=function(p){if(typeof k[p]=="undefined"||k[p]==null||(typeof k[p]=="string"&&!k[p].length)||k[p]=="null"){return null}return k[p]};var g=function(){if(!d){m.fire()}};var j=new YAHOO.util.CustomEvent("onDetectionAvailable");var m=new YAHOO.util.CustomEvent("onDetectionFailure");j.subscribe(function(){d=true;YAHOO.util.Dom.setStyle(l,"visibility","hidden")});return{setSWF:function(p){e=p},isReady:function(){return d},setSharedObjectData:function(q,p){k=q;f=p||{};j.fire();return true},isInstalled:function(){return c("ui_version")!=null},isAbandonedInstall:function(){var u=c("ui_installdate");var r=(new Date()).getTime()/1000;var t=c("download_date");var s=r-t;var q=5*60;var p=8*24*60*60;return(u==null&&t!=null&&s>q&&s<p)},getVersion:function(){return c("ui_version")},getPlatform:function(){var p=c("os_version");if(p){if(p.indexOf("Macintosh")!=-1){return"macosx"}else{if(p.indexOf("Linux")!=-1){return"linux"}}return"windows"}return null},getPlatformID:function(){switch(SKYPE.util.ClientDetection.getPlatform()){case"windows":return 0;case"macosx":return 3;case"linux":return 2}return""},getOSTimezone:function(){return c("os_timezone")||parseInt(new Date().getTimezoneOffset()/60)},getProfileTimezone:function(){return c("ui_timezone")},getSessionUsername:function(){if(typeof f.username=="string"){var p=(new Date()).getTime()/1000;if(typeof f.expires!="undefined"&&f.expires<p){try{a.get(h).clearSessionData()}catch(q){}return""}return f.username}return""},getSkypeUserAge:function(){var q=c("ui_installdate");if(typeof q=="string"){q=parseInt(q)}if(q==null||isNaN(q)||q==0){return -1}var p=Math.floor(((new Date()).getTime()/1000-q)/60/60/24);return p},isQualifiedVersion:function(q,r){var p=(r||c("ui_version")).split(".");q=q.split(".");try{if(parseInt(p[0])>parseInt(q[0])||(parseInt(p[0])==parseInt(q[0])&&parseInt(p[1])>parseInt(q[1]))||(parseInt(p[0])==parseInt(q[0])&&parseInt(p[1])==parseInt(q[1])&&parseInt(p[3])>=parseInt(q[3]))){return true}}catch(s){}return false},subscribe:function(r,s,q,p){j.subscribe(r,s,q);o.onDOMReady(b,null,this);if(typeof p=="function"){m.subscribe(p,s,q)}}}}();
SKYPE.util.ConditionalContent=function(){var b=YAHOO.util.Event;var c=YAHOO.util.Dom;var d;b.onDOMReady(function(){d=c.getElementsByClassName("alternative","DIV",document.body,function(){c.setStyle(this,"display",(c.hasClass(this,"cond-default")?"block":"none"))})});var a={"30days":function(){var e=SKYPE.util.ClientDetection.getSkypeUserAge();if(e>=1&&e<=30){return c.getElementsByClassName("cond-30days","DIV")}return[]},existing:function(){var e=SKYPE.util.ClientDetection.isInstalled();if(e){return c.getElementsByClassName("cond-existing","DIV")}return[]}};_getFiltered=function(){var e=[];var f;for(filter in a){f=a[filter]();e=e.concat(f);if(e.length){break}}return e};return{run:function(){SKYPE.util.ConditionalContent.cookify();SKYPE.util.ConditionalContent.switchAlternatives();SKYPE.util.ConditionalContent.toggleUsername()},checkAbandonedDownload:function(){var f=SKYPE.util.ClientDetection.isInstalled();var g=SKYPE.util.ClientDetection.isAbandonedInstall();var e=this._getRoot();if(!f&&location.pathname==e&&g){location.href=e+"completedownload/"}},_getRoot:function(){var f="";var g=/^(\/|\/intl\/[^\/]+\/)(useskype\/)?$/;var e=location.pathname.match(g);if(e){f=e[1]}return f},cookify:function(){var h=SKYPE.util.ClientDetection.isInstalled();var g=SKYPE.util.ClientDetection.getSkypeUserAge();var f=SKYPE.user.Preferences.getTimeModified();if(h){var i=false;if(isNaN(f)||f<(new Date()).getTime()/1000-60*60*24){SKYPE.log("Modification time is more than a day ago, checking profile");if(g>30){SKYPE.log("Setting cookie profile to: existing");SKYPE.user.Preferences.setClientProfile("existing")}else{SKYPE.log("Setting cookie profile to: 30days");SKYPE.user.Preferences.setClientProfile("30days")}i=true}var e=SKYPE.util.ClientDetection.getPlatformID()+"/"+SKYPE.util.ClientDetection.getVersion()+"/";if(e!=SKYPE.user.Preferences.getVersion()&&location.search.indexOf("source=")==-1){SKYPE.log("Setting installed version to "+e);SKYPE.user.Preferences.setVersion(e);i=true}if(i){SKYPE.log("Updating cookie with client profile info");SKYPE.user.Preferences.save()}}},switchPages:function(){var g=SKYPE.util.ClientDetection.isInstalled();var f=SKYPE.util.ClientDetection.getSkypeUserAge();var e=this._getRoot();if(g&&location.pathname==e){if(f>30){location.href=e+"welcomeback/"}else{location.href=e+"welcomeback/"}}else{if(location.pathname==e+"useskype/"){if(!g){location.href=e+"welcomeback/"}else{if(g&&f>30){location.href=e+"welcomeback/"}else{if(g&&f<30){SKYPE.log("Leave on existing page")}}}}}},switchAlternatives:function(){var e=_getFiltered();if(e.length){c.setStyle(e,"display","block");SKYPE.util.ConditionalContent.hideDefaults()}else{SKYPE.util.ConditionalContent.showDefaults()}},showDefaults:function(){c.getElementsByClassName("cond-default","DIV",document.body,function(){c.setStyle(this,"display","block")})},hideDefaults:function(){c.getElementsByClassName("cond-default","DIV",document.body,function(){c.setStyle(this,"display","none")})},toggleUsername:function(){if(typeof SKYPE.util.ClientDetection=="undefined"||typeof SKYPE.util.ClientDetection.getSessionUsername=="undefined"){return}var e=SKYPE.util.ClientDetection.getSessionUsername();if(!e.length){return}if(c.get("loggedin-username")){c.get("loggedin-username").innerHTML=e.replace(/[<>]/,"")}if(c.get("loggedin-welcome")){c.setStyle(c.get("loggedin-welcome"),"display","inline")}if(c.get("loggedin-links")){c.setStyle(c.get("loggedin-links"),"display","inline")}if(c.get("loggedin-signout")){c.setStyle(c.get("loggedin-signout"),"display","inline")}if(c.get("loggedin-signin")){c.setStyle(c.get("loggedin-signin"),"display","none")}if(c.get("loggedin-haveskype")){c.setStyle(c.get("loggedin-haveskype"),"display","none")}if(c.get("main-menu-account")){c.setStyle(c.get("main-menu-account"),"display","inline")}}}}();if(typeof SKYPE.util.ClientDetection!="undefined"){SKYPE.util.ClientDetection.subscribe(SKYPE.util.ConditionalContent.run,{},false,function(){SKYPE.log("client detection failure")})};

SKYPE.namespace("business");SKYPE.business.BusinessLogin=function(){var f=YAHOO.util.Dom;var e=YAHOO.util.Event;var a;var d=2;var h=2;var b=function(){if(!a||d==0){f.getElementsByClassName("loginClosed","","loginArea",function(){f.replaceClass(this,"jsEnabled","jsHidden")});f.getElementsByClassName("loginOpen","","loginArea",function(){f.replaceClass(this,"jsHidden","jsEnabled")})}else{var m=f.get("loginBox");var k=f.getElementsByClassName("loginClosed","",m)[0];var l=f.getElementsByClassName("loginOpen","",m)[0];f.setStyle(m,"overflow","hidden");f.setStyle(m,"height",k.offsetHeight+"px");f.replaceClass(l,"jsHidden","jsEnabled");switch(d){case 1:f.setStyle(m,"-moz-border-radius","0");var j=new a(m,{height:{to:l.offsetHeight}},0.23);var o=new a(k,{marginTop:{to:-(k.offsetHeight)}},0.15);j.onComplete.subscribe(function(){f.setStyle(m,"-moz-border-radius-bottomleft","2px");f.setStyle(m,"-moz-border-radius-bottomright","2px");m.getElementsByTagName("INPUT")[0].focus()});j.animate();o.animate();break;case 2:f.setStyle(m,"-moz-border-radius","0");f.setStyle(l,"opacity",0);var j=new a(m,{height:{to:l.offsetHeight}},0.3);var i=new a(k,{opacity:{to:0}},0.14);var n=new a(l,{opacity:{to:1}},0.16);i.onComplete.subscribe(function(){f.setStyle(k,"margin-top",(-k.offsetHeight)+"px");f.replaceClass(k,"jsEnabled","jsHidden");n.animate()});j.onComplete.subscribe(function(){f.setStyle(m,"-moz-border-radius-bottomleft","2px");f.setStyle(m,"-moz-border-radius-bottomright","2px");m.getElementsByTagName("INPUT")[0].focus()});j.animate();i.animate();break}}f.getElementsByClassName("signInToggler","","subNavigation",function(){f.addClass(this,"open")})};var g=function(){if(!a||d==0){f.getElementsByClassName("loginClosed","","loginArea",function(){f.replaceClass(this,"jsHidden","jsEnabled")});f.getElementsByClassName("loginOpen","","loginArea",function(){f.replaceClass(this,"jsEnabled","jsHidden")})}else{var o=f.get("loginBox");var j=f.getElementsByClassName("loginClosed","",o)[0];var l=f.getElementsByClassName("loginOpen","",o)[0];var n=function(){f.replaceClass(l,"jsEnabled","jsHidden");f.setStyle(o,"overflow","visible");f.setStyle(o,"height","auto")};switch(d){case 1:var m=new a(o,{height:{to:j.offsetHeight}},0.23);var k=new a(j,{marginTop:{to:0}},0.15);m.animate();m.onComplete.subscribe(n);k.animate();break;case 2:f.replaceClass(j,"jsHidden","jsEnabled");var m=new a(o,{height:{to:j.offsetHeight}},0.3);var i=new a(l,{opacity:{to:0}},0.14);var p=new a(j,{opacity:{to:1}},0.16);i.onComplete.subscribe(function(){f.replaceClass(l,"jsEnabled","jsHidden");f.setStyle(j,"margin-top","0px");p.animate()});m.animate();i.animate();break}}f.getElementsByClassName("signInToggler","","subNavigation",function(){f.removeClass(this,"open")})};var c=function(){var i=f.getElementsByClassName("signInToggler","","subNavigation")[0];if(f.hasClass(i,"open")){g()}else{b()}};e.onDOMReady(function(){try{a=YAHOO.util.Anim}catch(j){}f.getElementsByClassName("signInOpener","","loginArea",function(){e.on(this,"click",function(){b()})});f.getElementsByClassName("signInToggler","","subNavigation",function(){f.setStyle(this,"cursor","pointer");e.on(this,"click",function(){c()})});if(location.search.match(/[?&]debug-anim=(\d+)/)){var i=location.search.match(/[?&]debug-anim=(\d+)/)[1];if(i>=0&&i<=h){d=parseInt(i)}}});return{open:function(){b()},close:function(){g()},setAnimStyle:function(i){if(i>=0&&i<=h){d=parseInt(i)}}}}();SKYPE.business.supportSearch=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;b.get("searchm").value=b.get("searchm").title;a.addListener(b.get("searchm"),"focus",function(){if(this.value==this.title){this.value=""}});a.addListener(b.get("searchm"),"blur",function(){if(this.value==""){this.value=this.title}})};YAHOO.util.Event.onDOMReady(function(){SKYPE.business.supportSearch()});