/*!
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.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(a):(new Function("return "+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.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(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.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(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
a:b+"></"+d+">"},F={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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},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(a){}},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(a){function b(){e.success&&
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.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>";
a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);colorClass=function(){var cc=this;var _2=20;var _3=new Array("RGB(208,220,237)","RGB(220,237,208)","RGB(255,216,190)","RGB(254,230,174)","RGB(226,225,189)","RGB(255,204,214)","RGB(192,222,207)","RGB(184,241,246)","RGB(235,216,194)","RGB(219,210,218)","RGB(200,200,220)","RGB(227,227,222)","RGB(255,250,173)","RGB(227,255,173)","RGB(255,189,181)","RGB(210,224,226)","RGB(173,255,218)","RGB(227,221,207)","RGB(248,230,233)","RGB(206,206,206)");this.pushColor=function(_4){_3.pop();_3.unshift(_4);};this.popColor=function(){var _5=_3.shift();_3.push(_5);return _5;};};var TimeZoneLabelToText=new Array({label:"Etc/GMT+12",offset:"-12,0,0",text:"(GMT-12:00) International Date Line West"},{label:"US/Samoa",offset:"-11,0,0",text:"(GMT-11:00) Midway Island, Samoa"},{label:"US/Hawaii",offset:"-10,0,0",text:"(GMT-10:00) Hawaii"},{label:"US/Alaska",offset:"-9,1,1",text:"(GMT-09:00) Alaska"},{label:"Pacific/Gambier",offset:"-9,0,0",text:"(GMT-09:00) French Polynesia"},{label:"Pacific/Pitcairn",offset:"-8,0,0",text:"(GMT-08:00) Pitcairn"},{label:"Canada/Pacific",offset:"-8,1,1",text:"(GMT-08:00) Pacific Time (US & Canada)"},{label:"America/Tijuana",offset:"-8,1,1",text:"(GMT-08:00) Tijuana, Baja California"},{label:"US/Arizona",offset:"-7,0,0",text:"(GMT-07:00) Arizona"},{label:"Canada/Mountain",offset:"-7,1,1",text:"(GMT-07:00) Mountain Time (US & Canada)"},{label:"America/Chihuahua",offset:"-7,1,1",text:"(GMT-07:00) Chihuahua, La Paz, Mazatlan"},{label:"America/Costa_Rica",offset:"-6,0,0",text:"(GMT-06:00) Central America"},{label:"Canada/Saskatchewan",offset:"-6,0,0",text:"(GMT-06:00) Saskatchewan"},{label:"Canada/Central",offset:"-6,1,1",text:"(GMT-06:00) Central Time (US & Canada)"},{label:"America/Mexico_City",offset:"-6,1,0",text:"(GMT-06:00) Guadalajara, Mexico City, Monterrey"},{label:"America/Bogota",offset:"-5,0,0",text:"(GMT-05:00) Bogota, Lima, Quito, Rio Branco"},{label:"Canada/Eastern",offset:"-5,1,1",text:"(GMT-05:00) Eastern Time (US & Canada)"},{label:"US/East-Indiana",offset:"-5,1,1",text:"(GMT-05:00) Indiana (East)"},{label:"America/Caracas",offset:"-4.5,0,0",text:"(GMT-04:30) Caracas"},{label:"America/Halifax",offset:"-4,1,1",text:"(GMT-04:00) Atlantic Time (US & Canada)"},{label:"America/La_Paz",offset:"-4,0,0",text:"(GMT-04:00) La Paz"},{label:"America/Manaus",offset:"-4,0,0",text:"(GMT-04:00) Manaus"},{label:"America/Santiago",offset:"-4,1,0",text:"(GMT-04:00) Santiago"},{label:"America/Asuncion",offset:"-4,1,0",text:"(GMT-04:00) Asuncion"},{label:"America/Cuiaba",offset:"-4,1,0",text:"(GMT-04:00) Brazil"},{label:"Canada/Newfoundland",offset:"-3.5,1,1",text:"(GMT-03:30) Newfoundland"},{label:"Brazil/East",offset:"-3,1,0",text:"(GMT-03:00) Brasilia"},{label:"America/Montevideo",offset:"-3,1,0",text:"(GMT-03:00) Montevideo"},{label:"America/Argentina/Buenos_Aires",offset:"-3,0,0",text:"(GMT-03:00) Buenos Aires, Georgetown"},{label:"America/Godthab",offset:"-3,1,1",text:"(GMT-03:00) Greenland"},{label:"Atlantic/South_Georgia",offset:"-2,0,0",text:"(GMT-02:00) South Georgia, South Sandwich Islands"},{label:"Atlantic/Azores",offset:"-1,1,1",text:"(GMT-01:00) Azores"},{label:"Atlantic/Cape_Verde",offset:"-1,0,0",text:"(GMT-01:00) Cape Verde Island"},{label:"Etc/Greenwich",offset:"0,0,0",text:"(GMT) Greenwich Mean Time"},{label:"Europe/London",offset:"0,1,1",text:"(GMT) Dublin, Edinburgh, Lisbon, London"},{label:"Europe/Berlin",offset:"1,1,1",text:"(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Vienna"},{label:"Europe/Belgrade",offset:"1,1,1",text:"(GMT+01:00) Belgrade, Bratislava, Budapest, Prague"},{label:"Europe/Brussels",offset:"1,1,1",text:"(GMT+01:00) Brussels, Copenhagen, Madrid, Paris"},{label:"Europe/Sarajevo",offset:"1,1,1",text:"(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb"},{label:"Africa/Kinshasa",offset:"1,0,0",text:"(GMT+01:00) West Central Africa"},{label:"Europe/Athens",offset:"2,1,1",text:"(GMT+02:00) Athens, Bucharest, Istanbul"},{label:"Asia/Amman",offset:"2,1,1",text:"(GMT+02:00) Amman"},{label:"Asia/Beirut",offset:"2,1,1",text:"(GMT+02:00) Beirut"},{label:"Africa/Cairo",offset:"2,1,1",text:"(GMT+02:00) Cairo"},{label:"Africa/Harare",offset:"2,0,0",text:"(GMT+02:00) Harare, Pretoria"},{label:"Europe/Helsinki",offset:"2,1,1",text:"(GMT+02:00) Helsinki, Kyiv, Riga, Tallinn"},{label:"Asia/Jerusalem",offset:"2,1,1",text:"(GMT+02:00) Jerusalem"},{label:"Europe/Minsk",offset:"2,1,1",text:"(GMT+02:00) Minsk"},{label:"Africa/Windhoek",offset:"2,1,0",text:"(GMT+02:00) Windhoek"},{label:"Asia/Baghdad",offset:"3,0,0",text:"(GMT+03:00) Baghdad"},{label:"Asia/Riyadh",offset:"3,0,0",text:"(GMT+03:00) Kuwait, Riyadh"},{label:"Africa/Nairobi",offset:"3,0,0",text:"(GMT+03:00) Nairobi"},{label:"Europe/Moscow",offset:"3,1,1",text:"(GMT+03:00) Moscow, St. Petersburg, Volgograd"},{label:"Asia/Tbilisi",offset:"3,0,0",text:"(GMT+03:00) Tbilisi"},{label:"Asia/Tehran",offset:"3.5,1,1",text:"(GMT+03:30) Tehran"},{label:"Asia/Dubai",offset:"4,0,0",text:"(GMT+04:00) Abu Dhabi, Muscat"},{label:"Asia/Baku",offset:"4,1,1",text:"(GMT+04:00) Baku"},{label:"Asia/Yerevan",offset:"4,1,1",text:"(GMT+04:00) Yerevan"},{label:"Asia/Kabul",offset:"4.5,0,0",text:"(GMT+04:30) Kabul"},{label:"Asia/Yekaterinburg",offset:"5,1,1",text:"(GMT+05:00) Ekaterinburg"},{label:"Asia/Karachi",offset:"5,0,0",text:"(GMT+05:00) Islamabad, Karachi, Tashkent"},{label:"Asia/Calcutta",offset:"5.5,0,0",text:"(GMT+05:30) Chennai, Calcutta, Mumbai, New Delhi"},{label:"Asia/Katmandu",offset:"5.75,0,0",text:"(GMT+05:45) Katmandu"},{label:"Asia/Aqtobe",offset:"6,0,0",text:"(GMT+06:00) Astana, Kazakstan"},{label:"Asia/Dhaka",offset:"6,1,1",text:"(GMT+06:00) Dhaka"},{label:"Asia/Omsk",offset:"6,1,1",text:"(GMT+06:00) Novosibirsk, Omsk"},{label:"Asia/Rangoon",offset:"6.5,0,0",text:"(GMT+06:30) Yangon (Rangoon)"},{label:"Asia/Bangkok",offset:"7,0,0",text:"(GMT+07:00) Bangkok, Hanoi, Jakarta"},{label:"Asia/Krasnoyarsk",offset:"7,1,1",text:"(GMT+07:00) Krasnoyarsk"},{label:"Asia/Hong_Kong",offset:"8,0,0",text:"(GMT+08:00) Beijing, Hong Kong, Urumqi"},{label:"Asia/Irkutsk",offset:"8,1,1",text:"(GMT+08:00) Irkutsk, Ulaan Bataar"},{label:"Singapore",offset:"8,0,0",text:"(GMT+08:00) Kuala Lumpur, Singapore"},{label:"Australia/Perth",offset:"8,0,0",text:"(GMT+08:00) Perth"},{label:"Asia/Taipei",offset:"8,0,0",text:"(GMT+08:00) Taipei"},{label:"Asia/Tokyo",offset:"9,0,0",text:"(GMT+09:00) Osaka, Sapporo, Tokyo"},{label:"Asia/Seoul",offset:"9,0,0",text:"(GMT+09:00) Seoul"},{label:"Asia/Yakutsk",offset:"9,1,1",text:"(GMT+09:00) Yakutsk"},{label:"Australia/Adelaide",offset:"9.5,1,0",text:"(GMT+09:30) Adelaide"},{label:"Australia/Darwin",offset:"9.5,0,0",text:"(GMT+09:30) Darwin"},{label:"Australia/Brisbane",offset:"10,0,0",text:"(GMT+10:00) Brisbane"},{label:"Australia/Sydney",offset:"10,1,0",text:"(GMT+10:00) Canberra, Melbourne, Sydney"},{label:"Pacific/Guam",offset:"10,0,0",text:"(GMT+10:00) Guam, Port Moresby"},{label:"Australia/Hobart",offset:"10,1,0",text:"(GMT+10:00) Hobart"},{label:"Asia/Vladivostok",offset:"10,1,1",text:"(GMT+10:00) Vladivostok"},{label:"Asia/Magadan",offset:"11,1,1",text:"(GMT+11:00) Magadan, New Caledonia"},{label:"Pacific/Guadalcanal",offset:"11,0,0",text:"(GMT+11:00) Solomon Islands"},{label:"Asia/Kamchatka",offset:"12,1,1",text:"(GMT+12:00) Petropavlovsk"},{label:"Pacific/Auckland",offset:"12,1,0",text:"(GMT+12:00) Auckland, Wellington"},{label:"Pacific/Fiji",offset:"12,1,0",text:"(GMT+12:00) Fiji, Kamchatka, Marshall Islands"},{label:"Etc/GMT-12",offset:"12,0,0",text:"(GMT+13:00) UTC - 12"},{label:"Pacific/Chatham",offset:"12.75,1,0",text:"(GMT+12:45) Chatham"},{label:"Etc/GMT-13",offset:"13,0,0",text:"(GMT+13:00) Nuku'alofa"},{label:"Pacific/Kiritimati",offset:"14,0,0",text:"(GMT+14:00) Kiritimati"});function getTimezoneHTMLString(){var _6="";for(var i=0;i<TimeZoneLabelToText.length;i++){var _8=TimeZoneLabelToText[i].label==jQuery.tungleGlobals.user.timezone.label?"selected":"";_6+="<option value=\""+TimeZoneLabelToText[i].label+"\" "+_8+">"+TimeZoneLabelToText[i].text+"</option>";}return _6;}function getTimeZoneToken(){var _9=new Date();var _a=new Date(_9.getFullYear(),0,1,0,0,0);var _b=new Date(_9.getFullYear(),6,30,0,0,0);var _c=_9.getTimezoneOffset()/-60;var _d=_a.getTimezoneOffset()/-60;var _e=_b.getTimezoneOffset()/-60;var _f=_d!=_e;var _10=_c;var _11=0;if(_f&&(_c==_e)&&_e>_d){_10-=1;_11=1;}else{if(_f&&(_c==_d)&&_e<_d){_10-=1;_c-=1;}}var _12=""+_10+","+(_f?1:0)+","+_11;for(var i=0;i<TimeZoneLabelToText.length;i++){if(TimeZoneLabelToText[i].offset==_12){return TimeZoneLabelToText[i].label;}}return "Etc/Greenwich";}String.prototype.HEX=function(){var _14="";for(var i=0;i<this.length;i++){_14+="&#x"+parseInt(this.charCodeAt(i)).toString(16).toUpperCase()+";";}return _14;};String.prototype.hC=function(c){var l=" "+this+" ";return l.indexOf(" "+c+" ")!=-1;};String.prototype.zf=function(l){return "0".string(l-this.length)+this;};String.prototype.string=function(l){var s="",i=0;while(i++<l){s+=this;}return s;};Number.prototype.zf=function(l){return this.toString().zf(l);};String.prototype.replaceURL=function(k){var _1e=new RegExp("((http|https)(://))?([a-zA-Z0-9]+[.]{1}){2}[a-zA-z0-9]+(/{1}[a-zA-Z0-9]+)*/?","i");var l=this.replace(/\n/g,"\n ");l=l.split(/\n/);for(var i=0;i<l.length;i++){if(l[i].indexOf(" ")!=-1){l[i]=splitSpace(l[i]);}else{l[i]=parseURL(l[i]);}}return l.join("<br/>");function splitSpace(_21){var tmp=_21.split(" ");for(var j=0;j<tmp.length;j++){tmp[j]=parseURL(tmp[j]);}_21=tmp.join(" ");return _21;}function parseURL(_24){var url=_1e.exec(_24);if(url!=null){var _26="";if(url[0].indexOf("http")==0){_26="<a href=\""+url[0]+"\" target=\"_blank\">"+url[0].substr(0,23)+"...</a>";}else{if(url[0].indexOf("www")==0){_26="<a href=\"http://"+url[0]+"\" target=\"_blank\">"+url[0].substr(0,23)+"...</a>";}}_24=_24.replace(url[0],_26);}return _24;}};String.prototype.emailIsValid=function(){return /^(?:[a-z0-9!#$%&'*+\/=?^_\`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i.test(this);};var g_GlobalEmailPattern=new RegExp(/(?:[a-z0-9!#$%&'*+\/=?^_\`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/gi);String.prototype.isValidEmail=function(l){var _28={email:"",first:"",last:""};var tmp=this.split(" ");for(var i=0;i<tmp.length;i++){var _2b=tmp[i].match(g_GlobalEmailPattern);if(_2b==null){if(_28.first.isEmpty()){_28.first=tmp[i];}else{if(_28.last.isEmpty()){_28.last=tmp[i];}else{_28.last+=" "+tmp[i];}}}else{if(_2b){if(_28.email.isEmpty()){_28.email=_2b[0];}}}}return _28;};String.prototype.stripEmail=function(){return this.toLowerCase().replace(/\./g,"_").replace(/@/g,"__").replace(/\+/g,"___");};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.isEmpty=function(){if(this.length==0||this==""||this.trim().length==0||this.trim()==""){return true;}return false;};String.prototype.xss=function(){return this.replace(/</g,"&lt;").replace(/>/g,"&gt;");};String.prototype.startsWith=function(str){return (this.match("^"+str)==str);};String.prototype.endsWith=function(str){return (this.match(str+"$")==str);};String.prototype.cutLW=function(l){if(!l){l=100;}var tmp=this.split(" ");for(var i=0;i<tmp.length;i++){var str=tmp[i];if(str.length>l){tmp[i]=str.substring(0,l);tmp.splice(i+1,0,str.substring(l));}}return tmp.join(" ");};String.prototype.convertICal=function(){var _32=parseInt(this.substring(0,4));var _33=parseInt(this.substring(4,6),10)-1;var day=parseInt(this.substring(6,8),10);var _35=parseInt(this.substring(9,11),10);var min=this.substring(11,13);var sec=this.substring(13,15);return new Date(_32,_33,day,_35,min,sec);};String.prototype.truncate=function(l){var val=this.toString();if(val.length>l){val=val.substring(0,l-3)+" ...";}return val;};String.prototype.equalsIgnoreCase=function(_3a){if(!_3a){return false;}return this.toLowerCase()==_3a.toLowerCase();};Number.prototype.equalsIgnoreCase=function(_3b){return (this+"").equalsIgnoreCase(_3b+"");};Number.prototype.getTimeText=function(){if(this>60){return (this/60)+" hours";}return this+" minutes";};Date.prototype.formatToWeek=function(_3c){if(!this.valueOf()){return "&nbsp;";}var _3d=new Date(this.getTime());_3d.setDate(_3d.getDate()-_3d.getDay());_3d.setHours(0,0,0,0);var _3e=new Date(this.getTime());_3e.setDate(_3e.getDate()-_3e.getDay()+6);_3e.setHours(0,0,0,0);var _3f="";var _40="MMMM";if(_3c&&_3c<60){_40="MMM";}if(_3d.getYear()==_3e.getYear()){if(_3d.getMonth()==_3e.getMonth()){_3f=_3d.format(_40+" d")+" - "+_3e.format("d, yyyy");}else{_3f=_3d.format(_40+" d")+" - "+_3e.format(_40+" d, yyyy");}}else{_3f=_3d.format(_40+" d, yyyy")+" - "+_3e.format(_40+" d, yyyy");}return _3f;};Date.prototype.formatRelative=function(_41){if(!this.valueOf()||!_41.valueOf()){return "&nbsp;";}var _42=this;var _43=new Date(_42.getTime());_43.setDate(_43.getDate()-_43.getDay()+1);_43.setHours(0,0,0,0);var _44=new Date(_42.getTime());_44.setDate(_44.getDate()-_44.getDay()+8);_44.setHours(0,0,0,0);var _45=(1000*60*60*24*7);var _46=(1000*60*60*24*14);var _47=Math.abs(_41.getTime()-_42.getTime())/(1000*60*60);var _48=_41.getTime()<_42.getTime();if(_47<=24&&_41.getDate()===_42.getDate()){return "Today";}else{if(_47<=24+24&&Math.abs(_41.getDay()-_42.getDay())===1){if(_48){return "Yesterday";}else{return "Tomorrow";}}else{if(_47<=24*7+24&&(_41.getTime()<=_44.getTime()&&_41.getTime()>=_43.getTime())){return _41.format("dddd");}else{if(_47<=24*14+24&&(_41.getTime()<=(_44.getTime()+_45)&&_41.getTime()>=(_43.getTime()-_45))){var _49=_48?"Last ":"Next ";return _49+_41.format("dddd");}else{if(_47<=24*21+24&&(_41.getTime()<=(_44.getTime()+_46)&&_41.getTime()>=(_43.getTime()-_46))){var _49=_48?"2 weeks ago":"2 weeks from now";return _49+"<br/><span>"+_41.format("(ddd, MMM d)")+"</span>";}else{return "<span>"+_41.format("ddd, MMM d")+"</span>";}}}}}};Date.prototype.getWeeksBetween=function(_4a){_4a=_4a||new Date();var _4b=_4a.endOfWeek();var _4c=this.endOfWeek();var _4d=_4c.getTime()-_4b.getTime();var _4e=_4d/(1000*60*60*24*7);return Math.round(_4e);};Date.prototype.endOfWeek=function(){var _4f=new Date(this.getTime());_4f.setDate(_4f.getDate()-_4f.getDay()+7);_4f.setHours(0,0,0,0);return _4f;};Date.prototype.format=function(f){if(!this.valueOf()){return "&nbsp;";}var d=this;var _52=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var _53=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");return f.replace(/(yyyy|yy|y|MMMM|MMM|MM|M|dddd|ddd|DDD|dd|d|HH|H|hh|h|mm|m|ss|s|t|xx|x)/gi,function($1){switch($1){case "yyyy":return d.getFullYear().toString();case "yy":return (d.getFullYear()%100).zf(2);case "y":return (d.getFullYear()%100);case "MMMM":return _52[d.getMonth()];case "MMM":return _52[d.getMonth()].substr(0,3);case "MM":return (d.getMonth()+1).zf(2);case "M":return (d.getMonth()+1);case "dddd":return _53[d.getDay()];case "ddd":return _53[d.getDay()].substr(0,3);case "DDD":return _53[d.getDay()].substr(0,3).toUpperCase();case "dd":return d.getDate().zf(2);case "d":return d.getDate();case "HH":return d.getHours().zf(2);case "H":return d.getHours();case "hh":return ((h=d.getHours()%12)?h:12).zf(2);case "h":return ((h=d.getHours()%12)?(h===0?12:h):12);case "mm":return d.getMinutes().zf(2);case "m":return d.getMinutes();case "ss":return d.getSeconds().zf(2);case "s":return d.getSeconds();case "t":return d.getHours()<12?"am":"pm";case "xx":var i=d.getDate();if(i>10&&i<20){i=0;}else{i=i%10;}return "thstndrd".substr(2*(i<4)*i,2);case "x":var i=d.getDate();if(i>10&&i<20){i=0;}else{i=i%10;}return "<sup>"+"thstndrd".substr(2*(i<4)*i,2)+"</sup>";default:return $1;}});};if(!Array.indexOf){Array.prototype.indexOf=function(obj,_57){for(var i=(_57||0);i<this.length;i++){if(this[i]==obj){return i;}}return -1;};}function GlobalParseICalToDate(_59){if(!_59||_59.length<8){return false;}var _5a=parseInt(_59.substring(0,4));var _5b=parseInt(_59.substring(4,6),10)-1;var day=parseInt(_59.substring(6,8),10);var _5d=0;var min=0;var sec=0;if(_59.length>8){_5d=parseInt(_59.substring(9,11),10);min=_59.substring(11,13);sec=_59.substring(13,15);}var _60=new Date();_60.setUTCMonth(0);_60.setUTCDate(1);if(jQuery.tungleGlobals.user.timezone.label==jQuery.tungleGlobals.user.localTimeZone.label&&_59.indexOf("Z")!=-1){_60.setUTCFullYear(_5a);_60.setUTCMonth(_5b);_60.setUTCDate(day);_60.setUTCHours(_5d);_60.setUTCMinutes(min);_60.setUTCSeconds(sec);_60.setUTCMilliseconds(0);}else{_60=new Date(_5a,_5b,day,_5d,min,sec,0);}return _60;}function sha1Hash(msg){var K=[1518500249,1859775393,2400959708,3395469782];msg+=String.fromCharCode(128);var l=Math.ceil(msg.length/4)+2;var N=Math.ceil(l/16);var M=new Array(N);for(var i=0;i<N;i++){M[i]=new Array(16);for(var j=0;j<16;j++){M[i][j]=(msg.charCodeAt(i*64+j*4)<<24)|(msg.charCodeAt(i*64+j*4+1)<<16)|(msg.charCodeAt(i*64+j*4+2)<<8)|(msg.charCodeAt(i*64+j*4+3));}}M[N-1][14]=((msg.length-1)*8)/Math.pow(2,32);M[N-1][14]=Math.floor(M[N-1][14]);M[N-1][15]=((msg.length-1)*8)&4294967295;var H0=1732584193;var H1=4023233417;var H2=2562383102;var H3=271733878;var H4=3285377520;var W=new Array(80);var a,b,c,d,e;for(var i=0;i<N;i++){for(var t=0;t<16;t++){W[t]=M[i][t];}for(var t=16;t<80;t++){W[t]=ROTL(W[t-3]^W[t-8]^W[t-14]^W[t-16],1);}a=H0;b=H1;c=H2;d=H3;e=H4;for(var t=0;t<80;t++){var s=Math.floor(t/20);var T=(ROTL(a,5)+f(s,b,c,d)+e+K[s]+W[t])&4294967295;e=d;d=c;c=ROTL(b,30);b=a;a=T;}H0=(H0+a)&4294967295;H1=(H1+b)&4294967295;H2=(H2+c)&4294967295;H3=(H3+d)&4294967295;H4=(H4+e)&4294967295;}return H0.toHexStr()+H1.toHexStr()+H2.toHexStr()+H3.toHexStr()+H4.toHexStr();}function f(s,x,y,z){switch(s){case 0:return (x&y)^(~x&z);case 1:return x^y^z;case 2:return (x&y)^(x&z)^(y&z);case 3:return x^y^z;}}function ROTL(x,n){return (x<<n)|(x>>>(32-n));}Number.prototype.toHexStr=function(){var s="",v;for(var i=7;i>=0;i--){v=(this>>>(i*4))&15;s+=v.toString(16);}return s;};function createCookie(_7f,_80,_81){var _82="";if(_81==null||_81==undefined){_81=1000;}var _83=new Date();if(_81>0){_83.setTime(_83.getTime()+(_81*24*60*60*1000));_82="; expires="+_83.toGMTString();}var _84="";if(document.location.host.indexOf("tungle.me")!==-1){_84=";domain=.tungle.me";}document.cookie=_7f+"="+_80+_82+"; path=/"+_84;return _80;}function readCookie(_85){var _86=_85+"=";var ca=document.cookie.split(";");var _88=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(_86)==0){_88=c.substring(_86.length,c.length);}}if(_88&&_88.charAt(0)=="\""&&_88.charAt(_88.length-1)=="\""){_88=_88.substring(1,_88.length-1);}return _88;}function removeCookie(_8b){createCookie(_8b,"",-1);}function quest(_8c,_8d,_8e,_8f){_8d=_8d.replace(/[^a-z0-9\+\/=]/ig,"");var map=_8c[3].toString();var _91,_92,_93;var ch1,ch2,ch3,ch4;var _98=new Array();var _99=new Array();var j=0;if(_8f){while((_8e.length%4)!=0){_8e+="=";}}else{_99=null;}for(var _9b=0;_9b<_8c.length;_9b++){var end=_8c[_9b];while((end.length%4)!=0){end+="=";}for(var i=0;i<end.length;i+=4){ch1=map.indexOf(end.charAt(i));ch2=map.indexOf(end.charAt(i+1));ch3=map.indexOf(end.charAt(i+2));ch4=map.indexOf(end.charAt(i+3));_91=(ch1<<2)|(ch2>>4);_92=((ch2&15)<<4)|(ch3>>2);_93=((ch3&3)<<6)|ch4;_98[j++]=String.fromCharCode(_91);_99[_9b]=_8c[_9b].toString(16);if(ch3!=64){_98[j++]=String.fromCharCode(_92);}if(ch4!=64){_98[j++]=String.fromCharCode(_93);}}}return _99.join("");}function resetCheckbox(id,_9f){var obj=document.getElementById(id);obj.checked=_9f;}function getMousePosition(e){var _a2=0;var _a3=0;if(e===undefined){e=window.event;}if(e.pageX||e.pageY){_a2=e.pageX;_a3=e.pageY;}else{if(e.clientX||e.clientY){_a2=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;_a3=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;}}return [_a2,_a3];}function jqTruncate(_a4,l){if($(this).text.length>l){$(this).text.truncate(l).Tooltip(_a4);}else{$(this).text(_a4);}return $(this);}function setReferral(){var _a6=["SXSW"];var _a7=document.referrer;var _a8=_a7.match(/^http[s]?:\/\/[^\/]+/);var _a9=document.location.hostname;var _aa=document.location.pathname;if(_a8&&_a8.length>0){if(_a8[0].indexOf(_a9)>-1){return false;}}else{var _ab=jQuery.ajaxHelper.getParameter(document.location.search,"affiliate");if(_ab&&_ab.length){_a7=_ab;}else{_a7="null";}}for(var i=0;i<_a6.length;i++){if(_aa.indexOf(_a6[i])>-1){_a7=(_a7+" "+_a6[i]).trim();break;}}createCookie(jQuery.tungleGlobals.cookieReferral,_a7+" "+window.location.toString(),0);}function isEven(num){return !(num%2);}var calLevelText={0:"Not Sharing",1:"Free/Busy",2:"Meeting Details"};var calLevelLong=new Array("Not Sharing","Free/Busy","Meeting Details","Full Calendar");var calLevelShort=new Array("","1","2","3");function getSharingLevel(_ae,my,_b0){if(_ae.length==3){_ae=_ae.substring(1,3);}my=my+0;return eval("calLevel"+_b0+"["+_ae.substring(my,my+1)+"]");}function getCalendarLevel(_b1,_b2){return eval("calLevel"+_b2+"['"+_b1+"']");}function guessName(_b3){_b3=_b3.trim();if(!_b3||_b3.length==0){return null;}var _b4=_b3.split(" ",1)[0];var _b5="";if(_b3.length>_b4.length){_b5=_b3.substring(_b4.length).trim();}return [_b4,_b5];}function isFlashInstalled(){if(navigator.plugins&&navigator.plugins.length>0){var _b6="application/x-shockwave-flash";var _b7=navigator.mimeTypes;if(_b7&&_b7[_b6]&&_b7[_b6].enabledPlugin&&_b7[_b6].enabledPlugin.description){var _b8=_b7[_b6].enabledPlugin.description;var _b9=parseStandardVersion(_b8);var _ba=_b9.revisionStr;var _bb=_b9.revision;return _ba;}}else{if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var _b8=-1;for(var i=0;i<activeXDetectRules.length&&_b8==-1;i++){var obj=getActiveXObject(activeXDetectRules[i].name);if(!obj.activeXError){_b8=activeXDetectRules[i].version(obj);if(_b8!=-1){var _b9=parseActiveXVersion(_b8);var _bb=_b9.revision;var _ba=_b9.revisionStr;return _ba;}return "installed";}}}}return false;}function parseActiveXVersion(str){var _bf=str.split(",");return {"raw":str,"major":parseInt(_bf[0].split(" ")[1],10),"minor":parseInt(_bf[1],10),"revision":parseInt(_bf[2],10),"revisionStr":_bf[2]};}function parseStandardVersion(str){var _c1=str.split(/ +/);var _c2=_c1[2].split(/\./);var _c3=_c1[3];return {"raw":str,"major":parseInt(_c2[0],10),"minor":parseInt(_c2[1],10),"revisionStr":_c3,"revision":parseRevisionStrToInt(_c3)};}function parseRevisionStrToInt(str){return parseInt(str.replace(/[a-zA-Z]/g,""),10)||self.revision;}var activeXDetectRules=[{"name":"ShockwaveFlash.ShockwaveFlash.7","version":function(obj){return getActiveXVersion(obj);}},{"name":"ShockwaveFlash.ShockwaveFlash.6","version":function(obj){var _c7="6,0,21";try{obj.AllowScriptAccess="always";_c7=getActiveXVersion(obj);}catch(err){}return _c7;}},{"name":"ShockwaveFlash.ShockwaveFlash","version":function(obj){return getActiveXVersion(obj);}}];function getActiveXVersion(_c9){var _ca=-1;try{_ca=_c9.GetVariable("$version");}catch(err){}return _ca;}function getActiveXObject(_cb){var obj=-1;try{obj=new ActiveXObject(_cb);}catch(err){obj={activeXError:true};}return obj;}function setupCopyLink(_cd,_ce,_cf,_d0){if(isFlashInstalled()){var _d1=new ZeroClipboard.Client();_d1.glue(_cd,_ce);_d1.setText(_cf);}else{if(_d0){_d0();}}}var JSON=JSON||{};JSON.stringify=JSON.stringify||function(obj){var t=typeof (obj);if(t!="object"||obj===null){if(t=="string"){obj="\""+obj+"\"";}return String(obj);}else{var n,v,_d6=[],arr=(obj&&obj.constructor==Array);for(n in obj){v=obj[n];t=typeof (v);if(t=="string"){v="\""+v+"\"";}else{if(t=="object"&&v!==null){v=JSON.stringify(v);}}_d6.push((arr?"":"\""+n+"\":")+String(v));}return (arr?"[":"{")+String(_d6)+(arr?"]":"}");}};(function($){$.ajaxSetup({timeout:60000});jQuery.parseJSON=function(_2){if(typeof _2!=="string"||!_2){return null;}_2=jQuery.trim(_2);if(_2.indexOf("while(1);")===0){_2=_2.split("while(1);")[1];}else{if(_2.indexOf("dont be evil;")===0){_2=_2.split("dont be evil;")[1];}}if(/^[\],:{}\s]*$/.test(_2.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return window.JSON&&window.JSON.parse?window.JSON.parse(_2):(new Function("return "+_2))();}else{jQuery.error("Invalid JSON: "+_2);}};jQuery.sourceHelper={handledSources:{},containerId:"infoContainer",numOffline:0,getTextFromSource:function(_3,_4){if(_3["@Status"]==="Offline"){var _5=_3["@Name"];var _6=_3["@Type"];if(jQuery.sourceHelper.handledSources[_5]!==true){if(_4!==""){_4+=", ";}_4+=_6+": "+_5;jQuery.sourceHelper.handledSources[_5]=true;}jQuery.sourceHelper.numOffline++;}return _4;},handleSourceStatus:function(_7){var _8=_7.Sources;if(!_8){$(jQuery.sourceHelper.containerId).remove();return false;}var _9=_8["@Total"];var _a="";jQuery.sourceHelper.numOffline=0;if(_9==1){_a=jQuery.sourceHelper.getTextFromSource(_8.Source,_a);}else{for(var i=0;i<_9;i++){_a=jQuery.sourceHelper.getTextFromSource(_8.Source[i],_a);}}if(_a!==""){$(".m_header").eq(0).InfoText({id:jQuery.sourceHelper.containerId,text:jQuery.langStrings.externalSync.cantRetrieve+" (<b>"+_a+"</b>). "+jQuery.langStrings.externalSync.tryAgain,type:"Y"});}else{if(jQuery.sourceHelper.numOffline==0){$("#"+jQuery.sourceHelper.containerId).remove();}}}};$.eventRequestHandler={waitForQueryEventsToReturn:false,requestList:new Array(),storeList:["TungleMe.Availability","PublicTimeline","SuggestMe"],storeFor:"QueryEvents",storeRequest:function(_c,_d,_e,_f,_10,_11,tm,_13){if(_d.indexOf($.eventRequestHandler.storeFor)>-1){$.eventRequestHandler.waitForQueryEventsToReturn=true;return false;}if(!$.eventRequestHandler.waitForQueryEventsToReturn){return false;}for(var i=0;i<$.eventRequestHandler.storeList.length;i++){if(_d.indexOf($.eventRequestHandler.storeList[i])>-1){$.eventRequestHandler.requestList.push({requestType:_c,service:_d,request:_e,handler:_f,errorHandler:_10,options:_11,tm:tm,extra:_13});return true;}}return false;},requestReturned:function(_15){if(_15.indexOf($.eventRequestHandler.storeFor)>-1){$.eventRequestHandler.waitForQueryEventsToReturn=false;$.eventRequestHandler.executeRequests();}},executeRequests:function(){for(var i=0;i<$.eventRequestHandler.requestList.length;i++){var req=$.eventRequestHandler.requestList[i];switch(req.requestType){case "post":jQuery.ajaxHelper.sendAjaxPostRequest(req.service,req.request,req.handler,req.errorHandler,req.options,req.tm);break;case "get":jQuery.ajaxHelper.sendAjaxGetRequest(req.service,req.handler,req.errorHandler,req.options);break;case "dynamic":req.handler(req.errorHandler,req.options,req.tm,req.service,req.request,req.extra);break;default:break;}$.eventRequestHandler.requestList.splice(i,1);i--;}}};jQuery.ajaxHelper={sessionId:null,activeTuid:null,globalTimeout:60000,retries:5,popupWidth:450,retryCounter:0,baseUrl:"/service/session/",openSocial:false,commonErrorHandler:null,commonResponseHandler:function(_18){var _19=_18.TRes;if(_19.length){for(var i=0;i<_19.length;i++){if(_19[i]["@SystemMessage"]){switch(_19[i]["@Type"]){case "Sources.Status":jQuery.sourceHelper.handleSourceStatus(_19[i]);break;}_18.TRes.splice(i,1);i--;}}if(_19.length===1){_18.TRes=_18.TRes[0];}}return _18;},requestCache:{requestType:null,service:null,request:null,handler:null,errorHandler:null,options:null,tm:null,extra:null},requestCacheBlacklist:["SignonJSON"],getBaseUrl:function(_1b){if(jQuery.tungleGlobals.test){return _1b+".json";}if(_1b.indexOf(".json")!=-1){return _1b;}if(!jQuery.ajaxHelper.sessionId){jQuery.ajaxHelper.sessionId=null;}if(_1b.indexOf("SuggestMeJSON")!=-1){return jQuery.ajaxHelper.baseUrl+"null/"+_1b;}else{return jQuery.ajaxHelper.baseUrl+jQuery.ajaxHelper.sessionId+"/"+_1b;}},popUpAlertCallback:null,popUpAlert:function(_1c,_1d,_1e,_1f){var _20=$("#alert-dlg");if(!jQuery.ajaxHelper.popUpInitialized){_20.jqm({overlay:30,height:160,xBTN:false,fixedHeight:false,width:jQuery.ajaxHelper.popupWidth,zIndex:3500,modal:true});_20.find(".jqmClose").click(function(){if(jQuery.ajaxHelper.popUpAlertCallback){jQuery.ajaxHelper.popUpAlertCallback();}$("#alert-dlg").jqmHide();return false;});jQuery.ajaxHelper.popUpInitialized=true;}_1d=_1d==undefined?"Notification":_1d;jQuery.ajaxHelper.popUpAlertCallback=_1e;_20.find(".paint").html(_1c);_20.find(".title span").html(_1d);_1f=_1f===undefined?"":_1f;_20.find(".title > .sub").html(_1f);_20.jqmShow();},popUpAjaxBlock:function(_21){var _22=$("#contact_server-dlg");if(!jQuery.ajaxHelper.popUpAjaxBlockInitialized){_22.jqm({overlay:50,height:140,width:250,zIndex:3999,modal:true,xBTN:false,fixedHeight:false});jQuery.ajaxHelper.popUpAjaxBlockInitialized=true;}if(_21){_22.jqmShow();}else{_22.jqmHide();}},newGuid:function(){var _23,i,j;_23="";for(j=0;j<32;j++){if(j==8||j==12||j==16||j==20){_23=_23+"-";}i=Math.floor(Math.random()*16).toString(16).toUpperCase();_23=_23+i;}return _23;},getParameter:function(_26,_27){var _27=_27+"=";if(_26!=null&&_26.length>0){begin=_26.indexOf(_27);if(begin!=-1){begin+=_27.length;end=_26.indexOf("&",begin);if(end==-1){end=_26.length;}return unescape(_26.substring(begin,end));}return null;}return null;},createTMsg:function(_28,_29,_2a){if(_29.indexOf("<?xml")!=-1){return _29;}var _2b=_2a?jQuery.ajaxHelper.activeTuid:jQuery.ajaxHelper.newGuid();var msg="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";msg+="<TMsg TUID=\""+_2b+"\">";if(_29.indexOf("<TReq")!=0){var _2d="<TReq Type=\""+_28+"\">";_2d+=_29;_2d+="</TReq>";msg+=_2d;}else{msg+=_29;}msg+="</TMsg>";jQuery.ajaxHelper.activeTuid=_2b;return msg;},isFailure:function(_2e){var _2f=null;if(_2e){if(_2e.TMsg.TRes.length){for(var i=0;i<_2e.TMsg.TRes.length;i++){if(_2e.TMsg.TRes[i]["@Status"]=="ERROR"){_2f=_2e.TMsg.TRes[i].Code.$;}}}else{if(_2e.TMsg.TRes["@Status"]=="ERROR"){_2f=_2e.TMsg.TRes.Code.$;}}}return _2f;},sendAjaxPostRequest:function(_31,_32,_33,_34,_35,tm,_37){if(jQuery.ajaxHelper.openSocial){function response(obj){if(obj.oauthErrorText||obj.errors.length>0){if(_34){_34(_35);}}else{var _39=obj.data;var _3a=jQuery.ajaxHelper.isFailure(_39);if(jQuery.ajaxHelper.commonErrorHandler&&_3a){jQuery.ajaxHelper.storeRequest("post",_31,_32,_33,_34,_35,tm);jQuery.ajaxHelper.commonErrorHandler(_33,_39.TMsg,_3a,_35);}else{if(_33){if(jQuery.ajaxHelper.commonResponseHandler){_39.TMsg=jQuery.ajaxHelper.commonResponseHandler(_39.TMsg);}_33(_39.TMsg,_35);}}}}var _3b={};_3b[gadgets.io.RequestParameters.CONTENT_TYPE]=gadgets.io.ContentType.JSON;_3b[gadgets.io.RequestParameters.AUTHORIZATION]=gadgets.io.AuthorizationType.SIGNED;_3b[gadgets.io.RequestParameters.METHOD]=gadgets.io.MethodType.POST;if(jQuery.tungleGlobals.osPref.type=="xing"){_3b[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME]="xing";}_3b[gadgets.io.RequestParameters.HEADERS]={"Content-Type":"text/xml;charset=utf-8","View-Type":jQuery.tungleGlobals.osPref.view};_3b[gadgets.io.RequestParameters.REFRESH_INTERVAL]=0;_3b[gadgets.io.RequestParameters.POST_DATA]=jQuery.ajaxHelper.createTMsg(_31.substring(0,_31.indexOf("JSON")),_32.trim());var url=jQuery.ajaxHelper.getBaseUrl(_31);gadgets.io.makeRequest(url,response,_3b);}else{if(!$.eventRequestHandler.storeRequest("post",_31,_32,_33,_34,_35,tm,false)){return $.ajax({type:"POST",url:jQuery.ajaxHelper.getBaseUrl(_31),data:jQuery.ajaxHelper.createTMsg(_31.substring(0,_31.indexOf("JSON")),_32.trim(),_37),dataType:"json",timeout:(tm==null||tm==undefined)?jQuery.ajaxHelper.globalTimeout:tm,success:function(_3d){var _3e=jQuery.ajaxHelper.isFailure(_3d);if(jQuery.ajaxHelper.commonErrorHandler&&_3e){jQuery.ajaxHelper.storeRequest("post",_31,_32,_33,_34,_35,tm,true);jQuery.ajaxHelper.commonErrorHandler(_33,_3d.TMsg,_3e,_35);}else{if(_33){if(jQuery.ajaxHelper.commonResponseHandler){_3d.TMsg=jQuery.ajaxHelper.commonResponseHandler(_3d.TMsg);}_33(_3d.TMsg,_35);}}$.eventRequestHandler.requestReturned(_31);},error:function(xhr,b){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){jQuery.ajaxHelper.sendAjaxPostRequest(_31,_32,_33,_34,_35,tm);}else{if(_34){_34(_35);}}$.eventRequestHandler.requestReturned(_31);}});}}return false;},cancelAjaxRequest:function(_41){if(_41&&_41.readyState!=0&&_41.readyState!=4){try{_41.onreadystatechange=function(){};_41.abort();_41.request=null;}catch(err){_41=null;}}},sendAjaxGetRequest:function(_42,_43,_44,_45,_46){var _47=null;if(jQuery.ajaxHelper.openSocial){function response(obj){if(obj.oauthErrorText||obj.errors.length>0){if(_44){_44(_45);}}else{var _49=obj.data;var _4a=jQuery.ajaxHelper.isFailure(_49);if(jQuery.ajaxHelper.commonErrorHandler&&_4a){jQuery.ajaxHelper.storeRequest("get",_42,null,_43,_44,_45);jQuery.ajaxHelper.commonErrorHandler(_43,_49.TMsg,_4a,_45);}else{if(_43){if(jQuery.ajaxHelper.commonResponseHandler){_49.TMsg=jQuery.ajaxHelper.commonResponseHandler(_49.TMsg);}_43(_49.TMsg,_45,_4a);}}}}var _4b={};_4b[gadgets.io.RequestParameters.CONTENT_TYPE]=gadgets.io.ContentType.JSON;_4b[gadgets.io.RequestParameters.METHOD]=gadgets.io.MethodType.GET;_4b[gadgets.io.RequestParameters.AUTHORIZATION]=gadgets.io.AuthorizationType.SIGNED;if(jQuery.tungleGlobals.osPref.type=="xing"){_4b[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME]="xing";}_4b[gadgets.io.RequestParameters.REFRESH_INTERVAL]=0;var url=jQuery.ajaxHelper.getBaseUrl(_42);gadgets.io.makeRequest(url,response,_4b);}else{if(!$.eventRequestHandler.storeRequest("get",_42,null,_43,_44,_45)){_47=$.ajax({type:"GET",url:jQuery.ajaxHelper.getBaseUrl(_42),dataType:"json",async:(_46?false:true),success:function(_4d){var _4e=jQuery.ajaxHelper.isFailure(_4d);if(jQuery.ajaxHelper.commonErrorHandler&&_4e){jQuery.ajaxHelper.storeRequest("get",_42,null,_43,_44,_45);jQuery.ajaxHelper.commonErrorHandler(_43,_4d.TMsg,_4e,_45);}else{if(_43){if(jQuery.ajaxHelper.commonResponseHandler){_4d.TMsg=jQuery.ajaxHelper.commonResponseHandler(_4d.TMsg);}_43(_4d.TMsg,_45,_4e);}}$.eventRequestHandler.requestReturned(_42);},error:function(xhr,b){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){jQuery.ajaxHelper.sendAjaxGetRequest(_42,_43,_44,_45);}else{if(_44){_44(_45);}}$.eventRequestHandler.requestReturned(_42);}});}}if(_42==="SignoffJSON"){jQuery.ajaxHelper.sessionId=null;removeCookie(jQuery.tungleGlobals.cookieUser);removeCookie(jQuery.tungleGlobals.cookiePassword);removeCookie(jQuery.tungleGlobals.cookieSession);removeCookie(jQuery.tungleGlobals.cookieName);removeCookie(jQuery.tungleGlobals.cookieReferral);}return _47;},storeRequest:function(_51,_52,_53,_54,_55,_56,tm,_58){for(var i=0;i<jQuery.ajaxHelper.requestCacheBlacklist.length;i++){if(_52.indexOf(jQuery.ajaxHelper.requestCacheBlacklist[i])>-1){return false;}}jQuery.ajaxHelper.requestCache={requestType:_51,service:_52,request:_53,handler:_54,errorHandler:_55,options:_56,tm:tm,extra:_58};},resendRequest:function(){switch(jQuery.ajaxHelper.requestCache.requestType){case "post":jQuery.ajaxHelper.sendAjaxPostRequest(jQuery.ajaxHelper.requestCache.service,jQuery.ajaxHelper.requestCache.request,jQuery.ajaxHelper.requestCache.handler,jQuery.ajaxHelper.requestCache.errorHandler,jQuery.ajaxHelper.requestCache.options,jQuery.ajaxHelper.requestCache.tm);break;case "get":jQuery.ajaxHelper.sendAjaxGetRequest(jQuery.ajaxHelper.requestCache.service,jQuery.ajaxHelper.requestCache.handler,jQuery.ajaxHelper.requestCache.errorHandler,jQuery.ajaxHelper.requestCache.options);break;case "dynamic":jQuery.ajaxHelper.requestCache.handler(jQuery.ajaxHelper.requestCache.errorHandler,jQuery.ajaxHelper.requestCache.options,jQuery.ajaxHelper.requestCache.tm,jQuery.ajaxHelper.requestCache.service,jQuery.ajaxHelper.requestCache.request,jQuery.ajaxHelper.requestCache.extra);break;default:break;}},web_send_create_request:function(_5a,_5b,_5c,_5d){$.ajax({type:"POST",url:"/service/GuestSpaceEmail",data:jQuery.ajaxHelper.createTMsg("GuestSpaceEmail","POST",_5a,_5d),timeout:5000,dataType:"xml",success:function(_5e){if(_5b&&jQuery.ajaxHelper.isSuccess(_5e)){_5b();}else{_5c();}},error:function(xhr,b){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){jQuery.ajaxHelper.web_send_create_request(_5a,_5b,_5c,true);}else{if(_5c){_5c(b);}}}});},quickRegister:function(_61,_62,_63,_64,_65,_66){_66=_66||"Register";$.ajax({type:"POST",url:"/service/session/"+jQuery.ajaxHelper.sessionId+"/"+_66,data:jQuery.ajaxHelper.createTMsg(_66,_61,_65),timeout:60000,dataType:"xml",success:function(xml){if(_62){_62(xml,_64);}},error:function(xhr,b){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){jQuery.ajaxHelper.quickRegister(_61,_62,_63,_64,true);}else{if(_63){_63(b);}}}});},isSuccess:function(_6a){try{return $("TRes",_6a).eq(0).attr("Status").toLowerCase()=="success";}catch(e){return false;}},isSuccessJSON:function(_6b){if(_6b&&_6b.TMsg){return jQuery.ajaxHelper.isSuccessJSON(_6b.TMsg);}else{if(_6b&&_6b.TRes){return jQuery.ajaxHelper.isSuccessJSON(_6b.TRes);}else{if(_6b){if(_6b.length){if(_6b[0]["@Status"]=="SUCCESS"){return true;}}else{if(_6b["@Status"]=="SUCCESS"){return true;}}}}}return false;},ajaxErrorHandler:function(xhr){try{switch(xhr.status){case 503:case 12029:case 12030:case 12031:case 12152:case 12159:case 12002:if(jQuery.ajaxHelper.retryCounter<jQuery.ajaxHelper.retries){jQuery.ajaxHelper.retryCounter++;return true;}break;default:break;}jQuery.ajaxHelper.retryCounter=0;return false;}catch(e){jQuery.ajaxHelper.retryCounter=0;return false;}},procErrorCode:function(_6d){var _6e=jQuery.langStrings.serverErrorList.serverError;if(jQuery.langStrings.serverErrorList[_6d]){_6e=jQuery.langStrings.serverErrorList[_6d];}return _6e;}};})(jQuery);(function($){jQuery.serviceHelper={thingsToDoSet:function(_2,_3,_4,_5){var _6="<TReq Type=\"ThingsToDo.Set\">";_6+="<Done>";_6+=_4.join(",");_6+="</Done>";_6+="</TReq>";_6+="<TReq Type=\"ThingsToDo.Get\">";if(_5){_6+="<Max>"+_5+"</Max>";}_6+="</TReq>";$.ajaxHelper.sendAjaxPostRequest("ThingsToDo.SetJSON",_6,_2,_3);},suggestIdentity:function(_7,_8,_9){var _a="<TReq Type=\"SuggestIdentity\">";_a+="<Identity Type=\"PublicID\">";for(var i=0;i<_9.length;i++){_a+="<Token>";_a+=_9[i];_a+="</Token>";}_a+="</Identity>";_a+="</TReq>";jQuery.ajaxHelper.sendAjaxPostRequest("SuggestIdentityJSON",_a,_7,_8);},profileUpdatePublicId:function(_c,_d,_e){var _f="<TReq Type=\"Profile.Update\"><Setting><Profile><MeetMe Enabled=\"true\" ID=\"$TOKEN$\" /></Profile></Setting></TReq>";_f=_f.replace("$TOKEN$",_e.toLowerCase());jQuery.ajaxHelper.sendAjaxPostRequest("Profile.UpdateJSON",_f,_c,_d);},loginFromCookies:function(_10,_11,_12){var _13=readCookie(jQuery.tungleGlobals.cookieUser);var _14=readCookie(jQuery.tungleGlobals.cookiePassword);var _15=readCookie(jQuery.tungleGlobals.cookieSession);if(_13&&_14){var _16={user:_13,pass:_14};jQuery.serviceHelper.loginUser(_16,true,_10,_11);return true;}else{if(_15){var _17=jQuery.ajaxHelper.sessionId;jQuery.ajaxHelper.sessionId=_15;jQuery.ajaxHelper.sendAjaxGetRequest("ImliveJSON",_12,_12);jQuery.ajaxHelper.sessionId=_17;return true;}else{return false;}}},loginUser:function(_18,_19,_1a,_1b){if(_18){if(_18.user==""){return false;}else{if(_18.pass==""){return false;}}}else{return false;}var _1c="<TReq Type=\"Signon\">";if(!_19){_18.pass=b64_sha1_utf8(_18.pass);}_1c+="<Pwd>"+_18.pass+"</Pwd>";_1c+="<Email><![CDATA["+_18.user+"]]></Email>";_1c+="</TReq>";_1c+="<TReq Type=\"QueryUser\"></TReq>";_1c+="<TReq Type=\"ActionItems.Get\"><CountOnly>true</CountOnly></TReq>";jQuery.ajaxHelper.sendAjaxPostRequest("SignonJSON",_1c,_1a,_1b,_19);},sendEmail:function(_1d,_1e,_1f){var _20="<Email>"+_1f+"</Email>";var xml="<Recipients><Tos><To>"+_20+"</To></Tos></Recipients>";xml+="<EmailTemplate ID=\"User_Download_BlackBerry\" />";jQuery.ajaxHelper.sendAjaxPostRequest("SendEmailJSON",xml,_1d,_1e);},AddTungleMeContacts:function(_22,_23,_24){jQuery.ajaxHelper.sendAjaxPostRequest("Contacts.AddJSON",_22,_23,_24);},ContactsDelete:function(_25,_26,_27){var _28="";if(_25){_28="<Buddy ID=\""+_25.id+"\"/>";}else{_28="<Buddies Type=\"Sync\"/>";}jQuery.ajaxHelper.sendAjaxPostRequest("Contacts.DeleteJSON",_28,_26,_27,_25);},SourcesModify:function(_29,_2a,_2b){if(!_29||!_29.calendars){return false;}var _2c="<Source ID=\""+_29.id+"\">";if(_29.calendars.length>0){_2c+="<Calendars>";for(var i=0;i<_29.calendars.length;i++){var _2e=_29.calendars[i];_2c+="<Calendar Action=\""+_2e.action+"\"";if(_2e.id){_2c+=" ID=\""+_2e.id;}if(_2e.uri){_2c+=" Uri=\""+_2e.uri;}_2c+="\">";if(_2e.name&&_2e.name.length>0){_2c+="<![CDATA["+_2e.name+"]]>";}_2c+="</Calendar>";}_2c+="</Calendars>";}if(_29.contactAction){_2c+="<Contacts ReSync=\"true\"></Contacts>";}_2c+="</Source>";jQuery.ajaxHelper.sendAjaxPostRequest("Sources.ModifyJSON",_2c,_2a,_2b,_29);},SourcesAdd:function(_2f,_30,_31,_32,tm){jQuery.ajaxHelper.sendAjaxPostRequest("Sources.AddJSON",_2f,_30,_31,_32,tm);},EventsUpdate:function(_34,_35,_36,_37){jQuery.ajaxHelper.sendAjaxPostRequest("EventsUpdateJSON",_34,_35,_36,_37);},EventDetails:function(_38,_39,_3a,_3b,_3c){var _3d="<TReq Type=\"EventDetails\"><Events CID=\""+_38.cID+"\">";_3d+="<Event ID=\""+_38.eventID+"\">";if(_38.universalID){_3d+="<Uid>"+_38.universalID+"</Uid>";}_3d+="</Event></Events></TReq>";jQuery.ajaxHelper.sendAjaxPostRequest("EventDetailsJSON",_3d,_3a,_3b,_3c);},buildSuggestMe:function(_3e,_3f){var _40="<TReq Type=\"SuggestMe\">";if(_3f&&_3f.length){_40+="<Invitees>";for(var i=0;i<_3f.length;i++){_40+="<UserID Type=\""+_3f[i].type+"\">"+_3f[i].email+"</UserID>";}_40+="</Invitees>";}var _42=_3e?_3e.endOfWeek():new Date().endOfWeek();_40+="<Meeting Duration=\"15\" Start=\""+_42.format("yyyyMMdd")+"T000000\" TimeZone=\""+$.tungleGlobals.user.localTimeZone.label+"\">";_40+="<TimeFilters><Days><Includes>1,2,3,4,5,6,7</Includes></Days></TimeFilters>";_40+="</Meeting>";_40+="<PageSize>1</PageSize>";_40+="</TReq>";return _40;},buildSuggestMeGet:function(_43,_44){var _45=_43?_43.endOfWeek():new Date().endOfWeek();var _46="SuggestMeJSON?Duration=15&FilterDays_1=1,2,3,4,5,6,7&RoundTo=5&PageSize=1";_46+="&TimeZone="+$.tungleGlobals.user.localTimeZone.label;_46+="&StartTime="+_45.format("yyyyMMdd")+"T000000";if(_44&&_44.length){_46+="&PublicIDs=";for(var i=0;i<_44.length;i++){if(_44[i].type=="PublicID"){_46+=_44[i].email;_46+=",";}}}return _46;},suggestMe:function(_48,_49,_4a,_4b){var _4c=jQuery.serviceHelper.buildSuggestMeGet(_4a,_4b);jQuery.ajaxHelper.sendAjaxGetRequest(_4c,_48,_49,_4a);},buildTungleMeGet:function(_4d,_4e,_4f){var _50="<TReq Type=\"TungleMe.Get\">";if(_4d){_50+="<Type>"+_4d+"</Type>";}if(_4e&&_4e.length>0){_50+="<Pids>";_50+=_4e.toString();_50+="</Pids>";}if(_4f===true){_50+="<IndexableOnly>false</IndexableOnly>";}_50+="</TReq>";return _50;},TungleMeGet:function(_51,_52,_53,_54,_55,_56){var _57=jQuery.serviceHelper.buildTungleMeGet(_51,_52,_56);jQuery.ajaxHelper.sendAjaxPostRequest("TungleMe.GetJSON",_57,_53,_54,_55);},ContactGroupsGet:function(_58,_59,_5a){jQuery.ajaxHelper.sendAjaxGetRequest("ContactGroups.GetJSON",_58,_59,_5a);},ContactGroupsDelete:function(gid,_5c,_5d,_5e){jQuery.ajaxHelper.sendAjaxGetRequest("ContactGroups.DeleteJSON?ID="+gid,_5c,_5d,_5e);},ContactGroupsGetContacts:function(gid,_60,_61,_62){jQuery.ajaxHelper.sendAjaxGetRequest("ContactGroups.GetContactsJSON?ID="+gid,_60,_61,_62);},ContactGroupsSet:function(_63,_64,_65,_66){var _67="<TReq Type=\"ContactGroups.Set\"><ContactGroup";if(_63.id){_67+=" ID=\""+_63.id+"\"";}_67+=">";if(_63.name){_67+="<Name>"+_63.name+"</Name>";}if(_63.members){_67+="<Contacts>";for(var i=0;i<_63.members.length;i++){var _69=_63.members[i];_67+="<Contact>";if(_69.id&&!isNaN(_69.id)){_67+="<UserID Type=\""+$.tungleGlobals.UserIdentType.buddyId+"\">"+_69.id+"</UserID>";}else{_67+="<UserID Type=\""+_69.type+"\">"+_69.email+"</UserID>";if(_69.type==$.tungleGlobals.UserIdentType.email){_67+="<FullName><![CDATA["+_69.name.substring(0,255)+"]]></FullName>";}}_67+="</Contact>";}_67+="</Contacts>";}_67+="</ContactGroup></TReq>";jQuery.ajaxHelper.sendAjaxPostRequest("ContactGroups.SetJSON",_67,_64,_65,_66);},DirectorySearch:function(_6a,_6b,_6c,_6d,_6e,_6f){var _70="<Query>";_70+="<Words Operator=\"and\"><![CDATA["+_6a+"]]></Words>";_70+="<Paging>0-"+(_6b-1)+"</Paging>";if(_6f){_70+="<ProfileType>"+_6f+"</ProfileType>";}_70+="</Query>";return $.ajax({type:"POST",url:jQuery.ajaxHelper.getBaseUrl("DirectorySearchJSON"),processData:false,data:jQuery.ajaxHelper.createTMsg("DirectorySearch",_70,_6e),timeout:5000,dataType:"json",success:function(_71){_6c(_71,_6a,_6d);},error:function(xhr,b,e){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){jQuery.serviceHelper.DirectorySearch(_6a,_6b,_6c,_6d,true);}}});},ListValueGet:function(_75,_76,_77,_78,_79,_7a){var _7b="<List";_7b+=" Type=\""+_76+"\"";_7b+=" Size=\""+_77+"\"";_7b+="/>";return $.ajax({type:"POST",url:jQuery.ajaxHelper.getBaseUrl("ListValue.GetJSON"),processData:false,data:jQuery.ajaxHelper.createTMsg("ListValue.Get",_7b,_7a),timeout:5000,dataType:"json",success:function(_7c){_78(_7c,_75,_79);},error:function(xhr,b,e){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){jQuery.serviceHelper.ListValueGet(_75,_76,_77,_78,_79,true);}}});},CreateSpace:function(_80,_81,_82){var _83=jQuery.meetingParser.createSpaceXML(_80.data,_80.slots,_80.cache,_80.type,_80.autobk,_80.ulink,_80.directbk);jQuery.ajaxHelper.sendAjaxPostRequest("CreateSpaceJSON",_83,_81,_82,_80.data);},CreateTempSpace:function(_84,_85,_86){var _87=jQuery.meetingParser.createSpaceXML(_84.data,_84.slots,_84.cache,_84.type,_84.autobk,_84.ulink,_84.directbk);jQuery.ajaxHelper.sendAjaxPostRequest("TempSpaces.CreateJSON",_87,_85,_86,_84.data);},GetPublicTimeline:function(_88,_89,_8a,_8b,_8c,_8d){var _8e="<Query>";_8e+="<From>"+_89.format("yyyyMMdd")+"</From>";_8e+="<To>"+_8a.format("yyyyMMdd")+"</To>";_8e+="<TIDs>"+_88.toString()+"</TIDs>";_8e+="<TimeZone>"+$.tungleGlobals.user.localTimeZone.label+"</TimeZone>";_8e+="</Query>";jQuery.ajaxHelper.sendAjaxPostRequest("PublicTimelineJSON",_8e,_8b,_8c,_8d);}};})(jQuery);(function($){jQuery.tungleGlobals={homeUrl:function(){return "http://"+document.location.hostname+(document.location.port.isEmpty()?"":":"+(parseInt(document.location.port)-363))+"/";},hostedPage:"hosted.htm",spacePage:"space.htm",BASE_URL:"http://tungle.me",BASE_URL_SECURE:"https://tungle.me",LOGO_URL:"/portal/images/tungle_logo.png",user:{fName:null,lName:null,eMail:null,publicID:null,isRegistered:true,syncronized:false,eReminderDisabled:false,cStatus:"Host",meetWithMe:{enabled:null,token:null},timezone:{label:"",text:""},rss:{enabled:null,sr:null,ss:null,su:null,ns:null,url:""},justRegistered:false},cookieArray:new Array("0","0","0","0","0","0","0","0","0","0","0"),featureArray:new Array("0","0","0","0","0"),completionArray:new Array("0","0","0","0","0","0","0","0"),autoCompleteSize:5,lastEntriesSize:5,bookingProtectionSize:2,minDuration:15,maxDuration:480,tglMeHost:{},RPX:{APP_ID:window.location.hostname.indexOf("tungle.me")==-1?"ccagkfiagaklkjoegjfe":"hficppljomdbgekdggea",xdReceiver:"/portal/rpx_xdcomm.html"},userColor:{B:{inner:"#8834b4",header:"#40006a",border:"#40006a",text:"#ffffff"},T:{inner:"#8834b4",header:"url(/portal/images/bg_tentative.gif) #40006a",border:"#40006a",text:"#ffffff"},F:{inner:"#ffffff",header:"#ffffff",border:"#40006a",text:"#40006a"}},UserIdentType:{email:"Email",publicId:"PublicID",buddyId:"Buddy"},BuddyType:{tglme:"TungleMe",sharing:"Sharing",synced:"Synced"},MatchingType:{prefix:"prefix",wildcard:"wildcard"},LastEntryType:{location:"Location",subject:"Subject"},Separators:{basic:"|"},osPref:{view:"canvas",prov:"xing"},CONSTANT_SLOT_WIDTH:{F:125,S:89},DEFAULT_AVATAR_IMAGE:"/portal/images/tungle-me/sampleImg.jpg",spacesCreated:false,spaceHasCommonTimes:false,selectedHasCommonTimes:false,publicWeb:false,portalWeb:false,floatingBarSliding:false,preferencesUpdateXml:"",cookieUser:"TUNGLE_PORTAL_USER",cookiePassword:"TUNGLE_PORTAL_PASS",cookieSession:"TUNGLE_PORTAL_SESSION",cookieName:"TUNGLE_PORTAL_NAME",cookieReferral:"TUNGLE_REFERRAL_URL",cookieGmail:"TUNGLE_GMAIL",cookieSpaceCode:"TUNGLE_SPACEC",cookieUniversalSpaceCode:"TUNGLE_SGUID",cookieTryoutSub:"TUNGLE_PORTAL_TRYOUT_SUB",cookieTryoutMsg:"TUNGLE_PORTAL_TRYOUT_MSG",cookieExtraData:"TUNGLE_PORTAL_Extra",cookieOpenID:"TUNGLE_PORTAL_OpenID",cookieInternal:"TUNGLE_PORTAL_INTERNAL",cookieFilter:"TUNGLE_FILTER_TYPE",invalidTokenGlobal:/[^a-zA-Z0-9_.]+/g,popWin:null,popWinTimer:null,popWinData:null,parseFeatures:function(_2){if(_2.Features){if(_2.Features.Feature.length){for(var i=0;i<_2.Features.Feature.length;i++){parseFeature(_2.Features.Feature[i]["@Name"]);}}else{parseFeature(_2.Features.Feature["@Name"]);}}function parseFeature(_4){if(_4==="ICSFeed"){jQuery.tungleGlobals.featureArray[0]="1";}else{if(_4==="CalDAV"){jQuery.tungleGlobals.featureArray[1]="1";}else{if(_4==="Foursquare"){jQuery.tungleGlobals.featureArray[2]="1";}else{if(_4==="WebEx"){jQuery.tungleGlobals.featureArray[3]="1";}else{if(_4==="LotusLive"){jQuery.tungleGlobals.featureArray[4]="1";}}}}}}},isOwnerEmail:function(_5){if(!_5){return false;}if(_5.equalsIgnoreCase(jQuery.tungleGlobals.user.eMail)||_5.equalsIgnoreCase(jQuery.tungleGlobals.user.publicID)){return true;}if(jQuery.tungleGlobals.user.alteMail){if(jQuery.tungleGlobals.user.alteMail.length){for(var i=0;i<jQuery.tungleGlobals.user.alteMail.length;i++){if(_5.equalsIgnoreCase(jQuery.tungleGlobals.user.alteMail[i].$)){return true;}}}else{if(_5.equalsIgnoreCase(jQuery.tungleGlobals.user.alteMail.$)){return true;}}}return false;},parseQueryUser:function(_7){jQuery.tungleGlobals.user.fName=_7.User.FirstName==undefined?"":_7.User.FirstName.$;jQuery.tungleGlobals.user.lName=_7.User.LastName==undefined?"":_7.User.LastName.$;jQuery.tungleGlobals.user.name=jQuery.tungleGlobals.user.fName+" "+jQuery.tungleGlobals.user.lName;jQuery.tungleGlobals.user.eMail=_7.User.Email.Pri.$;jQuery.tungleGlobals.user.isRegistered=_7.User["@Status"]!="PENDING";jQuery.tungleGlobals.user.alteMail=_7.User.Email.Alts==undefined?null:_7.User.Email.Alts.Alt;jQuery.tungleGlobals.user.id=_7.User["@ID"];var pt=_7.User["@Pt"];if(pt){if(pt==="1000"){jQuery.tungleGlobals.trackGAEvents("User Groups","Power User");}else{if(pt==="5000"){jQuery.tungleGlobals.trackGAEvents("User Groups","Power Organizer");}}}if(_7.User.UserID&&_7.User.UserID["@Type"]==jQuery.tungleGlobals.UserIdentType.publicId){jQuery.tungleGlobals.user.publicID=_7.User.UserID.$;jQuery.tungleGlobals.user.meetWithMe.enabled=(_7.User.UserID["@Enabled"]&&_7.User.UserID["@Enabled"]=="false")?false:true;}if(_7.User.PublicId){jQuery.tungleGlobals.user.meetWithMe.lastToken=_7.User.PublicId.$;}jQuery.tungleGlobals.user.indexMe=_7.User.Preferences&&_7.User.Preferences.IndexMe?(_7.User.Preferences.IndexMe.$=="true"):false;jQuery.tungleGlobals.user.syncronized=_7.User.SyncStatus.$=="true";var _9=_7.User.Preferences&&_7.User.Preferences.UI?_7.User.Preferences.UI.$:"";for(var i=0;i<_9.length;i++){jQuery.tungleGlobals.cookieArray[i]=_9.substring(i,i+1);}var _b=_7.User.Preferences&&_7.User.Preferences.Completion?_7.User.Preferences.Completion.$:"";for(var i=0;i<_b.length;i++){jQuery.tungleGlobals.completionArray[i]=_b.substring(i,i+1);}},buildTimeSlotList:function(_c,_d,_e){var _f=_e?" min":" minutes";var _10=_e?" hr":" hours";var _11="";var _12=jQuery.tungleGlobals.minDuration;for(var i=_c;i<=_d;i+=_12){var _14=i;if(_14>45){_12=30;}if(_14<90){_14=_14+_f;}else{_14=_14/60+_10;}_11+="<option value=\""+(i/60)+"\">"+_14+"</option>";}return _11;},setLocalTimezone:function(){var _15=getTimeZoneToken();for(var i=0;i<TimeZoneLabelToText.length;i++){if(_15==TimeZoneLabelToText[i].label){jQuery.tungleGlobals.user.localTimeZone={label:_15,text:TimeZoneLabelToText[i].text};jQuery.tungleGlobals.setNewTimezone({label:_15,text:TimeZoneLabelToText[i].text});break;}}},setUserData:function(_17){jQuery.tungleGlobals.user.fName=_17.User.FirstName==undefined?"":_17.User.FirstName.$;jQuery.tungleGlobals.user.lName=_17.User.LastName==undefined?"":_17.User.LastName.$;jQuery.tungleGlobals.user.name=jQuery.tungleGlobals.user.fName+" "+jQuery.tungleGlobals.user.lName;jQuery.tungleGlobals.user.eMail=_17.User.Email.Pri.$;jQuery.tungleGlobals.user.alteMail=_17.User.Email.Alts==undefined?null:_17.User.Email.Alts.Alt;jQuery.tungleGlobals.user.id=_17.User["@ID"];},getUserTodayDate:function(){var _18=new Date();if(jQuery.tungleGlobals.user.timezone.today&&jQuery.tungleGlobals.user.localTimeZone.label!==jQuery.tungleGlobals.user.timezone.label){var _19=_18.getTime()-jQuery.tungleGlobals.user.localTimeZone.today.getTime();var _1a=jQuery.tungleGlobals.user.timezone.today.getTime()+_19;_18.setTime(_1a);}return _18;},getFullName:function(_1b,_1c){return (_1b+" "+_1c).trim();},ajax_SetUserTodayDate:function(_1d){if(_1d.TRes.TimeZone.TimeSlots.Timeslot){jQuery.tungleGlobals.user.timezone.today=GlobalParseICalToDate(_1d.TRes.TimeZone.TimeSlots.Timeslot.Start.$);}},setNewTimezone:function(_1e){if(jQuery.tungleGlobals.user.timezone.label!=_1e.label){jQuery.tungleGlobals.user.timezone=_1e;$("span.timezone").text(jQuery.tungleGlobals.user.timezone.text);$("select.timezone option[value='"+jQuery.tungleGlobals.user.timezone.label+"']").attr("selected","selected");if(jQuery.tungleGlobals.user.localTimeZone.label!==jQuery.tungleGlobals.user.timezone.label){var _1f="<TimeZone><From>"+jQuery.tungleGlobals.user.localTimeZone.label+"</From><To>"+jQuery.tungleGlobals.user.timezone.label+"</To><TimeSlots>";jQuery.tungleGlobals.user.localTimeZone.today=new Date();var _20=jQuery.meetingParser.setStartSlot(jQuery.tungleGlobals.user.localTimeZone.today,jQuery.tungleGlobals.user.localTimeZone.today);_1f+="<TimeSlot><Start>"+_20.startSlot+"</Start><End>"+_20.endSlot.substring(0,14)+"1</End></TimeSlot>";_1f+="</TimeSlots></TimeZone>";jQuery.ajaxHelper.sendAjaxPostRequest("Utils.TZConvertJSON",_1f,jQuery.tungleGlobals.ajax_SetUserTodayDate,null);}else{jQuery.tungleGlobals.user.timezone.today=null;}if($.meetingCoordinator){$.meetingCoordinator.clearCache();}}},setNewName:function(_21,_22){jQuery.tungleGlobals.user.fName=_21;jQuery.tungleGlobals.user.lName=_22;jQuery.tungleGlobals.user.name=jQuery.tungleGlobals.user.fName+" "+jQuery.tungleGlobals.user.lName;$("#contactSelf").find("span").text((jQuery.tungleGlobals.user.name.length<20?jQuery.tungleGlobals.user.name:jQuery.tungleGlobals.user.name.substring(0,17)+"...")+" (You)");},setCookie:function(pos,_24,url){if($.tungleGlobals.updateCookie(pos,_24)===false){return false;}jQuery.tungleGlobals.updateProfile(url);},setCookies:function(_26,url){for(var i=0;i<_26.length;i++){jQuery.tungleGlobals.cookieArray[_26[i].pos]=_26[i].val;}jQuery.tungleGlobals.updateProfile(url);},updateCookie:function(pos,_2a){if(jQuery.tungleGlobals.cookieArray[pos]==_2a){return false;}if(pos>=0&&pos<jQuery.tungleGlobals.cookieArray.length){jQuery.tungleGlobals.cookieArray[pos]=_2a;}return true;},updateIndexMe:function(_2b){if(_2b!==jQuery.tungleGlobals.user.indexMe){$.tungleGlobals.preferencesUpdateXml+="<IndexMe>"+_2b+"</IndexMe>";jQuery.tungleGlobals.user.indexMe=_2b;return true;}return false;},updateProfile:function(url){var _2d=$.tungleGlobals.cookieArray.join("");var _2e=$.tungleGlobals.completionArray.join("");var _2f="";_2f+="<Setting Name=\"MyProfile\">";_2f+="<Profile>";_2f+="<Preferences>";_2f+="<UI>"+_2d+"</UI>";if(url!=null){_2f+="<ReferUrl><![CDATA["+url+"]]></ReferUrl>";}if($.tungleGlobals.preferencesUpdateXml){_2f+=$.tungleGlobals.preferencesUpdateXml;$.tungleGlobals.preferencesUpdateXml="";}_2f+="</Preferences>";_2f+="</Profile>";_2f+="</Setting>";jQuery.ajaxHelper.sendAjaxPostRequest("Profile.UpdateJSON",_2f,null,null);},suggestTungleMe:function(){return (jQuery.tungleGlobals.user.fName+jQuery.tungleGlobals.user.lName).replace(jQuery.tungleGlobals.invalidTokenGlobal,".").substring(0,32).toLowerCase();},contextualHelpFontSize:13,loadAnalytics:function(_30,_31){if(_30){window._gaq=window._gaq||[];_gaq.push(["_setAccount",_30]);_gaq.push(["_initData"]);if(_31){_gaq.push(["_trackPageview"]);}}var ga=document.createElement("script");ga.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";ga.setAttribute("async","true");document.getElementsByTagName("head")[0].appendChild(ga);},trackGAEvents:function(_33,_34,_35,opt){if(!window._gaq){return false;}_gaq.push(["_trackEvent",_33,_34,_35,opt]);},gotoHomeFromInside:function(){createCookie(jQuery.tungleGlobals.cookieInternal,"IN",0.001);window.location=jQuery.tungleGlobals.homeUrl();return false;},bindHomeLink:function(){$("#homelink").click(jQuery.tungleGlobals.gotoHomeFromInside);},showPopWin:function(url,_38,_39){var _3a=Math.min(screen.width,765);var _3b=Math.min(screen.height,545);var _3c=(screen.width/2)-(_3a/2);var top=(screen.height/2)-(_3b/2);if(!jQuery.tungleGlobals.popWin||jQuery.tungleGlobals.popWin.closed){jQuery.tungleGlobals.popWinData=null;jQuery.tungleGlobals.popWin=window.open(url,_38,"menubar=1,resizable=1,scrollbars=yes,"+"width="+_3a+",height="+_3b+", top="+top+", left="+_3c);}jQuery.tungleGlobals.popWin.focus();clearInterval(jQuery.tungleGlobals.popWinTimer);jQuery.tungleGlobals.popWinTimer=setInterval(function(){jQuery.tungleGlobals.pollPopWin(_39);},200);},pollPopWin:function(_3e){try{if(!jQuery.tungleGlobals.popWin||jQuery.tungleGlobals.popWin.closed||!jQuery.tungleGlobals.popWin.getUser){if(jQuery.tungleGlobals.popWinData!==null){_3e(jQuery.tungleGlobals.popWinData);clearInterval(jQuery.tungleGlobals.popWinTimer);}}else{jQuery.tungleGlobals.popWinData=jQuery.tungleGlobals.popWin.getUser();if(jQuery.tungleGlobals.popWinData){_3e(jQuery.tungleGlobals.popWinData);jQuery.tungleGlobals.popWin.close();clearInterval(jQuery.tungleGlobals.popWinTimer);}}}catch(e){return true;}},loadPartnerTopBar:function(){var _3f=readCookie("TUNGLE_PORTAL_ORIGIN");removeCookie("TUNGLE_PORTAL_ORIGIN");if(_3f){var _40=_3f.substring(0,2);var url=_3f.substring(2);if(_40==="01"){var _42="<img height=\"16\" width=\"16\" src=\"/portal/images/icons/lotusLive16.png\" style=\"vertical-align:middle;padding-right:5px;\"><a class=\"link\" href=\""+url+"\" style=\"color:#484848;\">Back to Lotus Live</a>";$("#mwmHD").html(_42).show();}}},enableShout:function(_43){if(jQuery.tungleGlobals.cookieArray[7]!=="2"){if($("#shoutOut").length==0){var _44=$("<img id=\"shoutOut\" style=\"display:none;\" src=\"/portal/images/newUI/shoutOut1.png\"/>").click(function(){jQuery.tungleGlobals.setCookie(7,"2");if(!$.browser.msie){$(this).fadeOut(1000,function(){$(this).remove();}).unbind("click");}else{$(this).remove();}});$("body").append(_44);}if(_43){$("#shoutOut").show();}}}};})(jQuery);(function($){if($.browser.mozilla){$.fn.disableTextSelect=function(){return this.each(function(){$(this).css({"MozUserSelect":"none"});});};$.fn.enableTextSelect=function(){return this.each(function(){$(this).css({"MozUserSelect":""});});};}else{if($.browser.msie){$.fn.disableTextSelect=function(){return this.each(function(){$(this).bind("selectstart.disableTextSelect",function(){return false;});});};$.fn.enableTextSelect=function(){return this.each(function(){$(this).unbind("selectstart.disableTextSelect");});};}else{$.fn.disableTextSelect=function(){return this.each(function(){$(this).bind("mousedown.disableTextSelect",function(){return false;});});};$.fn.enableTextSelect=function(){return this.each(function(){$(this).unbind("mousedown.disableTextSelect");});};}}})(jQuery);(function($){$.fn.jqm=function(o){var _o={zIndex:3000,overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",height:200,width:200,bg:null,id:"",ajax:false,target:false,modal:false,toTop:false,onShow:false,onHide:false,onLoad:false,xBTN:true,fixedHeight:true,alternate:false};var _w={popup:"jqmWindow",place:"content",template:"jqmTemplate",template_alt:"jqmTemplateAlt",wrap:"popupWrap",innerC:"content",btn:".jqmBTN"};return this.each(function(){if(this._jqm){return;}s++;this._jqm=s;var _6=o.alternate?o.alternate:_w.template;var t=$("."+_6).clone();$(this).parent().append(t);t.find("."+_w.place).append($(this).show());t.removeClass(_6).addClass(_w.popup);t.get(0)._jqm=s;H[s]={c:$.extend(_o,o),a:false,w:t.addClass("jqmID"+s),s:s,classes:_w};var _9={height:o.height+"px",width:o.width+"px","margin-left":o.alternate?0:"-"+o.width/2+"px","margin-top":o.alternate?0:"-"+o.height/2+"px"};var _a={height:o.height-5+"px"};if(!_o.fixedHeight){_9={height:"auto",width:o.width+"px","margin-left":o.alternate?0:"-"+o.width/2+"px","margin-top":o.alternate?0:"-"+o.height/2+"px"};_a={height:"auto"};}t.find("div."+_w.wrap).css(_9).end().find("div."+_w.innerC).css(_a);if(_o.bg){t.find("div."+_w.innerC).css("background",_o.bg);}if(!_o.xBTN){t.find(_w.btn).remove();}if(_o.id){t.attr("id",_o.id);}if(_o.trigger){$(this).jqmAddTrigger(_o.trigger);}});};$.fn.jqmAddClose=function(e){hs(this,e,"jqmHide");return this;};$.fn.jqmAddTrigger=function(e){hs(this,e,"jqmShow");return this;};$.fn.jqmShow=function(t){return this.each(function(){if(this._jqm&&!H[this._jqm].a){$.jqm.open(this._jqm,t);}});};$.fn.jqmHide=function(t){return this.each(function(){if(this._jqm&&H[this._jqm].a){$.jqm.close(this._jqm,t);}});};$.fn.jqmResize=function(w,h,_12){return this.each(function(){var obj=H[this._jqm];var _w=obj.classes;if(w){$(this).parent().parent().css({width:w+"px","margin-left":obj.c.alternate?0:"-"+w/2+"px"}).find("div."+_w.innerC).css({width:w-5+"px"});}if(h){$(this).parent().parent().css({"margin-top":obj.c.alternate?0:"-"+h/2+"px"});if(obj.c.fixedHeight||_12){$(this).parent().parent().find("div."+_w.innerC).css({height:h-5+"px"});}}});};$.fn.jqmRepos=function(t,l){return this.each(function(){var obj=H[this._jqm];var _w=obj.classes;if(t){obj.w.css({top:t+"px"});}if(l){obj.w.css({left:l+"px"});}});};$.jqm={hash:{},open:function(s,t){var h=H[s],c=h.c,cc="."+c.closeClass,z=(parseInt(h.w.css("z-index"))),z=(z>0)?z:c.zIndex,o=$("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":z-1,opacity:c.overlay/100});h.t=t;h.a=true;h.w.css("z-index",z);if(c.modal){if(!A[0]){F("bind");}A.push(s);o.css("cursor","wait");}else{if(c.overlay>0){h.w.jqmAddClose(o);}else{o=false;}}h.o=(o)?o.addClass(c.overlayClass).prependTo("body"):false;if(ie6){$("html,body").css({height:"100%",width:"100%"});if(o){o=o.css({position:"absolute"})[0];for(var y in {Top:1,Left:1}){o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}}}if(c.ajax){var r=c.target||h.w,u=c.ajax,r=(typeof r=="string")?$(r,h.w):$(r),u=(u.substr(0,1)=="@")?$(t).attr(u.substring(1)):u;r.html(c.ajaxText).load(u,function(){if(c.onLoad){c.onLoad.call(this,h);}if(cc){h.w.jqmAddClose($(cc,h.w));}e(h);});}else{if(cc){h.w.jqmAddClose($(cc,h.w));}}if(c.toTop&&h.o){h.w.before("<span id=\"jqmP"+h.w[0]._jqm+"\"></span>").insertAfter(h.o);}(c.onShow)?c.onShow(h):h.w.show().focus();e(h);return false;},close:function(s){var h=H[s];h.a=false;if(A[0]){A.pop();if(!A[0]){F("unbind");}}if(h.c.toTop&&h.o){$("#jqmP"+h.w[0]._jqm).after(h.w).remove();}if(h.c.onHide){h.c.onHide(h);}else{h.w.hide();if(h.o){h.o.remove();}}return false;}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version=="6.0"),i=$("<iframe src=\"/blank.htm\" class=\"jqm\"></iframe>").css({opacity:0}),e=function(h){if(ie6){if(h.o){h.o.html("<p style=\"width:100%;height:100%\"/>").prepend(i);}else{if(!$("iframe.jqm",h.w)[0]){h.w.prepend(i);}}}f(h);},f=function(h){try{$(":input:visible",h.w)[0].focus();}catch(e){}},F=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents(".jqmID"+h.s)[0]);if(r){f(h);}return !r;},hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm);});$(e).each(function(){if(this[y]){$.extend(this[y],s);}else{this[y]=s;$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1}){for(var s in this[i]){if(H[this[i][s]]){H[this[i][s]].w[i](this);}}}return false;});}});};})(jQuery);(function($){$.Tooltip={blocked:false,defaults:{delay:200,showURL:true,extraClass:"",top:15,left:15},block:function(_2){$(".tooltip").each(function(){if(_2){this.title="";}else{this.title=this.tooltipText;}});$.Tooltip.blocked=_2;}};$.fn.extend({Tooltip:function(_3){return this.each(function(){this.tooltipText=_3;if(!$.Tooltip.blocked){this.title=this.tooltipText;}this.alt="";$(this).addClass("tooltip");});},RemoveTooltip:function(_4){return this.each(function(){this.tooltipText="";this.title="";this.alt="";$(this).removeClass("tooltip");});}});})(jQuery);(function($){var _2="[a-z\\d.-]+://",_3="(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])",_4="(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+",_5="(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)",_6="(?:"+_4+_5+"|"+_3+")",_7="(?:[;/][^#?<>\\s]*)?",_8="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",_9="\\b"+_2+"[^<>\\s]+",_a="\\b"+_6+_7+_8+"(?!\\w)",_b="mailto:",_c="(?:"+_b+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+_6+_8+"(?!\\w)",_d=new RegExp("(?:"+_9+"|"+_a+"|"+_c+")","ig"),_e=new RegExp("^"+_2,"i"),_f={"'":"`",">":"<",")":"(","]":"[","}":"{","\ufffd":"\ufffd","\ufffd":"\ufffd"},_10={callback:function(_11,_12){return _12?"<a href=\""+_12+"\" title=\""+_12+"\""+(_10.openBlank?" target=\"_blank\"":"")+">"+_11+"</a>":_11;},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/,openBlank:true};$.linkify=function(txt,_14){_14=_14||{};var arr,i,_17,_18,_19="",_1a=[],_1b,_1c,idx,_1e,_1f,_20,_21,_22;$.extend(_10,_14);while(arr=_d.exec(txt)){_17=arr[0];_1c=_d.lastIndex;idx=_1c-_17.length;if(/[\/:]/.test(txt.charAt(idx-1))){continue;}do{_1e=_17;_22=_17.substr(-1);_21=_f[_22];if(_21){_1f=_17.match(new RegExp("\\"+_21+"(?!$)","g"));_20=_17.match(new RegExp("\\"+_22,"g"));if((_1f?_1f.length:0)<(_20?_20.length:0)){_17=_17.substr(0,_17.length-1);_1c--;}}if(_10.punct_regexp){_17=_17.replace(_10.punct_regexp,function(a){_1c-=a.length;return "";});}}while(_17.length&&_17!==_1e);_18=_17;if(!_e.test(_18)){_18=(_18.indexOf("@")!==-1?(!_18.indexOf(_b)?"":_b):!_18.indexOf("irc.")?"irc://":!_18.indexOf("ftp.")?"ftp://":"http://")+_18;}if(_1b!=idx){_1a.push([txt.slice(_1b,idx)]);_1b=_1c;}_1a.push([_17,_18]);}_1a.push([txt.substr(_1b)]);for(i=0;i<_1a.length;i++){_19+=_10.callback.apply(window,_1a[i]);}return _19||txt;};})(jQuery);(function($){$.fn.monthlyCalendar=function(_2){var _3={calendarId:"mZ",smallestResolution:880,calendarWidth:151,defaultNumCalendars:1,highlightsList:new Array(),currentWeek:new Array(),constantDisplay:true,firstDayOfWeek:0,clickHandler:null,lastSelectedDate:null,restrictedList:null,selectedDate:new Date(),currentHightlight:null};var _4={months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["S","M","T","W","T","F","S"],highlightedList:new Array(),numWeek:7};var _5={dayTitle:"dT",titleRow:"titleRow",navLeft:"navCalL",navRight:"navCalR"};$.extend(_3,_2);var _6;var _7;var _8;var _9;var _a;var _b;var _c;var _d;var _e;var _f;var _10;var _11;_6=function(_12){var _13="";for(var i=0;i<_3.highlightsList.length;i++){if(_3.highlightsList[i].date==_12.format("MMddyy")){_13+=_3.highlightsList[i].cssclass+" ";_4.highlightedList[_4.highlightedList.length]=_3.highlightsList[i];_3.highlightsList.splice(i,1);}}for(var i=0;i<_3.currentWeek.length;i++){if(_3.currentWeek[i].date==_12.format("MMddyy")){_13+=_3.currentWeek[i].cssclass+" ";_3.currentWeek.splice(i,1);}}return _13;};_7=function(_15,_16){_3.currentWeek=new Array();var _17=new Date();_17.setTime(_15.getTime());_4.numWeek=_16;if(_16==7){_17.setDate(_17.getDate()-_17.getDay());}else{_17.setDate(_17.getDate()-_17.getDay()+1);}var _18=$("#"+_3.calendarId+" .msW");var tL=_18.length;for(var i=0;i<tL;i++){$(_18[i]).removeClass("msW");}for(var i=0;i<_3.highlightsList.length;i++){if(_3.highlightsList[i].cssclass=="msW"){_3.highlightsList.splice(i,1);}}for(var i=0;i<_16;i++){var par=$("#"+_3.calendarId+_17.format("MMddyy")).parent();if(par.length==0){_3.currentWeek[_3.currentWeek.length]={date:_17.format("MMddyy"),cssclass:"msW"};}else{par.addClass("msW");}_17.setDate(_17.getDate()+1);}};_8=function(_1c,_1d){var _1e=new Date(_1c.getTime());if(_3.lastSelectedDate!=null){$(_3.lastSelectedDate).removeClass("mC");}var _1f=$("#"+_3.calendarId+_1e.format("MMddyy"));if(_1f.length!=0){_1f.addClass("mC");}else{_b(_1e);$("#"+_3.calendarId+_1e.format("MMddyy")).addClass("mC");}_3.lastSelectedDate="#"+_3.calendarId+_1e.format("MMddyy");if(_1d){_7(_1e,_1d);}else{_7(_1e,_4.numWeek);}_3.selectedDate=new Date(_1e.getTime());};_9=function(_20){if(_3.restrictedList==null){return true;}var _21=new Date(_20.getTime());_21.setDate(_21.getDate()-_21.getDay());_21.setHours(0,0,0,0);for(var i=0;i<_3.restrictedList.length;i++){var _23=new Date(_3.restrictedList[i].start.getTime());_23.setDate(_23.getDate()-_23.getDay());_23.setHours(0,0,0,0);if(_23.getTime()==_21.getTime()){return true;}}return false;};_a=function(_24){var _25=jQuery.tungleGlobals.getUserTodayDate();var _26=new Date(_24.getTime());_26.setDate(1);var _27=new Date(_26.getTime());_27.setDate(1);_27.setMonth((_26.getMonth()-1)%11,1);var _28=new Date(_26.getTime());_28.setDate(1);_28.setMonth((_26.getMonth()+1),1);var _29="<thead><tr>";_29+="<th scope=\"col\" colspan=\"7\" class=\""+_5.titleRow+"\" align=\"center\"><img data-prev=\""+_27.getTime()+"\" scrollleft=\"true\" class=\""+_5.navLeft+"\" src=\"/portal/images/icons/arrL16.png\"/>"+_4.months[_26.getMonth()]+" "+_26.getFullYear()+"<img data-next=\""+_28.getTime()+"\" scrollright=\"true\" class=\""+_5.navRight+"\" src=\"/portal/images/icons/arrR16.png\"/></th>";_29+="</tr></thead>";var _2a="<thead><tr>";for(var i=_3.firstDayOfWeek;i<_3.firstDayOfWeek+7;i++){var _2c=i%7;var _2d=_4.days[_2c];_2a+="<th scope=\"col\" abbr=\""+_2d+"\" title=\""+_2d+"\" class=\""+(_2c==0||_2c==6?"mA":"mB")+"\"><div class=\""+_5.dayTitle+"\">"+_2d+"</div></th>";}_2a+="</tr></thead>";var _2e="<tbody>";var _2f=(new Date(_26.getFullYear(),_26.getMonth()+1,0)).getDate();var _30=_3.firstDayOfWeek-_26.getDay();if(_30>0){_30-=7;}var _31=_25.getDate();var _32=false;var _33=false;var _34=_26.getMonth()==_25.getMonth()&&_26.getFullYear()==_25.getFullYear();for(var j=0;j<6;j++){var _36="<tr>";for(var i=0;i<7;i++){var _2c=(_3.firstDayOfWeek+i)%7;var _37={"class":(_2c==0||_2c==6?"mA ":"mB ")};var _38=" ";var _39=" ";if(_30<0||_32){_37["class"]+=" dM ";if(_33&&!_32){_26.setDate(1);_26.setMonth(_26.getMonth()+1);}_33=true;}else{if(_30==0&&_33){_26.setDate(1);_26.setMonth(_26.getMonth()+1);_33=false;}}if(_30>=_2f&&!_32){_26.setDate(1);_26.setMonth(_26.getMonth()+1);_30=0;_37["class"]+=" dM ";_32=true;}var dt=_30+1;_26.setDate(dt);_37["class"]+=_6(_26);_39="id=\""+_3.calendarId+_26.format("MMddyy")+"\" date=\""+_26.getTime()+"\"";_38=_26.getDate();if(_34&&_30+1==_31){_37["class"]+="today";}_36+="<td class=\""+_37["class"]+"\""+_39+">"+_38+"</td>";_30++;}_36+="</tr>";_2e+=_36;if(_32||_30>=_2f){break;}}_2e+="</tbody>";_26=new Date(_24.getTime());_26.setDate(1);var _3b="<div class=\"mcalendar-month\" date=\""+_26.getTime()+"\" id=\""+_3.calendarId+_26.format("MM_yyyy")+"\"><table cellspacing=\"0\" cellpadding=\"0\">"+_29+_2a+_2e+"</table></div>";return _3b;};_b=function(_3c){_3.highlightsList=_3.highlightsList.concat(_4.highlightedList);_4.highlightedList=new Array();$("#"+_3.calendarId).html(_a(_3c));_10();return _3c;};_c=function(_3d){for(var i=0;i<_4.highlightedList.length;i++){if(_4.highlightedList[i].date==_3d.date&&_4.highlightedList[i].cssclass==_3d.cssclass){return true;}}for(var i=0;i<_3.highlightsList.length;i++){if(_3.highlightsList[i].date==_3d.date&&_3.highlightsList[i].cssclass==_3d.cssclass){return true;}}};_d=function(_3f){for(var i=0;i<_3f.length;i++){if(!_c(_3f[i])){var _41=$("#"+_3.calendarId+_3f[i].date);if(_41.length==0){_3.highlightsList[_3.highlightsList.length]=_3f[i];}else{_41.addClass(_3f[i].cssclass);_4.highlightedList[_4.highlightedList.length]=_3f[i];}}}};_e=function(_42){for(var i=0;i<_4.highlightedList.length;i++){$("#"+_3.calendarId+_4.highlightedList[i].date).removeClass(_4.highlightedList[i].cssclass);}_4.highlightedList=new Array();_3.highlightsList=new Array();_d(_42);};_f=function(_44){$("#"+_3.calendarId+_44.date).removeClass(_44.cssclass);for(var i=0;i<_3.highlightsList.length;i++){if(_3.highlightsList[i].date==_44.date&&_3.highlightsList[i].cssclass==_44.cssclass){_3.highlightsList.splice(i,1);break;}}for(var i=0;i<_4.highlightedList.length;i++){if(_4.highlightedList[i].date==_44.date&&_4.highlightedList[i].cssclass==_44.cssclass){_4.highlightedList.splice(i,1);break;}}};_10=function(){if(_3.restrictedList!=null&&_3.restrictedList.length){var _46=new Date(_3.selectedDate.getTime());_46.setDate(0);_46.setDate(_46.getDate()-_46.getDay());var _47=new Date(_3.selectedDate.getTime());_47.setDate(1);_47.setMonth((_3.selectedDate.getMonth()+1),1);_47.setDate(_47.getDate()-_47.getDay()+6);if(_46.getTime()<_3.restrictedList[0].start.getTime()){$("#"+_3.calendarId+" ."+_5.navLeft).hide();}else{$("#"+_3.calendarId+" ."+_5.navLeft).show();}if(_47.getTime()>_3.restrictedList[_3.restrictedList.length-1].end.getTime()){$("#"+_3.calendarId+" ."+_5.navRight).hide();}else{$("#"+_3.calendarId+" ."+_5.navRight).show();}}};_11=function(_48){_3.restrictedList=_48;_10();};return this.each(function(){$(this).attr("id",_3.calendarId);$(this).click(function(e){var tmp=$(e.target);if(tmp.attr("date")){var _4b=new Date();_4b.setTime(tmp.attr("date"));if(_9(_4b)){_8(_4b);if(_3.clickHandler!=null){_3.clickHandler(_4b);}}}else{if(tmp.attr("data-prev")){var _4b=new Date();_4b.setTime(tmp.attr("data-prev"));_b(_4b);}else{if(tmp.attr("data-next")){var _4b=new Date();_4b.setTime(tmp.attr("data-next"));_b(_4b);}}}return false;}).mousemove(function(e){var tmp=$(e.target);if(tmp.attr("date")){var _4e=new Date();_4e.setTime(tmp.attr("date"));var _4f="_"+_4e.getDay();if(_4f!==_3.currentHightlight){$(this).removeClass(_3.currentHightlight);_3.currentHightlight=_4f;$(this).addClass(_3.currentHightlight);}}else{if(_3.currentHightlight){$(this).removeClass(_3.currentHightlight);_3.currentHightlight=null;}}}).mouseleave(function(e){if(_3.currentHightlight){$(this).removeClass(_3.currentHightlight);_3.currentHightlight=null;}});var _51=new Date();$(this).html(_a(_51));_51.setMonth(_51.getMonth()+1);_8(new Date());$(this).bind("setDate",function(e,_53,_54){_8(_53,_54);return false;}).bind("addHighLights",function(e,_56){_d(_56);return false;}).bind("resetHighLights",function(e,_58){_e(_58);return false;}).bind("deleteHighLight",function(e,_5a){_f(_5a);return false;}).bind("setRestrictions",function(e,_5c){_11(_5c);return false;});});};})(jQuery);(function($){$.fn.weeklyCalendar=function(_2,_3,_4,st){var _6={pastId:"tPast",calendarContainer:"wA",showNotAvailable:false,showTimezoneChange:true,prefix:"",naText:"Not Available",forceScrollbars:false,maxHeight:960,showHint:false,scrollTop:300,highlightDay:"hDay",slotWidth:99,calHeight:330,calBookHeight:330,border:1,CONSTANT_SLOT_WIDTH:{F:139,S:99},BLOCK_HEIGHT:20,weekStartDate:null,scrollOnMergeAvailability:true,numDays:7,meetingInfo:{length:60,subject:"No Subject"},color:{inner:"#8834b4",header:"#40006a",border:"#40006a",text:"#ffffff",space:"#f9a94a",spaceBorder:"#c7c7c7"},restrictedList:null,aDHeight:0,scrollers:{initialized:false,left:null,right:null},slotRange:null,scrollable:true};var _7={};var _8={titleDayPrefix:"wp",allDayPrefix:"allday",allDayBG:"alldayBG",dayPrefix:"day",Fdayweek:"Fdayweek",Sdayweek:"Sdayweek",nextweek:"nextweek",prevweek:"prevweek",today:"wcalToday",navweek:"navigate",spacePrefix:"wK",currentDay:"currentDay",timezoneChange:"tzc_chng"};var _9={meetingIcon:"info",scrollLeft:" > div.cal_scrollleft",scrollRight:" > div.cal_scrollright",dayLabel:".day-label",slotContainer:"container",slotContainerAD:"containerAD",alldaySlotContainer:"alldayMeetings",alldayBGContainer:"alldayBGHolder",availBGContainer:"availBGHolder",meetingHolder:"meetingHolder",paintCanvas:"paintCanvas",calBG:"calBG",calBGT:"calBGT",calBGM:"calBGM",calBGB:"calBGB",nextWeekDisabled:"nextWeekD",prevWeekDisabled:"prevWeekD",vSlotBG:"vSlot",noScroll:"noscroll",drawObjects:{space:"space",canvas:"canvas",meeting:"meeting",past:"past"}};var _a={returnSpace:null,retrieveSpaces:null,highlightSlot:null,setNewDate:null,getValidSlots:null,setWeekLength:null,clearAllMeetings:null,getMeetings:null,switchWeek:null,getUserAvailability:null,getAllUserAvailability:null};var _b={exceptionMode:"A",currentState:"READY",drawMode:"SelectSpace",readOnly:false,mode:"",initialized:false,position:null,startPos:null,drawnBoxes:new Array(),canvasBoxes:new Array(),spaceBoxes:new Array(),spaceBoxesEx:new Array(),pastBoxes:new Array(),meetingSlots:new Array(),weeklyAvail:new Array(),weeklyAvailNeg:new Array(),autoScroll:{directon:null,timeout:null,speed:50}};var _c={timeSlotDataArray:new Array()};var _d=$.extend({},$.extend(_6,_2),true);$.extend(_a,_3);$.extend(_8,_4);$.extend(_b,st);var _e;var _f;var _10;var _11;var _12;var _13;var _14;var _15;var _16;var _17;var _18;var _19;var _1a;var _1b;var _1c;var _1d;var _1e;var _1f;var _20;var _21;var _22;var _23;var _24;var _25;var _26;var _27;var _28;var _29;var _2a;var _2b;var _2c;var _2d;var _2e;var _2f;var _30;var _31;var _32;var _33;var _34;var _35;var _36;var _37;var _38;var _39;var _3a;var _3b;var _3c;var _3d;var _3e;var _3f;var _40;var _41;var _42;var _43;var _44;var _45;var _46;var _47;_42=function(_48,_49){var _4a=24/$.weeklyCalendar.numBlocks*60;var _4b=_48*_4a;var _4c=Math.floor(_4b/60);var _4d=_4b%60;var _4e="";var _4f=new Date();_4f.setHours(_4c,_4d);if(_49){if(_4c==24){_4e="23:59:59";}else{_4e=_4f.format("H:mm");}}else{_4e=_4f.format("h:mmt");}return _4e;};_32=function(_50,_51){var _52=_2a(_50,_51);if(_52!=null){return true;}if(_50.dayS===_51.dayS){if(_50.end+1==_51.start||_50.start==_51.end+1){return true;}}return false;};_2a=function(_53,_54){var _55,_56,_57,_58=-1;if(_53.dayS<=_54.dayS&&_53.dayE>=_54.dayE){_55=_54.dayS;_56=_54.dayE;}else{if(_54.dayS<=_53.dayS&&_54.dayE>=_53.dayE){_55=_53.dayS;_56=_53.dayE;}else{if(_54.dayS<=_53.dayS&&_54.dayE>_53.dayS){_55=_53.dayS;_56=_54.dayE;}else{if(_54.dayS<_53.dayE&&_54.dayE>=_53.dayE){_55=_54.dayS;_56=_53.dayE;}}}}if(_55>-1&&_56>-1){if(_53.start<=_54.start&&_53.end>=_54.end){_57=_54.start;_58=_54.end;}else{if(_54.start<=_53.start&&_54.end>=_53.end){_57=_53.start;_58=_53.end;}else{if((_54.start<=_53.start&&_54.end>_53.start)||(_54.start<_53.start&&_54.end>=_53.start)){_57=_53.start;_58=_54.end;}else{if((_54.start<_53.end&&_54.end>=_53.end)||(_54.start<=_53.end&&_54.end>_53.end)){_57=_54.start;_58=_53.end;}}}}}if(_55>-1&&_56>-1&&_57>-1&&_58>-1){return {start:_57,end:_58,dayS:_55,dayE:_56};}return null;};_36=function(_59,add,pos,_5c,_5d,_5e){_5d=(_5d==undefined?"ic_":_5d);_5e=(_5e==undefined?_9.paintCanvas:_5e);if(_5c){var _5f="";var _60=jQuery.tungleGlobals.user.id;for(var i=0;i<_59.length;i++){var id=_d.calendarContainer+_5d+_59[i].id;var eid=id;id=id.replace(/@|\./g,"");if(!add){$("#"+id).removeClass("warning");}else{if($("#"+id).length==0){var _64=_9.meetingIcon;if(_59[i].pub){_64+=" publicInfo";}var _65="";var _66="onmouseover=\"jQuery.eventDetailsBubble.show(this);\" onmouseout=\"jQuery.eventDetailsBubble.hide();\"";var _67=_59[i].start.format("yyyyMMdd");_5f+="<div class=\""+_64+" "+pos[i].type+"\" id=\""+id+"\" data-eid=\""+_59[i].eventID+"\" style=\"left:"+(pos[i].left+pos[i].width-16)+"px;top:"+(pos[i].top+2)+"px;\" "+_66+" data-subj=\""+(_59[i].label.xss()==""?"(No subject)":_59[i].label.xss())+"\"></div>";}}}$("#"+_d.calendarContainer+" div."+_5e).append(_5f);}else{var id=_d.calendarContainer+_5d+_59.id;id=id.replace(/@|\./g,"");if(!add){$("#"+id).removeClass("warning");}else{$("#"+id).addClass("warning");}}};_37=function(_68,add,pos,_6b){_36(_68,add,pos,_6b,"ica_",_9.alldaySlotContainer);};_31=function(box){box.id=_d.calendarContainer+"pt_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;var _6d=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _6e=_d.numDays==7?(box.dayS*_d.slotWidth+_6d):((box.dayS-1)*_d.slotWidth+_6d);var _6f=(box.end-box.start+1)*_d.BLOCK_HEIGHT;var _70="";if(_6f<960){_70="background-position:bottom left;";}var _71="<div id=\""+box.id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+(_6f==_d.maxHeight?_6f:_6f-1)+"px;width: "+(_d.slotWidth+1)+"px; left: "+_6e+"px;"+_70+"\" class=\"past\"></div>";_b.pastBoxes.push(box);return _71;};_45=function(box){box.id=_d.calendarContainer+"abg_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;var _73=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _74=_d.numDays==7?(box.dayS*_d.slotWidth+_73):((box.dayS-1)*_d.slotWidth+_73);var _75=(box.end-box.start+1)*_d.BLOCK_HEIGHT;var _76="<div id=\""+box.id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+(_75==_d.maxHeight?_75:_75-1)+"px;width: "+(_d.slotWidth+1)+"px; left: "+_74+"px;\" class=\"alldayBG\"></div>";return _76;};_23=function(box,_78,_79){var id=_d.calendarContainer+"av_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;var _7b=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _7c=_d.numDays==7?(box.dayS*_d.slotWidth+_7b):((box.dayS-1)*_d.slotWidth+_7b);var _7d=_79==undefined?"All selected<br/>invitees are<br/>available":_79+" is available";var _7e=_d.slotWidth+1;if(_79!=undefined){_7e=_7e*0.9;}if(_7c!=0){_7c-=1;_7e+=1;}var _7f=_d.spBg;var _80="";if(!_d.spBg||_78=="havail"){_7f="innerDivA";_80="<div unselectable=\"on\" class=\"textA\">"+_7d+"</div>";}else{if(_b.drawMode==="SelectExceptions"){_7f="tMbg4";}}var _81="<div id=\""+id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px;width: "+_7e+"px; left: "+_7c+"px;\" class=\"wL2 "+_78+"\">";_81+="<div style=\"height: "+((box.end-box.start+1)*_d.BLOCK_HEIGHT-1)+"px;\" class=\""+_7f+"\">"+_80+"</div></div>";return _81;};_30=function(box,bg){box.id=_d.calendarContainer+"bg_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;var _84=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _85=_d.numDays==7?(box.dayS*_d.slotWidth+_84):((box.dayS-1)*_d.slotWidth+_84);var _86=(_d.slotWidth+1);var _87=(box.end-box.start+1)*_d.BLOCK_HEIGHT;var _88=_d.spBg;if(!_d.spBg){if(_b.drawMode==="BookOriginatorNT"){_88="wCFbg";}else{if(_b.drawMode==="BookMeeting"){_88="wMbg";}else{if(_b.drawMode==="BookOriginator"){_88="wM2bg";}else{_88="wEbg";}}}}var _89="<div class=\""+_88+"\" style=\"height:"+(_87-1)+"px;\"></div>";if(_85!=0){_85-=1;_86+=1;}var _8a="<div id=\""+box.id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+(_87+1)+"px;width: "+_86+"px; left: "+_85+"px;\" class=\""+(bg==null?"":bg)+" canvas\">"+_89+"</div>";return _8a;};_2f=function(box){box.id=_d.calendarContainer+"cs_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;var _8c=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _8d=_d.numDays==7?(box.dayS*_d.slotWidth+_8c):((box.dayS-1)*_d.slotWidth+_8c);var _8e=(_d.slotWidth+1);var _8f=(box.end-box.start+1)*_d.BLOCK_HEIGHT;var _90="<div id=\""+box.id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+_8f+"px;width: "+_8e+"px; left: "+_8d+"px;\" class=\""+(_b.drawMode.indexOf("Book")!==-1?"book ":"")+"canvas\"></div>";_b.canvasBoxes.push(box);return _90;};_35=function(box){if(_b.currentState=="START_DRAG_REG"&&_b.drawMode!=="SelectExceptions"){if((box.end-box.start+1)>=_d.meetingBlockLength){return false;}for(var k=0;k<_b.spaceBoxes.length;k++){if(_32(box,_b.spaceBoxes[k])){return false;}}if((box.end-box.start+1)<_d.meetingBlockLength){var _93=null;for(var k=0;k<_b.canvasBoxes.length;k++){if(_32(box,_b.canvasBoxes[k])){_93=_b.canvasBoxes[k];break;}}if(_93==null){return false;}var _94=_d.meetingBlockLength-(box.end-box.start+1);box.end=Math.min(_93.end,box.end+_94);if((box.end-box.start+1)<_d.meetingBlockLength){_94=_d.meetingBlockLength-(box.end-box.start+1);box.start=Math.max(_93.start,box.start-_94);}}}return true;};_2c=function(box,_96,_97){_35(box);var _98=(box.end-box.start+1)*_d.BLOCK_HEIGHT-2;var _99=_d.slotWidth-2;var _9a=_b.currentState=="START_DRAG_REG"?"paint":"erase";if(_b.drawMode=="SelectExceptions"){_9a+=_b.exceptionMode;}_9a=(_96==null?_9a:_96);var id=_d.calendarContainer+_9a.substring(0,2)+"_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;box.id=id;box.inside=_96;var _9c=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _9d=_d.numDays==7?(box.dayS*_d.slotWidth+_9c):((box.dayS-1)*_d.slotWidth+_9c);var _9e="<div id=\""+id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+_98+"px;width: "+_99+"px; left: "+_9d+"px;\" class=\""+_9a+"\">";var _9f=_42(box.start)+" - "+_42(box.end+1);if(_d.slotWidth<60){_9f=_42(box.start);}if(!_9a.hC("erase")&&!_9a.hC("invalid")){_9e+="<div unselectable=\"on\" class=\"time\">"+_9f+"</div>";}_9e+="</div>";_b.drawnBoxes.push(box);if(_97){$("#"+_97).attr({"id":id,"style":"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+_98+"px;width: "+_99+"px; left: "+_9d+"px;\" class=\""+(_96==null?_9a:_96)}).find("div.time").text(_9f);}return _9e;};_2d=function(box,_a1,_a2){if((box.end-box.start+1)<_d.meetingBlockLength&&!_a1){return "";}var _a3=_a2==undefined?"":_a2;var id=_d.calendarContainer+"sp"+"_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;box.id=id;var _a5=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _a6=_d.numDays==7?(box.dayS*_d.slotWidth+_a5):((box.dayS-1)*_d.slotWidth+_a5);var _a7=_42(box.start)+" - "+_42(box.end+1);if(_d.slotWidth<60){_a7=_42(box.start);}var _a8="data-id=\""+id+"\""+(_a2?" data-type=\""+_a2+"\"":"");var _a9="<div id=\""+id+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px;width: "+_d.slotWidth+"px; left: "+_a6+"px;\" class=\"wL space\"><img src=\"/portal/images/wcal/sp_x.png\" class=\"spx\" "+_a8+"/><div class=\"spd\" "+_a8+"></div><div style=\"height: "+((box.end-box.start+1)*_d.BLOCK_HEIGHT-2)+"px;\" class=\"innerDiv space "+_a3+"\"><div unselectable=\"on\" class=\"time space\">"+_a7;if(_b.drawMode=="SelectMWM"){_a9+="<br/>Available";}else{if(_b.drawMode=="SelectExceptions"){if(_a2=="X"){_a9+="<br/>Not Available";}else{_a9+="<br/>Available";}}else{if(_d.forcePaintText){_a9+="<br/>"+_d.forcePaintText;}}}_a9+="</div></div></div>";_34(box,true,_a2);var _aa=_b.spaceBoxes;if(_b.drawMode=="SelectExceptions"){if(_a2=="X"){_aa=_b.spaceBoxesEx;}else{_aa=_b.spaceBoxes;}}_aa.push(box);return _a9;};_2e=function(box,_ac){var id=_d.calendarContainer+"sp"+"_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;box.id=id;var _ae=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var _af=_d.numDays==7?(box.dayS*_d.slotWidth+_ae):((box.dayS-1)*_d.slotWidth+_ae);var _b0=(_d.slotWidth+1);var _b1=(box.end-box.start+1)*_d.BLOCK_HEIGHT-2;if(_af>0){_af-=1;_b0+=1;}_b0-=2;var _b2="style=\"height:"+_b1+"px;background-color:"+_d.color.innner+";top: "+box.start*_d.BLOCK_HEIGHT+"px;width: "+_b0+"px; left: "+_af+"px;\"";var _b3="<div class=\"mWR meeting\" left=\""+_af+"\" width=\""+_b0+"\" top=\""+box.start*_d.BLOCK_HEIGHT+"\" id=\""+box.id+"\" "+_b2+">";_b3+="<div class=\"mTXT meeting\" style=\"background-color:"+_d.color.header+";color:"+_d.color.text+";\">"+_ac+"</div>";_b3+="<div class=\"tx meeting\" style=\"color:"+_d.color.text+";\">"+_d.meetingInfo.subject.xss()+"</div>";_b3+="</div>";_34(box,true);_b.spaceBoxes.push(box);return _b3;};_e=function(_b4){if(_b.drawMode=="SelectSpace"||_b.drawMode=="SelectMWM"||_b.drawMode=="SelectExceptions"){if(_b.startPos==null){return false;}var _b5={start:Math.min(_b.startPos.slot,_b4.slot),end:Math.max(_b.startPos.slot,_b4.slot),dayS:Math.min(_b.startPos.day,_b4.day),dayE:Math.max(_b.startPos.day,_b4.day)};var _b6=new Array();if(_b.currentState=="START_DRAG_ACT"){if(_b.exceptionMode=="X"&&_b.drawMode=="SelectExceptions"){_b6=_b.spaceBoxesEx;}else{_b6=_b.spaceBoxes;}}else{if(_b.currentState=="START_DRAG_REG"){if(_b.exceptionMode=="X"&&_b.drawMode=="SelectExceptions"){_b6=_b.weeklyAvail;}else{if(_b.drawMode=="SelectExceptions"){_b6=_b.weeklyAvailNeg;}else{_b6=_b.canvasBoxes;}}}}var _b7=new Array();for(var i=0;i<_b6.length;i++){var _b9=_2a(_b5,_b6[i]);if(_b9!=null){_b7.push(_b9);}}for(var i=0;i<_b.drawnBoxes.length;i++){var _ba=false;for(var k=0;k<_b7.length;k++){var _b9=_2a(_b.drawnBoxes[i],_b7[k]);if(_b9!=null){_b7[k].id=_b.drawnBoxes[i].id;_35(_b7[k]);_b.drawnBoxes[i]=_b7[k];var _bc=_42(_b7[k].start)+" - "+_42(_b7[k].end+1);if(_d.slotWidth<60){_bc=_42(_b7[k].start);}$("#"+_b7[k].id).css({"top":_b7[k].start*_d.BLOCK_HEIGHT+"px","height":((_b7[k].end-_b7[k].start+1)*_d.BLOCK_HEIGHT)-2+"px"}).find("div.time").text(_bc);_b7.splice(k,1);_ba=true;break;}}if(!_ba){$("#"+_b.drawnBoxes[i].id).remove();_b.drawnBoxes.splice(i,1);i--;}}var _bd="";for(var i=0;i<_b7.length;i++){_bd+=_2c(_b7[i]);}$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(_bd);}else{if(_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1){var _b5=new Array();var _be={start:_b4.slot,end:_b4.slot,dayS:_b4.day,dayE:_b4.day};if(_b4.slot+_d.meetingBlockLength-1>($.weeklyCalendar.numBlocks-1)){_b5.push({start:_b4.slot,end:($.weeklyCalendar.numBlocks-1),dayS:_b4.day,dayE:_b4.day});_b5.push({start:0,end:(_b4.slot+_d.meetingBlockLength-1)%$.weeklyCalendar.numBlocks,dayS:_b4.day+1,dayE:_b4.day+1});}else{_b5.push({start:_b4.slot,end:_b4.slot+_d.meetingBlockLength-1,dayS:_b4.day,dayE:_b4.day});}var _bf="invalid";if(_b.drawMode.indexOf("BookOriginator")==-1){_bf="invalid";for(var k=0;k<_b.canvasBoxes.length;k++){var _b9=_2a(_b.canvasBoxes[k],_b5[0]);if(_2a(_b.canvasBoxes[k],_be)!=null&&_b9!=null){if(_b5[0].start>=_b.canvasBoxes[k].start&&_b5[0].end<=_b.canvasBoxes[k].end){_bf="valid";}else{var _c0=_b.canvasBoxes[k].end-(_d.meetingBlockLength-1);_b5[0]={start:Math.max(_b.canvasBoxes[k].start,_c0),end:_b.canvasBoxes[k].end,dayS:_b4.day,dayE:_b4.day};_bf="valid";}}}if(_b5[1]){var _b9=null;if(_b5[1].dayS>6){if(_a.getValidSlots!=null){var _c1=new Date(_d.weekStartDate.getTime());_c1.setDate(_c1.getDate()+7);var _c2=_a.getValidSlots(_c1,true);if(_c2&&(typeof _c2!=="string")&&_c2.length>0){var _c3=$.weeklyCalendar.generateValidSlot(_c2[0].start,true);var _c4=$.weeklyCalendar.generateValidSlot(_c2[0].end);var _c5=_c2[0].start.getDay();if(_c5==0&&_c3==0){if(_b5[1].end>=_c4){var _c6=_b5[1].end-_c4+1;_b5[0]={start:_b5[0].start-_c6,end:_b5[0].end,dayS:_b4.day,dayE:_b4.day};}_b9=true;}}}}else{for(var k=0;k<_b.canvasBoxes.length;k++){_b9=_2a(_b.canvasBoxes[k],_b5[1]);if(_b9!=null&&!(_b5[1].start>=_b.canvasBoxes[k].start&&_b5[1].end<=_b.canvasBoxes[k].end)){var _c6=_b5[1].end-_b.canvasBoxes[k].end;_b5[0]={start:_b5[0].start-_c6,end:_b5[0].end,dayS:_b4.day,dayE:_b4.day};break;}else{if(_b9!=null){break;}}}}if(_b9==null){_b5[0]={start:($.weeklyCalendar.numBlocks-1)-_d.meetingBlockLength+1,end:($.weeklyCalendar.numBlocks-1),dayS:_b4.day,dayE:_b4.day};}}}else{_bf="valid";}if(_bf=="invalid"){for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();}_b.drawnBoxes=new Array();}else{if(_bf=="valid"){if(_b.drawnBoxes.length>0){var _b9=_b.drawnBoxes[0].id;_b.drawnBoxes=new Array();_2c(_b5[0],_bf,_b9);}else{$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(_2c(_b5[0],_bf));}}}}}_b.position=_b4;};_f=function(_c7,_c8){_c8=_c8==undefined?_d.weekStartDate:_c8;var _c9=new Date();_c9.setTime(_c8.getTime());var _ca=_42(_c7.start,true).split(":");_c9.setDate(_c8.getDate()+_c7.dayS);_c9.setHours(_ca[0],_ca[1]);var end=new Date();end.setTime(_c8.getTime());var _cc=_42(_c7.end+1,true).split(":");end.setDate(_c8.getDate()+_c7.dayE);if(_cc[2]){end.setHours(_cc[0],_cc[1],_cc[2]);}else{end.setHours(_cc[0],_cc[1]);}return {start:_c9,end:end};};_10=function(_cd){_b.currentState="READY";_b.position=null;_b.startPos=null;_b.drawnBoxes=new Array();_b.canvasBoxes=new Array();_b.spaceBoxes=new Array();_b.spaceBoxesEx=new Array();_b.pastBoxes=new Array();var _ce="";var _cf="";if(_a.getValidSlots!=null){var _d0=new Array();_d0=_a.getValidSlots(_d.weekStartDate,false,_41);var _d1=_18(_d0);_ce=_d1.html;_cf=_d1.bgHTML;if(_a.getAllUserAvailability!=null&&_b.drawMode==="BookOriginator"){_3d(_a.getAllUserAvailability(_d.weekStartDate));}}if(_a.getUserAvailability!=null){var _d2=_a.getUserAvailability(null,_d.weekStartDate);if(_b.drawMode=="SelectExceptions"){_b.weeklyAvail=new Array();}_cf+=_21(_d2);}return {html:_ce,bgHTML:_cf};};_11=function(_d3,_d4,_d5){if(_d3&&_d.showHint&&!_d.tooltipDisplayed&&!_d4.hasClass(_9.drawObjects.past)&&!_d4.hasClass(_9.meetingIcon)&&!_d4.hasClass(_9.drawObjects.meeting)&&(_b.drawMode!=="BookMeeting"&&_b.drawMode.indexOf("BookOriginator")==-1)){var i=0;var _d7=_d4;while(!_d7.attr("id")){_d7=_d7.parent();i++;if(i>5){break;}}var _d8=_d7.offset();var _d9=_d7.parentHasClass(_9.paintCanvas,4);if(_d9.hasClass(_9.paintCanvas)){_d9=_d9.offset();var pos={left:_d8.left,top:(_d9.top+(_d5.slot-1)*_d.BLOCK_HEIGHT)+6,width:_d.slotWidth-13,height:_d.BLOCK_HEIGHT};if(_d.hintPos&&_d.hintPos.top===pos.top&&_d.hintPos.left===pos.left){return false;}_d.hintPos=pos;var _db=jQuery.tungleGlobals.getUserTodayDate();var _dc=_f({start:_d5.slot,end:_d5.slot,dayS:_d5.day,dayE:_d5.day}).start;var _dd="<div class=\"timeT\">"+_db.formatRelative(_dc)+"</div>";if(!_7.bubbleTimeHint){var _de="<div class=\"subjT\"><img src=\"/portal/images/wcal/clockicon.png\" style=\"vertical-align:middle;padding-right:5px;\"/><span class=\"wcal_hover\">"+_dc.format("h:mmt")+"</span></div>";_d7.Bubble({title:_dd,text:_de,cssWidth:130,domId:(_d.calendarContainer+"bubbleHt"),hoverToDismiss:true,show:true},pos);_7.bubbleTimeHint=true;}else{$("#"+_d.calendarContainer+"bubbleHt").find(".wcal_hover").text(_dc.format("h:mmt"));_d7.Bubble({title:_dd,text:null,cssWidth:130,domId:(_d.calendarContainer+"bubbleHt"),hoverToDismiss:true,show:true},pos);}_d.hintShown=true;return true;}}if(_d.hintShown){_d.hintShown=false;$("#"+_d.calendarContainer+"bubbleHt").hide();_d.hintPos=null;}};_2b=function(_df,_e0,e){if(_e0&&_df&&_b.currentState=="READY"){_11(true,_e0,_df);}else{_11(false);}if(_b.readOnly||_e0==undefined){return false;}else{if(_b.position&&(_b.position.day==_df.day&&_b.position.slot==_df.slot)){return false;}}if(_b.readOnly){return false;}if(_b.drawMode=="SelectSpace"||_b.drawMode=="SelectMWM"||_b.drawMode=="SelectExceptions"){if(_b.currentState=="READY"){}else{if(_b.currentState==="START_DRAG_REG"||_b.currentState==="START_DRAG_ACT"){_e(_df);}}}else{if(_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1){if(!_e0.attr("class").hC(_9.drawObjects.meeting)){_e(_df);}else{for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();}_b.drawnBoxes=new Array();}}}};_13=function(_e3,_e4){if(_b.readOnly){if(_a.openWizard&&!_e4.hasClass(_9.meetingIcon)){_a.openWizard(true);}return false;}if(_b.drawMode=="SelectSpace"||_b.drawMode=="SelectMWM"||_b.drawMode=="SelectExceptions"){if(_b.currentState=="READY"){if(_e4.hasClass("spd")){var id=_e4.attr("data-id");var _e6=_e4.attr("data-type");var _e7=_b.spaceBoxes;if(_e6=="X"){_e7=_b.spaceBoxesEx;}for(var i=0;i<_e7.length;i++){if(id&&id===_e7[i].id){$("#"+_e7[i].id).remove();var tmp=_e7[i];_e7.splice(i,1);_34(tmp,false,_e6);_b.startPos={day:tmp.dayS,slot:tmp.start};_b.tempObject=tmp;break;}}_47(null,null,null,_e6,id);}else{_b.startPos=_e3;_b.tempObject=null;}if(_b.drawMode=="SelectExceptions"){var _ea={start:Math.min(_b.startPos.slot,_e3.slot),end:Math.max(_b.startPos.slot,_e3.slot),dayS:Math.min(_b.startPos.day,_e3.day),dayE:Math.max(_b.startPos.day,_e3.day)};_b.exceptionMode="A";for(var i=0;i<_b.weeklyAvail.length;i++){var _eb=_2a(_ea,_b.weeklyAvail[i]);if(_eb!=null){_b.exceptionMode="X";}}}if(_e4.attr("class").hC(_9.drawObjects.space)){_b.currentState="START_DRAG_ACT";_e(_e3);}else{if(_e4.attr("class").hC(_9.drawObjects.canvas)||_e4.hasClass("spd")){_b.currentState="START_DRAG_REG";_e(_e3);}}}}else{if(_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1){if(_e4.hasClass(_9.drawObjects.meeting)){_b.currentState="MEET_DEL";}else{_b.currentState="MEET_ACT";}}}};_34=function(_ec,add,_ee){if(_a.highlightSlot){var _ef=true;if(_b.drawMode=="SelectExceptions"){_ef=false;}else{if((_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1)){if(add){_b.meetingSlots.push({timeslot:_f(_ec),id:_ec.id});}else{for(var i=0;i<_b.meetingSlots.length;i++){if(_b.meetingSlots[i].id!==_ec.id){_b.meetingSlots.splice(i,1);break;}}}}else{for(var k=0;k<_b.spaceBoxes.length;k++){if(_b.spaceBoxes[k].dayS===_ec.dayS){_ef=false;break;}}}}var _ec=_f(_ec);_ec.type=_ee;_a.highlightSlot(_ec,add,_ef,_ee);}};_38=function(box,_f3,_f4){var _f5=null;if(_a.retrieveSpaces!=null){var _f6=_a.retrieveSpaces(_f3,false);if(_f6){for(var k=0;k<_f6.length;k++){var _f8=$.weeklyCalendar.generateValidSlot(_f6[k].start,true);var _f9=$.weeklyCalendar.generateValidSlot(_f6[k].end)-1;var _fa=_f6[k].start.getDay();if(_f5!=null){if(_fa==_f5.space.start.getDay()){_f5.MCalUpdate=false;return _f5;break;}}else{if((_f4&&_f9==($.weeklyCalendar.numBlocks-1)&&_fa==6)||(!_f4&&_f8==0&&_fa==0)){_f5={space:_f6[k],box:{start:_f8,end:_f9,dayS:_fa,dayE:_fa},MCalUpdate:true,k:-2};}}}}}if(_f5==null){return {k:-2};}return _f5;};_39=function(_fb){if(_fb.dayS==0&&_fb.start==0){var _fc=new Date();_fc.setTime(_d.weekStartDate.getTime());_fc.setDate(_fc.getDate()-7);return _38(_fb,_fc,true);}else{if(_fb.dayS==6&&_fb.end==($.weeklyCalendar.numBlocks-1)){var _fc=new Date();_fc.setTime(_d.weekStartDate.getTime());_fc.setDate(_fc.getDate()+7);return _38(_fb,_fc,false);}else{for(var k=0;k<_b.spaceBoxes.length;k++){if((_fb.dayS===(_b.spaceBoxes[k].dayS-1)&&_fb.end==($.weeklyCalendar.numBlocks-1)&&_b.spaceBoxes[k].start==0)||(_fb.dayS===(_b.spaceBoxes[k].dayS+1)&&_fb.start==0&&_b.spaceBoxes[k].end==($.weeklyCalendar.numBlocks-1))){return {k:k};}}}}return {k:-1};};_43=function(_fe,_ff){for(var i=0;i<_b.drawnBoxes.length;i++){var _101=null;for(var k=0;k<_fe.length;k++){if(_32(_b.drawnBoxes[i],_fe[k])){if(_101==null){_101={start:Math.min(_b.drawnBoxes[i].start,_fe[k].start),end:Math.max(_b.drawnBoxes[i].end,_fe[k].end),dayS:Math.min(_b.drawnBoxes[i].dayS,_fe[k].dayS),dayE:Math.max(_b.drawnBoxes[i].dayE,_fe[k].dayE)};}else{_101={start:Math.min(_fe[k].start,_101.start),end:Math.max(_fe[k].end,_101.end),dayS:Math.min(_fe[k].dayS,_101.dayS),dayE:Math.max(_fe[k].dayE,_101.dayE)};}$("#"+_fe[k].id).remove();var tmp=_fe[k];_fe.splice(k,1);_34(tmp,false,_ff);}}if(_101!=null){$("#"+_b.drawnBoxes[i].id).remove();_b.drawnBoxes.splice(i,1);i--;_b.drawnBoxes.push(_101);}}};_44=function(_104,type){var _106=new Array();for(var i=0;i<_b.drawnBoxes.length;i++){var _108=false;for(var k=0;k<_104.length;k++){var temp=_2a(_b.drawnBoxes[i],_104[k]);if(temp!=null){var _10b=null;var _10c=null;if(_104[k].start!==temp.start){_10b={start:_104[k].start,end:temp.start-1,dayS:_104[k].dayS,dayE:_104[k].dayE};_106.push(_10b);}if(_104[k].end!==temp.end){_10c={start:temp.end+1,end:_104[k].end,dayS:_104[k].dayS,dayE:_104[k].dayE};_106.push(_10c);}$("#"+_104[k].id).remove();var tmp=_104[k];_104.splice(k,1);_34(tmp,false,type);k--;_108=true;if(_b.drawMode!=="SelectExceptions"){var j=_39(tmp);if(j.k>-1&&_104[j.k].end-_104[j.k].start+1<_d.meetingBlockLength){if((tmp.end==($.weeklyCalendar.numBlocks-1)&&_10c!=null&&_10c.end-_10c.start+_104[j.k].end-_104[j.k].start+2<_d.meetingBlockLength)||(tmp.start==0&&_10b!=null&&_10b.end-_10b.start+_104[j.k].end-_104[j.k].start+2<_d.meetingBlockLength)||(_10b==null&&tmp.start==0)||(_10c==null&&tmp.end==($.weeklyCalendar.numBlocks-1))){$("#"+_104[j.k].id).remove();var tmp=_104[j.k];_104.splice(j.k,1);_34(tmp,false);}}else{if(j.box!=null&&(j.box.end-j.box.start+1<_d.meetingBlockLength)){if((tmp.end==($.weeklyCalendar.numBlocks-1)&&_10c!=null&&_10c.end-_10c.start+j.box.end-j.box.start+2<_d.meetingBlockLength)||(tmp.start==0&&_10b!=null&&_10b.end-_10b.start+j.box.end-j.box.start+2<_d.meetingBlockLength)||(_10b==null&&tmp.start==0)||(_10c==null&&tmp.end==($.weeklyCalendar.numBlocks-1))){_a.highlightSlot(j.space,false,j.MCalUpdate);}}}}break;}}if(_108){$("#"+_b.drawnBoxes[i].id).remove();_b.drawnBoxes.splice(i,1);i--;}}return _106;};_14=function(_10f,_110,_111){if(_110&&_111){_11(true,_110,_111);}else{_11(false);}if(_b.readOnly){return false;}if(_110&&_110.hasClass("spx")&&_b.currentState==="READY"){var id=_110.attr("data-id");var type=_110.attr("data-type");_47(null,null,null,type,id);}else{if(_b.drawMode=="SelectExceptions"){var _114=new Array();if(_b.exceptionMode=="X"){_114=_b.spaceBoxesEx;}else{_114=_b.spaceBoxes;}if(_b.currentState=="START_DRAG_REG"){_b.currentState="READY";_43(_114,_b.exceptionMode);var html="";for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();html+=_2d(_b.drawnBoxes[i],true,_b.exceptionMode);_b.drawnBoxes.splice(i,1);i--;}$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(html);}else{if(_b.currentState=="START_DRAG_ACT"){_b.currentState="READY";var _117=_44(_114,_b.exceptionMode);var html="";for(var i=0;i<_117.length;i++){html+=_2d(_117[i],true,_b.exceptionMode);}$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(html);}}}else{if((_b.drawMode=="SelectSpace"||_b.drawMode=="SelectMWM")&&_b.position!=null){if(_b.currentState=="START_DRAG_REG"){_b.currentState="READY";_43(_b.spaceBoxes);var html="";for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();if((_b.drawnBoxes[i].end-_b.drawnBoxes[i].start+1)<_d.meetingBlockLength){var _118=_39(_b.drawnBoxes[i]);if(_118.k==-1){var _119=_d.meetingBlockLength-(_b.drawnBoxes[i].end-_b.drawnBoxes[i].start+1);var box={start:0,end:_119-1,dayS:_b.drawnBoxes[i].dayS+1,dayE:_b.drawnBoxes[i].dayE+1};if(_b.drawnBoxes[i].start==0){box={start:($.weeklyCalendar.numBlocks-1)-_119+1,end:($.weeklyCalendar.numBlocks-1),dayS:_b.drawnBoxes[i].dayS-1,dayE:_b.drawnBoxes[i].dayE-1};}var _11b=box;for(var k=0;k<_b.spaceBoxes.length;k++){if(_32(_11b,_b.spaceBoxes[k])){_11b={start:Math.min(_b.spaceBoxes[k].start,_11b.start),end:Math.max(_b.spaceBoxes[k].end,_11b.end),dayS:Math.min(_b.spaceBoxes[k].dayS,_11b.dayS),dayE:Math.max(_b.spaceBoxes[k].dayE,_11b.dayE)};$("#"+_b.spaceBoxes[k].id).remove();var tmp=_b.spaceBoxes[k];_b.spaceBoxes.splice(k,1);_34(tmp,false);}}html+=_2d(_11b,true);}else{if(_118.k==-2&&_118.box==null){var _119=_d.meetingBlockLength-(_b.drawnBoxes[i].end-_b.drawnBoxes[i].start+1);var box={start:0,end:_119-1,dayS:0,dayE:0};var _11e=new Date();_11e.setTime(_d.weekStartDate.getTime());_11e.setDate(_11e.getDate()+7);if(_b.drawnBoxes[i].start==0){box={start:($.weeklyCalendar.numBlocks-1)-_119+1,end:($.weeklyCalendar.numBlocks-1),dayS:6,dayE:6};_11e.setTime(_d.weekStartDate.getTime());_11e.setDate(_11e.getDate()-7);}if(_a.retrieveSpaces!=null){var _11f=_a.retrieveSpaces(_11e,false);if(_11f){for(var k=0;k<_11f.length;k++){var _120=$.weeklyCalendar.generateValidSlot(_11f[k].start,true);var _121=$.weeklyCalendar.generateValidSlot(_11f[k].end)-1;var _122=_11f[k].start.getDay();var _123={start:_120,end:_121,dayS:_122,dayE:_122};if(_32(_123,box)){box={start:Math.min(box.start,_123.start),end:Math.max(box.end,_123.end),dayS:Math.min(box.dayS,_123.dayS),dayE:Math.max(box.dayE,_123.dayE)};_a.highlightSlot(_11f[k],false,false);break;}}}}_a.highlightSlot(_f(box,_11e),true,false);}}html+=_2d(_b.drawnBoxes[i],true);}else{html+=_2d(_b.drawnBoxes[i]);}if(_b.tempObject&&_32(_b.drawnBoxes[i],_b.tempObject)){var _124=_39(_b.tempObject);var _125=_39(_b.drawnBoxes[i]);if(_124.k!==_125.k){_12(_124,_b.tempObject);}_b.tempObject=null;}_b.drawnBoxes.splice(i,1);i--;}$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(html);}else{if(_b.currentState=="START_DRAG_ACT"){_b.currentState="READY";var _117=_44(_b.spaceBoxes);var html="";for(var i=0;i<_117.length;i++){if((_117[i].end-_117[i].start+1)<_d.meetingBlockLength){var k=_39(_117[i]);if(k.k>-1){k=k.k;if(_117[i].end+_b.spaceBoxes[k].end-_117[i].start-_b.spaceBoxes[k].start+2>=_d.meetingBlockLength){html+=_2d(_117[i],true);break;}else{$("#"+_b.spaceBoxes[k].id).remove();var tmp=_b.spaceBoxes[k];_b.spaceBoxes.splice(k,1);_34(tmp,false);break;}}else{if(k.box!=null){html+=_2d(_117[i],true);}}}else{html+=_2d(_117[i]);}}$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(html);}}}else{if(_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1){if(_b.currentState=="MEET_DEL"){_b.currentState="READY";for(var i=0;i<_b.spaceBoxes.length;i++){$("#"+_b.spaceBoxes[i].id).remove();}_b.spaceBoxes=new Array();for(var i=0;i<_b.meetingSlots.length;i++){_a.highlightSlot(_b.meetingSlots[i].timeslot,false,true);}_b.meetingSlots=new Array();if(_111!==null){_e(_111);}}else{if(_b.currentState=="MEET_ACT"){_b.currentState="READY";if(_b.drawnBoxes[0]&&_b.drawnBoxes[0].inside==="valid"){var _126=new Array();var time=_42(_b.drawnBoxes[0].start);if(_b.drawnBoxes[0].start+_d.meetingBlockLength-1>($.weeklyCalendar.numBlocks-1)){_126.push({start:_b.drawnBoxes[0].start,end:($.weeklyCalendar.numBlocks-1),dayS:_b.drawnBoxes[0].dayS,dayE:_b.drawnBoxes[0].dayE});_126.push({start:0,end:(_b.drawnBoxes[0].start+_d.meetingBlockLength-1)%$.weeklyCalendar.numBlocks,dayS:_b.drawnBoxes[0].dayS+1,dayE:_b.drawnBoxes[0].dayE+1});}else{if(_b.drawnBoxes[0].end-(_d.meetingBlockLength-1)<0){_126.push({start:$.weeklyCalendar.numBlocks-Math.abs(_b.drawnBoxes[0].end-(_d.meetingBlockLength-1)),end:($.weeklyCalendar.numBlocks-1),dayS:_b.drawnBoxes[0].dayS-1,dayE:_b.drawnBoxes[0].dayE-1});_126.push({start:0,end:_b.drawnBoxes[0].end,dayS:_b.drawnBoxes[0].dayS,dayE:_b.drawnBoxes[0].dayE});}else{_126.push({start:_b.drawnBoxes[0].start,end:_b.drawnBoxes[0].start+_d.meetingBlockLength-1,dayS:_b.drawnBoxes[0].dayS,dayE:_b.drawnBoxes[0].dayE});}}for(var i=0;i<_b.spaceBoxes.length;i++){$("#"+_b.spaceBoxes[i].id).remove();}_b.spaceBoxes=new Array();for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();}_b.drawnBoxes=new Array();for(var i=0;i<_b.meetingSlots.length;i++){_a.highlightSlot(_b.meetingSlots[i].timeslot,false,true);}_b.meetingSlots=new Array();var html="";for(var i=0;i<_126.length;i++){if(_126[i].dayS>6){_b.meetingSlots.push({timeslot:_f(_126[i]),id:"future_slot"});_a.highlightSlot(_b.meetingSlots[i].timeslot,true,true);}else{if(_126[i].dayS<0){_b.meetingSlots.push({timeslot:_f(_126[i]),id:"past_slot"});_a.highlightSlot(_b.meetingSlots[i].timeslot,true,true);}else{html+=_2e(_126[i],time);}}}$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(html);}else{_b.currentState=="READY";if(_10f){for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();}_b.drawnBoxes=new Array();}}}else{_b.currentState=="READY";for(var i=0;i<_b.drawnBoxes.length;i++){$("#"+_b.drawnBoxes[i].id).remove();}_b.drawnBoxes=new Array();}}}}}}_b.currentState="READY";_b.startPos=null;_b.tempObject=null;_b.position=null;};_16=function(date,_129){var _12a=$("#"+_d.calendarContainer);_d.weekStartDate.setTime(date.getTime());_d.weekStartDate.setDate(_d.weekStartDate.getDate()-_d.weekStartDate.getDay());_d.weekStartDate.setHours(0,0,0,0);var _12b=new Date(_d.weekStartDate.getTime());var _12c=jQuery.tungleGlobals.getUserTodayDate();var html="";for(var k=0;k<_d.numDays;k++){var left=k*(_d.slotWidth+1);var i=_d.numDays===7?k:k+1;var _131=(_d.slotWidth-2)+"px";var id=_d.prefix+_8.titleDayPrefix+i;var _133="";if(_d.numDays==7&&k==0&&!_d.widgetView){_133="padding-left:20px;";}else{if(_d.numDays==7&&k==6&&!_d.widgetView){_133="padding-right:20px;";}}_12b.setDate(_12b.getDate()+i-_12b.getDay());var _134=_d.CONSTANT_SLOT_WIDTH.S>90?_12b.format("dddd"):_12b.format("ddd");var _135=_12b.format("d ");if(_b.drawMode=="SelectMWM"){_135="";}else{if(_d.widgetView){_135="<br/>"+_135;}}var _136="";if(_12c.format("yyyyMMdd")===_12b.format("yyyyMMdd")&&_b.drawMode!=="SelectMWM"){_136=_d.highlightDay;_135="";_134="Today";}html+="<div id=\""+id+"\" class=\"day-label "+_136+"\" style=\"width: "+_131+";left:"+left+"px;\"><span style=\""+_133+"\"><b>"+_134+"</b> "+_135+"</span></div>";}_12a.find(" div.weekLabels").html(html);if(!_129&&date.getTime()==_d.weekStartDate.getTime()){return false;}_12a.find(" div."+_9.alldaySlotContainer).trigger("clearMeetings");_12a.find(" div."+_9.meetingHolder).trigger("clearMeetings");_25();};_17=function(day){if(_b.drawMode=="SelectMWM"){_b.currentString="";$("#"+_d.prefix+_8.currentDay).html("&nbsp;").stop(true,true);return false;}var _138=new Date(day.getTime());_138.setDate(_138.getDate()-_138.getDay());var _139=new Date(_138.getTime());_139.setDate(_139.getDate()-_139.getDay()+6);var _13a=jQuery.tungleGlobals.getUserTodayDate();if(_138.getTime()<=_13a.getTime()&&_139.getTime()>=_13a.getTime()){$("#"+_d.prefix+_8.today).hide();}else{$("#"+_d.prefix+_8.today).show();}var _13b=day.formatToWeek(_d.slotWidth);if(_13b!==_b.currentString){_b.currentString=_13b;$("#"+_d.prefix+_8.currentDay).text(_13b).stop(true,true).fadeOut(300).fadeIn(300);}};_18=function(_13c){var _13d=new Date();_13d.setTime(_d.weekStartDate.getTime());_13d.setDate(_13d.getDate()-_13d.getDay()+7);var html="";var _13f="";var _140=jQuery.tungleGlobals.getUserTodayDate();var _141=new Date(_140.getTime());_141.setDate(_141.getDate()-_141.getDay());_141.setHours(0,0,0,0);var from=_d.numDays==5?1:0;var to=_d.numDays==5?6:7;for(var i=from;i<to;i++){if(_b.drawMode!=="SelectMWM"&&_d.weekStartDate.getTime()<_140.getTime()&&(i<_140.getDay()||_d.weekStartDate.getTime()<_141.getTime())){var box={start:0,end:($.weeklyCalendar.numBlocks-1),dayS:i,dayE:i};html+=_31(box);}else{if(_b.drawMode!=="SelectMWM"&&_d.weekStartDate.getTime()<_140.getTime()&&(i===_140.getDay()&&_d.weekStartDate.getTime()===_141.getTime())){var _146=24/$.weeklyCalendar.numBlocks*60;var _147=(_140.getHours()*$.weeklyCalendar.numBlocks/24+Math.ceil(_140.getMinutes()/_146));_147=parseInt(_147,10);var box={start:0,end:_147-1,dayS:i,dayE:i};html+=_31(box);if(_13c==null||_13c=="hideAvailabilityUser"){var box2={start:_147,end:($.weeklyCalendar.numBlocks-1),dayS:i,dayE:i};html+=_2f(box2);}}else{if(_13c==null||_13c=="hideAvailabilityUser"){var box={start:0,end:($.weeklyCalendar.numBlocks-1),dayS:i,dayE:i};html+=_2f(box);}}}}if(_13c&&_13c=="loadMWM"){html+=_1e(jQuery.langStrings.spaceMessages.loadingMWMSlots,"",false);}else{if(_13c&&_13c=="hideAvailabilityNext"){html+=_1e(jQuery.langStrings.mwmMessages.availHide,"");}else{if(_13c&&_13c=="hideAvailability"){html+=_1e(jQuery.langStrings.mwmMessages.availDisabled,"");}else{if(_13c&&_13c=="hideAvailabilityUser"){html+=_1e(jQuery.langStrings.mwmMessages.availDisabledUser,"ylwBox");}else{if(_13c&&_13c=="addUsers"){html+=_1e(jQuery.langStrings.mwmMessages.addUsers,"ylwBox");}else{if(_13c&&_13c=="hideAvailabilityUsers"){html+=_1e(jQuery.langStrings.mwmMessages.availDisabledUsers,"ylwBox");}else{if(_13c&&_13c=="hideAvailabilityUserLoggedIn"){html+=_1e(jQuery.langStrings.mwmMessages.availDisabledUserLoggedIn,"ylwBox");}else{if(_13c&&_13c=="noMergedAvailability"){html+=_1e(jQuery.langStrings.spaceMessages.noAvailableTimesNA,"");}else{if(_13c&&_13c.length!==undefined){_c.timeSlotDataArray=new Array();var _149={top:null,bottom:null};for(var i=0;i<_13c.length;i++){var _14a=_13c[i].start;var end=_13c[i].end;if(_14a>=_d.weekStartDate&&end<=_13d&&_14a!=end){var _146=24/$.weeklyCalendar.numBlocks*60;var _14c=(_14a.getHours()*$.weeklyCalendar.numBlocks/24+Math.floor(_14a.getMinutes()/_146));_14c=parseInt(_14c,10);var _14d=(end.getHours()*$.weeklyCalendar.numBlocks/24+Math.round(end.getMinutes()/_146));_14d=parseInt(_14d,10)-1;var _14e=_14a.getDay();var box={start:_14c,end:_14d,dayS:_14e,dayE:_14e};if(_149.top==null||_149.top>box.start){_149.top=box.start;}if(_149.bottom==null||_149.bottom<box.end){_149.bottom=box.end;}html+=_2f(box);var _14f=_9.vSlotBG;_13f+=_30(box,_9.vSlotBG);for(var k=_14c;k<=_14d;k++){_c.timeSlotDataArray.push({slot:{start:k,end:k,dayS:_14e,dayE:_14e},users:new Array()});}}}if(html!=""&&_149&&(!_d.slotRange||_149.top!==_d.slotRange.top||_149.bottom!==_d.slotRange.bottom)){_d.slotRange=_d.slotRange==null?_149:{top:Math.min(_149.top,_d.slotRange.top),bottom:Math.max(_149.bottom,_d.slotRange.bottom)};}_46(true,true);if((_13c.length==0||html=="")&&_b.drawMode.indexOf("BookOriginator")==-1){html+=_1e(jQuery.langStrings.spaceMessages.noAvailableTimes,"");}}}}}}}}}}return {html:html,bgHTML:_13f};};_46=function(_151,_152){if(_d.slotRange&&(_152||_151)){var _153=$("#"+_d.calendarContainer+" ."+_9.slotContainer);if(_151){var _151=Math.min(Math.max(_d.calHeight,(_d.slotRange.bottom-_d.slotRange.top+6)*_d.BLOCK_HEIGHT),_d.maxHeight);if(_151!=_d.calBookHeight&&!_d.forceHeight){_d.calBookHeight=_151;_153.height(_d.calBookHeight);}}if(_152){clearTimeout(_6.adjustScrollAndHeight);_6.adjustScrollAndHeight=setTimeout(function(){if(_d.slotRange){$("#"+_d.calendarContainer+" ."+_9.slotContainer).scrollTop(Math.max(0,(_d.slotRange.top-4)*(_d.BLOCK_HEIGHT)));}},200);}}};_3d=function(_154){var _155=new Date();_155.setTime(_d.weekStartDate.getTime());_155.setDate(_155.getDate()-_155.getDay()+7);if(_154&&_154.length>0){for(var i=0;i<_154[0].length;i++){var name=_154[0][i];for(var k=0;k<_154[i+1].length;k++){var _159=_154[i+1][k].start;var end=_154[i+1][k].end;if(_159>=_d.weekStartDate&&end<=_155&&_159!=end){var _15b=24/$.weeklyCalendar.numBlocks*60;var _15c=(_159.getHours()*$.weeklyCalendar.numBlocks/24+Math.floor(_159.getMinutes()/_15b));_15c=parseInt(_15c,10);var _15d=(end.getHours()*$.weeklyCalendar.numBlocks/24+Math.round(end.getMinutes()/_15b));_15d=parseInt(_15d,10)-1;var _15e=_159.getDay();var box={start:_15c,end:_15d,dayS:_15e,dayE:_15e};for(var j=0;j<_c.timeSlotDataArray.length;j++){if(_c.timeSlotDataArray[j].slot.dayS==box.dayS&&_c.timeSlotDataArray[j].slot.start>=box.start&&_c.timeSlotDataArray[j].slot.end<=box.end){_c.timeSlotDataArray[j].users.push(name);}}}}}}};_3b=function(){var html="";for(var i=0;i<_c.timeSlotDataArray.length;i++){var box=_c.timeSlotDataArray[i].slot;var id=_d.calendarContainer+"ica_"+box.start+"_"+box.end+"_"+box.dayS+"_"+box.dayE;var _165=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var left=_d.numDays==7?(box.dayS*_d.slotWidth+_165):((box.dayS-1)*_d.slotWidth+_165);if(_c.timeSlotDataArray[i].users.length==0){}else{html+="<div class=\"avIcon\" id=\""+id+"\" style=\"left:"+(left+_d.slotWidth-19)+"px;top:"+box.start*_d.BLOCK_HEIGHT+"px;\">"+_c.timeSlotDataArray[i].users.length+"</div>";}}return html;};_3c=function(_167){var html="";var _169="";for(var i=0;i<_c.timeSlotDataArray.length;i++){if(_c.timeSlotDataArray[i].slot.start==_167.slot&&_c.timeSlotDataArray[i].slot.dayS==_167.day){if(_c.timeSlotDataArray[i].users.length>0){var time=_42(_167.slot)+" - "+_42(_167.slot+1);_169=time;html+="<div class=\"details\" style=\"margin:0px 5px;\"><div class=\"attendees\" style=\"margin:5px 0px;\"><div class=\"h2\">Available:</div>";for(var k=0;k<_c.timeSlotDataArray[i].users.length;k++){html+="<div class=\"attendee text-overflow\"><img height=\"8\" width=\"8\" src=\"/portal/images/viral_page/t_bullet2.png\">"+_c.timeSlotDataArray[i].users[k].xss()+"</div>";}html+="</div></div>";break;}}}return {html:html,title:_169};};_28=function(_16d){if(_d.aDHeight===_16d){return false;}_d.aDHeight=Math.min(_16d,100);var _16e=$("#"+_d.calendarContainer);_16e.find("div."+_9.slotContainerAD).height((35+_d.aDHeight)+"px");var _16f=_d.calHeight-_d.aDHeight;if(!_d.scrollable){_16f=_d.calBookHeight;}_16e.find("div."+_9.slotContainer).height(_16f);};_19=function(_170){var html="";for(var k=0;k<_d.numDays;k++){var left=k*(_d.slotWidth+1);left=k==0?left:left-1;html+="<div class='ddivisor' style='left:"+left+"px;height:"+_d.maxHeight+"px;'></div>";}if(_170){var _174=new Array();for(var i=0;i<_170.length;i++){var _176=new Array();var _177=$.weeklyCalendar.generateValidSlot(_170[i].start,true);var _178=$.weeklyCalendar.generateValidSlot(_170[i].end)-1;var _179=_170[i].start.getDay();var _17a=_170[i].end.getDay();var _17b=new Date(_d.weekStartDate.getTime());_17b.setDate(_17b.getDate()+7);if(_170[i].end.getTime()>_17b.getTime()){_17a=7;_178=($.weeklyCalendar.numBlocks-1);}if(_179!==_17a){_176.push({start:_177,end:($.weeklyCalendar.numBlocks-1),dayS:_179,dayE:_179});for(var k=_179+1;k<_17a;k++){_176.push({start:0,end:($.weeklyCalendar.numBlocks-1),dayS:k,dayE:k});}_176.push({start:0,end:_178,dayS:_17a,dayE:_17a});}else{_176.push({start:_177,end:_178,dayS:_179,dayE:_179});}for(var k=0;k<_176.length;k++){var _17c=false;for(var m=0;m<_174.length;m++){var temp=_2a(_176[k],_174[m]);if(temp!=null){_17c=true;_174[m]={start:Math.min(_176[k].start,_174[m].start),end:Math.max(_176[k].end,_174[m].end),dayS:_176[k].dayS,dayE:_176[k].dayE};break;}}if(!_17c){_174.push(_176[k]);}}}for(var m=0;m<_174.length;m++){html+=_45(_174[m]);}}$("#"+_d.calendarContainer+" div."+_9.alldayBGContainer).html(html);};_21=function(_17f){var _180=new Date();_180.setTime(_d.weekStartDate.getTime());_180.setDate(_180.getDate()-_180.getDay()+7);var html="";if(_17f&&_17f=="loadMWM"){html+=_1e(jQuery.langStrings.spaceMessages.loadingMWMSlots,"avail",false);}else{if(_17f=="addUsers"){html+=_1e(jQuery.langStrings.mwmMessages.addUsers,"ylwBox");}else{if(_17f=="previewMode"){html+=_1e(jQuery.langStrings.mwmMessages.previewMode,"ylwBox",null,2);}else{if(_17f.length>0){var _182=jQuery.meetingParser.getCommonTimes(_17f);jQuery.tungleGlobals.selectedHasCommonTimes=(_182&&_182.length>0);html+=_22(_182,"avail");if(_b.drawMode=="SelectExceptions"){_b.weeklyAvailNeg=new Array();for(var i=0;i<_b.canvasBoxes.length;i++){var box={start:_b.canvasBoxes[i].start,end:_b.canvasBoxes[i].end,dayS:_b.canvasBoxes[i].dayS,dayE:_b.canvasBoxes[i].dayE};_b.weeklyAvailNeg.push(box);}var temp=0;for(var i=0;i<_b.weeklyAvailNeg.length;i++){temp++;var _186=false;for(var k=0;k<_b.weeklyAvail.length;k++){var temp=_2a(_b.weeklyAvailNeg[i],_b.weeklyAvail[k]);if(temp!=null){var _188={start:_b.weeklyAvailNeg[i].start,end:temp.start-1,dayS:_b.weeklyAvailNeg[i].dayS,dayE:_b.weeklyAvailNeg[i].dayE};var _189={start:temp.end+1,end:_b.weeklyAvailNeg[i].end,dayS:_b.weeklyAvailNeg[i].dayS,dayE:_b.weeklyAvailNeg[i].dayE};_b.weeklyAvailNeg.splice(i,1);if(_188.start<=_188.end){_b.weeklyAvailNeg.push(_188);}if(_189.start<=_189.end){_b.weeklyAvailNeg.push(_189);}i=-1;break;}}if(temp>_b.weeklyAvailNeg.length*_b.weeklyAvail.length){break;}}}}}}}return html;};_22=function(_18a,_18b,name){var _18d=new Date();_18d.setTime(_d.weekStartDate.getTime());_18d.setDate(_18d.getDate()-_18d.getDay()+7);var html="";if(!_18a||_18a=="loadMWM"){return "";}else{if(_18a.length==0&&_d.showMergeAvMSG){var msg=jQuery.langStrings.spaceMessages.noCommonTimes;if(_d.showMergeAvNAME){name=_d.showMergeAvNAME;}if(name){msg=jQuery.langStrings.spaceMessages.noAvailableTimesI.replace("$NAME$",name);}html+=_1e(msg,_18b);}else{var _190={};for(var i=0;i<_18a.length;i++){var _192=_18a[i].start;var end=_18a[i].end;if(_192>=_d.weekStartDate&&end<=_18d&&_192!=end){var _194=$.weeklyCalendar.generateValidSlot(_192,true);var _195=$.weeklyCalendar.generateValidSlot(end)-1;var _196=jQuery.tungleGlobals.getUserTodayDate();if(_192.getTime()<_196.getTime()){_196.setMinutes(Math.ceil(_196.getMinutes()/15)*15);_194=$.weeklyCalendar.generateValidSlot(_196,true);if(_194>_195||end.getTime()<_196.getTime()){continue;}}var _197=_192.getDay();if(_d.numDays==5&&(_197==0||_197==6)){continue;}var box={start:_194,end:_195,dayS:_197,dayE:_197};html+=_23(box,_18b,name);if(_b.drawMode=="SelectExceptions"){_b.weeklyAvail.push(box);}if(_190.top==null||_190.top>box.start){_190.top=box.start;}if(_190.bottom==null||_190.bottom<box.end){_190.bottom=box.start;}}}if(_d.scrollOnHover||_d.scrollOnMergeAvailability){if(_190.top&&_190.bottom){_d.slotRange=_d.slotRange==null?_190:{top:Math.min(_190.top,_d.slotRange.top),bottom:Math.max(_190.bottom,_d.slotRange.bottom)};_46(false,true);}}}}return html;};_1e=function(text,css,_19b,_19c){var html="";var _19e="";if(_19c){_19e+="z-index:"+_19c;}var top=0;if(_d.slotRange==null){var top=($("#"+_d.calendarContainer+" div."+_9.slotContainer).scrollTop());}else{top=_d.slotRange.top*_d.BLOCK_HEIGHT;}top=Math.round(top)+_d.BLOCK_HEIGHT*2;html+="<div class=\"emptyWeek "+css+"\" style=\"top: "+top+"px;"+_19e+"\">";html+="<div class=\"text\">"+text+"</div>";html+="</div>";if(_19b!==false&&!_d.scrollable&&!_d.forceScrollbars){top=Math.round(top/_d.BLOCK_HEIGHT);if(_d.slotRange==null){_d.slotRange={top:top,bottom:Math.min(top+(_d.calBookHeight/_d.BLOCK_HEIGHT),_d.maxHeight)};}}return html;};_1a=function(_1a0){var _1a1=new Date();_1a1.setTime(_d.weekStartDate.getTime());_1a1.setDate(_1a1.getDate()-_1a1.getDay()+7);var html="";var _1a3=null;if((_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1)&&_1a0.length>0){var _1a4=_1a0[0].start;var end=_1a0[_1a0.length-1].end;_1a3=_1a4.format("h:mmt");}var _1a6=null;for(var i=0;i<_1a0.length;i++){var _1a4=_1a0[i].start;var end=_1a0[i].end;if(_1a4>=_d.weekStartDate&&end<=_1a1&&_1a4!=end){var _1a8=$.weeklyCalendar.generateValidSlot(_1a4,true);var _1a9=$.weeklyCalendar.generateValidSlot(end)-1;var _1aa=_1a4.getDay();if(_d.numDays==5&&(_1aa==0||_1aa==6)){continue;}var box={start:_1a8,end:_1a9,dayS:_1aa,dayE:_1aa};if(_1a3!=null){html+=_2e(box,_1a3);}else{if(_b.drawMode=="SelectExceptions"){var type=_1a0[i].type;html+=_2d(box,true,type);}else{var _1ad=false;if((box.end-box.start+1)<_d.meetingBlockLength){var j=_39(box);if(j.box!=null){if(box.end-box.start+j.box.end-j.box.start+2<_d.meetingBlockLength){_a.highlightSlot(j.space,false,j.MCalUpdate);}else{_1ad=true;}}else{for(var k=0;k<_1a0.length;k++){if(k==i){continue;}var _1b0=$.weeklyCalendar.generateValidSlot(_1a0[k].start,true);var _1b1=$.weeklyCalendar.generateValidSlot(_1a0[k].end)-1;var _1b2=_1a0[k].start.getDay();var _1b3={start:_1b0,end:_1b1,dayS:_1b2,dayE:_1b2};if((box.dayS===(_1b3.dayS-1)&&box.end==($.weeklyCalendar.numBlocks-1)&&_1b3.start==0)||(box.dayS===(_1b3.dayS+1)&&box.start==0&&_1b3.end==($.weeklyCalendar.numBlocks-1))){if(box.end-box.start+_1b3.end-_1b3.start+2<_d.meetingBlockLength){_a.highlightSlot(_1a0[k],false,true);}else{_1ad=true;}break;}}}}html+=_2d(box,_1ad);}}if(_1a6==null||_1a6>box.start){_1a6=box.start;}}}if(_1a6&&_b.drawMode=="SelectMWM"){$("#"+_d.calendarContainer+" ."+_9.slotContainer).scrollTop(Math.max(0,(_1a6-2)*(_d.BLOCK_HEIGHT)));}return html;};_3f=function(date){var _1b5=new Date(date.getTime());_1b(_1b5);if(_a.setNewDate){_a.setNewDate(date);}};_1b=function(_1b6,_1b7){var date=(_1b6==null?_d.weekStartDate:new Date(_1b6.getTime()));var _1b9=new Date(date.getTime());_1b9.setDate(_1b9.getDate()-_1b9.getDay());_1b9.setHours(0,0,0,0);if(_1b9.getTime()==_d.weekStartDate.getTime()&&!_1b7){return false;}_d.slotRange=null;_17(date);_19();_16(_1b9,_1b7);var _1ba=null;if(_a.getMeetings!=null){_1ba=_a.getMeetings(_1b9,false,true);}var _1bb=$("#"+_d.calendarContainer);var temp=_10();var _1bd=temp.html;var _1be=temp.bgHTML;var _1bf="";if(_a.retrieveSpaces!=null){var _1c0=_a.retrieveSpaces(_1b9,true,_41);if(_1c0&&_1c0.length>0){_1bd+=_1a(_1c0);}}if(_b.drawMode==="BookOriginator"){_1bd+=_3b();}_1bb.find("div."+_9.paintCanvas).html(_1bd);_1bb.find("div."+_9.availBGContainer).html(_1be);if(_1ba!=null){_20(_1ba[0],_1ba[1]);}if(_a.switchWeek){_a.switchWeek();}};_3e=function(_1c1){if(_1c1==_b.autoScroll.direction){return false;}clearInterval(_b.autoScroll.timeout);if(!_b.readOnly&&_d.scrollable&&_b.currentState!="READY"){if(_1c1=="up"){var obj=$("#"+_d.calendarContainer+" div."+_9.slotContainer);_b.autoScroll.timeout=setInterval(function(){var tmp=obj.scrollTop();obj.scrollTop(tmp-_d.BLOCK_HEIGHT);},_b.autoScroll.speed);}else{if(_1c1=="down"){var obj=$("#"+_d.calendarContainer+" div."+_9.slotContainer);_b.autoScroll.timeout=setInterval(function(){var tmp=obj.scrollTop();obj.scrollTop(tmp+_d.BLOCK_HEIGHT);},_b.autoScroll.speed);}}}_b.autoScroll.direction=_1c1;};_27=function(){if(_b.initalized){return false;}_b.initalized=true;$("#"+_d.calendarContainer+" div."+_9.paintCanvas).mousemove(function(e){var tmp=$(this).offset();var x=e.pageX-tmp.left;var y=e.pageY-tmp.top;var day=Math.floor(x/(_d.slotWidth+1));day=_d.numDays==5?Math.min(day+1,5):Math.min(day,6);var time=Math.floor(y/_d.BLOCK_HEIGHT);var _1cb={day:day,slot:time};var _1cc=$(e.target);var _1cd=_1cc.attr("class");if(_1cd.hC("avIcon")){var html=_3c(_1cb);if(html!=""){_1cc.Bubble({title:html.title,text:html.html,cssWidth:230,domId:(_d.calendarContainer+"bubble"),show:true});}_d.bubbleInit=true;_14(true);}else{if(_d.bubbleInit){$("#"+_d.calendarContainer+"bubble").hide();}if(_1cd.hC(_9.drawObjects.past)||(_d.showNotAvailable&&_1cd.hC(_9.paintCanvas))){var box={start:_1cb.slot,end:_1cb.slot,dayS:_1cb.day,dayE:_1cb.day};var text="Time in past";if(_1cd.hC(_9.paintCanvas)){text=_d.naText;}var _1d1=_d.numDays==7?_d.border*box.dayS:_d.border*(box.dayS-1);var left=_d.numDays==7?(box.dayS*_d.slotWidth+_1d1):((box.dayS-1)*_d.slotWidth+_1d1);var temp=$("#"+_d.calendarContainer+_d.pastId);if(box.start%2==0){if(temp.length==0){var _1d4="<div class=\"pastB\" id=\""+_d.calendarContainer+_d.pastId+"\" style=\"top: "+box.start*_d.BLOCK_HEIGHT+"px; height: "+(box.end-box.start+1)*_d.BLOCK_HEIGHT+"px;width: "+(_d.slotWidth+1)+"px; left: "+left+"px;\">"+text+"</div>";$("#"+_d.calendarContainer+" div."+_9.paintCanvas).append(_1d4);_d.tooltipDisplayed=true;}else{$("#"+_d.calendarContainer+_d.pastId).css({"top":box.start*_d.BLOCK_HEIGHT+"px","height":(box.end-box.start+1)*_d.BLOCK_HEIGHT+"px","width":(_d.slotWidth+1)+"px","left":left+"px"}).text(text).show();_d.tooltipDisplayed=true;}}}else{if(!_1cc.attr("class").hC("pastB")&&_d.tooltipDisplayed){$("#"+_d.calendarContainer+_d.pastId).hide();_d.tooltipDisplayed=false;}}_2b(_1cb,_1cc,e);}if(y!=0&&y!=_d.maxHeight){var _1d5=$(this).parent().parent().scrollTop();if((y-_1d5)<40){_3e("up");}else{if((y-_1d5)>(_d.calHeight-_d.aDHeight-40)){_3e("down");}else{_3e(null);}}}else{_3e(null);}}).mousedown(function(e){_3e(null);_11(false);var tmp=$(this).offset();var x=e.pageX-tmp.left;var y=e.pageY-tmp.top;var day=Math.floor(x/(_d.slotWidth+1));day=_d.numDays==5?Math.min(day+1,5):Math.min(day,6);var time=Math.floor(y/_d.BLOCK_HEIGHT);var _1dc={day:day,slot:time};_13(_1dc,$(e.target));return false;}).mouseup(function(e){_3e(null);var tmp=$(this).offset();var x=e.pageX-tmp.left;var y=e.pageY-tmp.top;var day=Math.floor(x/(_d.slotWidth+1));day=_d.numDays==5?Math.min(day+1,5):Math.min(day,6);var time=Math.floor(y/_d.BLOCK_HEIGHT);var _1e3={day:day,slot:time};_14(false,$(e.target),_1e3);return false;});$("#"+_d.calendarContainer+" div."+_9.slotContainer).mouseleave(function(e){_3e(null);if(_d.bubbleInit){$("#"+_d.calendarContainer+"bubble").hide();}if(_d.tooltipDisplayed){$("#"+_d.calendarContainer+_d.pastId).hide();}if(_d.hintShown){_11(false);}_14(true);return false;});$("#"+_d.prefix+_8.today).click(function(){var _1e5=jQuery.tungleGlobals.getUserTodayDate();_3f(_1e5);return false;});$("#"+_d.prefix+_8.prevweek).click(function(){if(_25().left){return false;}var _1e6=new Date();_1e6.setTime(_d.weekStartDate.getTime());_1e6.setDate(_1e6.getDate()-7);_3f(_1e6);return false;});$("#"+_d.prefix+_8.nextweek).click(function(){if(_25().right){return false;}var _1e7=new Date();_1e7.setTime(_d.weekStartDate.getTime());_1e7.setDate(_1e7.getDate()+7);_3f(_1e7);return false;});};_33=function(days,_1e9){if(_d.numDays==days&&!_1e9){return false;}if(days==7){_d.slotWidth=_d.CONSTANT_SLOT_WIDTH.S;_d.numDays=7;}else{if(days==5){_d.slotWidth=_d.CONSTANT_SLOT_WIDTH.F;_d.numDays=5;}else{return false;}}var _1ea=$("#"+_d.calendarContainer);_1ea.find("div."+_9.dayLabel).width((_d.slotWidth-2)+"px");_1b(_d.weekStartDate,true);if(_a.setWeekLength&&!_1e9){_a.setWeekLength(_d.numDays);}};_1c=function(mode,_1ec){var _1ed=$("#"+_d.calendarContainer);var temp=_10();var _1ef=temp.html;var _1f0=temp.bgHTML;_1ed.find("div."+_9.availBGContainer).html(_1f0);if(mode=="ReadOnly"){_b.readOnly=true;_1ed.find("div."+_9.paintCanvas).html(_1ef).addClass("canvasRead");}else{_15(mode);_b.drawMode=mode;if(_b.drawMode=="BookMeeting"||_b.drawMode.indexOf("BookOriginator")!==-1){_b.mode="SpaceBook";}else{_b.mode="SpaceCreate";}_b.readOnly=false;_1ed.find("div."+_9.paintCanvas).html(_1ef).removeClass("canvasRead");}if(_1ec){_1b(_d.weekStartDate,true);}};_1d=function(){$("#"+_d.calendarContainer+" div."+_9.meetingHolder).dailyMeetingManager({slotWidth:_d.slotWidth,blockHeight:_d.BLOCK_HEIGHT,numDays:_d.numDays,maxWidth:jQuery.tungleGlobals.tglMeWidget===true?50:90,dayId:_d.calendarContainer+"MManager"},{addMeetingIcon:_36});$("#"+_d.calendarContainer+" div."+_9.alldaySlotContainer).alldayMeetingManager({changeADHeight:_28,blockHeight:_d.BLOCK_HEIGHT*2,changeDayBG:_19,myId:_d.calendarContainer+"adMM",slotWidth:_d.slotWidth,numDays:_d.numDays},{addMeetingIcon:_37});};_20=function(_1f1,_1f2){if(!_d.scrollable&&!_d.forceScrollbars){var _1f3={top:null,bottom:null};for(var i=0;i<_1f1.length;i++){var _1f5=_1f1[i].start;var end=_1f1[i].end;var _1f7=24/$.weeklyCalendar.numBlocks*60;var _1f8=(_1f5.getHours()*$.weeklyCalendar.numBlocks/24+Math.floor(_1f5.getMinutes()/_1f7));_1f8=parseInt(_1f8,10);var _1f9=(end.getHours()*$.weeklyCalendar.numBlocks/24+Math.round(end.getMinutes()/_1f7));_1f9=parseInt(_1f9,10)-1;if(_1f3.top==null||_1f3.top>_1f8){_1f3.top=_1f8;}if(_1f3.bottom==null||_1f3.bottom<_1f9){_1f3.bottom=_1f9;}}if(_1f3.top!==null&&_1f3.bottom!==null){_d.slotRange=_d.slotRange==null?_1f3:{top:Math.min(_1f3.top,_d.slotRange.top),bottom:Math.max(_1f3.bottom,_d.slotRange.bottom)};_46(true,true);}}var _1fa=$("#"+_d.calendarContainer);_1fa.find("."+_9.paintCanvas+" > ."+_9.meetingIcon).remove();_1fa.find("."+_9.alldaySlotContainer+" > ."+_9.meetingIcon).remove();_1fa.find(" div."+_9.meetingHolder).trigger("reDrawMeetings",[_1f1,_d.numDays,_d.slotWidth]);_1fa.find(" ."+_9.alldaySlotContainer).trigger("reDrawMeetings",[_1f2,new Date(_d.weekStartDate.getTime()),_d.numDays,_d.slotWidth]);};_15=function(_1fb){if(_b.drawMode=="SelectMWM"&&_1fb!=="SelectMWM"){$("#"+_d.prefix+_8.today).show();$("#"+_d.prefix+_8.prevweek).show();$("#"+_d.prefix+_8.nextweek).show();}else{if(_1fb=="SelectMWM"){$("#"+_d.prefix+_8.today).hide();$("#"+_d.prefix+_8.prevweek).hide();$("#"+_d.prefix+_8.nextweek).hide();}}};_24=function(mode,_1fd,_1fe,_1ff){if(_b.mode==mode&&!_1ff){return false;}var _200=$("#"+_d.calendarContainer);_b.mode=mode;if(_1fe=="ReadOnly"){_b.readOnly=true;_200.find("div."+_9.paintCanvas).addClass("canvasRead");}else{_b.readOnly=false;_200.find("div."+_9.paintCanvas).removeClass("canvasRead");}_15(_1fe);if(mode=="SpaceCreate"){if(!_1fe||_1fe=="ReadOnly"){_b.drawMode="SelectSpace";}else{_b.drawMode=_1fe;}_200.find(" div."+_9.calBGM).show();_29(false);_200.find(" div."+_9.slotContainer).height(_d.calHeight-_d.aDHeight);}else{if(mode=="SpaceBook"){if(!_1fe){_b.drawMode="BookOriginator";}else{if(_1fe=="ReadOnly"){_b.drawMode="SelectSpace";}else{_b.drawMode=_1fe;}}_200.find(" div."+_9.calBGM).hide();if(!_1fd){_1fd=_d.slotRange;}_29(true,_1fd);_200.find(" ."+_9.slotContainer).height(_d.calBookHeight);}}};_25=function(){var _201={left:false,right:false};if(_d.restrictedList!=null&&_d.restrictedList.length){var _202=new Date();_202.setDate(_202.getDate()+7);var _203=new Date(_d.weekStartDate.getTime());_203.setHours(_203.getMinutes()-30);var _204=new Date(_d.weekStartDate.getTime());_204.setDate(_204.getDate()+7);if(_203.getTime()<_d.restrictedList[0].start.getTime()){$("#"+_d.prefix+_8.prevweek).addClass(_9.prevWeekDisabled);_201.left=true;}else{$("#"+_d.prefix+_8.prevweek).removeClass(_9.prevWeekDisabled);}if(_204.getTime()>_d.restrictedList[_d.restrictedList.length-1].end.getTime()){$("#"+_d.prefix+_8.nextweek).addClass(_9.nextWeekDisabled);_201.right=true;}else{$("#"+_d.prefix+_8.nextweek).removeClass(_9.nextWeekDisabled);}$("#"+_d.prefix+_8.navweek).hide();}else{$("#"+_d.prefix+_8.nextweek).removeClass(_9.nextWeekDisabled);$("#"+_d.prefix+_8.prevweek).removeClass(_9.prevWeekDisabled);$("#"+_d.prefix+_8.navweek).show();}return _201;};_26=function(_205){_d.restrictedList=_205;_25();};_29=function(_206,_207){if(_d.forceScrollbars){return false;}if(_206&&_b.drawMode!="BookOriginator"&&_d.scrollable){if(_d.scrollable){_d.CONSTANT_SLOT_WIDTH.S+=2;_d.CONSTANT_SLOT_WIDTH.F+=3;if($.browser.msie&&($.browser.version=="6.0")){_d.CONSTANT_SLOT_WIDTH.F--;}}$("#"+_d.calendarContainer+" div."+_9.slotContainerAD).addClass(_9.noScroll);$("#"+_d.calendarContainer+" div."+_9.slotContainer).addClass(_9.noScroll);_d.scrollable=false;}else{if(!_d.scrollable){if(!_d.scrollable){_d.CONSTANT_SLOT_WIDTH.S-=2;_d.CONSTANT_SLOT_WIDTH.F-=3;if($.browser.msie&&($.browser.version=="6.0")){_d.CONSTANT_SLOT_WIDTH.F++;}}$("#"+_d.calendarContainer+" div."+_9.slotContainerAD).removeClass(_9.noScroll);$("#"+_d.calendarContainer+" div."+_9.slotContainer).removeClass(_9.noScroll);_d.scrollable=true;}}_33(_d.numDays,true);if(_207&&_207.top!=null&&_207!=undefined){_d.calBookHeight=Math.min(Math.max(_d.calHeight,(_207.bottom-_207.top+5)*_d.BLOCK_HEIGHT),_d.maxHeight);}_d.slotWidth=_d.numDays==7?_d.CONSTANT_SLOT_WIDTH.S:_d.CONSTANT_SLOT_WIDTH.F;};_40=function(show){if(show){$("#"+_d.calendarContainer+_8.timezoneChange).show();}else{$("#"+_d.calendarContainer+_8.timezoneChange).hide();}};_41=function(_209,_20a,text,_20c){if(!_d.scrollers.initialized){_d.scrollers.initialized=true;$("#"+_d.calendarContainer+_9.scrollLeft).click(function(e){_3f(_d.scrollers.left);return false;}).hover(function(){$(this).removeClass("hidden");},function(){$(this).addClass("hidden");});$("#"+_d.calendarContainer+_9.scrollRight).click(function(e){_3f(_d.scrollers.right);return false;}).hover(function(){$(this).removeClass("hidden");},function(){$(this).addClass("hidden");});}if(_209){_d.scrollers.left=_209;$("#"+_d.calendarContainer+_9.scrollLeft).show().attr("title",_20c||text).find("span").text(_20c||text);}else{_d.scrollers.left=null;$("#"+_d.calendarContainer+_9.scrollLeft).hide();}if(_20a){_d.scrollers.right=_20a;$("#"+_d.calendarContainer+_9.scrollRight).show().attr("title",text).find("span").text(text);}else{_d.scrollers.right=null;$("#"+_d.calendarContainer+_9.scrollRight).hide();}};_47=function(_20f,_210,_211,type,id){if(id||(_20f!==null&&_210!==null)){if(type){var _214=_b.spaceBoxes;if(type=="X"){_214=_b.spaceBoxesEx;}for(var i=0;i<_214.length;i++){if((id&&id===_214[i].id)||(_20f==_214[i].start&&_210==_214[i].end&&_211==_214[i].dayS)){$("#"+_214[i].id).remove();var tmp=_214[i];_214.splice(i,1);_34(tmp,false,type);break;}}}else{for(var i=0;i<_b.spaceBoxes.length;i++){if((id&&id===_b.spaceBoxes[i].id)||(_20f==_b.spaceBoxes[i].start&&_210==_b.spaceBoxes[i].end&&_211==_b.spaceBoxes[i].dayS)){$("#"+_b.spaceBoxes[i].id).remove();var tmp=_b.spaceBoxes[i];_b.spaceBoxes.splice(i,1);_34(tmp,false);var j=_39(tmp);_12(j,tmp);break;}}}}};_12=function(j,tmp){if(j.k>-1&&_b.spaceBoxes[j.k].end-_b.spaceBoxes[j.k].start+1<_d.meetingBlockLength){$("#"+_b.spaceBoxes[j.k].id).remove();var temp=_b.spaceBoxes[j.k];_b.spaceBoxes.splice(j.k,1);_34(temp,false);}else{if(j.box!=null&&(j.box.end-j.box.start+1<_d.meetingBlockLength)){_a.highlightSlot(j.space,false,j.MCalUpdate);}}};return this.each(function(){$(this).attr("id",_d.calendarContainer);_d.BLOCK_HEIGHT=_d.maxHeight/$.weeklyCalendar.numBlocks;if(!_d.weekStartDate){_d.weekStartDate=jQuery.tungleGlobals.getUserTodayDate();_d.weekStartDate.setDate(_d.weekStartDate.getDate()-_d.weekStartDate.getDay());_d.weekStartDate.setHours(0,0,0,0);}_27();var _21b=24/$.weeklyCalendar.numBlocks*60;_d.meetingBlockLength=_d.meetingInfo.length/_21b;_19();_1d();_40(_d.showTimezoneChange);$(this).disableTextSelect();$(this).show();$(this).bind("resetCalendar",function(e,date,_21e,opts){if(_21e){var _220=24/$.weeklyCalendar.numBlocks*60;_d.meetingInfo.length=_21e;_d.meetingBlockLength=_d.meetingInfo.length/_220;}if(opts){$.extend(_d,opts);if(opts.mode){_24(opts.mode,opts.slotRange,opts.drawMode,true);}}_1b(date,true);return false;}).bind("removeExceptionObject",function(e,_222,type){if(_222){var _224=_222.start;var end=_222.end;var _226=$.weeklyCalendar.generateValidSlot(_224,true);var _227=$.weeklyCalendar.generateValidSlot(end)-1;var _228=_224.getDay();_47(_226,_227,_228,type);}}).bind("removeSpaceObject",function(e,_22a){if(_22a){var _22b=_22a.start;var end=_22a.end;var _22d=$.weeklyCalendar.generateValidSlot(_22b,true);var _22e=$.weeklyCalendar.generateValidSlot(end)-1;var _22f=_22b.getDay();_47(_22d,_22e,_22f);}return false;}).bind("setNewDate",function(e,date){_1b(date);return false;}).bind("setCalendarDisplayMode",function(e,mode,_234,_235){if(_234){var _236=24/$.weeklyCalendar.numBlocks*60;if(_234.length){_d.meetingInfo.length=_234.length;_d.meetingInfo.subject=_234.subject;}else{_d.meetingInfo.length=_234;}_d.meetingBlockLength=_d.meetingInfo.length/_236;}if(mode==null){mode=_b.readOnly?"ReadOnly":_b.drawMode;}_1c(mode,_235==undefined);return false;}).bind("paintMeetings",function(e,_238,_239){_20(_238,_239);return false;}).bind("paintAvailability",function(e,_23b){var _23c=_21(_23b);$("#"+_d.calendarContainer).find("div."+_9.availBGContainer).find("div.avail").remove().end().append(_23c);return false;}).bind("paintHoverAvailability",function(e,_23e,name){var _240=name.isValidEmail();if(_240.first){name=_240.first+(_240.last.isEmpty()?"":" "+_240.last.substring(0,1)+".");}else{name=_240.email;}var _241=_22(_23e,"havail",name);$("#"+_d.calendarContainer).find("div."+_9.paintCanvas).find("div.havail").remove().end().append(_241);return false;}).bind("clearHoverAvailability",function(e){$("#"+_d.calendarContainer).find("div."+_9.paintCanvas).find("div.havail").remove();return false;}).bind("setSpaceMode",function(e,mode,_245,_246,_247){_24(mode,_245,_246);if(_247){var _248=24/$.weeklyCalendar.numBlocks*60;_d.meetingInfo.length=_247;_d.meetingBlockLength=_d.meetingInfo.length/_248;}return false;}).bind("meetingConflict",function(e,_24a,add){var _24c=$("#"+_d.calendarContainer+" div."+_9.meetingHolder).triggerHandler("meetingConflict",[_24a]);if(_24c!=null){_36(_24a,add,_24c);}return false;}).bind("meetingConflictAD",function(e,_24e,add){var _250=$("#"+_d.calendarContainer+" div."+_9.alldaySlotContainer).triggerHandler("meetingConflict",[_24e]);if(_250!=null){_37(_24e,add,_250);}return false;}).bind("setRestrictions",function(e,_252){_26(_252);return false;}).bind("setCalTop",function(e,_254){if(_d.slotRange&&_d.slotRange.top&&_d.slotRange.bottom){_46(false,true);return true;}else{return false;}return false;}).bind("showMoreSpacesTabs",function(e,_256,_257,text,_259){_41(_256,_257,text,_259);return false;}).bind("disableScroll",function(e,_25b){_29(_25b);return false;}).bind("show",function(e,show){var _25e=$("#"+_d.calendarContainer);if(jQuery.browser.safari){if(show){_25e.show();_25e.find(" ."+_9.slotContainer).scrollTop(_d.scrollTop);}else{_d.scrollTop=_25e.find(" ."+_9.slotContainer).scrollTop();_25e.hide();}}else{if(show){_25e.show();}else{_25e.hide();}}});$(this).find("div."+_9.slotContainer).height(_d.calHeight-_d.aDHeight);_24(_d.mode,_d.slotRange,_d.drawMode);if(_6.slotRange==null){_6.adjustScrollAndHeight=setTimeout(function(){$("#"+_d.calendarContainer).find(" ."+_9.slotContainer).scrollTop(_d.scrollTop);},150);}});};$.weeklyCalendar={numBlocks:96,generateValidSlot:function(_25f,_260){var _261=24/$.weeklyCalendar.numBlocks*60;var slot=(_25f.getHours()*($.weeklyCalendar.numBlocks/24)+Math.round(_25f.getMinutes()/_261));if(_260){slot=(_25f.getHours()*($.weeklyCalendar.numBlocks/24)+Math.floor(_25f.getMinutes()/_261));}return parseInt(slot,10);}};})(jQuery);(function($){$.fn.dailyMeetingManager=function(_2,_3){var _4={dayId:"",meetingClass:"wMC",meetingContainerClass:"mWR",unsortedMeetings:new Array(),groupedSortedMeetings:new Array(),leftDefault:15,maxWidth:90,leftOffset:0,slotWidth:100,blockHeight:20,warning:"mcW",alertCanvas:"",alertArray:new Array(),numDays:7};var _5={addMeetingIcon:null};$.extend(_4,_2);$.extend(_5,_3);var _6;var _7;var _8;var _9;var _a;var _b;var _c;var _d;_d=function(_e){var _f=$("#me-"+_4.dayId+"_"+_e.id);if(_f){return {top:parseInt(_f.attr("top"),10),left:parseInt(_f.attr("left"),10),width:parseInt(_f.attr("width"),10)};}return null;};_6=function(_10){var _11=new Array();while(_10.length>0){var _12=0;for(var i=0;i<_11.length;i++){if(_10[0].start.getTime()<_11[i].start.getTime()||(_10[0].start.getTime()==_11[i].start.getTime()&&_10[0].end.getTime()>_11[i].end.getTime())){_12=i;break;}else{_12=i+1;}}_10[0].overlaps=undefined;_11.splice(_12,0,_10[0]);_10.splice(0,1);}var _14=0;for(var i=0;i<_11.length;i++){_11[i].zindex=i+1;var _15=24/$.weeklyCalendar.numBlocks*60;_11[i].height=(_11[i].end.getTime()-_11[i].start.getTime())/(1000*60*_15)*_4.blockHeight;_11[i].top=(_11[i].start.getHours()*($.weeklyCalendar.numBlocks/24)+_11[i].start.getMinutes()/_15)*_4.blockHeight;}var _16=new Array();var _17=0;while(_11.length>0){var _18=new Array();_18[0]=_11[0];_11.splice(0,1);for(var i=0;i<_11.length;i++){if(_18[_18.length-1].end.getTime()<=_11[i].start.getTime()){_18[_18.length]=_11[i];_11.splice(i,1);i--;}}_16[_16.length]=_18;_17++;}for(var i=0;i<_16.length;i++){for(var j=0;j<_16[i].length;j++){if(_16[i][j].overlaps==undefined){_16[i][j].overlaps=0;}for(var k=i+1;k<_16.length;k++){var _1b=false;for(var l=0;l<_16[k].length;l++){if(_16[i][j].end.getTime()>_16[k][l].start.getTime()&&_16[k][l].start.getTime()>=_16[i][j].start.getTime()){if(!_1b){_16[i][j].overlaps+=1;_1b=true;_14=Math.max(_16[i][j].overlaps,_14);}_16[k][l].overlaps=_16[i][j].overlaps;}}}}}_4.leftOffset=((_14+1)*_4.leftDefault)>_4.maxWidth?_4.maxWidth/(_14+2):_4.leftDefault;return _16;};_7=function(_1d){var _1e=new Array();for(var i=0;i<_1d.length;i++){_1e[_1e.length]={owner:_1d[i].contactID,eventID:_1d[i].eventID,start:new Date(_1d[i].start.getTime()),end:new Date(_1d[i].end.getTime()),id:_1d[i].id,label:_1d[i].label,color:_1d[i].color,type:_1d[i].type};}return _1e;};_8=function(_20,_21){_4.unsortedMeetings=_7(_20);_4.groupedSortedMeetings=_6(_20);var _22="";var _23=new Array();var _24=new Array();for(var i=0;i<_4.groupedSortedMeetings.length;i++){for(var j=0;j<_4.groupedSortedMeetings[i].length;j++){if(_4.numDays==5&&(_4.groupedSortedMeetings[i][j].start.getDay()==0||_4.groupedSortedMeetings[i][j].end.getDay()==6)){continue;}var _27=_4.maxWidth-(_4.groupedSortedMeetings[i][j].overlaps)*_4.leftOffset;if(_27<=_4.leftOffset){_27=_4.maxWidth/(_4.groupedSortedMeetings[i][j].overlaps);}_27=Math.ceil(_27/100*(_4.slotWidth+1));var _28=_4.numDays==7?_4.groupedSortedMeetings[i][j].start.getDay():_4.groupedSortedMeetings[i][j].start.getDay()-1;var _29=_28*(_4.slotWidth+1);_29+=Math.ceil(i*_4.leftOffset/100*(_4.slotWidth+1));var _2a=_4.groupedSortedMeetings[i][j].color.B;var _2b="background-color:";var _2c=false;if(_4.groupedSortedMeetings[i][j].type=="T"){_2a=_4.groupedSortedMeetings[i][j].color.T;_2c=(_2a.inner===jQuery.tungleGlobals.userColor.T.inner);_2b="background:";}else{if(_4.groupedSortedMeetings[i][j].type=="F"){_2a=_4.groupedSortedMeetings[i][j].color.F;_2c=(_2a.inner===jQuery.tungleGlobals.userColor.F.inner);}else{_2c=(_2a.inner===jQuery.tungleGlobals.userColor.B.inner);}}_27-=2;var _2d=_4.groupedSortedMeetings[i][j].start.getMinutes()==0?_4.groupedSortedMeetings[i][j].start.format("h t"):_4.groupedSortedMeetings[i][j].start.format("h:mm t");var _2e="style=\"background-color:"+_2a.inner+";width:"+_27+"px;left:"+_29+"px;z-index:"+_4.groupedSortedMeetings[i][j].zindex+";top:"+_4.groupedSortedMeetings[i][j].top+"px;height:"+(_4.groupedSortedMeetings[i][j].height-2)+"px;\"";var _2f="<div class=\""+_4.meetingContainerClass+"\" left=\""+_29+"\" width=\""+_27+"\" top=\""+_4.groupedSortedMeetings[i][j].top+"\" id=\"me-"+_4.dayId+"_"+_4.groupedSortedMeetings[i][j].id+"\" title=\""+_4.groupedSortedMeetings[i][j].label.xss()+"\" "+_2e+">";var end=_4.groupedSortedMeetings[i][j].endDisplay||_4.groupedSortedMeetings[i][j].end;_4.groupedSortedMeetings[i][j].meetTime=(_2d+" to "+(end.getMinutes()==0?end.format("h t"):end.format("h:mm t")));if(_2c||_4.groupedSortedMeetings[i][j].label.xss()!=""){_23.push(_4.groupedSortedMeetings[i][j]);_24.push({top:_4.groupedSortedMeetings[i][j].top,left:_29,width:_27,type:(_4.groupedSortedMeetings[i][j].Warn===true?"warning":"")});}_2f+="<div class=\"mTXT\" style=\""+_2b+_2a.header+";color:"+_2a.text+";\">"+_2d+"</div>";_2f+="<div class=\"tx\" style=\"color:"+_2a.text+";\">"+_4.groupedSortedMeetings[i][j].label.xss()+"</div>";_2f+="</div>";_22+=_2f;}}if(_23.length>0&&_5.addMeetingIcon){_5.addMeetingIcon(_23,true,_24,true);}if(_21==undefined){$("#"+_4.dayId).html(_22);}else{_21.html(_22);}for(var i=0;i<_4.alertArray.length;i++){}};_9=function(_31){var _32=-1;for(var i=0;i<_4.unsortedMeetings.length;i++){if(_4.unsortedMeetings[i].id==_31.id){_32=i;break;}}return _32;};_a=function(_34){for(var i=0;i<_34.length;i++){var _36=_9(_34[i]);if(_36!=-1){_4.unsortedMeetings[_36]=_34[i];}else{_4.unsortedMeetings[_4.unsortedMeetings.length]=_34[i];}}_8(_4.unsortedMeetings);};_b=function(_37){for(var i=0;i<_37.length;i++){var _39=_9(_37[i]);if(_39!=-1){$("#me-"+_4.dayId+"_"+_37[i].id).remove();_4.unsortedMeetings.splice(_39,1);}}_8(_4.unsortedMeetings);};_c=function(){$("#"+_4.dayId).html("");_4.unsortedMeetings=new Array();};return this.each(function(){$(this).attr("id",_4.dayId);_8(_4.unsortedMeetings,$(this));$(this).bind("reDrawMeetings",function(e,_3b,_3c,_3d){_4.numDays=_3c;_4.slotWidth=_3d;_8(_3b);return false;});$(this).bind("clearMeetings",function(){_c();return false;});$(this).bind("updateAddMeetings",function(e,_3f){_a(_3f);return false;});$(this).bind("removeMeetings",function(e,_41){_b(_41);return false;});$(this).bind("meetingConflict",function(e,_43){return _d(_43);});$(this).bind("reSizeMeetings",function(e,_45){_4.blockHeight=_45;_8(_4.unsortedMeetings);return false;});});};})(jQuery);(function($){$.fn.alldayMeetingManager=function(_2,cl){var _4={myId:"adMM",unsortedMeetings:new Array(),groupedSortedMeetings:new Array(),blockHeight:20,minSize:0,changeDayBG:null,changeADHeight:null,busyColor:"#F4E5FF",warning:"mcW"};var _5={addMeetingIcon:null};$.extend(_4,_2);$.extend(_5,cl);var _6;var _7;var _8;var _9;var _a;var _b;var _c;_c=function(_d){var _e=$("#me-"+_4.myId+"_"+_d.id+_d.start.getDay());if(_e){return {top:parseInt(_e.attr("top"),10),left:parseInt(_e.attr("left"),10),width:parseInt(_e.attr("width"),10)};}return null;};_6=function(_f){var _10=new Array();while(_f.length>0){var _11=0;for(var i=0;i<_10.length;i++){if(_f[0].start.getTime()<_10[i].start.getTime()||(_f[0].start.getTime()==_10[i].start.getTime()&&_f[0].end.getTime()>_10[i].end.getTime())){_11=i;break;}else{_11=i+1;}}_f[0].overlaps=undefined;_10.splice(_11,0,_f[0]);_f.splice(0,1);}var _13=new Array();while(_10.length>0){var _14=new Array();_14[0]=_10[0];_10.splice(0,1);for(var i=0;i<_10.length;i++){if(_14[_14.length-1].end.getTime()<=_10[i].start.getTime()){_14[_14.length]=_10[i];_10.splice(i,1);i--;}}_13[_13.length]=_14;}return _13;};_7=function(_15){var _16=new Array();for(var i=0;i<_15.length;i++){_16[_16.length]={owner:_15[i].contactID,eventID:_15[i].eventID,start:new Date(_15[i].start.getTime()),end:new Date(_15[i].end.getTime()),id:_15[i].id,label:_15[i].label,color:_15[i].color,type:_15[i].type,tid:_15[i].tid};}return _16;};_8=function(_18,_19,_1a,_1b,_1c,_1d,_1e){if(_4.numDays==5){if(_19==0){_19=1;}if(_1a==6){day=5;}if(_1a<_19){return "";}}var _1f=_1b*_4.blockHeight;var _20=_18.color.B;var _21="background-color:";var _22=false;if(_18.type=="T"){_20=_18.color.T;_22=(_20.inner===jQuery.tungleGlobals.userColor.T.inner);_21="background:";}else{if(_18.type=="F"){_20=_18.color.F;_22=(_20.inner===jQuery.tungleGlobals.userColor.F.inner);}else{_22=(_20.inner===jQuery.tungleGlobals.userColor.B.inner);}}var _23="";if(_1c>0){_23="_"+_1c;}var _24=Math.ceil((_18.end.getHours()+_18.end.getMinutes()/60));_24+=(_1a-_19)*24;var _25=Math.floor((_18.start.getHours()+_18.start.getMinutes()/60));var _26=(_4.slotWidth+1)*(_24-_25)/24;var _27=_4.numDays==7?_19:_19-1;var _28=_27*(_4.slotWidth+1);if((_4.numDays==7&&_19!=0)||(_4.numDays==5&&_19!=1)){_28-=1;}_28+=(_4.slotWidth+1)/24*(_18.start.getHours()+_18.start.getMinutes()/60);var _29=_18.label.xss()+(_18.start.format("MMM d")===_18.end.format("MMM d")?"":": "+_18.start.format("MMM d - ")+_18.end.format("MMM d"));_26-=2;var _2a="style=\"background-color:"+_20.inner+";width:"+_26+"px;left:"+_28+"px;z-index:1;top:"+_1f+"px;height:"+(_4.blockHeight-2)+"px;\"";var _2b="<div class=\"mWR\" left=\""+_28+"\" width=\""+_26+"\" top=\""+_1f+"\" id=\"me-"+_4.myId+"_"+_18.id+_18.start.getDay()+"\" title=\""+_29+"\" "+_2a+">";var _2c=_18.start.getHours()==0?_18.start.format("MMM d"):_18.start.format("MMM d h:mmt");var _2d=_18.end.getHours()==23?_18.end.format("MMM d"):_18.end.format("MMM d h:mmt");_18.meetTime=(_2c===_2d)?_2c:(_2c+" to "+_2d);if(_22||_18.label.xss()!=""){_1d.push(_18);_1e.push({top:_1f,left:_28,width:_26,type:(_18.Warn===true?"warning":"")});}_2b+="<div class=\"mTXT\" style=\""+_21+_20.inner+";color:"+_20.text+";\">"+_18.label.xss()+"</div>";_2b+="</div>";return _2b;};_9=function(_2e,_2f){$("#"+_4.myId).html("");var _30=new Date();_30.setTime(_2f.getTime());_30.setDate(_30.getDate()-_30.getDay()+7);_4.unsortedMeetings=_7(_2e);_4.groupedSortedMeetings=_6(_2e);var _31=new Array("","","","","","","");var _32=undefined;var _33=new Array();var _34=new Array();for(var i=0;i<_4.groupedSortedMeetings.length;i++){for(var j=0;j<_4.groupedSortedMeetings[i].length;j++){var _37=new Date(_4.groupedSortedMeetings[i][j].start);var _38=new Date(_4.groupedSortedMeetings[i][j].end);var _39=0;if(_37.getTime()<_2f.getTime()){_37=new Date(_2f.getTime());_39++;}var _3a=false;if(_38.getTime()>=_30.getTime()){_38=new Date(_2f.getTime());_38.setDate(_38.getDate()-_38.getDay()+6);_3a=true;}var _3b=_39==0?0:3;if(_3a){_3b=_39==0?1:2;}_31[_37.getDay()]+=_8(_4.groupedSortedMeetings[i][j],_37.getDay(),_38.getDay(),i,_3b,_33,_34);if(_4.groupedSortedMeetings[i][j].type=="B"&&_4.groupedSortedMeetings[i][j].tid==jQuery.tungleGlobals.user.id){if(_32==undefined){_32=new Array();}_32.push(_4.groupedSortedMeetings[i][j]);}}}if(_33.length>0&&_5.addMeetingIcon){_5.addMeetingIcon(_33,true,_34,true);}var _3c=Math.max(_4.minSize,_4.groupedSortedMeetings.length*_4.blockHeight);var _3d="";for(var i=0;i<_4.numDays;i++){var _3e=i*(_4.slotWidth+1);_3e=i==0?_3e:_3e-1;_3d+="<div class='ddivisor' style='left:"+_3e+"px;height:"+_3c+"px;'></div>";}for(var i=0;i<_31.length;i++){_3d+=_31[i];}_3c+=2;$("#"+_4.myId).append(_3d).height(_3c);if(_4.changeADHeight&&_4.changeDayBG){_4.changeADHeight(_3c);if(_32!=undefined){_4.changeDayBG(_32);}}};_a=function(_3f){var _40=-1;for(var i=0;i<_4.unsortedMeetings.length;i++){if(_4.unsortedMeetings[i].id==_3f.id){_40=i;break;}}return _40;};_b=function(){$("#"+_4.myId).html("");_4.unsortedMeetings=new Array();};return this.each(function(){$(this).attr("id",_4.myId);$(this).bind("reDrawMeetings",function(e,_43,_44,_45,_46){_4.numDays=_45;_4.slotWidth=_46;_9(_43,_44);return false;});$(this).bind("clearMeetings",function(){_b();});$(this).bind("meetingConflict",function(e,_48){return _c(_48);});});};})(jQuery);(function($){$.fn.autocomplete=function(_2,_3,_4){var _5={myId:""};var _6=0;var _7="";var _8=null;var _9="";var _a=-1;var _b={};var _c=false;var _d=false;var _e=null;var _f=false;var _10=false;var _11=false;var _12=false;var _13=null;var _14=null;var _15=false;_5.data=[];_5.inputClass="ac_input";_5.resultsClass="ac_results";_5.lineSeparator="\n";_5.cellSeparator=jQuery.tungleGlobals.Separators.basic;_5.minChars=1;_5.delay=400;_5.matchCase=0;_5.matchSubset=1;_5.matchContains=0;_5.cacheLength=1;_5.mustMatch=0;_5.extraParams={};_5.loadingClass="ac_loading";_5.selectFirst=false;_5.selectOnly=false;_5.maxItemsToShow=-1;_5.maxItemsToRequest=10;_5.sortMethod="Default";_5.autoFill=false;_5.domResults="suggest-results";_5.width=parseInt(_5.width,10)||0;_5.errorText="errorText";_5.refDomId=null;_5.noTab=false;_5.clearOnSelect=true;$.extend(_5,_2);var _16;var _17;var _18;var _19;var _1a;var _1b;var _1c;var _1d;var _1e;var _1f;var _20;var _21;var _22;var _23;var _24;var _25;var _26;var _27;var _28;var _29;var _2a;var _2b;_24=function(v){if(!_5.matchCase){v=v.toLowerCase();}if(v==_9){return false;}_9=v;if(v.length>=_5.minChars){$("#"+_5.myId).attr("data",v);_1c(v);}else{$("#"+_5.myId).removeClass(_5.loadingClass);$("#"+_5.domResults).hide();_12=false;}};_25=function(_2d){var lis=$("li",$("#"+_5.domResults)).filter(function(i){return $(this).is(":visible");});if(!lis||lis.length==0){return;}_a+=_2d;if(_a<0){_a=lis.size()-1;}else{if(_a>=lis.size()){_a=0;}}lis.removeClass("ac_over");$(lis[_a]).addClass("ac_over");};_26=function(){if(!_12){return false;}var li=$("li.ac_over",$("#"+_5.domResults))[0];if(!li){var $li=$("li",$("#"+_5.domResults));if(_5.selectOnly){if($li.length>0){li=$li[0];}}else{if(_5.selectFirst){li=$li[0];}}}if(li){_27(li);return true;}else{return false;}};_27=function(li){if(!li){li=document.createElement("li");li.extra=[];li.selectValue="";}_6=li.id;_a=-1;var v=$.trim(li.selectValue?li.selectValue:li.innerText);var dom=$("#"+$("#"+_5.domResults).attr("data-for"));dom.get(0).lastSelected=v;_9=v;if(_5.clearOnSelect){dom.val("");}else{dom.val(v);}_17();if(_5.onItemSelect){setTimeout(function(){_5.onItemSelect(li);},1);}};_28=function(_35,end){var _37=$("#"+_5.myId).get(0);if(_37.createTextRange){var _38=_37.createTextRange();_38.collapse(true);_38.moveStart("character",_35);_38.moveEnd("character",end);_38.select();}else{if(_37.setSelectionRange){_37.setSelectionRange(_35,end);}else{if(_37.selectionStart){_37.selectionStart=_35;_37.selectionEnd=end;}}}_37.focus();};_29=function(_39){if(_e!=8){$("#"+_5.myId).val($("#"+_5.myId).val()+_39.substring(_9.length));_28(_9.length,_39.length);}};_2a=function(){var pos=_23($("#"+_5.myId).get(0));var _3b={x:0,y:0};if(_5.refDomId){_3b=_23($(_5.refDomId).parent().parent().get(0));}var _3c=(_5.width>0)?_5.width:$("#"+_5.myId).width();$("#"+_5.domResults).css({width:parseInt(_3c)+"px",top:(pos.y+$("#"+_5.myId).get(0).offsetHeight)-_3b.y+"px",left:pos.x-_3b.x+1+"px"}).show();_12=true;_a=0;};_2b=function(){if(_8){clearTimeout(_8);}_8=setTimeout(_17,300);};_17=function(){if(_11){return false;}_11=true;$("#"+_5.domResults).find("iframe").remove();$("li",$("#"+_5.domResults)).removeClass("ac_over");_a=-1;var v=$("#"+_5.myId).val();if(_12){$("#"+_5.domResults).hide();_12=false;}if(_5.mustMatch){if(!$("#"+_5.myId).get(0).lastSelected||$("#"+_5.myId).get(0).lastSelected!=v){_27(null);}}_11=false;};_16=function(q){_7=q;if(_5.data){$("#"+_5.myId).removeClass(_5.loadingClass);$("li",$("#"+_5.domResults)).removeClass("ac_over");_a=-1;if(!_d||_5.data.length==0){_6=0;return _17();}if($.browser.msie){if($("#"+_5.domResults).find("iframe").length==0){$("#"+_5.domResults).append($(document.createElement("iframe")).attr("src","javascript:false"));}}$("#"+_5.domResults).hide();_12=false;_1b(_4);if(_5.autoFill&&($("#"+_5.myId).val().toLowerCase()==q.toLowerCase())){_29(_5.data[0][0]);}_2a();}else{_6=0;_17();}};_19=function(_3f){if(!_3f){return null;}var _40=[];var _41=_3f.split(_5.lineSeparator);for(var i=0;i<_41.length;i++){var row=$.trim(_41[i]);if(row){_40[_40.length]=row.split(_5.cellSeparator);}}return _40;};_1a=function(_44,_45){_44=_44.xss();switch(_45){case jQuery.tungleGlobals.MatchingType.prefix:return _44.replace(new RegExp("([ /@(])("+_7+")|^("+_7+")","gi"),"$1<b>$2$3</b>");case jQuery.tungleGlobals.MatchingType.wildcard:default:return _44.replace(new RegExp("("+_7+")","gi"),"<b>$1</b>");}};_1b=function(){var _46=_5.callback_Constructor(_5.data,_1a);if(_5.selectFirst&&_46){_46.find("li:first").addClass("ac_over");_a=0;}_46.attr("data-for",_5.myId);return;};_1c=function(q){if(_5.callback_CheckLock&&_5.callback_CheckLock()){return false;}$("#"+_5.myId).addClass(_5.loadingClass);if(!_5.matchCase){q=q.toLowerCase();}_5.data=_20(q);if(_5.data){_16(q);}else{if(_13&&_13.readyState!=0&&_13.readyState!=4){try{_13.onreadystatechange=function(){};_13.abort();_13.request=null;}catch(err){_13=null;}}if(_5.delay>100){if(_14){clearTimeout(_14);}_14=setTimeout(function(){_13=_1e(q);},_5.delay);}else{_13=_1e(q);}}};_1d=function(_48,_49){if(!_5.suggestOnFocus&&$("#"+_5.myId).attr("data")!=_49){return false;}var _4a=jQuery.ajaxHelper.isFailure(_48);_48=_48.TMsg;var _4b=false;if(jQuery.ajaxHelper.commonErrorHandler&&_4a){jQuery.ajaxHelper.storeRequest("dynamic",null,null,_1c,_49);_4b=!jQuery.ajaxHelper.commonErrorHandler(null,null,_4a);}if(_4b){return false;}var _4c=_5.callback_Parser(_48.TRes);_5.data=_4c[0];_15=_4c[1];_22(_49);_16(_49);};_1e=function(_4d){var _4e=$("#"+_5.myId);var _4f=null;if(_4e.attr("data-elm")){_4f=parseInt(_4e.attr("data-elm"),10);}return _5.callback_Query(_4d,_1d,_4f);};_20=function(q){if(q==null){return null;}if(_5.dataUpdated){_5.dataUpdated=false;return null;}if(_b.data[q]){return _b.data[q].data;}if(_5.matchSubset){for(var i=q.length-1;i>=_5.minChars;i--){var qs=q.substr(0,i);var c=_b.data[qs];if(c){if(c.hasMore){break;}var _54=[];for(var j=0;j<c.data.length;j++){var x=c.data[j];var x0=_5.callback_MatchSubset(x);if(_21(x0,q)){_54[_54.length]=x;}}return _54;}}}return null;};_21=function(s,sub){if(!_5.matchCase){s=s.toLowerCase();}var i=s.indexOf(sub);if(i==-1){return false;}return i==0||_5.matchContains;};_22=function(q){if(!_5.data||q==null||!_5.cacheLength){return;}if(!_b.length||_b.length>_5.cacheLength){_18();_b.length++;}else{if(!_b[q]){_b.length++;}}_b.data[q]={data:_5.data,hasMore:_15};};_23=function(obj){var _5d=obj.offsetLeft||0;var _5e=obj.offsetTop||0;while(obj=obj.offsetParent){_5d+=obj.offsetLeft;_5e+=obj.offsetTop;}return {x:_5d,y:_5e};};_18=function(){_b={};_b.data={};_b.length=0;};return this.each(function(){$(this).attr("id",_5.myId);var _5f=$("#"+_5.domResults);if($.browser.webkit){_5f.css("background-color","#FFFFFF");}_5f.mousemove(function(e){var _61=$("#"+_5.domResults).attr("data-for");if(_61!=_5.myId){return false;}var _62=$(e.target).parentHasClass("suggest",3);if(_62.hasClass("suggest")){$("#"+_5.domResults+" li").removeClass("ac_over");_62.addClass("ac_over");_a=$("#"+_5.domResults+" li").indexOf(_62.get(0));}else{$("#"+_5.domResults+" li").removeClass("ac_over");}}).mousedown(function(e){var _64=$("#"+_5.domResults).attr("data-for");if(_64!=_5.myId){return false;}var _65=$(e.target).parentHasClass("suggest",3);if(_65.hasClass("suggest")){_10=true;}}).mouseup(function(e){var _67=$("#"+_5.domResults).attr("data-for");if(_67!=_5.myId){return false;}var _68=$(e.target).parentHasClass("suggest",3);if(_68.hasClass("suggest")){_10=false;}}).click(function(e){var _6a=$("#"+_5.domResults).attr("data-for");if(_6a!=_5.myId){return false;}var _6b=$(e.target).parentHasClass("suggest",3);if(_6b.hasClass("suggest")){e.preventDefault();e.stopPropagation();_27(_6b.get(0));if(_5.data&&_5.data[_6]){_5.callback(_5.data[_6],$("#"+$("#"+_5.domResults).attr("data-for")));}else{}_5.data=new Array();return false;}});_18();$(this).keyup(function(e){$(this).removeClass("hint");_e=e.keyCode;switch(e.keyCode){case 38:e.preventDefault();_25(-1);break;case 40:e.preventDefault();if(_f){_f=false;break;}_25(1);break;case 27:_2b();return true;case 9:case 13:if(_26()&&_a>-1){e.preventDefault();}if(_5.data&&_5.data[_6]){_5.callback(_5.data[_6],$(this));}else{_5.callback(null,$(this));}_5.data=new Array();if(e.keyCode==9){return true;}this.focus();return false;break;case 8:_24($(this).val());if($.browser.opera){this.focus();}break;default:if(e.keyCode>32&&e.keyCode<127){_a=-1;_24($(this).val());break;}if($.browser.opera){this.focus();}}}).keydown(function(e){_e=e.keyCode;switch(e.keyCode){case 9:if(_5.noTab){break;}case 38:if($.browser.webkit||$.browser.mozilla){e.preventDefault();}break;case 40:if($.browser.webkit||$.browser.mozilla){e.preventDefault();}if(_5.suggestOnFocus&&!$(this).val()&&!_12){_1c("");_f=true;}break;}return true;}).focus(function(){_d=true;}).click(function(){if(_5.suggestOnFocus&&!$(this).val()){_1c("");}}).blur(function(){_d=false;if(!_10){_17();}else{this.focus();}});_17();$(this).bind("setDataUpdated",function(e,_6f){_5.dataUpdated=_6f;});});};$.fn.indexOf=function(e){for(var i=0;i<this.length;i++){if(this[i]==e){return i;}}return -1;};})(jQuery);(function($){$.fn.attendeeSuggest=function(_2){var _3={myId:"",elem:0,matchSubset:1,autoFill:false,selectFirst:true,matchContains:1,cacheLength:5,delay:200,sortMethod:"",maxItemsToRequest:jQuery.tungleGlobals.autoCompleteSize,callback:null,callback_Query:$.attendeeSuggest.autoCompleteQuery,callback_Parser:$.attendeeSuggest.autoCompleteParser,callback_Constructor:$.attendeeSuggest.autoCompleteConstructor,callback_MatchSubset:$.attendeeSuggest.matchSubset};return this.each(function(){if(!_2){_2={};}var id=$(this).attr("id");var _5=$.attendeeSuggest.objects.length;if(!id){id="attSuggest_"+_5;}_2.myId=id;_2.elem=_5;$(this).attr("data-elm",_5);var _6=$.extend(_3,_2);$.attendeeSuggest.objects.push(_6);$(this).autocomplete(_6).DefaultText();});};$.attendeeSuggest={objects:new Array(),domIds:{domResults:"#suggest-results"},autoCompleteQuery:function(_7,_8){return jQuery.serviceHelper.DirectorySearch(_7,jQuery.tungleGlobals.autoCompleteSize,_8);},autoCompleteParser:function(_9){var _a=new Array();var _b=false;var _c=_9.TungleMeContacts;if(_c){parseContactGroup(_c,1);}var _d=_9.Contacts;if(_d){parseContactGroup(_d,1);}var _e=_9.DirectoryUsers;if(_e){parseContactGroup(_e,2);}function parseContactGroup(_f,grp){if(_f.Contact){if(_f.Contact.length){for(var i=0;i<_f.Contact.length;i++){var _12=$.contactCoordinator.parse_ContactJSON(_f.Contact[i]);_12.group=grp;_a.push(_12);}_b=_b||_f.Contact.length>=jQuery.tungleGlobals.autoCompleteSize;}else{var _12=$.contactCoordinator.parse_ContactJSON(_f.Contact);_12.group=grp;_a.push(_12);}}}return [_a,_b];},autoCompleteConstructor:function(_13,_14){var _15=$($.lastEntrySuggest.domIds.domResults);var _16=html2="";for(var i=0;i<_13.length;i++){var row=_13[i];if(row&&row.group==1){_16+="<li class=\"suggest\" id=\""+i+"\">";var _19=row.name+" ("+row.email+")";_16+="<div class=\"text-overflow\">";_16+=_14(_19);_16+="</div></li>";}else{if(row&&row.group==2){html2+="<li class=\"suggest\" id=\""+i+"\">";html2+="<div class=\"text-overflow\"><img height=\"40\" width=\"40\" class=\"cl-img\" src=\"/public/"+row.email+"/Image?Type=1\"/>";html2+="<span class=\"contact-name\">"+_14(row.name+" (tungle.me/"+row.email+")",jQuery.tungleGlobals.MatchingType.prefix)+"</span><br/>";html2+=row.mwmData?"<span class=\"contact-prf\">"+_14(row.mwmData.title[2],jQuery.tungleGlobals.MatchingType.prefix)+"</span><br/>":"";html2+=row.mwmData?"<span class=\"contact-prf\">"+_14(row.mwmData.title[3],jQuery.tungleGlobals.MatchingType.prefix)+"</span>":"";html2+="</div></li>";}}}if(_16.length>0){_16="<ul id=\"suggest-list\" class=\"suggest-list\">"+_16+"</ul>";_16="<div id=\"suggest-contacts\"><div class=\"suggest-section\" style=\"padding:3px 0\">Your contacts</div>"+_16+"</div>";}if(html2.length>0){html2="<ul id=\"suggest-list-2\" class=\"suggest-list\" style=\"border:none;margin:0\">"+html2+"</ul>";html2="<div id=\"suggest-directory\"><div class=\"suggest-section\">Tungle.me directory</div>"+html2+"</div>";}return _15.html(_16+html2);},matchSubset:function(_1a){if(!_1a){return "";}return _1a.name+"("+_1a.email+")"+(_1a.mwmData&&_1a.group==2?_1a.mwmData.title[2]+" "+_1a.mwmData.title[3]:"");}};})(jQuery);(function($){$.fn.lastEntrySuggest=function(_2){var _3={myId:"",elem:0,matchSubset:1,autoFill:false,selectFirst:true,matchContains:1,minChars:0,cacheLength:5,delay:200,sortMethod:"",entryType:"",maxItemsToRequest:jQuery.tungleGlobals.autoCompleteSize,suggestOnFocus:true,clearOnSelect:false,noTab:true,callback:$.lastEntrySuggest.selectSuggested,callback_Query:$.lastEntrySuggest.autoCompleteQuery,callback_Parser:$.lastEntrySuggest.autoCompleteParser,callback_Constructor:$.lastEntrySuggest.autoCompleteConstructor,callback_MatchSubset:$.lastEntrySuggest.matchSubset,callback_CheckLock:$.lastEntrySuggest.isSuggestDisabled};return this.each(function(){if(!_2){_2={};}var id=$(this).attr("id");var _5=$.lastEntrySuggest.objects.length;if(!id){id="entrySuggest_"+_5;}_2.myId=id;_2.elem=_5;$(this).attr("data-elm",_5);var _6=$.extend(_3,_2);$.lastEntrySuggest.objects.push(_6);$(this).autocomplete(_6).DefaultText();});};$.lastEntrySuggest={objects:new Array(),domIds:{domResults:"#suggest-results"},autoCompleteQuery:function(_7,_8,_9){var _a=$.lastEntrySuggest.objects[_9];return jQuery.serviceHelper.ListValueGet(_7,_a.entryType,jQuery.tungleGlobals.autoCompleteSize,_8);},autoCompleteParser:function(_b){var _c=new Array();var _d=false;if(_b.Values&&_b.Values.Value){var _e=_b.Values.Value;if(_e.length){for(var i=0;i<_e.length;i++){_c.push(_e[i].$);}}else{_c.push(_e.$);}}return [_c,_d];},autoCompleteConstructor:function(_10,_11){var _12=$($.lastEntrySuggest.domIds.domResults);var _13="<ul id=\"suggest-list\" class=\"suggest-list\">";for(var i=0;i<_10.length;i++){if(_10[i]){_13+="<li class=\"suggest\" id=\""+i+"\">";_13+="<div class=\"text-overflow\">";_13+=_11(_10[i]);_13+="</div></li>";}}_13+="</ul>";return _12.html(_13);},selectSuggested:function(_15,dom){if(_15){dom.triggerHandler("value",[_15]);}},matchSubset:function(_17){return _17;},isSuggestDisabled:function(){if(readCookie(jQuery.tungleGlobals.cookieSession)){return false;}return true;},resetCache:function(_18){if(_18){var _19=$.lastEntrySuggest.objects[_18];$("#"+_19.myId).trigger("setDataUpdated",[true]);}else{for(var i=0;i<$.lastEntrySuggest.objects.length;i++){$("#"+$.lastEntrySuggest.objects[i].myId).trigger("setDataUpdated",[true]);}}}};})(jQuery);(function($){$.meetingCoordinator={getPublicEvents:false,cache:{meetingADList:new Array(),meetingList:new Array(),requestList:new Array(),meetingDetails:new Array()},updateEvent:function(_2,_3){_3.pub=_2;$.ptEventCoordinator.updateCache(_3);},updateEventDetails:function(_4,_5){_5.note=_4;},removeEventDetails:function(id){for(var i=0;i<$.meetingCoordinator.cache.meetingDetails.length;i++){if($.meetingCoordinator.cache.meetingDetails[i].eventID==id){$.meetingCoordinator.cache.meetingDetails.splice(i,1);break;}}},removeEventDetailsBySpaceID:function(id){for(var i=0;i<$.meetingCoordinator.cache.meetingDetails.length;i++){if($.meetingCoordinator.cache.meetingDetails[i].SpaceID&&$.meetingCoordinator.cache.meetingDetails[i].SpaceID==id){$.meetingCoordinator.cache.meetingDetails.splice(i,1);break;}}},retrieveEventDetails:function(id,_b,_c,_d){for(var i=0;i<$.meetingCoordinator.cache.meetingDetails.length;i++){if($.meetingCoordinator.cache.meetingDetails[i].eventID==id){return $.meetingCoordinator.cache.meetingDetails[i];}}var _f=$.meetingCoordinator.retrieveEvent(id);if(_f.owner!==jQuery.tungleGlobals.user.id&&!_f.pub&&_f.etype==="PR"){return {eventID:id};}jQuery.serviceHelper.EventDetails(_f,_b,function(_10,_11){if(jQuery.ajaxHelper.isSuccessJSON(_10)){var _12={eventID:id};if(_10.TRes.Events&&_10.TRes.Events.Event){_10=_10.TRes.Events.Event;if(_10.Location){_12.location=_10.Location.$;}if(_10.Details){_12.comment=_10.Details.$;}if(_10.Notes&&_10.Notes.Note){_12.note=_10.Notes.Note.$;}if(_10.Space&&_10.Space["@ID"]){_12.SpaceID=_10.Space["@ID"];}if(_10.Participants&&_10.Participants.Participant){_12.attendees=new Array();_12.organizer=null;var _13=jQuery.apiParser.jsonToArray(_10.Participants.Participant);for(var i=0;i<_13.length;i++){var _15=_13[i];var _16=null;var _17=null;if(_15.FullName){_16=_15.FullName.$;}if(_15.UserID){_17=_15.UserID.$;}if(_15["@Type"]&&_15["@Type"]==="Host"){_12.organizer={name:_16,email:_17};}else{_12.attendees.push({name:_16,email:_17});}}}}$.meetingCoordinator.cache.meetingDetails[$.meetingCoordinator.cache.meetingDetails.length]=_12;_c(_12,_11);}else{_c(null);}},$.meetingCoordinator.callbackAjax_Error,_d);return null;},retrieveEvent:function(_18){if(!_18){return null;}var _19=null;var _1a=$.meetingCoordinator.cache.meetingList;for(var j=0;j<_1a.length;j++){for(var i=0;i<_1a[j].data.length;i++){list=_1a[j].data[i].meetings;_19=retrieveEventFromMeetingsList(list);if(_19){return _19;}}}_1a=$.meetingCoordinator.cache.meetingADList;for(j=0;j<_1a.length;j++){list=_1a[j].meetings;_19=retrieveEventFromMeetingsList(list);if(_19){return _19;}}function retrieveEventFromMeetingsList(_1d){for(var _1e=0;_1e<_1d.length;_1e++){if(_1d[_1e].eventID==_18){return _1d[_1e];}}return null;}return _19;},constructMeetingRequest:function(_1f,_20,_21,_22,_23){var _20=_20;if(!_20){_20=1;}var _24="";var _25=new Date();_25.setTime(_21.getTime());_25.setDate(_25.getDate()-_25.getDay()+(6*_20)+(_20-1));var _26=$.meetingCoordinator.getPublicEvents===false?"false":"true";if(_1f){_24+="<Query Refresh=\"true\" Public=\""+_26+"\">";}else{_24+="<Query Public=\""+_26+"\">";}_24+="<From>"+_21.format("yyyyMMdd")+"</From>";_24+="<To>"+_25.format("yyyyMMdd")+"</To>";var _27="";for(var i=0;i<_22.length;i++){var _29=parseInt(_22[i],10);if(_22[i]!=jQuery.tungleGlobals.user.id&&_29>=0){_27+=_22[i]+", ";}}if(jQuery.tungleGlobals.user.id){_27+=jQuery.tungleGlobals.user.id;}else{_27=_27.trim();_27=_27.substring(0,_27.length-1);}if(_27!=""){_24+="<TIDs>"+_27+"</TIDs>";}_24+="<TimeZone>"+jQuery.tungleGlobals.user.timezone.label+"</TimeZone>";_24+="</Query>";if(_23){_24+="<ExternalSources>";for(var i=0;i<_23.length;i++){_24+="<Source Type=\"ICS\">";_24+="<UserName>"+_23[i].id+"</UserName>";_24+="<Uri><![CDATA["+_23[i].URI+"]]></Uri>";_24+="</Source>";}_24+="</ExternalSources>";}else{}return _24;},clearCache:function(){$.meetingCoordinator.cache={meetingADList:new Array(),meetingList:new Array(),requestList:new Array(),meetingDetails:new Array()};$.ptEventCoordinator.clearCache();},requestMeetings:function(_2a,_2b,_2c,_2d,_2e,_2f,_30){if(!_2a){_2a=new Date();}if(!_2b){_2b=new Array();}if(_2c){$.meetingCoordinator.clearCache();}var _31=new Array();var _32=new Array();var _33=false;for(var i=0;i<_2b.length;i++){var id=_2b[i];var _36=jQuery.meetingParser.getCurrentWeekMeetings(id,_2a,false,$.meetingCoordinator.cache);if(_36==null){jQuery.meetingParser.addMeetingToCache(id,_2a,null,$.meetingCoordinator.cache);_33=true;}else{for(var j=0;j<_36.length;j++){_31.push({id:id,action:"Add",meeting:$.extend({},_36[j],true)});}}var _38=jQuery.meetingParser.getAllDayMeetings(id,_2a,true,$.meetingCoordinator.cache);if(_38!=null){for(var j=0;j<_38.length;j++){_32.push({id:id,action:"Add",meeting:$.extend({},_38[j],true)});}}}if(_33){var _39=$.meetingCoordinator.constructMeetingRequest(_2c,_2d,_2a,_2b,_30);$.meetingCoordinator.cache.requestList.push({date:new Date(_2a.getTime()),callbackList:[_2e]});jQuery.ajaxHelper.sendAjaxPostRequest(_2f==undefined?"QueryEventsJSON":_2f,_39,$.meetingCoordinator.callbackAjax_Meetings,$.meetingCoordinator.callbackAjax_Error,{currentWeek:new Date(_2a.getTime())});}else{if(_2e){var _3a=false;for(var i=0;i<$.meetingCoordinator.cache.requestList.length;i++){if($.meetingCoordinator.cache.requestList[i].date.getTime()===_2a.getTime()){$.meetingCoordinator.cache.requestList[i].callbackList.push(_2e);_3a=true;break;}}if(!_3a){setTimeout(function(){_2e(_31,_32);},10);}}}},callbackAjax_Meetings:function(_3b,_3c){var _3d=new Date();_3d.setTime(_3c.currentWeek.getTime());_3d.setDate(_3d.getDate()-_3d.getDay()+7);if(_3b.TRes["@Status"]=="ERROR"){$.meetingCoordinator.callbackAjax_Error(_3b.TRes.Code.$);return false;}var _3e=new Array();var _3f=new Array();if(_3b.TRes.Events){if(_3b.TRes.Events.length){for(var i=0;i<_3b.TRes.Events.length;i++){processUserEventGroup(_3b.TRes.Events[i]);}}else{if(_3b.TRes.Events.Event){processUserEventGroup(_3b.TRes.Events);}}}jQuery.meetingParser.callback_getMeetings(_3e,_3f,$.meetingCoordinator.cache,null,_3c.currentWeek);for(var i=0;i<$.meetingCoordinator.cache.requestList.length;i++){if($.meetingCoordinator.cache.requestList[i].date.getTime()===_3c.currentWeek.getTime()){for(var j=0;j<$.meetingCoordinator.cache.requestList[i].callbackList.length;j++){$.meetingCoordinator.cache.requestList[i].callbackList[j](_3e,_3f);}$.meetingCoordinator.cache.requestList.splice(i,1);break;}}function processUserEventGroup(_42){if(_42.Event){var _43=_42["@SourceID"];var _44=_42["@TID"];var _45=_42["@CID"];if(_42.Event.length){for(var i=0;i<_42.Event.length;i++){processEvent(_42.Event[i],_43,_44,_45);}}else{processEvent(_42.Event,_43,_44,_45);}}}function processEvent(_47,_48,_49,_4a){var _4b=GlobalParseICalToDate(_47.Start.$);var end=GlobalParseICalToDate(_47.End.$);var _4d=end;var _4e=_47.Summary==undefined?"":_47.Summary.$+"";if("PR".equalsIgnoreCase(_47.Type.$)&&jQuery.tungleGlobals.user.id===_49){if(_4e.indexOf(jQuery.langStrings.scheduledByTungle)!=-1){_4e=_4e.replace(jQuery.langStrings.scheduledByTungle,"[Private] "+jQuery.langStrings.scheduledByTungle);}else{_4e+=" [Private]";}}var pub=_47["@Public"]=="true";var _50=_47.BusyStatus==undefined?"B":_47.BusyStatus.$;var uid=null;if(_47.Uid){uid=_47.Uid.$;}if(_47["@AllDay"]=="true"&&(_49==jQuery.tungleGlobals.user.id||_49==jQuery.tungleGlobals.tglMeHost.id)&&(jQuery.tungleGlobals.osPref==null?true:jQuery.tungleGlobals.osPref.view!=="profile")){var _52={etype:_47.Type.$,owner:_49,start:_4b,end:end,eventID:_47["@ID"],universalID:uid,cID:_4a,id:_47["@ID"]+"_"+_49+"_"+_4a,pub:pub,label:_4e,type:_50,source:_48,calendar:""};_3f[_3f.length]={id:_49,action:"Add",meeting:_52};}else{if((end.getTime()-_4b.getTime())/3600000>=23){if(end.format("H:mm:ss")=="0:00:00"){end.setDate(end.getDate()-1);end.setHours(23,59,59,0);}var _52={etype:_47.Type.$,owner:_49,start:_4b,end:end,eventID:_47["@ID"],universalID:uid,cID:_4a,id:_47["@ID"]+"_"+_49+"_"+_4a,pub:pub,label:_4e,type:_50,source:_48,calendar:"",endDisplay:_4d};_3f[_3f.length]={id:_49,action:"Add",meeting:_52};}else{if(_4b.getDate()!=end.getDate()){var _53=new Date(_4b);var _54=new Date(end);var _55=0;while(_53.getDate()!=_54.getDate()){var _56=new Date(_53);_56.setHours(23,59,59,0);if(_53.getTime()>=_3c.currentWeek.getTime()&&_56.getTime()<=_3d.getTime()){var _52={etype:_47.Type.$,owner:_49,eventID:_47["@ID"],universalID:uid,cID:_4a,start:new Date(_53),end:_56,id:_47["@ID"]+"_"+_49+_55+"_"+_4a,pub:pub,label:_4e,type:_50,source:_48,calendar:"",endDisplay:_4d};_3e[_3e.length]={id:_49,action:"Add",meeting:_52};}_55++;if(_55>200){break;}_53.setHours(24,0,0,0);}if(_53.getTime()!=_54.getTime()&&_53.getTime()>=_3c.currentWeek.getTime()&&_54.getTime()<=_3d.getTime()){_52={etype:_47.Type.$,owner:_49,eventID:_47["@ID"],universalID:uid,cID:_4a,start:_53,end:_54,id:_47["@ID"]+"_"+_49+_55+"_"+_4a,pub:pub,label:_4e,type:_50,source:_48,calendar:"",endDisplay:_4d};_3e[_3e.length]={id:_49,action:"Add",meeting:_52};}}else{var _52={etype:_47.Type.$,owner:_49,eventID:_47["@ID"],universalID:uid,cID:_4a,start:_4b,end:end,id:_47["@ID"]+"_"+_49+"_"+_4a,pub:pub,label:_4e,type:_50,source:_48,calendar:""};_3e[_3e.length]={id:_49,action:"Add",meeting:_52};}}}}},callbackAjax_Error:function(_57){var _58="Unknown queryEvents Error.";jQuery.ajaxHelper.popUpAlert(_58);}};jQuery.ptEventCoordinator={getFirstSundayOfTheMonth:function(dt){var _5a=new Date(dt.getTime());_5a.setDate(1);if(_5a.getDay()>0){if(_5a.getDate()<_5a.getDay()){_5a.setDate(_5a.getDate()+7);}_5a.setDate(_5a.getDate()-_5a.getDay());}_5a.setHours(0,0,0,0);return _5a;},cache:{meetingList:new Array(),ajaxList:new Array()},callbackResetTimelineOnEventChange:null,clearCache:function(){$.ptEventCoordinator.cache.meetingList=new Array();},updateCache:function(_5b){var _5c=jQuery.ptEventCoordinator;for(var i=0;i<_5c.cache.meetingList.length;i++){if(_5c.cache.meetingList[i].TID===_5b.owner&&((_5c.cache.meetingList[i].start.getTime()<=_5b.start.getTime()&&_5c.cache.meetingList[i].end.getTime()>=_5b.start.getTime())||(_5c.cache.meetingList[i].start.getTime()<=_5b.end.getTime()&&_5c.cache.meetingList[i].end.getTime()>=_5b.end.getTime()))){var _5e=new Date(_5b.start.getTime());_5e.setDate(_5e.getDate()-_5e.getDay());_5e.setHours(0,0,0,0);var _5f=new Date(_5b.end.getTime());_5f.setDate(_5f.getDate()-_5f.getDay());_5f.setHours(0,0,0,0);var _60=new Date(_5c.cache.meetingList[i].start.getTime());for(var k=0;k<_5c.cache.meetingList[i].list.length;k++){if(_60.getTime()>=_5e.getTime()&&_60.getTime()<=_5f.getTime()){var add=_5b.pub?1:-1;this.cache.meetingList[i].list[k]+=add;}_60.setDate(_60.getDate()+7);}}}if(_5c.callbackResetTimelineOnEventChange){_5c.callbackResetTimelineOnEventChange(_5b.start,_5b.end);}},retrievePE_List:function(_63,_64,_65,_66){var _67=jQuery.ptEventCoordinator;_64=_67.getFirstSundayOfTheMonth(_64);var _68=$.extend(new Array(),_63);var _69=null;for(var i=0;i<_67.cache.meetingList.length;i++){for(var k=0;k<_68.length;k++){if(_67.cache.meetingList[i].TID===_68[k].id&&_67.cache.meetingList[i].start.format("MMddyyyy")==_64.format("MMddyyyy")){if(!_69){_69=$.extend(new Array(),_67.cache.meetingList[i].list);}else{for(var m=0;m<_69.length;m++){_69[m]+=_67.cache.meetingList[i].list[m];}}_68.splice(k,1);k--;}}}if(_68.length!==0){for(var i=0;i<_67.cache.ajaxList.length;i++){for(var k=0;k<_68.length;k++){if(_67.cache.ajaxList[i].TID===_68[k].id&&_67.cache.ajaxList.start.format("MMddyyyy")==_64.format("MMddyyyy")){_68.splice(k,1);k--;}}}if(_68.length===0||!_66||!_66.callback){return _69;}_66.start=_64;_66.end=_65;_66.tidList=_63;var _6d=new Array();for(var i=0;i<_68.length;i++){_6d.push(_68[i].id);}jQuery.serviceHelper.GetPublicTimeline(_6d,_64,_65,function(_6e,_6f){if(jQuery.ajaxHelper.isSuccessJSON(_6e)){if(_6e.TRes.User){_67=jQuery.ptEventCoordinator;if(!_6e.TRes.User.length){_6e.TRes.User=[_6e.TRes.User];}for(var k=0;k<_6e.TRes.User.length;k++){var TID=_6e.TRes.User[k]["@TID"];var _72=_6e.TRes.User[k].Events.$.split(",");for(var i=0;i<_72.length;i++){_72[i]=parseInt(_72[i],10);}for(var i=0;i<_67.cache.meetingList.length;i++){if(_67.cache.meetingList[i].TID===TID&&_67.cache.meetingList[i].start.format("MMddyyyy")==_6f.start.format("MMddyyyy")){_67.cache.meetingList[i].list=_72;TID=null;break;}}if(TID){_67.cache.meetingList.push({TID:TID,list:_72,start:new Date(_6f.start.getTime()),end:new Date(_6f.end.getTime())});}}if(_6f.callback){_6f.callback(_67.retrievePE_List(_6f.tidList,_6f.start,_6f.end));}}}else{_67.callbackAjax_Error();}},_67.callbackAjax_Error,_66);}return _69;},callbackAjax_Error:function(_74){var _75="PublicTimeline: "+jQuery.langStrings.fatalError;jQuery.ajaxHelper.popUpAlert(_75);}};})(jQuery);(function($){jQuery.meetingParser={mwmAvailability:new Array(),ajaxMWMAvail:new Array(),getNumOfProposed:function(_2,_3,_4){var _5=0;for(var j=0;j<_2.selectedSlots.length;j++){for(var i=0;i<_2.selectedSlots[j].timeSlots.length;i++){var _8=Math.ceil((_2.selectedSlots[j].timeSlots[i].end.getTime()-_2.selectedSlots[j].timeSlots[i].start.getTime())/60000);_5+=(_8-_3)/(24/$.weeklyCalendar.numBlocks*60)+1;if(_5>=_4){return _5;}}}return _5;},duplicateAttendee:function(_9,id,_b){for(var i=0;i<_b.length;i++){if(_9&&_b[i].email.equalsIgnoreCase(_9)||(id&&_b[i].id!=null&&_b[i].id==id)){return _b[i];}else{if(_b[i].secEmail){for(var j=0;j<_b[i].secEmail.length;j++){if(_b[i].secEmail[j]===_9){return _b[i];}}}}}return false;},manageAttendeeList:function(_e,_f,_10,_11,_12,_13){var _14=_11!=undefined?$(_11):null;if(_e=="add"){if(_14){for(var i=0;i<_10.selectedContacts.length;i++){if(_10.selectedContacts[i].email==_f.email){return false;}}var _16=_f.name.trim();if(_f.type!=jQuery.tungleGlobals.UserIdentType.buddyId){_16=(_f.name+" ("+_f.email+")").trim();}var _17="<li id=\"ct_"+_13+(_f.email.stripEmail())+"\" data-email=\""+_f.email+"\" data-name=\""+_f.name+"\" data-ctype=\""+(_f.type)+"\" class=\"slot\"";if(_f.id){_17+="data-cid=\""+_f.id+"\" data-tid=\""+_f.tid+"\"";}_17+="><div class=\"removeBTN\"><img height=\"16\" width=\"16\" class=\"rm_contact\" src=\"/portal/images/deselect.png\"></div>";_17+="<div>"+_16+"</div></li>";_14.find("ul.details_invitees").append(_17);}_f.selected=true;_10.selectedContacts.push(_f);}else{if(_e=="clear"){if(_14){_14.find("ul.details_invitees > li").not(".sticky").remove();}_10.selectedContacts=new Array();}else{if(_e=="delete"){if(_14){$("#ct_"+_13+_f.email.stripEmail()).remove();}for(var i=0;i<_10.selectedContacts.length;i++){if(_10.selectedContacts[i].email==_f.email||(_10.selectedContacts[i].id!=null&&_10.selectedContacts[i].id==_f.id)){_f=_10.selectedContacts[i];_10.selectedContacts.splice(i,1);break;}}}else{if(_e=="select"){for(var i=0;i<_10.selectedContacts.length;i++){if(_10.selectedContacts[i].email==_f.email||(_10.selectedContacts[i].id!=null&&_10.selectedContacts[i].id==_f.id)){_10.selectedContacts[i].selected=true;break;}}}else{if(_e=="deselect"){for(var i=0;i<_10.selectedContacts.length;i++){if(_10.selectedContacts[i].email==_f.email||(_10.selectedContacts[i].id!=null&&_10.selectedContacts[i].id==_f.id)){_10.selectedContacts[i].selected=false;break;}}}}}}}if(_12&&(_e=="clear"||_f.type==jQuery.tungleGlobals.UserIdentType.publicId)){_12(false,false);}},setEarliestSlots:function(_18,_19){_18.earliestSlot=null;_18.latestSlot=null;for(var i=0;i<_19.length;i++){var _1b=new Date(_19[i].start);var end=new Date(_19[i].end);var _1d=$.weeklyCalendar.generateValidSlot(_1b,true);var _1e=$.weeklyCalendar.generateValidSlot(end)-1;if(_18.earliestSlot==null||_18.earliestSlot>_1d){_18.earliestSlot=_1d;}if(_18.latestSlot==null||_18.latestSlot<_1e){_18.latestSlot=_1e;}}},getOverlapString:function(_1f){var _20="";if(_1f.overlapMeetings!=null){for(var i=0;i<_1f.overlapMeetings.length;i++){var tmp=_1f.overlapMeetings[i].id;_20+="<ID>"+tmp.substring(0,tmp.indexOf("_"))+"</ID>";}}if(_1f.overlapMeetingsAD!=null){for(var i=0;i<_1f.overlapMeetingsAD.length;i++){var tmp=_1f.overlapMeetingsAD[i].id;_20+="<ID>"+tmp.substring(0,tmp.indexOf("_"))+"</ID>";}}return _20;},removeSelectedSlotFromOtherWeek:function(_23,_24,_25,_26,_27){for(var i=0;i<_25.selectedSlots.length;i++){if(_25.selectedSlots[i].week.getTime()===_23.getTime()){for(var j=0;j<_25.selectedSlots[i].timeSlots.length;j++){if(_25.selectedSlots[i].timeSlots[j].start.getTime()===_24.start.getTime()&&_25.selectedSlots[i].timeSlots[j].end.getTime()===_24.end.getTime()){_26(_25.selectedSlots[i].timeSlots[j],false,i,j);var _2a=true;if(_25.selectedSlots.length>0){for(var k=0;k<_25.selectedSlots[i].timeSlots.length;k++){if(_25.selectedSlots[i].timeSlots[k].start.getDay()===_24.start.getDay()){_2a=false;break;}}}_27(_24,false,_2a);break;}}break;}}},meetingOverlaps:function(_2c,_2d){if(_2d.overlapMeetings!=null){for(var i=0;i<_2d.overlapMeetings.length;i++){if(_2d.overlapMeetings[i].start.getTime()===_2c.start.getTime()&&_2d.overlapMeetings[i].end.getTime()===_2c.end.getTime()&&_2d.overlapMeetings[i].id===_2c.id){return true;}}}if(_2d.overlapMeetingsAD!=null){for(var i=0;i<_2d.overlapMeetingsAD.length;i++){if(_2d.overlapMeetingsAD[i].start.getTime()===_2c.start.getTime()&&_2d.overlapMeetingsAD[i].end.getTime()===_2c.end.getTime()&&_2d.overlapMeetingsAD[i].id===_2c.id){return true;}}}return false;},getPrevAndNextWeekMarkers:function(_2f,_30){var _31=-1;var _32=null;var _33=null;for(var i=0;i<_30.length;i++){if(_30[i].week.getTime()==_2f.getTime()){_31=i;}else{if(_30[i].timeSlots.length!=0&&_30[i].week.getTime()<_2f.getTime()){if(_32!=null&&_30[i].week.getTime()>_32.getTime()){_32=new Date(_30[i].week.getTime());}else{if(_32==null){_32=new Date(_30[i].week.getTime());}}}else{if(_30[i].timeSlots.length!=0){if(_33!=null&&_30[i].week.getTime()<_33.getTime()){_33=new Date(_30[i].week.getTime());}else{if(_33==null){_33=new Date(_30[i].week.getTime());}}}}}}return {index:_31,prevWeek:_32,nextWeek:_33};},callback_WCalRetrieveSelection:function(_35,_36,_37,_38,_39,_3a,txt,_3c){if(_37.previewInit){return new Array();}var _3d=new Date(_35);_3d.setDate(_3d.getDate()-_3d.getDay());_3d.setHours(0,0,0,0);var _3e=jQuery.meetingParser.getPrevAndNextWeekMarkers(_3d,_38.selectedSlots);var _3f=_3e.index;var _40=_3e.prevWeek;var _41=_3e.nextWeek;if(_35&&_36!=false){if(_3c){var _42=jQuery.tungleGlobals.getUserTodayDate();_40=new Date(_3d.getTime());_40.setDate(_40.getDate()-7);_41=new Date(_3d.getTime());_41.setDate(_41.getDate()+7);if(_3d.getTime()<_42.getTime()){_40=null;}}_39(_35);if((!_37.spaceMode||_37.spaceMode=="Edit")&&_3a){_3a(_40,_41,txt);}}if(_3f<0){return new Array();}else{return _38.selectedSlots[_3f].timeSlots;}},retrieveValidLengthSlots:function(_43,_44,_45){var _46=new Array();var _47=true;for(var i=0;i<jQuery.meetingParser.mwmAvailability.length;i++){if(jQuery.meetingParser.mwmAvailability[i].week.getTime()==_43.getTime()){for(var t=0;t<_45.length;t++){var _4a=_45[t];var _4b=false;for(var pid=0;pid<jQuery.meetingParser.mwmAvailability[i].publicIds.length;pid++){var _4d=jQuery.meetingParser.mwmAvailability[i].publicIds[pid].pid;var _4e=new Array();if(!_4a.equalsIgnoreCase(_4d)){continue;}else{_47=false;_4b=true;}for(var j=0;j<jQuery.meetingParser.mwmAvailability[i].publicIds[pid].timeSlots.length;j++){var _50=jQuery.meetingParser.mwmAvailability[i].publicIds[pid].timeSlots[j];var _51=Math.ceil((_50.end.getTime()-_50.start.getTime())/60000);if(_51<_44){if(_50.end.getDay()==6&&_50.end.format("HH:mm")=="23:59"){var _52=new Date(_43.getTime());_52.setDate(_52.getDate()+7);for(var m=0;m<jQuery.meetingParser.mwmAvailability.length;m++){if(jQuery.meetingParser.mwmAvailability[m].week.getTime()==_52.getTime()&&jQuery.meetingParser.mwmAvailability[m].timeSlots[pid]){for(var k=0;k<jQuery.meetingParser.mwmAvailability[m].timeSlots[pid].length;k++){var _55=jQuery.meetingParser.mwmAvailability[m].publicIds[pid].timeSlots[k];if(jQuery.meetingParser.validSpanningSlots(_55,_50,_44)){_4e.push(_50);break;}}}}}else{if(_50.start.getDay()==0&&_50.start.format("HH:mm")=="00:00"){var _56=new Date(_43.getTime());_56.setDate(_56.getDate()-7);for(var m=0;m<jQuery.meetingParser.mwmAvailability.length;m++){if(jQuery.meetingParser.mwmAvailability[m].week.getTime()==_56.getTime()&&jQuery.meetingParser.mwmAvailability[m].timeSlots[pid]){for(var k=0;k<jQuery.meetingParser.mwmAvailability[m].publicIds[pid].timeSlots.length;k++){var _57=jQuery.meetingParser.mwmAvailability[m].publicIds[pid].timeSlots[k];if(jQuery.meetingParser.validSpanningSlots(_50,_57,_44)){_4e.push(_50);break;}}}}}else{if(_50.end.format("HH:mm")=="23:59"){for(var k=0;k<jQuery.meetingParser.mwmAvailability[i].publicIds[pid].timeSlots.length;k++){var _55=jQuery.meetingParser.mwmAvailability[i].publicIds[pid].timeSlots[k];if(jQuery.meetingParser.validSpanningSlots(_55,_50,_44)){_4e.push(_50);break;}}}else{if(_50.start.format("HH:mm")=="00:00"){for(var k=0;k<jQuery.meetingParser.mwmAvailability[i].publicIds[pid].timeSlots.length;k++){var _57=jQuery.meetingParser.mwmAvailability[i].publicIds[pid].timeSlots[k];if(jQuery.meetingParser.validSpanningSlots(_50,_57,_44)){_4e.push(_50);break;}}}}}}}else{_4e.push(_50);}}_46.push({pid:_4d,timeSlots:_4e});}if(!_4b){return null;}}}}return (_47?null:_46);},resetAvailabilityAjaxMarkers:function(_58){for(var m=0;m<_58.ids.length;m++){var pid=_58.ids[m];for(var i=0;i<jQuery.meetingParser.ajaxMWMAvail.length;i++){if(jQuery.meetingParser.ajaxMWMAvail[i].week.getTime()==_58.start.getTime()){for(var k=0;k<jQuery.meetingParser.ajaxMWMAvail[i].ids.length;k++){if(jQuery.meetingParser.ajaxMWMAvail[i].ids[k].equalsIgnoreCase(pid)){jQuery.meetingParser.ajaxMWMAvail[i].ids.splice(k,1);break;}}break;}}}},callback_parseSuccessMWMAvailability:function(_5d,_5e,_5f){jQuery.meetingParser.resetAvailabilityAjaxMarkers(_5d);var _60=false;for(var i=0;i<jQuery.meetingParser.mwmAvailability.length;i++){if(jQuery.meetingParser.mwmAvailability[i].week.getTime()==_5d.start.getTime()){_60=true;for(var j=0;j<_5e.length;j++){var _63=false;for(var k=0;k<jQuery.meetingParser.mwmAvailability[i].publicIds.length;k++){if(jQuery.meetingParser.mwmAvailability[i].publicIds[k].pid==_5e[j].pid){_63=true;jQuery.meetingParser.mwmAvailability[i].publicIds[k].timeSlots=_5e[j].timeSlots;break;}}if(!_63){jQuery.meetingParser.mwmAvailability[i].publicIds.push(_5e[j]);}}}}if(!_60){jQuery.meetingParser.mwmAvailability.push({week:_5d.start,publicIds:_5e});}if(_5f){_5f(_5d,_5e);}},callback_WCalRetrieveValidSlotsTM2:function(_65,_66,_67,_68,_69,_6a,_6b,_6c){var _6d=new Date(_65.getTime());_6d.setDate(_6d.getDate()-_6d.getDay());_6d.setHours(0,0,0,0);if(_66){return new Array();}else{_68(_6d);}var _6e=null;if(_6c&&_6c.length>0){_6e=jQuery.meetingParser.retrieveValidLengthSlots(_6d,(_6b==null?_67.duration.min:_6b),_6c);}else{return new Array({pid:"",timeSlots:new Array()});}if(_6e!=null){return _6e;}for(var j=0;j<_6c.length;j++){var pid=_6c[j];var _71=false;for(var i=0;i<jQuery.meetingParser.ajaxMWMAvail.length;i++){if(jQuery.meetingParser.ajaxMWMAvail[i].week.getTime()==_6d.getTime()){_71=true;var _73=false;for(var k=0;k<jQuery.meetingParser.ajaxMWMAvail[i].ids.length;k++){if(jQuery.meetingParser.ajaxMWMAvail[i].ids[k]==pid){_73=true;_6c.splice(j,1);j--;break;}}if(!_73){jQuery.meetingParser.ajaxMWMAvail[i].ids.push(pid);}break;}}if(!_71){jQuery.meetingParser.ajaxMWMAvail.push({week:new Date(_6d.getTime()),ids:new Array(pid)});}}if(_6c.length==0){return "loadMWM";}var _75=1;var _76=new Date(_6d.getTime());_76.setDate(_76.getDate()-_76.getDay()+(6*_75)+(_75-1));xmlRequest="<Query><From>"+_6d.format("yyyyMMdd")+"</From><To>"+_76.format("yyyyMMdd")+"</To><TimeZone>"+jQuery.tungleGlobals.user.timezone.label+"</TimeZone><Pids>";for(var j=0;j<_6c.length;j++){xmlRequest+=_6c[j];if(j+1<_6c.length){xmlRequest+=",";}}xmlRequest+="</Pids></Query>";jQuery.ajaxHelper.sendAjaxPostRequest("TungleMe.AvailabilityJSON",xmlRequest,function(_77,_78){jQuery.apiParser.callbackAjax_MWMAvail(_77,_78,_6a,_69);},function(_79){jQuery.meetingParser.resetAvailabilityAjaxMarkers(_79);_69(_79);},{start:_6d,end:_76,ids:_6c});return "loadMWM";},callback_WCalRetrieveValidSlots:function(_7a,_7b,_7c,_7d,_7e,_7f,txt){if(_7c.previewInit==false||_7d.timeSlots==null){return null;}var _81=new Array();var _82=new Date(_7c.currentWeek.getTime());_7e(_7a);var _83=new Date();_83.setTime(_7c.currentWeek.getTime());var _84=null;var _85=null;_83.setDate(_83.getDate()-_83.getDay()+7);for(var i=0;i<_7d.timeSlots.unsortedDates.length;i++){var _87=_7d.timeSlots.unsortedDates[i].start;var end=_7d.timeSlots.unsortedDates[i].end;if(_87>=_7c.currentWeek&&end<=_83&&_87!=end){_81.push({start:new Date(_7d.timeSlots.unsortedDates[i].start.getTime()),end:new Date(_7d.timeSlots.unsortedDates[i].end.getTime())});}if(_87<_7c.currentWeek){_84=new Date(_87.getTime());}else{if(_87>=_83&&_85==null){_85=new Date(end.getTime());}}}if(!_7b){_7f(_84,_85,txt);}else{_7e(_82);}return _81;},updateMetaXML:function(_89,_8a,_8b,_8c){var _8d="<Space ID=\""+_8b+"\" Version=\""+_8c+"\"><Participants><Participant><Activities>";if(_8a&&!_8a.isEmpty()){_8d+="<Activity Type=\"Commenting\"><XmlData><Comment>"+_8a.HEX()+"</Comment></XmlData></Activity>";}_8d+="<Activity Type=\"MetaUpdating\"><XmlData>"+_89;_8d+="</XmlData></Activity></Activities></Participant></Participants></Space>";return _8d;},addMetaWrapper:function(_8e,_8f,_90){return "<Meta Name=\""+_8e+"\"><Old>"+_8f.HEX()+"</Old><New>"+_90.HEX()+"</New></Meta>";},addActivityTS:function(_91,_92,_93,_94,_95){var _96="<Activity Type=\""+_91+"\" "+(_95==true?"Flags=\"0x01\"":"")+">";if(_92){_96+="<XmlData>";_96+=jQuery.meetingParser.addTSWrapper(_92,_93);_96+=jQuery.meetingParser.addIEvWrapper(_94);_96+="</XmlData>";}_96+="</Activity>";return _96;},addTSWrapper:function(_97,_98,_99){var _9a="<Tss";if(_98!=null){_9a+=" TimeZone=\""+_98+"\"";}if(_99!=null){_9a+=" Action=\""+_99+"\"";}_9a+=">"+_97+"</Tss>";return _9a;},addIEvWrapper:function(_9b){if(!_9b){return "";}var _9c="";var _9d=jQuery.meetingParser.getOverlapString(_9b);if(_9d&&_9d.length>0){_9c+="<IgnoredEventIDs>"+_9d+"</IgnoredEventIDs>";}return _9c;},addParticipantXML:function(_9e,_9f,_a0,_a1,id,_a3,_a4,_a5){var _a6="<Participant";if(id!=null){if(id!==""){_a6+=" ID=\""+jQuery.tungleGlobals.user.id+"\"";}if(_9e!=null){_a6+=" Type=\""+_9e+"\"";}_a6+=">";}else{_a6="<Participant>";}if(_9f&&!_9f.isEmpty()){_a6+="<FullName>"+_9f.substring(0,255).HEX()+"</FullName>";}_a6+=jQuery.meetingParser.createUserIdentXML(_a1,_a0);if(id!=null){_a6+="<Activities>"+jQuery.meetingParser.addActivityTS("Creating",_a5,_a3,_a4)+"</Activities>";}_a6+="</Participant>";return _a6;},createUserIdentXML:function(_a7,_a8){var xml="";if(_a7==jQuery.tungleGlobals.UserIdentType.publicId||_a7==jQuery.tungleGlobals.BuddyType.tglme){xml+="<UserID Type=\"PublicID\">"+_a8+"</UserID>";}else{xml+="<UserID Type=\""+_a7+"\">"+_a8.HEX()+"</UserID>";}return xml;},createSpaceXML:function(_aa,_ab,_ac,_ad,_ae,_af,_b0){if(_ae==null||_ae==undefined){_ae=true;}var _b1="";if(_aa.organizer.id===""){_b1+="<Email>"+_aa.organizer.email.HEX()+"</Email>";_b1+="<FullName>"+(_aa.organizer.fname+" "+_aa.organizer.lname).substring(0,255).HEX()+"</FullName>";}if(_ad&&!_ad.isEmpty()){_b1+="<Space Type=\""+_ad+"\">";}else{_b1+="<Space>";}_b1+="<Summary>"+_aa.subject.substring(0,255).HEX()+"</Summary>";_b1+="<Location>"+_aa.location.substring(0,199).HEX()+"</Location>";_b1+="<Duration>"+_aa.duration+"</Duration>";if(_aa.IntegrationSource&&_aa.IntegrationSource.init){_b1+="<IntegrationSources>";_b1+="<IntegrationSource Type=\""+_aa.IntegrationSource.name+"\" ID=\""+_aa.IntegrationSource.id+"\">";if(_aa.IntegrationSource.password){_b1+="<Password>"+_aa.IntegrationSource.password+"</Password>";}_b1+="</IntegrationSource>";_b1+="</IntegrationSources>";}var _b2=0;if(_ae){_b2+=1;}if(_b0){_b2+=2;}if(_b2>0){_b1+="<Flags>0x0"+_b2+"</Flags>";}if(_af){_b1+="<ResponseFlag>0x01</ResponseFlag>";}if(_aa.message!=null){_b1+="<Details>"+_aa.message.substring(0,10023).HEX()+"</Details>";}_b1+="<Participants>";_b1+=jQuery.meetingParser.addParticipantXML("Host",_aa.organizer.fname+(_aa.organizer.lname?" "+_aa.organizer.lname:""),_aa.organizer.email,_aa.organizer.type,_aa.organizer.id,_aa.organizer.timezone.label,_ac,_ab);for(var i=0;i<_aa.attendees.length;i++){_b1+=jQuery.meetingParser.addParticipantXML(null,(_aa.attendees[i].name==null?_aa.attendees[i].first:_aa.attendees[i].name),_aa.attendees[i].email,_aa.attendees[i].type,null,null,null,null);}_b1+="</Participants></Space>";return _b1;},createPreviewXML:function(_b4,_b5,_b6){var _b7="<Space><Duration>"+_b4.duration+"</Duration>";_b7+="<Participants>";_b7+=jQuery.meetingParser.addParticipantXML("Host",null,_b4.organizer.email,null,_b4.organizer.id,_b4.organizer.timezone.label,_b6,_b5);for(var i=0;i<_b4.attendees.length;i++){_b7+=jQuery.meetingParser.addParticipantXML(null,null,_b4.attendees[i].email,_b4.attendees[i].type,null,null,null,null);}_b7+="</Participants></Space>";return _b7;},createReminderXML:function(_b9,_ba,_bb,_bc){var _bd="<Space ID=\""+_bb+"\" Version=\""+_bc+"\"><Participants><Participant><Activities>";_bd+="<Activity Type=\"ReminderReceiving\"><XmlData><Participants>";_b9.each(function(){var _be=$(this).parent().parent();_bd+="<Participant Action=\"N\">"+jQuery.meetingParser.createUserIdentXML(_be.attr("ctype"),_be.attr("email"))+"</Participant>";});if(_ba&&!_ba.isEmpty()){_bd+="<Notification Action=\"N\"><Msg><![CDATA["+_ba+"]]></Msg></Notification>";}_bd+="</Participants></XmlData></Activity></Activities></Participant></Participants></Space>";return _bd;},createAttendeeChangeXML:function(_bf,_c0,_c1,_c2){var _c3="<Participants>";for(var i=0;i<_bf.addedAttendees.length;i++){_c3+="<Participant Action=\"C\">";if(_bf.addedAttendees[i].name){_c3+="<FullName>"+_bf.addedAttendees[i].name.substring(0,255).HEX()+"</FullName>";}_c3+=jQuery.meetingParser.createUserIdentXML(_bf.addedAttendees[i].type,_bf.addedAttendees[i].email)+"</Participant>";}for(var i=0;i<_bf.removedAttendees.length;i++){_c3+="<Participant Action=\"D\">"+jQuery.meetingParser.createUserIdentXML(_bf.removedAttendees[i].type,_bf.removedAttendees[i].email)+"</Participant>";}if(_bf.addedAttendees.length>0){_c3+="<Notification Action=\"C\" Enabled=\"true\">";if(_c0&&!_c0.isEmpty()){_c3+="<Msg>"+_c0+"</Msg>";}_c3+="</Notification>";}if(_bf.removedAttendees.length>0){if(_c1){_c3+="<Notification Action=\"D\" Enabled=\"true\">";if(_c2&&!_c2.isEmpty()){_c3+="<Msg>"+_c2+"</Msg>";}_c3+="</Notification>";}else{_c3+="<Notification Action=\"D\" Enabled=\"false\"/>";}}_c3+="</Participants>";return _c3;},sortSelectedSlots:function(_c5){var _c6=new Array();while(_c5.selectedSlots.length>0){var _c7=0;for(var i=0;i<_c6.length;i++){if(_c5.selectedSlots[0].week.getTime()<_c6[i].week.getTime()){_c7=i;break;}else{_c7=i+1;}}_c6.splice(_c7,0,_c5.selectedSlots[0]);_c5.selectedSlots.splice(0,1);}_c5.selectedSlots=_c6;for(var j=0;j<_c5.selectedSlots.length;j++){var _ca=new Array();while(_c5.selectedSlots[j].timeSlots.length>0){var _c7=0;for(var i=0;i<_ca.length;i++){if(_c5.selectedSlots[j].timeSlots[0].end.getTime()<_ca[i].start.getTime()){_c7=i;break;}else{_c7=i+1;}}_ca.splice(_c7,0,_c5.selectedSlots[j].timeSlots[0]);_c5.selectedSlots[j].timeSlots.splice(0,1);}var _cb=_c5.selectedSlots[j];_c5.selectedSlots[j].timeSlots=_ca;}},getTimeslotXML:function(_cc,_cd,_ce,_cf,_d0){var _d1="";var _d2=false;var _d3=false;var _d4="";var _d5=new Array();var _d6=true;jQuery.meetingParser.sortSelectedSlots(_cd);for(var j=0;j<_cd.selectedSlots.length;j++){for(var i=0;i<_cd.selectedSlots[j].timeSlots.length;i++){_d6=false;var _d9={start:_cd.selectedSlots[j].timeSlots[i].start,end:_cd.selectedSlots[j].timeSlots[i].end};if(Math.ceil((_cd.selectedSlots[j].timeSlots[i].end.getTime()-_cd.selectedSlots[j].timeSlots[i].start.getTime())/60000)<_ce){var _da=false;if(_cd.selectedSlots[j].timeSlots[i].end.format("HH:mm")=="23:59"&&i+1<_cd.selectedSlots[j].timeSlots.length){var _db=_cd.selectedSlots[j].timeSlots[i+1];var _dc=_cd.selectedSlots[j].timeSlots[i];if(jQuery.meetingParser.validSpanningSlots(_db,_dc,_ce)){_d9={start:_cd.selectedSlots[j].timeSlots[i].start,end:_cd.selectedSlots[j].timeSlots[i+1].end};i++;}else{_da=true;}}else{if(_cd.selectedSlots[j].timeSlots[i].end.format("HH:mm")=="23:59"&&j+1<_cd.selectedSlots.length&&_cd.selectedSlots[j+1].timeSlots.length!=0){var _db=_cd.selectedSlots[j+1].timeSlots[0];var _dc=_cd.selectedSlots[j].timeSlots[i];if(jQuery.meetingParser.validSpanningSlots(_db,_dc,_ce)){_d9={start:_cd.selectedSlots[j].timeSlots[i].start,end:_cd.selectedSlots[j+1].timeSlots[0].end};j++;i=0;}else{_da=true;}}else{_da=true;}}if(_da){_d1+="i";}}if(_d0&&_d0.indexOf("OriginatorIn")!=-1){if(_d9.start.getTime()<(new Date()).getTime()){_d2=true;}else{for(var k=0;k<_cd.timeSlots.unsortedDates.length;k++){var _de=_cd.timeSlots.unsortedDates[k].start;var end=_cd.timeSlots.unsortedDates[k].end;if(_d9.start.getDate()!=_d9.end.getDate()&&k+1<_cd.timeSlots.unsortedDates.length){end=_cd.timeSlots.unsortedDates[k+1].end;}if(_d9.start>=_de&&_d9.end<=end){_d3=true;}}}}if(_d9.end.format("HH:mm")=="23:59"){_d9.end=new Date(_d9.end.getTime());_d9.end.setHours(24,0,0);}var _e0=jQuery.meetingParser.setStartSlot(_d9.start,_d9.end);_d4+="<Ts Start=\""+_e0.startSlot+"\" End=\""+_e0.endSlot+"\"/>";_d5[_d5.length]={Timeslot:{Start:{$:_e0.startSlot},End:{$:_e0.endSlot}}};}}if(_d0&&_d0.indexOf("OriginatorIn")!=-1&&!_cf){if(_d2){return "inThePast";}else{if(_d6){return "";}}}else{if(_d1.length!=0){return "error";}}if(_cc){return _d5;}else{return _d4;}},getConflictTimes:function(_e1,_e2){var _e3=new Array();var _e4=new Date(_e1.getTime());_e4.setDate(_e4.getDate()-_e4.getDay()+7);for(var i=0;i<_e2.length;i++){if(jQuery.meetingParser.timeslotsOverlap(_e2[i],{start:new Date(_e1.getTime()),end:_e4})){_e3[_e3.length]=_e2[i];}}return _e3;},overLapMeetings:function(_e6,id,add,_e9,_ea,_eb){var _ec=new Date(_e6.start.getTime());_ec.setDate(_ec.getDate()-_ec.getDay());_ec.setHours(0,0,0,0);if(_ea.meetingList!=null){var _ed=new Array();for(var i=0;i<_ea.meetingList.length;i++){if(_ea.meetingList[i].week.getTime()==_ec.getTime()){for(var j=0;j<_ea.meetingList[i].data.length;j++){if(_ea.meetingList[i].data[j].id==id){for(var k=0;k<_ea.meetingList[i].data[j].meetings.length;k++){if(jQuery.meetingParser.timeslotsOverlap(_e6,_ea.meetingList[i].data[j].meetings[k])&&(_ea.meetingList[i].data[j].meetings[k].type==="T"||_ea.meetingList[i].data[j].meetings[k].type==="B")){_ed[_ed.length]=_ea.meetingList[i].data[j].meetings[k];}}break;}}break;}}jQuery.meetingParser.addOverlapMeetings(_ea.overlapMeetings,add,_ed,"meetingConflict",true,_eb);}if(_ea.meetingADList!=null){var _f1=new Array();for(var i=0;i<_ea.meetingADList.length;i++){if(_ea.meetingADList[i].id==id){for(var j=0;j<_ea.meetingADList[i].meetings.length;j++){var _f2={start:new Date(_ea.meetingADList[i].meetings[j].start.getTime()),end:new Date(_ea.meetingADList[i].meetings[j].end.getTime())};if(jQuery.meetingParser.timeslotsOverlap(_e6,_f2)){_ea.meetingADList[i].meetings[j].tid=id;_f1[_f1.length]=_ea.meetingADList[i].meetings[j];}}break;}}jQuery.meetingParser.addOverlapMeetings(_ea.overlapMeetingsAD,add,_f1,"meetingConflictAD",_e9,_eb);}},addOverlapMeetings:function(_f3,add,_f5,_f6,_f7,_f8){var _f9=null;var _fa=0;for(var j=0;j<_f5.length;j++){_f9=null;for(var i=0;i<_f3.length;i++){if(_f3[i].start.getTime()===_f5[j].start.getTime()&&_f3[i].end.getTime()===_f5[j].end.getTime()&&_f3[i].id===_f5[j].id){if(add){_f9=false;_f3[i].o_count++;_fa=_f3[i].o_count;}else{_f3[i].o_count--;_fa=_f3[i].o_count;if(_f3[i].o_count==0){_f3.splice(i,1);_f9=true;}}break;}else{_fa=_f3[i].o_count;}}if(_f9===null&&add){_f3[_f3.length]={start:new Date(_f5[j].start.getTime()),end:new Date(_f5[j].end.getTime()),id:_f5[j].id,label:_f5[j].label,color:_f5[j].color,type:_f5[j].type,tid:_f5[j].tid,o_count:1};_fa=1;_f9=true;}if(_f9!==null&&_fa<2&&_f8){$("#"+_f8).trigger(_f6,[_f5[j],add]);}}},meetingCorrespondsToFilters:function(_fd,_fe){var _ff=true;return _ff;},getAllDayMeetings:function(id,week,_102,_103){if(week){if(_103.meetingADList!=null){var _104=new Array();var _105=new Date(week.getTime());_105.setDate(_105.getDate()-_105.getDay()+7);for(var i=0;i<_103.meetingADList.length;i++){if(_103.meetingADList[i].id==id){for(var j=0;j<_103.meetingADList[i].meetings.length;j++){if(jQuery.meetingParser.timeslotsOverlap({start:new Date(_103.meetingADList[i].meetings[j].start.getTime()),end:new Date(_103.meetingADList[i].meetings[j].end.getTime())},{start:new Date(week.getTime()),end:_105})&&(jQuery.meetingParser.meetingCorrespondsToFilters(_103.meetingADList[i].meetings[j],_103)||!_102)){_103.meetingADList[i].meetings[j].tid=id;_104[_104.length]=_103.meetingADList[i].meetings[j];}}return _104;}}}}else{if(_103.meetingADList!=null){for(var i=0;i<_103.meetingADList.length;i++){if(_103.meetingADList[i].id==id){return _103.meetingADList[i].meetings;}}}}return null;},getCurrentWeekMeetings:function(id,week,_10a,_10b){if(_10b.meetingList!=null){for(var i=0;i<_10b.meetingList.length;i++){if(_10b.meetingList[i].week.getTime()==week.getTime()){for(var j=0;j<_10b.meetingList[i].data.length;j++){if(_10b.meetingList[i].data[j].id==id){if(_10a){var _10e=new Array();for(var k=0;k<_10b.meetingList[i].data[j].meetings.length;k++){if(jQuery.meetingParser.meetingCorrespondsToFilters(_10b.meetingList[i].data[j].meetings[k],_10b)){_10e[_10e.length]=_10b.meetingList[i].data[j].meetings[k];}}return _10e;}else{return _10b.meetingList[i].data[j].meetings;}}}}}}return null;},getSlot1MinusSlot2:function(_110,_111){var _112={start:new Date(_110.start.getTime()),end:new Date(_111.start.getTime()),type:_110.type};var _113={start:new Date(_111.end.getTime()),end:new Date(_110.end.getTime()),type:_110.type};var _114={start:new Date(Math.max(_110.start.getTime(),_111.start.getTime())),end:new Date(Math.min(_110.end.getTime(),_111.end.getTime())),type:_110.type};if(_112.start.getTime()>=_112.end.getTime()){_112=null;}if(_113.start.getTime()>=_113.end.getTime()){_113=null;}if(_114.start.getTime()>=_114.end.getTime()){_114=null;}return {top:_112,bot:_113,intersect:_114};},timeSlot1IsInsideSlot2:function(_115,_116){if(_116.start.getTime()<=_115.start.getTime()&&_116.end.getTime()>=_115.end.getTime()){return true;}return false;},timeslotsOverlap:function(_117,_118){if(_117.start.getTime()<_118.start.getTime()&&_117.end.getTime()<=_118.start.getTime()){return false;}else{if(_117.start.getTime()>=_118.end.getTime()&&_117.end.getTime()>=_118.end.getTime()){return false;}else{return true;}}},getCommonTimes:function(_119,_11a){if(_119.length>0){var _11b=_119[0];var _11c=new Array();for(var i=1;i<_119.length;i++){_11c=new Array();for(var k=0;k<_11b.length;k++){for(var j=0;j<_119[i].length;j++){if(jQuery.meetingParser.timeslotsOverlap(_11b[k],_119[i][j])){var pos1={dayS:_119[i][j].start.getTime(),dayE:_119[i][j].end.getTime()};var pos2={dayS:_11b[k].start.getTime(),dayE:_11b[k].end.getTime()};var _122=_11b[k].start;var end=_11b[k].end;if(pos1.dayS<=pos2.dayS&&pos1.dayE>=pos2.dayE){_122=_11b[k].start;end=_11b[k].end;}else{if(pos2.dayS<=pos1.dayS&&pos2.dayE>=pos1.dayE){_122=_119[i][j].start;end=_119[i][j].end;}else{if(pos2.dayS<=pos1.dayS&&pos2.dayE>pos1.dayS){_122=_119[i][j].start;end=_11b[k].end;}else{if(pos2.dayS<pos1.dayE&&pos2.dayE>=pos1.dayE){_122=_11b[k].start;end=_119[i][j].end;}}}}_122=new Date(_122.getTime());end=new Date(end.getTime());if(_11a==undefined||(_11a&&(end-_122)>=(_11a-1000))){_11c.push({start:_122,end:end});}}}}_11b=_11c;}return _11b;}return new Array();},addMeetingToCache:function(id,week,_126,_127){var _128=false;if(_127.meetingList!=null){for(var i=0;i<_127.meetingList.length;i++){if(_127.meetingList[i].week.getTime()==week.getTime()){var _12a=new Array();if(_126){_12a[_12a.length]=_126;}_127.meetingList[i].data[_127.meetingList[i].data.length]={id:id,meetings:_12a};_128=true;break;}}if(!_128){var _12a=new Array();if(_126){_12a[_12a.length]=_126;}_127.meetingList[_127.meetingList.length]={week:new Date(week.getTime()),data:new Array({id:id,meetings:_12a})};}}},callback_getMeetings:function(_12b,_12c,_12d,_12e,_12f){for(var i=0;i<_12c.length;i++){var _131=jQuery.meetingParser.getAllDayMeetings(_12c[i].id,null,null,_12d);if(_131!=null){var _132=false;for(var j=0;j<_131.length;j++){if(_131[j].id==_12c[i].meeting.id){_131[j]=_12c[i].meeting;_132=true;break;}}if(!_132){_131[_131.length]=_12c[i].meeting;}}else{_12d.meetingADList[_12d.meetingADList.length]={id:_12c[i].id,meetings:new Array(_12c[i].meeting)};}}for(var i=0;i<_12b.length;i++){var week=new Date(_12b[i].meeting.start.getTime());week.setDate(week.getDate()-week.getDay());week.setHours(0,0,0,0);var _131=jQuery.meetingParser.getCurrentWeekMeetings(_12b[i].id,week,false,_12d);if(_131!=null){if(_12b[i].action=="Delete"){for(var j=0;j<_131.length;j++){if(_131[j].id==_12b[i].meeting.id){_131.splice(j,1);break;}}}else{var _132=false;for(var j=0;j<_131.length;j++){if(_131[j].id==_12b[i].meeting.id){_131[j]=_12b[i].meeting;_132=true;break;}}if(!_132){_131[_131.length]=_12b[i].meeting;}}}else{jQuery.meetingParser.addMeetingToCache(_12b[i].id,week,_12b[i].meeting,_12d);}}if(_12e!=undefined){for(var i=0;i<_12d.selectedSlots.length;i++){if(_12d.selectedSlots[i].week.getTime()==_12f.getTime()){for(var j=0;j<_12d.selectedSlots[i].timeSlots.length;j++){jQuery.meetingParser.overLapMeetings(_12d.selectedSlots[i].timeSlots[j],jQuery.tungleGlobals.user.id,true,null,_12d,_12e);}break;}}}},setStartSlot:function(_135,_136){var slot={startSlot:"",endSlot:""};slot.startSlot=_135.format("yyyyMMddTHHmm00");slot.endSlot=_136.format("yyyyMMddTHHmm00");if(_136.format("HH:mm")=="23:59"){var temp=new Date(_136.getTime());temp.setHours(24,0,0);slot.endSlot=temp.format("yyyyMMddTHHmm00");}return slot;},validSpanningSlots:function(_139,_13a,_13b){var _13c=new Date(_139.end.getTime());_13c.setDate(_13c.getDate()-1);if(_139.start.format("HH:mm:ss")=="00:00:00"&&_13c.getDate()==_13a.start.getDate()&&_13c.getMonth()==_13a.start.getMonth()&&_13c.getFullYear()==_13a.start.getFullYear()&&Math.ceil((_139.end.getTime()-_13a.start.getTime())/60000)>=parseInt(_13b)){return true;}else{return false;}},recalculateSelectedSlots:function(_13d,_13e,_13f){var _140=new Array();jQuery.meetingParser.sortSelectedSlots(_13d);for(var j=0;j<_13d.selectedSlots.length;j++){for(var i=0;i<_13d.selectedSlots[j].timeSlots.length;i++){var _143={start:_13d.selectedSlots[j].timeSlots[i].start,end:_13d.selectedSlots[j].timeSlots[i].end};if(Math.ceil((_143.end.getTime()-_143.start.getTime())/60000)<_13e){var _144=true;if(_143.end.format("HH:mm")=="23:59"&&i+1<_13d.selectedSlots[j].timeSlots.length){var _145=_13d.selectedSlots[j].timeSlots[i+1];if(jQuery.meetingParser.validSpanningSlots(_145,_143,_13e)){_144=false;i++;}}else{if(_143.end.format("HH:mm")=="23:59"&&j+1<_13d.selectedSlots.length&&_13d.selectedSlots[j+1].timeSlots.length!=0){var _145=_13d.selectedSlots[j+1].timeSlots[0];if(jQuery.meetingParser.validSpanningSlots(_145,_143,_13e)){_144=false;j++;i=0;}}}if(_144){_143.clearMcal=true;for(var k=0;k<_13d.selectedSlots[j].timeSlots.length;k++){if(_143.start.getDate()==_13d.selectedSlots[j].timeSlots[k].start.getDate()&&_143.start.getTime()!==_13d.selectedSlots[j].timeSlots[k].start.getTime()){_143.clearMcal=false;break;}}_140.push(_143);var _147=jQuery.meetingParser.modifyTimeSlotList(_143,false,j,i,null,_13d,null);if(_13f&&_147){_13f(false);}i--;if(!_13d.selectedSlots[j]){break;}}}}}return _140;},addRemoveTimeSlot:function(_148,add,_14a){var _14b=null;var week=new Date(_148.start.getTime());week.setDate(week.getDate()-week.getDay());week.setHours(0,0,0,0);var _14d=-1;for(var i=0;i<_14a.length;i++){if(_14a[i].week.getTime()===week.getTime()){_14d=i;for(var j=0;j<_14a[i].timeSlots.length;j++){if(_14a[i].timeSlots[j].start.getTime()===_148.start.getTime()&&_14a[i].timeSlots[j].end.getTime()===_148.end.getTime()){if(!add){_14a[i].timeSlots.splice(j,1);_14b=true;}else{_14b=false;}break;}}if(add&&_14b===null){var _14d=0;for(var m=0;m<_14a[i].timeSlots.length;m++){var slot=_14a[i].timeSlots[m].start.getTime();if(slot>_148.start.getTime()){_14d=m;break;}_14d++;}_14a[i].timeSlots.splice(_14d,0,_148);_14b=true;}break;}}if(_14d<0&&add){_14a.push({week:week,timeSlots:new Array(_148)});_14b=true;}else{if(_14d>-1&&!add){if(_14a[_14d].timeSlots.length==0){_14a.splice(_14d,1);}}}return _14b;},modifyTimeSlotList:function(_152,add,i,j,Mcal,_157,_158){var _159=null;if(i>=0&&j>=0&&!add&&_157.selectedSlots[i]&&_157.selectedSlots[i].timeSlots[j]){_157.selectedSlots[i].timeSlots.splice(j,1);_159=true;if(_157.selectedSlots[i].timeSlots.length==0){_157.selectedSlots.splice(i,1);}}else{_159=jQuery.meetingParser.addRemoveTimeSlot(_152,add,_157.selectedSlots);}if(_159===true){jQuery.meetingParser.overLapMeetings(_152,jQuery.tungleGlobals.user.id,add,Mcal,_157,_158);}return _159;},TimeSlotsModString:function(_15a){var _15b="";var _15c=new Array();var _15d=_15a.timeSlots.unsortedDates;for(var i=0;i<_15a.selectedSlots.length;i++){for(var j=0;j<_15a.selectedSlots[i].timeSlots.length;j++){_15c[_15c.length]=_15a.selectedSlots[i].timeSlots[j];}}var stat=getChangeStat(_15c,_15d);switch(stat){case "overlap":_15b="CD";break;case "contain":case "extra":_15b="C";break;default:break;}if(_15b=="CD"){return _15b;}stat=getChangeStat(_15d,_15c);switch(stat){case "contain":case "extra":_15b+="D";break;default:break;}return _15b;function getChangeStat(_161,_162){var stat="";var _164=true;for(var i=0;i<_161.length;i++){var _166=false;for(var j=0;j<_162.length;j++){if(_161[i].start.getTime()<_162[j].start.getTime()&&_161[i].end.getTime()>=_162[j].end.getTime()){stat="contain";return stat;}else{if(_161[i].start.getTime()<=_162[j].start.getTime()&&_161[i].end.getTime()>_162[j].end.getTime()){stat="contain";return stat;}else{if(_161[i].start.getTime()<_162[j].start.getTime()&&_161[i].end.getTime()>_162[j].start.getTime()&&_161[i].end.getTime()<_162[j].end.getTime()){stat="overlap";return stat;}else{if(_161[i].start.getTime()>_162[j].start.getTime()&&_161[i].start.getTime()<_162[j].end.getTime()&&_161[i].end.getTime()>_162[j].end.getTime()){stat="overlap";return stat;}else{if(_161[i].start.getTime()>=_162[j].start.getTime()&&_161[i].end.getTime()<=_162[j].end.getTime()){_166=true;break;}}}}}}_164=_164&&_166;}if(_164){stat="noextra";}else{stat="extra";}return stat;}},buildMeetingHanger:function(_168,dom){if(!dom||!_168){return false;}var _16a="<div class=\"hanger_month\">"+_168.format("MMM")+"</div>";_16a+="<div class=\"hanger_day\">"+_168.format("dxx")+"</div>";_16a+="<div class=\"hanger_time\">"+_168.format("h:mmt")+"</div>";dom.html(_16a).show();}};})(jQuery);(function($){$.fn.tungleMe=function(_2){var _3={myId:"#tungleMe",isInFrame:false,lastLink:null,callback_enable:null,callback_verify:null,callback_error:null,callback_success:null};var _4={xml:"<TReq Type=\"TungleMe.Set\"><Settings Enabled=\"$ENABLED$\" ID=\"$TOKEN$\"/></TReq><TReq Type=\"TungleMe.Get\"></TReq>"};var _5=false;var _6=/[^a-zA-Z0-9_.]+/;var _7={errorDiv:"errorText",successDiv:"successText",miniLoader:".miniLoader",verifyLink:"verify",enableLink:"enable",tokenInput:"box_token",linkContainer:"div.tungle-me-link"};$.extend(_3,_2);var _8;var _9;var _a;var _b;var _c;var _d;var _e;var _f;_e=function(_10,_11){_5=false;$(_3.myId).find(_7.miniLoader).hide();if(_10.TRes["@Status"]==="SUCCESS"&&_10.TRes.UserIDs&&_10.TRes.UserIDs.UserID){var _12=_10.TRes.UserIDs.UserID;if(_12["@Available"]&&_12["@Available"].toLowerCase()=="true"){_3.lastLink=_10.TRes.UserIDs.UserID.$;_f(_3.isInFrame?jQuery.langStrings.tglMessages.availableTokenShort:jQuery.langStrings.tglMessages.availableToken);if(_3.callback_verify){_3.callback_verify(_11,_3.lastLink);_3.callback_verify=null;}return false;}else{_3.lastBadLink=_10.TRes.UserIDs.UserID.$;}}_a(_3.isInFrame?jQuery.langStrings.tglMessages.usedTokenShort:jQuery.langStrings.tglMessages.usedToken);$(_3.myId).find(_7.linkContainer).find("input").focus();};_c=function(_13){if(_5){return false;}_f("");_a("");var _14=$(_3.myId).find(_7.linkContainer).find("input").val();if(_6.test(_14)){_a(_3.isInFrame?jQuery.langStrings.tglMessages.invalidTokenShort:jQuery.langStrings.tglMessages.invalidToken);$(_3.myId).find(_7.linkContainer).find("input").focus();}else{if(_14&&(_14.length<2||_14.length>32)){_a(_3.isInFrame?jQuery.langStrings.tglMessages.shortLinkShort:jQuery.langStrings.tglMessages.shortLink);$(_3.myId).find(_7.linkContainer).find("input").focus();}else{if(_14==_3.lastBadLink){_a(_3.isInFrame?jQuery.langStrings.tglMessages.usedTokenShort:jQuery.langStrings.tglMessages.usedToken);$(_3.myId).find(_7.linkContainer).find("input").focus();}else{if(_14==_3.lastLink){if(_3.callback_verify){_3.callback_verify(_13,_14);}}else{if(_14){_3.lastLink=_14;var _15="<UserIDs>";_15+="<UserID Type=\"PublicID\">"+_14+"</UserID>";_15+="</UserIDs>";_5=true;$(_3.myId).find(_7.miniLoader).show();jQuery.ajaxHelper.sendAjaxPostRequest("CheckIdentityJSON",_15,_e,_9,_13);}else{_a(_3.isInFrame?jQuery.langStrings.tglMessages.noLinkEnteredShort:jQuery.langStrings.tglMessages.noLinkEntered);}}}}}};_b=function(_16,_17){if(_5){return false;}_f("");_a("");if(_6.test(_16)){_a(jQuery.langStrings.tglMessages.invalidToken);$(_3.myId).find(_7.linkContainer).find("input").focus();}else{if(_16&&(_16.length<2||_16.length>32)){_a(jQuery.langStrings.tglMessages.shortLink);$(_3.myId).find(_7.linkContainer).find("input").focus();}else{if(_16){var _18=_4.xml.replace("$ENABLED$","true").replace("$TOKEN$",_16);_5=true;$(_3.myId).find(_7.miniLoader).show();jQuery.ajaxHelper.sendAjaxPostRequest("TungleMe.SetJSON",_18,_d,_9,{link:_16,target:_17});}else{_a(jQuery.langStrings.tglMessages.noLinkEntered);$(_3.myId).find(_7.linkContainer).find("input").focus();}}}};_d=function(_19,_1a){_5=false;_3.callback_enable(_19,_1a);};_9=function(){_5=false;$(_3.myId).find(_7.miniLoader).hide();_a(_3.isInFrame?jQuery.langStrings.tglMessages.serverErrorShort:jQuery.langStrings.tglMessages.serverError);};_a=function(_1b){if(_3.callback_error){_3.callback_error(_1b);return;}if(_1b!==""){$(_3.myId).find("."+_7.errorDiv).show().find("span").text(_1b);$(_3.myId).find(_7.linkContainer).find("input").focus();}else{$(_3.myId).find("."+_7.errorDiv).hide();}};_f=function(msg){if(_3.callback_success){_3.callback_success(msg);return;}if(msg!==""){$(_3.myId).find("."+_7.successDiv).show().find("span").text(msg);}else{$(_3.myId).find("."+_7.successDiv).hide();}};return this.each(function(){$(this).click(function(e){if(_5){return false;}var _1e=$(e.target).attr("class");_1e=(_1e===""||_1e==="bt"||_1e==="inner")?$(e.target).parent().attr("class"):_1e;if(_1e.hC(_7.tokenInput)){_a("");_f("");return false;}else{if(_1e.hC(_7.verifyLink)){_c();return false;}else{if(_1e.hC(_7.errorDiv)){_a("");return false;}else{if(_1e.hC(_7.successDiv)){_f("");return false;}else{if(_1e.hC(_7.enableLink)){_b($(_3.myId).find(_7.linkContainer).find("input").val(),_3.target);return false;}}}}}}).find(_7.linkContainer).keypress(function(e){if(e.which==13){_c();}});$(this).bind("verify",function(e,_21,_22){_3.callback_verify=_21;_c(_22);return false;}).bind("enable",function(e,_24,_25,_26){if(_26){_3.callback_enable=_26;}_b(_24,_25);return false;});});};})(jQuery);(function($){$.Bubble={objects:new Array(),BubbleID:"",getViewportSize:function(){var _2=[0,0];if(typeof window.innerWidth!="undefined"){_2=[window.innerWidth,window.innerHeight];}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){_2=[document.documentElement.clientWidth,document.documentElement.clientHeight];}else{_2=[document.getElementsByTagName("body")[0].clientWidth,document.getElementsByTagName("body")[0].clientHeight];}}return _2;},clearBodyHandler:function(_3,id){var _5=$.Bubble.findObj(id);if(!_5.BubbleTimeout){return false;}var _6=$("#"+_5.domId);if(_3!==true){_6.stop(true,true).fadeOut(300).unbind("mouseenter").unbind("mouseleave");}else{_6.unbind("mouseenter").unbind("mouseleave");}if(_5.BubbleObj){_5.BubbleObj.unbind("mouseenter").unbind("mouseleave");_5.BubbleObj=null;}clearTimeout(_5.BubbleTimeout);_5.loaded.bodyHandler=false;},createPopup:function(_7,_8,_9){var _a=null;var _b=null;if(_9){_a=[_9.left,_9.top];_b=[_9.width,_9.height];}else{_a=_7.offset();_a=[_a.left,_a.top];_b=[_7.width(),_7.height()];}var _c=[0,0];var _d=[0+"px",0+"px","auto","auto"];var _e=[0+"px",0+"px","auto","auto"];var _f="L";_8.width=(_8.cssWidth-2*(_8.border+_8.margin+_8.padding));var _10=$("#"+_8.domId);if(_10.length==0){var _11=_8.nowrap?"":"w_wrp";var _12=_8.title===""?"display:none;":"";var _13="<div id=\""+_8.domId+"\" class=\"tgl_me_tip\"><div class=\"tgl_x\" onclick=\"$('#"+_8.domId+"').hide().stop(true, true);\"><img src=\"/portal/images/newUI/close.png\"/></div>";_13+="<div class=\"tgl_arr\"><img class=\"bubbleArrow\" height=\"27\" width=\"27\" src=\"/portal/images/newUI/arrowL.png\"/></div>";_13+="<div class=\"tgl_arrM\"><img class=\"bubbleArrowM\" height=\"19\" width=\"19\" src=\"/portal/images/newUI/arrowLm.png\"/></div>";_13+="<div class=\"tgl_ctn\">";_13+="<div class=\"title text-overflow\" style=\""+_12+"\">"+_8.title+"</div>";_13+="<div class=\"content "+_11+"\">"+_8.text+"</div></div></div>";$("body").append(_13);_10=$("#"+_8.domId);if(_8.clickToDismiss){_10.click(function(){var _14=$.Bubble.findObj($(this).attr("id"));clearTimeout(_14.BubbleTimeout);_14.show=false;$(this).hide().stop(true,true);});}if(_8.hoverToDismiss){_10.mouseenter(function(){var _15=$.Bubble.findObj($(this).attr("id"));$(this).hide().stop(true,true);_15.show=false;});}}else{if(_8.text){_10.find("div.content").html(_8.text);}if(_8.title){_10.find("div.title:first").html(_8.title).show();}else{_10.find("div.title:first").hide();}}_10.find("div.tgl_ctn").css({padding:_8.padding+"px",width:_8.width+"px"});if(!_8.xBtn){_10.find("div.tgl_x").hide();}else{_10.find("div.tgl_x").show();}_10.stop(true,true).show();_8.height=_10.find("div.tgl_ctn").height();var _16=$.Bubble.getViewportSize();for(var i=0;i<3;i++){var _18=false;var _19=_8.defStartPos+i%3;switch(_19){case 0:if(_16[0]-(_a[0]+_b[0])>=(_8.cssWidth+2*(_8.border+_8.margin+_8.padding))){_c[0]=_a[0]+_b[0];_c[1]=Math.max(_a[1]-_8.height,0);_d=[(_a[1]-_c[1]-_8.offset)+"px","auto","auto","0px"];_e=[(_a[1]-_c[1]+4-_8.offset)+"px","auto","auto","9px"];_f="L";_18=true;break;}case 1:if(_a[0]>=_8.cssWidth){_c[0]=_a[0]-_8.cssWidth;_c[1]=Math.max(_a[1]-_8.height,0);_d=[(_a[1]-_c[1]-_8.offset)+"px","0px","auto","auto"];_e=[(_a[1]-_c[1]+4-_8.offset)+"px","9px","auto","auto"];_f="R";_18=true;break;}case 2:default:_c[1]=_a[1]+_b[1];_c[0]=Math.min(_a[0]+_b[0]/2-_8.offset,_16[0]-_8.cssWidth-(_8.border+_8.margin+_8.padding));if(_8.center){_c[0]=Math.min(_a[0]+_b[0]/2-_8.offset-_8.cssWidth/2-(_8.border+_8.margin+_8.padding)/2,_16[0]-_8.cssWidth-(_8.border+_8.margin+_8.padding));}_c[0]=Math.max(0,_c[0]);_d=["0px","auto","auto",(_a[0]+_b[0]/2-_c[0]+_8.offset)+"px"];_e=[_8.title?"34px":"9px","auto","auto",(_a[0]+_b[0]/2-_c[0]+_8.offset+4)+"px"];_f="Up";_18=true;break;}if(_18){break;}}_10.css({"left":_c[0]+"px","top":_c[1]+"px","height":_8.height+2*(_8.border)+"px"});_10.find("div.tgl_arr").css({"top":_d[0],"right":_d[1],"bottom":_d[2],"left":_d[3]});_10.find("div.tgl_arrM").css({"top":_e[0],"right":_e[1],"bottom":_e[2],"left":_e[3]});var _1a="/portal/images/newUI/arrow"+_f+".png";var _1b=_10.find(".bubbleArrow");if(_1b.attr("src")!==_1a){_1b.attr("src","/portal/images/newUI/arrow"+_f+".png");_10.find(".bubbleArrowM").attr("src","/portal/images/newUI/arrow"+_f+"m.png");if(_f==="R"){_10.find("div.tgl_ctn").addClass("right");}else{_10.find("div.tgl_ctn").removeClass("right");}}if(!_8.show){_10.hide().stop(true,true);}if(_8.clickOutsideDismiss){if(_8.loaded.bodyHandler){$.Bubble.clearBodyHandler(_8.show,_8.domId);}_8.loaded.bodyHandler=true;_10.unbind("mouseenter").bind("mouseenter",function(){var _1c=$.Bubble.findObj($(this).attr("id"));clearTimeout(_1c.BubbleTimeout);}).unbind("mouseleave").bind("mouseleave",function(){var _1d=$.Bubble.findObj($(this).attr("id"));var id=_1d.domId;_1d.BubbleTimeout=setTimeout(function(){$.Bubble.clearBodyHandler(false,id);},300);});_8.BubbleObj=_7;_7.unbind("mouseenter").bind("mouseenter",function(){var _1f=$.Bubble.findObj($(this).attr("data-bubbleid"));clearTimeout(_1f.BubbleTimeout);}).unbind("mouseleave").bind("mouseleave",function(){var _20=$.Bubble.findObj($(this).attr("data-bubbleid"));var id=_20.domId;_20.BubbleTimeout=setTimeout(function(){$.Bubble.clearBodyHandler(false,id);},150);});}else{if(_8.loaded.bodyHandler){$.Bubble.clearBodyHandler(_8.show,_8.domId);}}if(_8.focusBlur){var _22=$("#tgl_inp");var _23=_8.domId;if(!_22||_22.length===0){var _24="<input id=\"tgl_inp\" MAXLENGTH=\"1\" type=\"text\" data-bubbleid=\""+_23+"\" style=\"text-indent:-2px;position:absolute;left:-10px;top:"+_c[1]+"px;width:1px;height:1px;border:none;background:none;color:transparent;\"/>";$("body").append(_24);$("#tgl_inp").focus().blur(function(){var id=$(this).attr("data-bubbleid");var _26=$.Bubble.findObj(id);_26.show=false;$("#"+id).hide().stop(true,true);});}else{_22.css({"top":_c[1]+"px"}).attr("data-bubbleid",_23).focus();}}},findObj:function(id){for(var i=0;i<$.Bubble.objects.length;i++){if($.Bubble.objects[i].domId===id){return $.Bubble.objects[i];}}},addObj:function(opt){for(var i=0;i<$.Bubble.objects.length;i++){if($.Bubble.objects[i].domId===opt.domId){$.extend($.Bubble.objects[i],opt);return $.Bubble.objects[i];}}$.Bubble.objects.push(opt);return opt;}};$.fn.Bubble=function(_2b,_2c){var _2d={text:null,title:"",padding:5,defStartPos:0,center:false,margin:10,border:1,offset:8,cssWidth:200,clickToDismiss:true,hoverToDismiss:false,BubbleTimeout:null,focusBlur:false,clickOutsideDismiss:false,show:true,xBtn:false,loaded:{bodyHandler:false}};return this.each(function(){if(!_2b){_2b={};}var id=_2b.domId;var _2f=$.Bubble.objects.length;if(!id){return false;}_2b.domId=id;_2b.elem=_2f;var _30=$.Bubble.findObj(id);var opt={};if(!_30){opt=$.extend(_2d,_2b);}else{opt=$.extend(_30,_2b);}var _32=$.Bubble.addObj(opt);$(this).attr("data-bubbleid",id);$.Bubble.createPopup($(this),_32,_2c);});};})(jQuery);(function($){$.fn.BubbleOld=function(_2){var _3={text:"",show:true,removeOnClick:true,padding:6,pointer:true,domId:"bubble_default",customCss:{},cssWidth:200,cssPosition:"absolute",clickDismiss:false,containerId:null,direction:{postion:"1",pointing:"down"}};$.extend(_3,_2);var _4=$.browser.msie&&($.browser.version=="6.0");var _5;var _6;var _7;var _5=function(_8){$("#"+_3.domId).show();};var _6=function(_9){$("#"+_3.domId).hide();};var _7=function(_a){_a.find("fg-tooltip-pointer-"+_3.direction.pointing+"-inner").each(function(){var _b=$(this).parents(".fg-tooltip").css("backgroundColor");switch(_3.direction.pointing){case "down":default:var _c=$(".fg-tooltip-pointer-down-inner").css("borderTopWidth");$(this).css("border-top",_c+" solid "+_b);break;case "up":var _c=$(".fg-tooltip-pointer-up-inner").css("borderBottomWidth");$(this).css("border-bottom",_c+" solid "+_b);break;case "left":var _c=$(".fg-tooltip-pointer-left-inner").css("borderRightWidth");$(this).css("border-right",_c+" solid "+_b);break;case "right":var _c=$(".fg-tooltip-pointer-right-inner").css("borderLeftWidth");$(this).css("border-left",_c+" solid "+_b);break;}});};return this.each(function(){var _d=$("#"+_3.domId);var _e=false;if(_d.length==0){var _f=(_3.color==null?"":"style=\"background-color:"+_3.color.back+";border-color:"+_3.color.brd+"\"");var _10=(_3.color==null?"":"style=\"border-right-color:"+_3.color.brd+"\"");var _11=(_3.color==null?"":"style=\"border-right-color:"+_3.color.back+"\"");var _d=$("<div class=\"fg-tooltip "+(_3.pointer?"fg-tooltip-"+_3.direction.pointing:"")+"\"><div "+_f+" class=\"fg-tooltip-container ui-widget ui-state-highlight ui-corner-"+_3.direction.position+"-"+_3.direction.pointing+"\"><div class=\"text\" style=\"padding:"+_3.padding+"px;\">"+_3.text+"</div></div></div>");_d.attr("id",_3.domId).hide();if(_3.pointer){var _12=_3.direction.pointing;var _13=_3.direction.position;_d.find("div.text").before("<div "+_10+" class=\"fg-tooltip-pointer-"+_12+" ui-state-highlight\"><div "+_11+" class=\"fg-tooltip-pointer-"+_12+"-inner\">&nbsp;</div></div>");_7(_d);_d.find("div.fg-tooltip-container").addClass("fg-tooltip-"+_13);}if(_3.removeOnClick){_d.click(function(){$(this).remove();return false;});}else{if(_3.hideOnClick){_d.append("<img width=\"16\" height=\"16\" class=\"jqmBTN\" src=\"/portal/images/popups/close.png\"/>").find("img.jqmBTN").click(function(){$("#"+_3.domId).hide();return false;});}}}else{if(_3.text){_d.find("div.text").html(_3.text);}else{_e=true;}}if(_3.cssWidth){_d.css("width",_3.cssWidth+"px");}if(_3.containerId){$("#"+_3.containerId).append(_d);}else{if(!_e){if(_3.cssPosition!="fixed"||_4){$("body").append(_d);}else{$(this).before(_d);}}}if(!_4||_3.cssPosition!="fixed"){var _13=$(this).offset();_13.left+=34;_13.top+=34;switch(_3.direction.pointing){case "up":_13.top=_13.top+$(this).height()-34;break;case "down":default:_13.top=_13.top-68-_d.height();break;case "left":_13.left=_13.left+$(this).width()-34;break;case "right":_13.left=_13.left-_3.cssWidth-70;break;}switch(_3.direction.position){case "3":switch(_3.direction.pointing){case "up":case "down":default:_13.left=_13.left-_3.cssWidth-34;break;case "left":case "right":_13.top=_13.top-_d.height()-20;break;}break;case "1":default:switch(_3.direction.pointing){case "up":case "down":default:_13.left=_13.left-34+$(this).width();break;case "left":case "right":_13.top=_13.top-_d.height()+20;break;}break;case "2":switch(_3.direction.pointing){case "up":case "down":default:_13.left=_13.left;break;case "left":case "right":_13.top=_13.top;break;}break;}_d.css({"top":_13.top+"px","left":_13.left+"px"});_d.css({"position":_3.cssPosition});}if(_3.show){_d.css(_3.customCss).show();}});};})(jQuery);var Rcon=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145];var S=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22];var T1=[2774754246,2222750968,2574743534,2373680118,234025727,3177933782,2976870366,1422247313,1345335392,50397442,2842126286,2099981142,436141799,1658312629,3870010189,2591454956,1170918031,2642575903,1086966153,2273148410,368769775,3948501426,3376891790,200339707,3970805057,1742001331,4255294047,3937382213,3214711843,4154762323,2524082916,1539358875,3266819957,486407649,2928907069,1780885068,1513502316,1094664062,49805301,1338821763,1546925160,4104496465,887481809,150073849,2473685474,1943591083,1395732834,1058346282,201589768,1388824469,1696801606,1589887901,672667696,2711000631,251987210,3046808111,151455502,907153956,2608889883,1038279391,652995533,1764173646,3451040383,2675275242,453576978,2659418909,1949051992,773462580,756751158,2993581788,3998898868,4221608027,4132590244,1295727478,1641469623,3467883389,2066295122,1055122397,1898917726,2542044179,4115878822,1758581177,0,753790401,1612718144,536673507,3367088505,3982187446,3194645204,1187761037,3653156455,1262041458,3729410708,3561770136,3898103984,1255133061,1808847035,720367557,3853167183,385612781,3309519750,3612167578,1429418854,2491778321,3477423498,284817897,100794884,2172616702,4031795360,1144798328,3131023141,3819481163,4082192802,4272137053,3225436288,2324664069,2912064063,3164445985,1211644016,83228145,3753688163,3249976951,1977277103,1663115586,806359072,452984805,250868733,1842533055,1288555905,336333848,890442534,804056259,3781124030,2727843637,3427026056,957814574,1472513171,4071073621,2189328124,1195195770,2892260552,3881655738,723065138,2507371494,2690670784,2558624025,3511635870,2145180835,1713513028,2116692564,2878378043,2206763019,3393603212,703524551,3552098411,1007948840,2044649127,3797835452,487262998,1994120109,1004593371,1446130276,1312438900,503974420,3679013266,168166924,1814307912,3831258296,1573044895,1859376061,4021070915,2791465668,2828112185,2761266481,937747667,2339994098,854058965,1137232011,1496790894,3077402074,2358086913,1691735473,3528347292,3769215305,3027004632,4199962284,133494003,636152527,2942657994,2390391540,3920539207,403179536,3585784431,2289596656,1864705354,1915629148,605822008,4054230615,3350508659,1371981463,602466507,2094914977,2624877800,555687742,3712699286,3703422305,2257292045,2240449039,2423288032,1111375484,3300242801,2858837708,3628615824,84083462,32962295,302911004,2741068226,1597322602,4183250862,3501832553,2441512471,1489093017,656219450,3114180135,954327513,335083755,3013122091,856756514,3144247762,1893325225,2307821063,2811532339,3063651117,572399164,2458355477,552200649,1238290055,4283782570,2015897680,2061492133,2408352771,4171342169,2156497161,386731290,3669999461,837215959,3326231172,3093850320,3275833730,2962856233,1999449434,286199582,3417354363,4233385128,3602627437,974525996];var T2=[1667483301,2088564868,2004348569,2071721613,4076011277,1802229437,1869602481,3318059348,808476752,16843267,1734856361,724260477,4278118169,3621238114,2880130534,1987505306,3402272581,2189565853,3385428288,2105408135,4210749205,1499050731,1195871945,4042324747,2913812972,3570709351,2728550397,2947499498,2627478463,2762232823,1920132246,3233848155,3082253762,4261273884,2475900334,640044138,909536346,1061125697,4160222466,3435955023,875849820,2779075060,3857043764,4059166984,1903288979,3638078323,825320019,353708607,67373068,3351745874,589514341,3284376926,404238376,2526427041,84216335,2593796021,117902857,303178806,2155879323,3806519101,3958099238,656887401,2998042573,1970662047,151589403,2206408094,741103732,437924910,454768173,1852759218,1515893998,2694863867,1381147894,993752653,3604395873,3014884814,690573947,3823361342,791633521,2223248279,1397991157,3520182632,0,3991781676,538984544,4244431647,2981198280,1532737261,1785386174,3419114822,3200149465,960066123,1246401758,1280088276,1482207464,3486483786,3503340395,4025468202,2863288293,4227591446,1128498885,1296931543,859006549,2240090516,1162185423,4193904912,33686534,2139094657,1347461360,1010595908,2678007226,2829601763,1364304627,2745392638,1077969088,2408514954,2459058093,2644320700,943222856,4126535940,3166462943,3065411521,3671764853,555827811,269492272,4294960410,4092853518,3537026925,3452797260,202119188,320022069,3974939439,1600110305,2543269282,1145342156,387395129,3301217111,2812761586,2122251394,1027439175,1684326572,1566423783,421081643,1936975509,1616953504,2172721560,1330618065,3705447295,572671078,707417214,2425371563,2290617219,1179028682,4008625961,3099093971,336865340,3739133817,1583267042,185275933,3688607094,3772832571,842163286,976909390,168432670,1229558491,101059594,606357612,1549580516,3267534685,3553869166,2896970735,1650640038,2442213800,2509582756,3840201527,2038035083,3890730290,3368586051,926379609,1835915959,2374828428,3587551588,1313774802,2846444000,1819072692,1448520954,4109693703,3941256997,1701169839,2054878350,2930657257,134746136,3132780501,2021191816,623200879,774790258,471611428,2795919345,3031724999,3334903633,3907570467,3722289532,1953818780,522141217,1263245021,3183305180,2341145990,2324303749,1886445712,1044282434,3048567236,1718013098,1212715224,50529797,4143380225,235805714,1633796771,892693087,1465364217,3115936208,2256934801,3250690392,488454695,2661164985,3789674808,4177062675,2560109491,286335539,1768542907,3654920560,2391672713,2492740519,2610638262,505297954,2273777042,3924412704,3469641545,1431677695,673730680,3755976058,2357986191,2711706104,2307459456,218962455,3216991706,3873888049,1111655622,1751699640,1094812355,2576951728,757946999,252648977,2964356043,1414834428,3149622742,370551866];var T3=[1673962851,2096661628,2012125559,2079755643,4076801522,1809235307,1876865391,3314635973,811618352,16909057,1741597031,727088427,4276558334,3618988759,2874009259,1995217526,3398387146,2183110018,3381215433,2113570685,4209972730,1504897881,1200539975,4042984432,2906778797,3568527316,2724199842,2940594863,2619588508,2756966308,1927583346,3231407040,3077948087,4259388669,2470293139,642542118,913070646,1065238847,4160029431,3431157708,879254580,2773611685,3855693029,4059629809,1910674289,3635114968,828527409,355090197,67636228,3348452039,591815971,3281870531,405809176,2520228246,84545285,2586817946,118360327,304363026,2149292928,3806281186,3956090603,659450151,2994720178,1978310517,152181513,2199756419,743994412,439627290,456535323,1859957358,1521806938,2690382752,1386542674,997608763,3602342358,3011366579,693271337,3822927587,794718511,2215876484,1403450707,3518589137,0,3988860141,541089824,4242743292,2977548465,1538714971,1792327274,3415033547,3194476990,963791673,1251270218,1285084236,1487988824,3481619151,3501943760,4022676207,2857362858,4226619131,1132905795,1301993293,862344499,2232521861,1166724933,4192801017,33818114,2147385727,1352724560,1014514748,2670049951,2823545768,1369633617,2740846243,1082179648,2399505039,2453646738,2636233885,946882616,4126213365,3160661948,3061301686,3668932058,557998881,270544912,4293204735,4093447923,3535760850,3447803085,202904588,321271059,3972214764,1606345055,2536874647,1149815876,388905239,3297990596,2807427751,2130477694,1031423805,1690872932,1572530013,422718233,1944491379,1623236704,2165938305,1335808335,3701702620,574907938,710180394,2419829648,2282455944,1183631942,4006029806,3094074296,338181140,3735517662,1589437022,185998603,3685578459,3772464096,845436466,980700730,169090570,1234361161,101452294,608726052,1555620956,3265224130,3552407251,2890133420,1657054818,2436475025,2503058581,3839047652,2045938553,3889509095,3364570056,929978679,1843050349,2365688973,3585172693,1318900302,2840191145,1826141292,1454176854,4109567988,3939444202,1707781989,2062847610,2923948462,135272456,3127891386,2029029496,625635109,777810478,473441308,2790781350,3027486644,3331805638,3905627112,3718347997,1961401460,524165407,1268178251,3177307325,2332919435,2316273034,1893765232,1048330814,3044132021,1724688998,1217452104,50726147,4143383030,236720654,1640145761,896163637,1471084887,3110719673,2249691526,3248052417,490350365,2653403550,3789109473,4176155640,2553000856,287453969,1775418217,3651760345,2382858638,2486413204,2603464347,507257374,2266337927,3922272489,3464972750,1437269845,676362280,3752164063,2349043596,2707028129,2299101321,219813645,3211123391,3872862694,1115997762,1758509160,1099088705,2569646233,760903469,253628687,2960903088,1420360788,3144537787,371997206];var T4=[3332727651,4169432188,4003034999,4136467323,4279104242,3602738027,3736170351,2438251973,1615867952,33751297,3467208551,1451043627,3877240574,3043153879,1306962859,3969545846,2403715786,530416258,2302724553,4203183485,4011195130,3001768281,2395555655,4211863792,1106029997,3009926356,1610457762,1173008303,599760028,1408738468,3835064946,2606481600,1975695287,3776773629,1034851219,1282024998,1817851446,2118205247,4110612471,2203045068,1750873140,1374987685,3509904869,4178113009,3801313649,2876496088,1649619249,708777237,135005188,2505230279,1181033251,2640233411,807933976,933336726,168756485,800430746,235472647,607523346,463175808,3745374946,3441880043,1315514151,2144187058,3936318837,303761673,496927619,1484008492,875436570,908925723,3702681198,3035519578,1543217312,2767606354,1984772923,3076642518,2110698419,1383803177,3711886307,1584475951,328696964,2801095507,3110654417,0,3240947181,1080041504,3810524412,2043195825,3069008731,3569248874,2370227147,1742323390,1917532473,2497595978,2564049996,2968016984,2236272591,3144405200,3307925487,1340451498,3977706491,2261074755,2597801293,1716859699,294946181,2328839493,3910203897,67502594,4269899647,2700103760,2017737788,632987551,1273211048,2733855057,1576969123,2160083008,92966799,1068339858,566009245,1883781176,4043634165,1675607228,2009183926,2943736538,1113792801,540020752,3843751935,4245615603,3211645650,2169294285,403966988,641012499,3274697964,3202441055,899848087,2295088196,775493399,2472002756,1441965991,4236410494,2051489085,3366741092,3135724893,841685273,3868554099,3231735904,429425025,2664517455,2743065820,1147544098,1417554474,1001099408,193169544,2362066502,3341414126,1809037496,675025940,2809781982,3168951902,371002123,2910247899,3678134496,1683370546,1951283770,337512970,2463844681,201983494,1215046692,3101973596,2673722050,3178157011,1139780780,3299238498,967348625,832869781,3543655652,4069226873,3576883175,2336475336,1851340599,3669454189,25988493,2976175573,2631028302,1239460265,3635702892,2902087254,4077384948,3475368682,3400492389,4102978170,1206496942,270010376,1876277946,4035475576,1248797989,1550986798,941890588,1475454630,1942467764,2538718918,3408128232,2709315037,3902567540,1042358047,2531085131,1641856445,226921355,260409994,3767562352,2084716094,1908716981,3433719398,2430093384,100991747,4144101110,470945294,3265487201,1784624437,2935576407,1775286713,395413126,2572730817,975641885,666476190,3644383713,3943954680,733190296,573772049,3535497577,2842745305,126455438,866620564,766942107,1008868894,361924487,3374377449,2269761230,2868860245,1350051880,2776293343,59739276,1509466529,159418761,437718285,1708834751,3610371814,2227585602,3501746280,2193834305,699439513,1517759789,504434447,2076946608,2835108948,1842789307,742004246];function B0(x){return (x&255);}function B1(x){return ((x>>8)&255);}function B2(x){return ((x>>16)&255);}function B3(x){return ((x>>24)&255);}function F1(x0,x1,x2,x3){return B1(T1[x0&255])|(B1(T1[(x1>>8)&255])<<8)|(B1(T1[(x2>>16)&255])<<16)|(B1(T1[x3>>>24])<<24);}function packBytes(_9){var i,j;var _c=_9.length;var b=new Array(_c/4);if(!_9||_c%4){return;}for(i=0,j=0;j<_c;j+=4){b[i++]=_9[j]|(_9[j+1]<<8)|(_9[j+2]<<16)|(_9[j+3]<<24);}return b;}function unpackBytes(_e){var j;var i=0,l=_e.length;var r=new Array(l*4);for(j=0;j<l;j++){r[i++]=B0(_e[j]);r[i++]=B1(_e[j]);r[i++]=B2(_e[j]);r[i++]=B3(_e[j]);}return r;}var maxkc=8;var maxrk=14;function keyExpansion(key){var kc,i,j,r,t;var _19;var _1a=new Array(maxrk+1);var _1b=key.length;var k=new Array(maxkc);var tk=new Array(maxkc);var _1e=0;if(_1b==16){_19=10;kc=4;}else{if(_1b==24){_19=12;kc=6;}else{if(_1b==32){_19=14;kc=8;}else{alert("Invalid key length "+_1b);return;}}}for(i=0;i<maxrk+1;i++){_1a[i]=new Array(4);}for(i=0,j=0;j<_1b;j++,i+=4){k[j]=key.charCodeAt(i)|(key.charCodeAt(i+1)<<8)|(key.charCodeAt(i+2)<<16)|(key.charCodeAt(i+3)<<24);}for(j=kc-1;j>=0;j--){tk[j]=k[j];}r=0;t=0;for(j=0;(j<kc)&&(r<_19+1);){for(;(j<kc)&&(t<4);j++,t++){_1a[r][t]=tk[j];}if(t==4){r++;t=0;}}while(r<_19+1){var _1f=tk[kc-1];tk[0]^=S[B1(_1f)]|(S[B2(_1f)]<<8)|(S[B3(_1f)]<<16)|(S[B0(_1f)]<<24);tk[0]^=Rcon[_1e++];if(kc!=8){for(j=1;j<kc;j++){tk[j]^=tk[j-1];}}else{for(j=1;j<kc/2;j++){tk[j]^=tk[j-1];}_1f=tk[kc/2-1];tk[kc/2]^=S[B0(_1f)]|(S[B1(_1f)]<<8)|(S[B2(_1f)]<<16)|(S[B3(_1f)]<<24);for(j=kc/2+1;j<kc;j++){tk[j]^=tk[j-1];}}for(j=0;(j<kc)&&(r<_19+1);){for(;(j<kc)&&(t<4);j++,t++){_1a[r][t]=tk[j];}if(t==4){r++;t=0;}}}this.rounds=_19;this.rk=_1a;return this;}function AESencrypt(_20,ctx){var r;var t0,t1,t2,t3;var b=packBytes(_20);var _28=ctx.rounds;var b0=b[0];var b1=b[1];var b2=b[2];var b3=b[3];for(r=0;r<_28-1;r++){t0=b0^ctx.rk[r][0];t1=b1^ctx.rk[r][1];t2=b2^ctx.rk[r][2];t3=b3^ctx.rk[r][3];b0=T1[t0&255]^T2[(t1>>8)&255]^T3[(t2>>16)&255]^T4[t3>>>24];b1=T1[t1&255]^T2[(t2>>8)&255]^T3[(t3>>16)&255]^T4[t0>>>24];b2=T1[t2&255]^T2[(t3>>8)&255]^T3[(t0>>16)&255]^T4[t1>>>24];b3=T1[t3&255]^T2[(t0>>8)&255]^T3[(t1>>16)&255]^T4[t2>>>24];}r=_28-1;t0=b0^ctx.rk[r][0];t1=b1^ctx.rk[r][1];t2=b2^ctx.rk[r][2];t3=b3^ctx.rk[r][3];b[0]=F1(t0,t1,t2,t3)^ctx.rk[_28][0];b[1]=F1(t1,t2,t3,t0)^ctx.rk[_28][1];b[2]=F1(t2,t3,t0,t1)^ctx.rk[_28][2];b[3]=F1(t3,t0,t1,t2)^ctx.rk[_28][3];return unpackBytes(b);}var hexcase=0;var b64pad="=";var chrsz=8;function hex_sha1(s){return binb2hex(core_sha1(str2binb(s),s.length*chrsz));}function b64_sha1(s){return binb2b64(core_sha1(str2binb(s),s.length*chrsz));}function str_sha1(s){return binb2str(core_sha1(str2binb(s),s.length*chrsz));}function hex_hmac_sha1(_4,_5){return binb2hex(core_hmac_sha1(_4,_5));}function b64_hmac_sha1(_6,_7){return binb2b64(core_hmac_sha1(_6,_7));}function str_hmac_sha1(_8,_9){return binb2str(core_hmac_sha1(_8,_9));}function b64_sha1_utf8(s){s=Utf8Encode(s);return binb2b64(core_sha1(str2binb(s),s.length*chrsz));}function sha1_vm_test(){return hex_sha1("abc")=="a9993e364706816aba3e25717850c26c9cd0d89d";}function core_sha1(x,_c){x[_c>>5]|=128<<(24-_c%32);x[((_c+64>>9)<<4)+15]=_c;var w=Array(80);var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var e=-1009589776;for(var i=0;i<x.length;i+=16){var _14=a;var _15=b;var _16=c;var _17=d;var _18=e;for(var j=0;j<80;j++){if(j<16){w[j]=x[i+j];}else{w[j]=rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);}var t=safe_add(safe_add(rol(a,5),sha1_ft(j,b,c,d)),safe_add(safe_add(e,w[j]),sha1_kt(j)));e=d;d=c;c=rol(b,30);b=a;a=t;}a=safe_add(a,_14);b=safe_add(b,_15);c=safe_add(c,_16);d=safe_add(d,_17);e=safe_add(e,_18);}return Array(a,b,c,d,e);}function sha1_ft(t,b,c,d){if(t<20){return (b&c)|((~b)&d);}if(t<40){return b^c^d;}if(t<60){return (b&c)|(b&d)|(c&d);}return b^c^d;}function sha1_kt(t){return (t<20)?1518500249:(t<40)?1859775393:(t<60)?-1894007588:-899497514;}function core_hmac_sha1(key,_21){var _22=str2binb(key);if(_22.length>16){_22=core_sha1(_22,key.length*chrsz);}var _23=Array(16),_24=Array(16);for(var i=0;i<16;i++){_23[i]=_22[i]^909522486;_24[i]=_22[i]^1549556828;}var _26=core_sha1(_23.concat(str2binb(_21)),512+_21.length*chrsz);return core_sha1(_24.concat(_26),512+160);}function safe_add(x,y){var lsw=(x&65535)+(y&65535);var msw=(x>>16)+(y>>16)+(lsw>>16);return (msw<<16)|(lsw&65535);}function rol(num,cnt){return (num<<cnt)|(num>>>(32-cnt));}function str2binb(str){var bin=Array();var _2f=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&_2f)<<(32-chrsz-i%32);}return bin;}function binb2str(bin){var str="";var _33=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(32-chrsz-i%32))&_33);}return str;}function binb2hex(_35){var _36=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<_35.length*4;i++){str+=_36.charAt((_35[i>>2]>>((3-i%4)*8+4))&15)+_36.charAt((_35[i>>2]>>((3-i%4)*8))&15);}return str;}function binb2b64(_39){var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var str="";for(var i=0;i<_39.length*4;i+=3){var _3d=(((_39[i>>2]>>8*(3-i%4))&255)<<16)|(((_39[i+1>>2]>>8*(3-(i+1)%4))&255)<<8)|((_39[i+2>>2]>>8*(3-(i+2)%4))&255);for(var j=0;j<4;j++){if(i*8+j*6>_39.length*32){str+=b64pad;}else{str+=tab.charAt((_3d>>6*(3-j))&63);}}}return str;}function Utf8Encode(_3f){_3f=_3f.replace(/\r\n/g,"\n");var _40="";for(var n=0;n<_3f.length;n++){var c=_3f.charCodeAt(n);if(c<128){_40+=String.fromCharCode(c);}else{if((c>127)&&(c<2048)){_40+=String.fromCharCode((c>>6)|192);_40+=String.fromCharCode((c&63)|128);}else{_40+=String.fromCharCode((c>>12)|224);_40+=String.fromCharCode(((c>>6)&63)|128);_40+=String.fromCharCode((c&63)|128);}}}return _40;}(function($){jQuery.defaultBuilder={mwmDefaultData:{imageMed:"<img src=\"/portal/images/tungle-me/ico$TYPE$Med.png\"/>",imageMin:"<img src=\"/portal/images/tungle-me/ico$TYPE$Min.png\" width=\"16\" height=\"16\"/>",image:"<img src=\"/portal/images/tungle-me/ico$TYPE$.png\" width=\"32\" height=\"32\"/>"},buildSocialIcons:function(_2){var _3=_2||"";return [{type:"twitter",val:_3},{type:"linkedin",val:_3},{type:"facebk",val:_3},{type:"xing",val:_3},{type:"plancast",val:_3},{type:"gist",val:_3}];},buildPathObj:function(){var _4={twitter:"http://twitter.com/$LINK$",gist:"$LINK$",linkedin:"$LINK$",facebk:"$LINK$",xing:"$LINK$",blog:"$LINK$",plancast:"$LINK$"};return _4;},buildDefaultPreferences:function(){return [{type:"cell",val:""},{type:"email",val:""},{type:"web",val:""}];},buildEmptyPreferences:function(){return [{type:"",val:""},{type:"",val:""},{type:"",val:""}];},buildSamplePreferences:function(){return [{type:"work",val:"Your work phone"},{type:"email",val:"Your email"},{type:"web",val:"Your website"}];},buildEmptyTitle:function(){return ["","","",""];},buildPublicColor:function(){return {B:{inner:"#cded88",header:"#cded88",border:"#5a7916",text:"#000000"},T:{inner:"#cded88",header:"url(/portal/images/bg_tentative.gif) #cded88",border:"#5a7916",text:"#000000"},F:{inner:"#cded88",header:"#cded88",border:"#5a7916",text:"#000000"}};},buildEmptyData:function(_5){return {img:_5?jQuery.tungleGlobals.DEFAULT_AVATAR_IMAGE:"",title:jQuery.defaultBuilder.buildEmptyTitle(),pref:jQuery.defaultBuilder.buildEmptyPreferences(),ico:jQuery.defaultBuilder.buildSocialIcons(),note:""};},buildSampleData:function(){return {img:jQuery.tungleGlobals.DEFAULT_AVATAR_IMAGE,title:["First name","Last name","Your position","Your company"],pref:jQuery.defaultBuilder.buildSamplePreferences(),ico:jQuery.defaultBuilder.buildSocialIcons("sample"),note:"Your personal message"};},typeDisplayMap:{email:"Email",web:"Website",blog:"Blog",work:"Work phone",cell:"Mobile phone",home:"Home phone",fax:"Fax"},typeDefaultMap:{cell:"your mobile number",email:"your@email.com",web:"http://yourwebsite.com",blog:"http://yourblog.com",work:"your work number",home:"your home number",fax:"your fax number",note:"Write a welcome message to all users visiting your Public Profile",_2:"your position",_3:"your company"}};})(jQuery);(function($){$.ContextualInit=false;$.PopUpVideoInit=false;$.fn.parentHasClass=function(_2,_3){var _4=_3?_3:5;var _5=$(this);while(!_5.hasClass(_2)){_5=_5.parent();_4--;if(_4<0){break;}}return _5;};jQuery.BubbleError={visible:false,show:function(_6,_7){_6.Bubble({text:_7,cssWidth:200,domId:"errorBubble",clickToDismiss:true,xBtn:false,clickOutsideDismiss:false,focusBlur:true,show:true});jQuery.BubbleError.visible=true;},hide:function(){if(jQuery.BubbleError.visible){jQuery.BubbleError.visible=false;$("#errorBubble").hide();}}};jQuery.PopUpVideo=function(_8){var _9={container:"#movie-clip",videoClips:{"iphone":"<object width=\"425\" height=\"344\"><param name=\"movie\" value=\"YTPlayer.swf?vidId=5VOQ9O4Rycc&hl=en&fs=1&\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"YTPlayer.swf?vidId=5VOQ9O4Rycc&hl=en&fs=1&\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>","live":"<object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/v/Sm0UHyMYjCg&hl=en_US&fs=1&\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/Sm0UHyMYjCg&hl=en_US&fs=1&\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>","tripit":"<object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/v/p26KBiedYaY&hl=en_US&fs=1&\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/p26KBiedYaY&hl=en_US&fs=1&\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>","plancast":"<object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/v/9LhehLufuAM&hl=en_US&fs=1&\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/9LhehLufuAM&hl=en_US&fs=1&\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>"}};var _a=$(_9.container);if(!$.PopUpVideoInit){$.PopUpVideoInit=true;_a.jqm({fixedHeight:false,overlay:30,modal:false,height:405,width:465,zIndex:4000});}_a.find(".title").text(_8.title);_a.find(".clip").html(_9.videoClips[_8.video]);_a.jqmShow();};$.fn.Contextual=function(_b){var _c={container:"#con-help",iconWidth:16};return this.each(function(_d){$.extend(_c,_d);if(!$.ContextualInit){$.ContextualInit=true;$(_c.container).jqm({fixedHeight:false,overlay:1,modal:false,zIndex:5000,height:100,width:200,alternate:"jqmTemplateAlt"});}$(this).click(function(){var _e=jQuery.helpText[this.id];var _f=$(this).offset();var ie6=$.browser.msie&&($.browser.version=="6.0");if(!ie6){_f.left-=$(document).scrollLeft();_f.top-=$(document).scrollTop();}var _11=$(window).height();var _12=$(window).width();$(_c.container).jqmResize(_e.width,null).html(_e.text);if(_f.left+_e.width>_12){_f.left-=_e.width;}else{_f.left+=_c.iconWidth;}if(_f.top+_e.height>_11){_f.top=_11-_e.height;}$(_c.container).jqmRepos(_f.top,_f.left).jqmShow();return false;});});};$.fn.DefaultText=function(_13){var _14={};return this.each(function(){_14=$.extend(_14,_13);$(this).focus(function(){var t=$(this);if(t.attr("vT").hC("password")){t.hide().next().show();var _16=t.next();setTimeout(function(){_16.focus();_16=null;},10);}else{if(t.val()==t.attr("vT")){t.val("");}t.removeClass("blur");}if(_14.callbackFocus){_14.callbackFocus();}}).blur(function(){if(_14.ignore){return false;}var t=$(this);var tmp=t.val();if(t.val().isEmpty()){t.val(t.attr("vT"));t.addClass("blur");}if(_14.callback){_14.callback(tmp,t.attr("dt"));}}).bind("value",function(e,val){var t=$(this);if(val!==undefined&&val!==null){if(val.isEmpty()){t.val(t.attr("vT"));_14.ignore=true;t.addClass("blur").blur();_14.ignore=false;}else{t.val(val);t.removeClass("blur");}}else{if(t.val()==t.attr("vT")){return "";}var tmp=t.val().trim();return tmp;}return false;}).addClass("blur").val($(this).attr("vT"));});};$.fn.InfoText=function(_1d){return this.each(function(){_1d.id=_1d.id||"info_text";$("#"+_1d.id).remove();var _1e="<div class=\"wideError wideError"+_1d.type+"\" id=\""+_1d.id+"\">";_1e+="<img src=\"/portal/images/spaces/warning"+_1d.type+".png\" class=\"image\"/>";if(_1d.close!==false){_1e+="<div class=\"close\"><a href=\"javascript:void(0);\" class=\"link\">Close</a></div>";$(this).unbind("clear").bind("clear",function(e,id){if(id){$("#"+id+" a.link").click();}else{$("div.wideError a.link").click();}});}_1e+="<div class=\"text\">"+_1d.text+"</div>";_1e+="</div>";if(_1d.pos=="before"){$(this).eq(0).before(_1e);}else{if(_1d.pos=="inside"){$(this).eq(0).prepend(_1e);}else{$(this).eq(0).after(_1e);}}if(_1d.close!==false){$("#"+_1d.id+" a.link").click(function(){$(this).parent().parent().remove();if(_1d.callback_Close){_1d.callback_Close();}return false;});}});};jQuery.linkedInProfilePopup={linkedINPattern:new RegExp("[[0-9]+,[0-9]+]","i"),linkedINPattern2:new RegExp(",[0-9]+","i"),linkedINSecurity:new RegExp("^http://[a-z0-9]+.linkedin.com","i"),visible:false,myId:"linkedINProfile",defaultCssWidth:337,target:null,postLoad:{},showPopup:function(_21,_22){if(!_21||!_22){return false;}jQuery.linkedInProfilePopup.target=_21;if(!jQuery.linkedInProfilePopup.postLoad.init){jQuery.linkedInProfilePopup.postLoad.init=true;var txt="<iframe frameborder=\"0\" scrolling=\"no\" style=\"height:300px;width:295px;overflow:none;margin:auto;\" src=\"about:blank\"></iframe>";_21.Bubble({show:true,xBtn:true,text:txt,cssWidth:jQuery.linkedInProfilePopup.defaultCssWidth,domId:jQuery.linkedInProfilePopup.myId});}else{_21.Bubble({show:true,xBtn:true,text:null,cssWidth:jQuery.linkedInProfilePopup.defaultCssWidth,domId:jQuery.linkedInProfilePopup.myId});}if(jQuery.linkedInProfilePopup.postLoad.id!=_22){window.addEventListener("message",function(A){var _25=jQuery.linkedInProfilePopup.linkedINSecurity.exec(A.origin);if(_25==null){return;}var tmp=jQuery.linkedInProfilePopup.linkedINPattern.exec(A.data);var _27=null;if(tmp){tmp=jQuery.linkedInProfilePopup.linkedINPattern2.exec(tmp);if(tmp[0]){_27=parseInt(tmp[0].substring(1),10);}}if(_27){$("#"+jQuery.linkedInProfilePopup.myId).find("iframe").css("height",_27+"px");jQuery.linkedInProfilePopup.target.Bubble({show:true,xBtn:true,text:null,cssWidth:jQuery.linkedInProfilePopup.defaultCssWidth,domId:jQuery.linkedInProfilePopup.myId});}},false);jQuery.linkedInProfilePopup.postLoad.id=_22;$("#"+jQuery.linkedInProfilePopup.myId).find("iframe").attr("src",jQuery.linkedInProfilePopup.postLoad.id+"?&widget=1");}},hover:function(_28){if(!_28){if(jQuery.linkedInProfilePopup.visible){jQuery.linkedInProfilePopup.visible=false;$("#"+jQuery.linkedInProfilePopup.myId+"2").hide();}return false;}var _29=_28.parentHasClass("linkedin",1);if(!_29.hasClass("linkedin")){if(jQuery.linkedInProfilePopup.visible){jQuery.linkedInProfilePopup.visible=false;$("#"+jQuery.linkedInProfilePopup.myId+"2").hide();}}else{if(!jQuery.linkedInProfilePopup.visible){_29.Bubble({show:true,xBtn:false,offset:5,text:"Click to view the LinkedIn profile widget",cssWidth:200,domId:jQuery.linkedInProfilePopup.myId+"2"});jQuery.linkedInProfilePopup.visible=true;}}}};jQuery.quickSignIn={data:{initialized:false,domId:"",customMsg:null,loginCall:null,classes:{username:"input.username",pass:"input.password"},dim:{h:195,w:280}},show:function(_2a){$.extend(jQuery.quickSignIn.data,_2a);var _2b=$(jQuery.quickSignIn.data.domId);if(!jQuery.quickSignIn.data.initialized){jQuery.quickSignIn.data.initialized=true;_2b.jqm({overlay:30,height:jQuery.quickSignIn.data.dim.h,width:jQuery.quickSignIn.data.dim.w,modal:true}).find(".force").click(function(){jQuery.quickSignIn.login();return false;}).end().find("input").not(jQuery.quickSignIn.data.classes.pass).DefaultText();_2b.find("input").keydown(function(e){if(e.keyCode==13){jQuery.quickSignIn.login();}});_2b.find(jQuery.quickSignIn.data.classes.pass).blur(function(){var t=$(this);if(t.val().isEmpty()){t.hide().prev().show();}});}jQuery.quickSignIn.data.customMsg==null?jQuery.langStrings.signIn:jQuery.quickSignIn.data.customMsg;_2b.find("b").eq(0).text(jQuery.quickSignIn.data.customMsg);_2b.find("div.errorText").hide();_2b.find("input").removeAttr("disabled");_2b.find(jQuery.quickSignIn.data.classes.pass).val("");_2b.find(jQuery.quickSignIn.data.classes.username).trigger("value",[""]);_2b.jqmShow();},login:function(){var dom=$(jQuery.quickSignIn.data.domId);dom.find("div.errorText").hide();var _2f=dom.find(jQuery.quickSignIn.data.classes.username).triggerHandler("value");var _30=dom.find(jQuery.quickSignIn.data.classes.pass).val();jQuery.quickSignIn.data.loginCall({user:_2f.isValidEmail().email,pass:_30},false,dom);}};jQuery.popContinue={initialized:false,data:{ok:null,cancel:null},confirmDLG:"#alert_confirm-dlg",pop:function(ok,_32,_33,_34,_35,dim){_33.message=_33.message||"";var _37=dim!=undefined;var _38=$(jQuery.popContinue.confirmDLG);var _39=jQuery.popContinue.data;_39.ok=ok;_39.cancel=_32;if(!jQuery.popContinue.initialized){jQuery.popContinue.initialized=true;_38.jqm({overlay:30,height:(_37?dim.h:160),width:(_37?dim.w:590),modal:true,fixedHeight:false,xBTN:false});_38.click(function(e){var obj=$(e.target);var cls=obj.attr("class");if(cls.hC("bt")||cls.hC("inner")){obj=$(e.target).parent();cls=obj.attr("class");}var _3d=jQuery.popContinue.data;if(cls.hC("force")){$(this).jqmHide();if(_3d.ok.callback){var _3e=$(this).find("textarea").val();_3d.ok.callback(_3d.ok.val,(_3e==null?null:_3e.trim()));}}else{if(cls.hC("cancel")){$(this).jqmHide();if(_3d.cancel.callback){var _3e=$(this).find("textarea").val();_3d.cancel.callback(_3d.cancel.val,(_3e==null?null:_3e.trim()));}}else{return true;}}return false;});}_38.find(".optional"+","+" .space_comments").hide().find("textarea").val(_33.message);if(_34===true){if(_35&&_35.length>0){_38.jqmResize(null,450);_38.find(".space_comments_list").css("height","150");_38.find(".optional"+","+" .space_comments").show();}else{_38.jqmResize(null,280);_38.find(".optional").show();}if(_33.optional){_38.find(".optional > div.h2").html(_33.optional);}}else{_38.jqmResize(null,(_37?dim.h:170));}_38.find(".force").text(ok.text);_33.instructions=_33.instructions||"Confirmation";_33.title=_33.title||"&nbsp;";_38.find(".paint").html(_33.instructions);_38.find(".headerG span").html(_33.title).show();if(_33.subTitle){_38.find(".headerG div.sub").html(_33.subTitle).show();}else{_38.find(".headerG div.sub").hide();}if(_32.text==""){_38.jqmShow().find(".cancel").hide();}else{_38.jqmShow().find(".cancel").show().text(_32.text);}}};jQuery.DirectBooking={initialized:false,confirmDLG:"#alert_directbk-dlg",allowedToBook:function(_3f,_40,_41){var _42=0;var _43="Tungle";var _44=0;for(var i=0;i<_3f.length;i++){var _46=$.mwmCoordinator.findMwmProfile(_3f[i].pid,_3f[i].tid,_3f[i].email);if(_46){var _47=_46.mwmData;var _48=jQuery.tungleGlobals.getFullName(_47.title[0],_47.title[1]);if(_47.minpropose>_42){_43=_48;_42=_47.minpropose;}_44++;}}if(_44>1){_42=Math.min($.tungleGlobals.bookingProtectionSize,_42);}if(_42>1){var _49=jQuery.meetingParser.getNumOfProposed(_41,_40,_42);if(_49<_42){jQuery.popContinue.pop({text:"Propose more times"},{text:""},{instructions:jQuery.langStrings.mwmMessages.minimumProposed.replace("$User$",_43).replace("$Num$",_49).replace("$Min$",_42)});return false;}}return true;},check:function(_4a,_4b,_4c,_4d,_4e,_4f,dim,_51){var _52=dim!=undefined;if(_4a.length==1&&_4a[0].timeSlots.length==1&&Math.ceil((_4a[0].timeSlots[0].end.getTime()-_4a[0].timeSlots[0].start.getTime())/60000)<=_4b){var _53=$(jQuery.DirectBooking.confirmDLG);if(!jQuery.DirectBooking.initialized){jQuery.DirectBooking.initialized=true;_53.jqm({overlay:30,height:(_52?dim.h:270),width:(_52?dim.w:590),modal:true,fixedHeight:false});}var _54=jQuery.tungleGlobals.tglMeHost.first?jQuery.tungleGlobals.tglMeHost.first:"your invitees";var _55=_52?"dddd, MMMM dx<br/>h:mm t - ":"dddd, MMMM dx h:mm t - ";var _56=_4a[0].timeSlots[0].start.format(_55)+_4a[0].timeSlots[0].end.format("h:mm t");_53.find(".paint").html(jQuery.langStrings.mwmMessages.oneSelected.replace(/\$Time\$/g,_4b).replace(/\$User\$/g,_54)).end().find(".bk_time").html(jQuery.langStrings.mwmMessages.directbkTime.replace(/\$Time\$/g,_56)).end().find(".bk_instr").html(jQuery.langStrings.mwmMessages.directbkInstr[jQuery.tungleGlobals.tglMeHost.first?"me":"us"].replace(/\$User\$/g,_54)).end().find(".force").unbind("click").click(function(){$(jQuery.DirectBooking.confirmDLG).jqmHide();jQuery.popContinue.pop({text:"Submit",val:{force:_4f,ulink:_51,directbk:true},callback:function(val,_58){_4d(val.force,val.directbk,_58,val.ulink);}},{text:"Cancel",val:true,callback:null},{instructions:jQuery.langStrings.spaceInstructions.confirmBook.replace(/\$Time\$/g,_56+"<br/><br/>"),title:"Book meeting directly",message:_4c,optional:jQuery.langStrings.infoPopup.invitationMsgTitle},_52?false:true,null,dim);return false;}).end().find(".cancel").unbind("click").click(function(){$(jQuery.DirectBooking.confirmDLG).jqmHide();if(_4e){_4e();}return false;});_53.jqmShow();return true;}else{return false;}}};$.fn.MaxChars=function(){var _59=255;return this.each(function(){$(this).keyup(function(){var max=($(this).attr("mc")&&$(this).attr("mc").length>0)?parseInt($(this).attr("mc"),10):_59;var val=$(this).val();if(val.length>max){$(this).val(val.substring(0,max));this.scrollTop=this.scrollHeight;}});});};$.fn.CopyToClipboard=function(_5c){var _5d={targetId:null,callback_noFlash:null,clip:null};return this.each(function(){_5d=$.extend(_5d,_5c);if(isFlashInstalled()){var _5e=this.id;_5d.clip=new ZeroClipboard.Client();_5d.clip.glue(_5d.targetId,_5e);}else{if(_5d.callback_noFlash){_5d.callback_noFlash();}}$(this).bind("content",function(e,_60){if(isFlashInstalled()){_5d.clip.setText(_60);}else{return false;}});});};})(jQuery);(function($){jQuery.helpText={whyRpxEmail:{text:"<p>Your email address is required so that meeting details can be sent to you once a meeting is booked.</p><p>Your email is also your username when connecting through Tungle mobile apps and connectors (Mac, Outlook, Lotus Notes).</p>",width:300,height:11*13},whyRpxPassword:{text:"<p>Although you can use OpenID to sign in to Tungle from your browser, the Tungle calendar connectors (Mac, Outlook, Lotus Notes) require you to use an email and password.</p>",width:300,height:8*13},whatsTungleMe:{text:"<p><b>What is a Tungle.me link?</b></p><p>Your Tungle.me link is your personal scheduling page.</p><p>Others can visit your Tungle.me page and send you meeting invitations proposing multiple times without signing up. You pick the final time and it's booked!</p><p>You control the times shown as available and control who you share your page link with. Your meeting details are never displayed.</p>",width:300,height:19*13},syncGG:{text:"<p><b>What does it mean to sync my calendar?</b></p><p>When you enter your Google Calendar login information in Tungle, you create a link between your calendar and your Tungle account. This link allows Tungle to dynamically update with your availability and contacts, making it easy to coordinate meetings.</p><p>Syncing is completely secure, you don't have to download anything, and you can delete your Google calendar information from Tungle at any time.</p>",width:300,height:20*jQuery.tungleGlobals.contextualHelpFontSize},syncWBX:{text:"<p>The sitename is the home page for your WebEx service. E.g. <b>tungle.webex.com</b></p>",width:300,height:5*jQuery.tungleGlobals.contextualHelpFontSize},succGG:{text:"<p><b>What's this?</b></p><p>Because you synced your Google Calendar with your Tungle account, Tungle can now manage your schedule for you.</p><p>As you book meetings through Tungle, your calendar will be dynamically updated with your meeting details. Also, as you add events to your calendar, Tungle will dynamically update to show your most up-to-date availability.</p><p>Congratulations! You're ready to Tungle!</p>",width:300,height:21*jQuery.tungleGlobals.contextualHelpFontSize},succFB:{text:"<p><b>What's this?</b></p><p>Because you synced your Facebook Events with your Tungle account, Tungle can now manage your schedule for you.</p><p>As you book meetings through Tungle, your calendar will be dynamically updated with your meeting details. Also, as you add events to your calendar, Tungle will dynamically update to show your most up-to-date availability.</p><p>Congratulations! You're ready to Tungle!</p>",width:300,height:21*jQuery.tungleGlobals.contextualHelpFontSize},syncOL:{text:"<p><b>Why do you need this?</b></p><p>The Outlook connector provides a link between your Tungle account and your Outlook calendar. This allows you to sync your calendar with Tungle. Once your calendar is synced, you will be able to share your availability with friends, colleagues and clients.</p><p>The connector is built using the latest security standards, and will not affect your computer's performance.</p><p>To download, simply click the \"Download\" button.</p>",width:300,height:20*jQuery.tungleGlobals.contextualHelpFontSize},syncLN:{text:"<img src=\"/portal/images/ftwiz/lotusScreen.jpg\"/>",width:281,height:196},syncLN2:{text:"<p>To enable \"My Widget\" sidebar, go to: <b>File &gt; Preferences &gt; Widgets and check \"Show My Widget Sidebar\"</b></p>",width:276,height:6*jQuery.tungleGlobals.contextualHelpFontSize},installCN1:{text:"<p><b>How do I install my connector?</b></p><p>Your browser should have already prompted you with instructions. If you do not get the pop-up prompts from your browser, contact <a href=\"mailto:support@tungle.com\">support@tungle.com</a>.</p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},installCN2:{text:"<p><b>What are my username and password</b></p><p>Your username is your default email where you receive all your Tungle notifications. Your password is the one you selected when registering. You can verify your password and username in <b>Management > Account</b></p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},syncIC2:{text:"<p><b>Why do I need this?</b></p><p>The Mac Connector provides a link between your Tungle account and your iCal or Entourage calendar. This allows you to sync your calendar with Tungle. Once your calendar is synced, you will be able to share your availability with friends, colleagues and clients.</p><p>The connector is built using the latest security standards, and will not affect your computer's performance.</p>",width:300,height:17*jQuery.tungleGlobals.contextualHelpFontSize},schedule:{text:"<p>Start your first meeting invitation right away! We recommend you sync your calendar first, but you can schedule meetings without syncing, and can always come back and sync your calendar later.</p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},syncAll:{text:"<p>Hooray! You must want to sync your calendar with Tungle. You've made a good choice.</p><p>Synchronizing means that:<ul><li>You can see your availability and calendar details from your Tungle account.</li><li>You can share your availability with Tungle and non-Tungle users.</li><li>As you book meetings through Tungle, your calendar will be dynamically updated.</li><li>As you add events to your calendar, your availability will be dynamically updated in your Tungle account.</li></ul></p><p>Ready to sync? Select your calendar application from the list and follow the simple instructions.</p>",width:300,height:27*jQuery.tungleGlobals.contextualHelpFontSize},timezoneAS:{text:"<p>Tungle automatically detects your time zone. If you are working from a different time zone than the one Tungle has chosen, simply select yours from the list.</p>",width:300,height:7*jQuery.tungleGlobals.contextualHelpFontSize},priAS:{text:"<p><b>What is my primary email?</b></p><p>This is the email address you use to sign in to your Tungle account. You can add a secondary email address to receive updates and requests at more than one address.</p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},altAS:{text:"<p><b>What is my secondary email?</b></p><p>You can choose to add a secondary email address. By doing this, you will receive updates and requests at more than one address. Both addresses will be linked to the same Tungle account.</p><p><b>Why would I add a secondary email?</b></p><p>You may, for example, wish to receive updates and requests at a business address and a personal address. It's up to you how you want to Tungle.</p>",width:300,height:19*jQuery.tungleGlobals.contextualHelpFontSize},multiAS:{text:"<p><b>Why would I have multiple calendars?</b></p><p>You may, for example, have a business calendar through Outlook and a personal calendar through Google. Syncing both allows you to quickly and easily view your overall availability.</p><p>It's perfect for maintaining that all important work-life balance.</p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},defaultAS:{text:"<p><b>What is my default calendar?</b></p><p>Tungle is synced with your calendar. When you book meetings through Tungle, they are automatically added to your calendar. If you have more than one calendar synced with Tungle, booked meetings will only be added to the calendar you select as your default.</p>",width:300,height:12*jQuery.tungleGlobals.contextualHelpFontSize},syncCheckAS:{text:"<p>Un-checking this box and saving your settings simply means that your Tungle account will no longer display information from this calendar. Doing this does not remove your Google Calendar from Tungle.</p><p>If you want to remove your Google Calendar from Tungle completely, simply follow the instructions below the \"save\" button.</p>",width:300,height:21*jQuery.tungleGlobals.contextualHelpFontSize},whyOL:{text:"<p><b>Why would I download the Outlook Connector?</b></p><p>You would only download the connector if you use an Outlook calendar and want to sync with Tungle.</p><p>The Outlook connector provides a link between Tungle and your Outlook calendar, allowing them to synchronize.</p><p>Once synced, your Outlook contacts will be uploaded to Tungle, and you will be able to start sharing your availability with them - whether they use Tungle or not, and even if they are using a different email application.</p><p>Your calendar will dynamically update as you book meetings through Tungle, and Tungle will always show your most up-to-date availability as you add events to your calendar.</p><p>The connector is built using the latest security standards, and will not affect your computer's performance.</p>",width:300,height:34*jQuery.tungleGlobals.contextualHelpFontSize},whyIC:{text:"<p><b>Why would I download the Mac Connector?</b></p><p>You would only download the connector if you use Apple iCal or Entourage for Mac as your calendar, and want to sync with Tungle.</p><p>The Mac Connector provides a link between Tungle and your calendar, allowing them to synchronize.</p><p>Once synced, your iCal or Entourage contacts will be uploaded to Tungle, and you will be able to start sharing your availability with them - whether they use Tungle or not, and even if they use a different email application.</p><p>Your calendar will dynamically update as you book meetings through Tungle, and Tungle will always show your most up-to-date availability as you add events to your calendar.</p><p>The connector is built using the latest security standards, and will not affect your computer's performance.</p>",width:300,height:34*jQuery.tungleGlobals.contextualHelpFontSize},whyRSS1:{text:"<p><b>What's an RSS and why would I enable it?</b></p><p>RSS (Real Simple Syndication) is essentially an information stream - and you can direct that stream to an RSS reader such as Google Reader.</p><p>If you use an RSS reader regularly, enabling your RSS feed is a great way to get Tungle updates and requests in real time.</p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},urlRSS1:{text:"<p>Click the \"Reset my private URL\" link if you want to reset your RSS URL. Copy the URL and paste it into your RSS reader according to your reader's instructions. This will direct your RSS feed to your reader so that you will get updates and requests in real time.</p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},whyRSS2:{text:"<p><b>What's an RSS and why would I enable it?</b></p><p>RSS (Real Simple Syndication) is essentially an information stream - and you can direct that stream to an RSS reader such as Google Reader.</p><p>If you use an RSS reader regularly, enabling your RSS feed is a great way to get Tungle updates and requests in real time.</p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},createMG:{text:"<p>Click <b>Schedule a Meeting</b> to start a new meeting invitation.</p><p>Scheduling a meeting takes just 3 steps:</p><p>1. Enter meeting details and select your contacts</p><p>2. Propose as many meeting times as you want by simply clicking and dragging on the calendar.</p><p>3. Enter a personal message.  (Optional)</p><p>Then simply preview and send.</p><p>People you invite will each receive an email with a link to the meeting page Tungle has created for you, where they can select from the times you've proposed.</p>",width:300,height:26*jQuery.tungleGlobals.contextualHelpFontSize},addCT:{text:"<p><b>Why would I add contacts?</b></p><p>Once a contact is added to your list, you can send them sharing requests, and easily invite them to meetings.</p><p>For contacts not in your list, you can still invite them to meetings by manually typing their email address into your meeting invite. When they are in your list, all you do is click and add.</p><p>Contacts are <b>not</b> notified when you add them, and adding them does not mean you are sharing availability.</p>",width:300,height:21*jQuery.tungleGlobals.contextualHelpFontSize},whySync:{text:"<p><b>What does it mean to sync my calendar?</b></p><p>When you sync your calendar, you create a link between your calendar and Tungle, allowing Tungle to display your availability and calendar details. Your calendar will dynamically update as you book meetings through Tungle, and Tungle will always show your most recent availability as you add events to your calendar.</p><p><b>Why would I do this?</b></p><p>With your calendar synced, you will be able to:<ul><li>Access your contacts through your Tungle account.</li><li>Share your availability with friends, clients and colleagues.</li><li>Arrange meeting times with people inside and outside your company, on different email platforms and in different time zones.</li></ul></p><p>We recommend that you sync to get the full Tungle experience. However, you can still use Tungle to schedule your meetings if you choose not to sync.</p>",width:300,height:36*jQuery.tungleGlobals.contextualHelpFontSize},invitees1:{text:"<p>This box lists the people you have selected to invite to your meeting. Once you confirm and send this invitation, each of these people will receive an email meeting invitation. To add more people, simply use the <b>Invitees</b> tool above. To remove a person, click the <b>x</b> next to their name.</p>",width:300,height:11*jQuery.tungleGlobals.contextualHelpFontSize},invitee1:{text:"To select people you want to invite to the meeting:<ul><li>Type in the email address of the person you want to invite and click <b>Add</b>.</li></ul><b>OR</b><ul><li>Select from your <b>My Contacts</b> list on the left. Simply click the name once to add.</li></ul>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},invitees2:{text:"<p>This box lists the people you have selected to invite to your meeting. Once you confirm and send this invitation, each of these people will receive an email meeting invitation. To add more people, simply use the <b>Invitees</b> tool above. To remove a person, click the <b>x</b> next to their name.</p>",width:300,height:11*jQuery.tungleGlobals.contextualHelpFontSize},invitee2:{text:"To select people you want to invite to the meeting:<ul><li>Type in the email address of the person you want to invite and click <b>Add</b>.</li></ul><b>OR</b><ul><li>Select from your <b>My Contacts</b> list on the left. Simply click the name once to add.</li></ul>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},proposeTime1:{text:"<p><b>How do I propose meeting times?</b></p><p>Click and drag your cursor over the times you want on the calendar image. Times you have selected will be listed in the <b>Proposed time</b> box. To unselect a time, simply click and drag back over the proposed time slot.</p>",width:300,height:12*jQuery.tungleGlobals.contextualHelpFontSize},proposeTime2:{text:"<p><b>How do I propose meeting times?</b></p><p>Click and drag your cursor over the times you want on the calendar image. Times you have selected will be listed in the <b>Proposed time</b> box. To unselect a time, simply click and drag back over the proposed time slot.</p>",width:300,height:12*jQuery.tungleGlobals.contextualHelpFontSize},location1:{text:"<p><b>What does this do?</b></p><p>Tungle uses Google Maps to help you schedule meetings better.</p><p>Enter the name or street address of your meeting location, or click the <b>Find a location</b> link.</p><p>If you provide a valid street address, Google Maps will insert a link in your meeting invitations that will provide invitees with a map and driving directions.</p>",width:300,height:18*jQuery.tungleGlobals.contextualHelpFontSize},location2:{text:"<p><b>What does this do?</b></p><p>Tungle uses Google Maps to help you schedule meetings better.</p><p>Enter the name or street address of your meeting location, or click the <b>Find a location</b> link.</p><p>If you provide a valid street address, Google Maps will insert a link in your meeting invitations that will provide invitees with a map and driving directions.</p>",width:300,height:18*jQuery.tungleGlobals.contextualHelpFontSize},preview:{text:"<p><b>What will my invitees see?</b></p><p>Invitees will receive an email with your meeting details in an easy-to-read format. The email will include a link to the page you see below (Don't worry - they just see the page. They do not get access to your Tungle account.). They then select the time slot(s) of their choice from your proposed meeting times.</p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},makeChanges:{text:"<p><b>Something not right?</b></p><p>Click the <b>Make changes</b> link to edit your meeting details before sending the invite.</p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},actionItems:{text:"<p><b>What are my Action Items? What do I do with them?</b></p><p>Your <b>Action Items</b> section displays all the items that currently require your attention. For example, this can include sharing requests you have not yet responded to, or meeting updates you need to review.</p><p>When you are ready to take action, select the item from your <b>Action Items</b> list and follow the simple instructions. And just like that, you're Tungling like a pro!</p>",width:300,height:18*jQuery.tungleGlobals.contextualHelpFontSize},meetingSent:{text:"<p>This section lists all the meeting invitations you have sent, as well as the basic details. To go to an individual meeting page, simply click the meeting name in the <b>Subject</b> list.</p>",width:300,height:9*jQuery.tungleGlobals.contextualHelpFontSize},meetingReceived:{text:"<p>This section lists all the meeting invitations you have received, as well as the basic details. To go to an individual meeting page, simply click the meeting name in the <b>Subject</b> list.</p>",width:300,height:9*jQuery.tungleGlobals.contextualHelpFontSize},meetingBooked:{text:"<p>This section shows all your booked meetings, including booked meetings for which you were the organizer, and those you have been invited to by someone else. To go to an individual meeting page, simply click the meeting name in the <b>Subject</b> list.</p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},meetingArchived:{text:"Tungle will archive some meetings for you. A meeting will be archived when:<ul><li>The meeting time has passed.</li><li>The meeting was cancelled.</li><li>None of the proposed times were accepted and the meeting was cancelled.</li></ul>",width:300,height:12*jQuery.tungleGlobals.contextualHelpFontSize},sharingRequests:{text:"<p>This section shows sharing requests you have received. To respond to a request, simply click the item in the <b>Subject</b> list. A popup will ask you if you want to accept or decline the request.</p>",width:300,height:10*jQuery.tungleGlobals.contextualHelpFontSize},rsh1:{text:"<p><b>What does this mean?</b></p><p>This person has requested to see your Free/Busy calendar. If you accept, they will be able to see your availability whenever they are signed in to Tungle. They will not see the details of your calendar; they will only be able to see when you are free and when you are busy.</p><p>This person has not given you access to see their Free/Busy calendar. To send them a sharing request, simply check the checkbox. A sharing request will be sent when you accept or decline.</p>",width:300,height:20*jQuery.tungleGlobals.contextualHelpFontSize},rsh2:{text:"<p><b>What does this mean?</b></p><p>This person has requested to see your Free/Busy calendar. If you accept, they will be able to see your availability at all times. They will not see the details of your calendar; they will only be able to see when you are free and when you are booked.</p><p>This person has also given you access to their Free/Busy calendar.</p>",width:300,height:17*jQuery.tungleGlobals.contextualHelpFontSize},reminder:{text:"<p><b>Someone's not responding?</b></p><p>Click this link to send reminder emails to meeting invitees who have not yet responded with their availability.</p><p>You may also choose to simply book the meeting without their input using the Book Meeting button below. All invitees will be notified by email that the meeting has been booked.</p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},addComments:{text:"<p>Any comments you add will be added to the meeting page. Invitees will see your comments when they return to view this page.</p>",width:300,height:7*jQuery.tungleGlobals.contextualHelpFontSize},give:{text:"<p><b>What does this mean?</b></p><p>Sending a share request only means that you are requesting access to another person's availability, and not that you are sharing yours. Click this link to start or stop sharing your Free/Busy calendar with this person.</p>You can choose to:<ul><li>Share your availability without sending a share request (just click the link)</li><li>Send a request without sharing your availability (don't click, just send)</li><li>Share your availability and send a sharing request (click and send)</li></ul><p>Once you start sharing with someone, you can choose to stop sharing with them at any time by clicking the link again.</p>",width:300,height:28*jQuery.tungleGlobals.contextualHelpFontSize},manageMT1:{text:"<p><b>Manage your meeting</b></p><p>To book the meeting now, simply select a time in the calendar view below and click <b>Book Meeting</b>.</p><p>If you want to cancel the meeting, click <b>Cancel Meeting</b>. You will then have the option to cancel and notify invitees, or cancel without notifying anyone.</p></p>",width:300,height:14*jQuery.tungleGlobals.contextualHelpFontSize},manageMT2:{text:"<p><b>What do I do here?</b></p><p>Someone has proposed times to meet. In the <b>pick a time</b> boxes on the calendar view, simply click the time that works for you. Click <b>Book Meeting</b> and you're done. The meeting organizer will receive an email that you have accepted their meeting and booked the time.</p><p>If there are no suitable times proposed, simply click <b>Notify organizer</b>, and the meeting organizer will be notified.</p>",width:300,height:18*jQuery.tungleGlobals.contextualHelpFontSize},manageMT3:{text:"<p><b>What do I do here?</b></p><p>Someone has proposed times to meet. In the <b>available?</b> boxes on the calendar view, simply click all the times that works for you. Click <b>Submit Availability</b> and you're done. Once all invitees have submitted their availability and the meeting gets booked, you will be notified.</p><p>If there are no suitable times proposed, simply click <b>Notify organizer</b>, and the meeting organizer will be notified.</p><p>If you can't or don't want to attend, but you want the meeting to go on without you, simply click <b>Meet without me</b>, and the meeting organizer will be notified.</p>",width:300,height:23*jQuery.tungleGlobals.contextualHelpFontSize},manageMT4:{text:"<p><b>What do I do here?</b></p><p>Someone has proposed times to meet. All other invitees have responded. The times below show only the common times when everyone can meet. Now, simply click the time that works for you in the <b>pick a time</b> boxes on the calendar view. Click <b>Book Meeting</b> and you're done. The meeting organizer and all invitees will be notified by email that the meeting has been booked.</p><p>If there is no suitable time proposed, simply click <b>Notify organizer</b>, and the meeting organizer will be notified.</p><p>If you can't or don't want to attend, but you want the meeting to go on without you, simply click <b>Meet without me</b>, and the meeting organizer will be notified.</p>",width:300,height:28*jQuery.tungleGlobals.contextualHelpFontSize},hlp_IndexMe:{text:"<p><b>Why make your Tungle.me page searchable?</b></p><p>When set as searchable, search engines and the upcoming Tungle directory will be able to find your Tungle.me public page and return it in the results.</p><p><i>Your email, phone and availability will not be searchable.</i></p>",width:300,height:16*jQuery.tungleGlobals.contextualHelpFontSize},hlp_PsMeetNum:{text:"<p>This setting ensures that you have enough flexibility for each meeting invitation.</p><p><i>If you select '1 possible meeting time' then visitors will be able to book meetings with you directly.</i></p>",width:300,height:12*jQuery.tungleGlobals.contextualHelpFontSize},hlp_MeetOffset:{text:"<p><b>Avoid proposal of last minute meetings.</b></p><p>Visitors will not be able to propose meeting times within the buffer you specified.</p>",width:300,height:13*jQuery.tungleGlobals.contextualHelpFontSize},hlp_MeetExcept:{text:"<p>The calendar is shown for your reference only, it is never displayed to your visitors on your public Tungle.me page.</p><p><b>All your busy meetings will automatically be subtracted from your combined weekly and exception availability.</b></p>",width:300,height:14*jQuery.tungleGlobals.contextualHelpFontSize},hlp_CalendarType:{text:"<p><b>Public calendar</b>:<br/>All events part of a public calendar will be automatically shown as public events on your Tungle.me page. Visitors to your page will be able to see the subject and the location of these events.</p><p>Events that are marked as \"private\" in your synced calendar will not be displayed to your visitors.</p><p><b>Private calendar (default)</b>:<br/>Events part of a private calendar will not be displayed on your Tungle.me page.</p><p>Note that for both public and private calendars, it is possible to change the state for a given calendar event by clicking on the event and toggling the privacy option.</p>",width:300,height:14*jQuery.tungleGlobals.contextualHelpFontSize}};})(jQuery);(function($){jQuery.apiParser={syncAPI:{lotusLink:"/Files/client/Notes/extension.xml",isOauthType:function(_2){return _2=="Google"||_2=="LotusLive";},downloadOutlook:function(){if(jQuery.ajaxHelper.openSocial){window.location=jQuery.ajaxHelper.baseUrl.replace("social/","")+"/Files/client/Outlook/v3/TungleConnector2010.application";}else{return "/Files/client/Outlook/v3/TungleConnector2010.application";}},downloadIcal:function(){if(jQuery.ajaxHelper.openSocial){window.location=jQuery.ajaxHelper.baseUrl.replace("social/","")+"/Files/client/Mac/TungleMacConnector.dmg";}else{return "/Files/client/Mac/TungleMacConnector.dmg";}},downloadIcs:function(id){if(jQuery.ajaxHelper.openSocial){window.location=jQuery.ajaxHelper.baseUrl.replace("social/","")+"/export/"+id+"/event.ics";}else{window.location="/export/"+id+"/event.ics";}},addGSourceXML:function(_4,_5,_6,_7,_8,_9){_7=_7?_7:"Google";var _a="<Source Type=\""+_7+"\"";if(jQuery.apiParser.syncAPI.isOauthType(_7)){_a+=" AuthType=\"OAuth\">";}else{_a+=">";}if(_9){_a+="<Name><![CDATA["+_9.xss()+"]]></Name>";}if(_4){_a+="<UserName>"+_4.HEX()+"</UserName>";}if(_8){_a+="<Password Enc=\"false\">"+_8+"</Password>";}if(typeof _5=="string"){_a+="<Uri><![CDATA["+_5+"]]></Uri>";}else{if(_5&&_5.length){_a+="<Calendars>";for(var i=0;i<_5.length;i++){_a+="<Calendar Uri=\""+_5[i]+"\" />";}_a+="</Calendars>";}}if(_6){_a+="<Data><SyncType>"+_6+"</SyncType></Data>";}_a+="</Source>";return _a;},initGSourceXML:function(_c,_d){var _e="<Source Type=\""+_c.type+"\" AuthType=\"OAuth\">";if(_c.user){_e+="<UserName>"+_c.user.HEX()+"</UserName>";}_e+="<Data>";if(_c.sync){_e+="<SyncType>"+_c.sync+"</SyncType>";}_e+="<CallbackUrl><![CDATA["+_d+"]]></CallbackUrl></Data>";_e+="</Source>";return _e;},verifyGSourceXML:function(_f,_10){var _11="<Source Type=\""+_f.type+"\" AuthType=\"OAuth\">";if(_f.user){_11+="<UserName>"+_f.user.HEX()+"</UserName>";}_11+="<Data>";if(_f.sync){_11+="<SyncType>"+_f.sync+"</SyncType>";}_11+="<OAuthVerifier><![CDATA["+_10+"]]></OAuthVerifier></Data>";_11+="</Source>";return _11;},initINTSourceXML:function(_12,_13){var _14="<Source Type=\""+_12+"\" AuthType=\"OAuth\">";_14+="<Data>";_14+="<CallbackUrl><![CDATA["+_13+"]]></CallbackUrl></Data>";_14+="</Source>";return _14;},addINTSourceXML:function(_15,_16,_17,_18,uri){var _1a="<Source Type=\""+_18+"\" AuthType=\""+_17+"\">";if(_15){_1a+="<UserName><![CDATA["+_15+"]]></UserName>";}if(_16){_1a+="<Password><![CDATA["+_16+"]]></Password>";}if(uri){_1a+="<Uri><![CDATA["+uri+"]]></Uri>";}_1a+="</Source>";return _1a;},delINTSourceXML:function(_1b){var _1c="<Source ID=\""+_1b+"\"/>";return _1c;}},buildEventQuery:function(_1d,_1e,_1f){var _20="<Events CID=\""+_1d.cID+"\">";_20+="<Event ID=\""+_1d.eventID+"\" Public=\""+_1e.toString()+"\">";if(_1d.universalID){_20+="<Uid>"+_1d.universalID+"</Uid>";}if(_1f){_20+="<Note><![CDATA["+_1f+"]]></Note>";}_20+="</Event></Events>";return _20;},parseContactGroup:function(_21){var _22=null;_22={name:_21.Name.$,id:_21["@ID"],total:_21["@Total"],members:new Array()};return _22;},parseContactProfile:function(_23){var _24=null;if(_23.UserID&&_23.UserID["@Type"]=="PublicID"){var tId=_23["@TID"]==undefined?0:_23["@TID"];var pid=_23.UserID.$;var _27=_23.FullName==undefined?pid:_23.FullName.$;var _28=jQuery.mwmCoordinator.parseProfile(_23,pid);_24={name:_27,pid:pid,tid:tId,type:jQuery.tungleGlobals.UserIdentType.publicId,mwmData:_28};}return _24;},indexMe:function(_29,_2a,_2b,_2c){var _2d="<Setting Name=\"MyProfile\"><Profile><Preferences><IndexMe>"+_29+"</IndexMe></Preferences></Profile></Setting>";jQuery.ajaxHelper.sendAjaxPostRequest("Profile.UpdateJSON",_2d,_2a,_2b,_2c);},shareMWMLink:function(_2e,_2f,msg){var XML="<Recipients><Tos>";for(var i=0;i<_2e.length;i++){XML+="<To><Email>"+_2e[i].email+"</Email>";if(_2e[i].name!=""){XML+="<Name><![CDATA["+_2e[i].name.xss()+"]]></Name>";}XML+="</To>";}XML+="</Tos></Recipients><EmailTemplate ID=\"MeetMe_Invite\">";XML+="<Parameters><Parameter>";if(msg!=""){XML+="<Name>Msg</Name><Value><![CDATA["+msg.xss()+"]]></Value></Parameter><Parameter>";}XML+="<Name>PublicUrl</Name><Value>"+_2f+"</Value>";XML+="</Parameter></Parameters></EmailTemplate>";return XML;},callbackAjax_MWMAvail:function(_33,_34,_35,_36){if(_33.TRes["@Status"]=="SUCCESS"){var _37=new Array();var _38=new Array();if(_33.TRes.Tss){if(_33.TRes.Tss.length){for(var j=0;j<_33.TRes.Tss.length;j++){var _3a=parseTss(_33.TRes.Tss[j]);var _3b=_33.TRes.Tss[j]["@ID"];var _3c=false;for(var k=0;k<_38.length;k++){if(_38[k]==_3b){_3c=true;break;}}if(!_3c){_38.push(_3b);_37.push({pid:_3b,timeSlots:_3a});}}}else{var _3a=parseTss(_33.TRes.Tss);var _3b=_33.TRes.Tss["@ID"];_3b=_3b==null?jQuery.tungleGlobals.user.publicID:_3b;_38.push(_3b);_37.push({pid:_3b,timeSlots:_3a});}}var _3e=new Array();for(var j=0;j<_34.ids.length;j++){var _3f=false;for(var k=0;k<_38.length;k++){if(_38[k].equalsIgnoreCase(_34.ids[j])){_3f=true;break;}}if(!_3f){_3e.push(_34.ids[j]);_37.push({pid:_34.ids[j],timeSlots:new Array()});}}if(_3e.length>0){jQuery.ajaxHelper.popUpAlert("The following contacts are no longer sharing their calendar availability: "+_3e+".");}jQuery.meetingParser.callback_parseSuccessMWMAvailability(_34,_37,_35);}else{_36(range);}function parseTss(Tss){var _41=new Array();if(Tss.Ts){if(Tss.Ts.length){for(var i=0;i<Tss.Ts.length;i++){jQuery.apiParser.processTimeSlot(Tss.Ts[i],_41);}}else{jQuery.apiParser.processTimeSlot(Tss.Ts,_41);}}return _41;}},processTimeSlot:function(_43,_44,_45,_46,_47){var _48=jQuery.tungleGlobals.getUserTodayDate();var _49=_43.Start==undefined?_43["@Start"]:_43.Start.$;var end=_43.End==undefined?_43["@End"]:_43.End.$;var _4b=GlobalParseICalToDate(_49);var _4c=GlobalParseICalToDate(end);_4b.setSeconds(0,0);_4c.setSeconds(0,0);if(_4c.getTime()==_4b.getTime()){return false;}if(_4c.getTime()>_48.getTime()||_45=="Booked"){if(_4b.getTime()<_48.getTime()&&_45!="Booked"){_4b.setTime(_48.getTime());}_4b.setMinutes(Math.ceil(_4b.getMinutes()/jQuery.tungleGlobals.minDuration)*jQuery.tungleGlobals.minDuration);_4c.setMinutes(Math.floor(_4c.getMinutes()/jQuery.tungleGlobals.minDuration)*jQuery.tungleGlobals.minDuration);_4b.setSeconds(0,0);_4c.setSeconds(0,0);if(_46){if(Math.ceil((_4c.getTime()-_4b.getTime())/60000)<_46){return false;}}if(_4b.getDate()!=_4c.getDate()){while(_4b.format("MMddyy")!=_4c.format("MMddyy")&&_4b.getTime()<=_4c.getTime()){var _4d=new Date(_4b);_4d.setHours(23,59,59);var _4e={start:new Date(_4b),end:_4d};if(_47){_4e.type=_47;}_44.push(_4e);_4b.setDate(_4b.getDate()+1);_4b.setHours(0,0,0);if(_4b.format("MMddyy")===_4c.format("MMddyy")){var _4f=new Date(_4c);_4f.setHours(0,0,0);if(_4f.getTime()!=_4c.getTime()){var _4e={start:_4f,end:_4c};if(_47){_4e.type=_47;}_44.push(_4e);}}}}else{var _4e={start:_4b,end:_4c};if(_47){_4e.type=_47;}_44.push(_4e);}}},parseMessage:function(_50){var _51=_50["@Type"];var _52=GlobalParseICalToDate(_50["@Ts"]).format("dd/MM/yy");var _53=_50["@Flags"];var _54=_50["@ID"];var _55=_50.Data;var _56=_55.Space;var _57=_56==undefined?"":(_56.Summary==undefined?"-":(_56.Summary.$+"").xss());var _58=_56==undefined?"":_56["@ID"];var _59=_56==undefined?null:(_56.Location==undefined?null:_56.Location.$);var _5a={};switch(_51){case "3010":var _5b=_56.Originator==null?"-":_56.Originator.FullName.$;var _5c=jQuery.tungleGlobals.user.fName+" "+jQuery.tungleGlobals.user.lName;var _5d=_5b==_5c;_5a={Flag:_53,Id:_56["@ID"],aId:_54,type:"space",Img:(jQuery.ajaxHelper.openSocial?jQuery.ajaxHelper.baseUrl.replace("social","opensocial"):"")+"images/inbox/"+(_5d?"space_RTB.png":"space_Invitation.gif"),Subject:{text:_57,title:_57},location:_59,Columns:new Array({text:_52,title:_52},{text:"Meeting Invitation",title:"Meeting Invitation"},{text:_5d?"You":_5b.xss(),title:_5b})};break;case "2010":var _5e="000";var _5b=_55.From.Name==undefined?_55.From.Email.$:_55.From.Name.$;var _5f=_55.From.Level==undefined?"1":_55.From.Level.$;var _60=_5b+" would like to share his "+getCalendarLevel(_5f,"Text")+" calendar with you";_5a={Flag:_53,Id:_54,aId:_54,type:"share",shareObject:{cid:_55.From["@TID"],status:_5f,name:_5b.xss(),email:_55.From.Email.$,bstatus:_5e},Img:(jQuery.ajaxHelper.openSocial?jQuery.ajaxHelper.baseUrl.replace("social","opensocial"):"")+"images/inbox/msg_RSH.gif",Subject:{text:_60.xss(),title:_60},Columns:new Array({text:_52,title:_52},{text:"Sharing Request",title:"Sharing Request"},{text:_5b.xss(),title:_5b})};break;case "1030":var _61=_55.Source?_55.Source["@Type"]:"";var _60="Tungle was unable to connect to your <b>"+_61+"</b> account. Please resync.";_5a={Flag:_53,Id:_54,aId:_54,type:"system",Img:(jQuery.ajaxHelper.openSocial?jQuery.ajaxHelper.baseUrl.replace("social","opensocial"):"")+"images/inbox/system.png",Subject:{text:_60.xss(),title:_60.replace(/<b>/g,"").replace(/<\/b>/g,"")},Columns:new Array({text:_52,title:_52},{text:"Notification",title:"System Notification"},{text:"Tungle",title:"Tungle"})};break;default:break;}return _5a;},jsonToArray:function(_62){if(_62.length){return _62;}else{var _63=new Array();_63.push(_62);return _63;}},processSpace:function(_64,_65,_66,_67){if(!jQuery.ajaxHelper.isSuccessJSON(_64)){if(_64.TRes){_64=_64.TRes;}var _68="unknown";if(_64["@Status"]=="NOT_FOUND"){_68=jQuery.langStrings.spaceMessages.NOT_FOUND;return false;}else{if(_64["@Status"]=="ERROR"){_68=_64.Code&&jQuery.langStrings.spaceMessages[_64.Code.$]?jQuery.langStrings.spaceMessages[_64.Code.$]:undefined;}}return _68;}if(_64.TRes){_64=_64.TRes;}if(_64.Space){_64=_64.Space;}if(jQuery.tungleGlobals.publicWeb&&_64["@Version"]==_65.spaceVer&&_67){return false;}_65.sessionCode=_64["@ID"];_65.details=null;_65.infoTable={spaceStatus:"?",myId:"infoTable_left",subject:"?",organizer:{},location:"?",attendees:new Array(),availability:new Array(),length:"?",currentUser:{},uLink:null,isHost:false};_65.commentList={unsortedComments:new Array()};_65.timeSlots={unsortedDates:new Array(),bookedSlot:null};_65.pageStatus=_64["@State"];_65.infoTable.spaceStatus=_65.pageStatus;_65.pageExtStatus=_64["@ExtState"];_65.createdOn=GlobalParseICalToDate(_64["@CreatedOn"]);if(_64.Details){_65.details=_64.Details.$;_65.commentList.unsortedComments[0]={name:"",date:_65.createdOn,comment:_65.details};}_65.IntegrationSource=_64.IntegrationSources==undefined?null:{init:true,name:_64.IntegrationSources.IntegrationSource["@Type"],id:_64.IntegrationSources.IntegrationSource["@ID"],password:_64.IntegrationSources.IntegrationSource.Password&&_64.IntegrationSources.IntegrationSource.Password.$||""};_65.infoTable.subject=_64.Summary==undefined?"No Subject":(_64.Summary.$+"");_65.infoTable.uLink=_64.UniversalUrl==undefined?null:_64.UniversalUrl.$;_65.infoTable.location=_64.Location==null?"":_64.Location.$;_65.infoTable.length=_64.Duration==undefined?0:parseInt(_64.Duration.$,10);_65.spaceVer=_64["@Version"];_65.infoTable.initComment=new Array();var _69=0;var _6a=0;var _6b=0;var _6c=0;var _6d=jQuery.apiParser.jsonToArray(_64.Participants.Participant);for(var i=0;i<_6d.length;i++){var _6f=_6d[i];var _70=null;var _71=null;if(_6f.UserID){_71=_6f.UserID["@Type"];_70=_6f.UserID.$;}else{_71=jQuery.tungleGlobals.UserIdentType.email;_70=_6f.FullName.$.trim();}var _72=_6f.FullName==undefined?_70:_6f.FullName.$.trim();_72=_72==""?_70:_72;var _73=_6f["@Type"]==undefined?"":_6f["@Type"];var _74=_6f["@State"]==undefined?"NoResponse":_6f["@State"];var _75=_6f.In?{name:"In",url:_6f.In.$}:null;var _76=_6f["@ID"]==undefined?"":_6f["@ID"];if(_74=="MeetWithoutMe"){_6b++;}var _77=_6f["@Code"]==undefined?"":_6f["@Code"];if(_73=="Host"){_65.infoTable.organizer.name=_72;_65.infoTable.organizer.email=_70;_65.infoTable.organizer.partID=_76;_65.infoTable.organizer.type=_73;if(_74=="NoMoreSuitableTime"){_65.pageExtStatus="oNMST";}_65.infoTable.organizer.status="NoResponse";_65.infoTable.organizer.profile=_75;_65.infoTable.organizer.timezone=_6f["@TimeZone"];}else{_6a++;if(_73=="BuddyAutoAccept"&&_74=="NoResponse"){_74="NotRespondedBuddy";}switch(_74){case "MeetWithoutMe":_6b++;break;case "NoMoreSuitableTime":case "NoSuitableTime":_6c++;break;case "NoResponse":_69++;break;}_65.infoTable.attendees[_65.infoTable.attendees.length]={status:_74,name:_72,email:_70,partID:_76,idType:_71,id:1,type:_73,profile:_75,spaceCode:_77};}if(_6f["@Self"]){_65.infoTable.currentUser.email=_70;_65.infoTable.currentUser.name=_72;_65.infoTable.currentUser.partID=_76;_65.infoTable.currentUser.status=_74;_65.infoTable.currentUser.attType=_73;_65.infoTable.currentUser.type=_71;_65.infoTable.currentUser.spaceCode=_77;if(!jQuery.tungleGlobals.user.eMail){jQuery.tungleGlobals.user.eMail=_70;}if(!jQuery.tungleGlobals.user.name){jQuery.tungleGlobals.user.name=_72;}if(_73=="Host"){_65.infoTable.isHost=true;if(jQuery.tungleGlobals.publicWeb&&jQuery.tungleGlobals.user.isRegistered){_66(readCookie(jQuery.tungleGlobals.cookieSession),_70,_65.sessionCode);return false;}}if(jQuery.tungleGlobals.publicWeb){_65.infoTable.currentUser.attType=jQuery.tungleGlobals.user.isRegistered?_73:"NonUser";if(!jQuery.tungleGlobals.user.isRegistered&&_72!=_70){var _78=guessName(_72);if(_78){jQuery.tungleGlobals.user.fName=_78[0];jQuery.tungleGlobals.user.lName=_78[1];}}}}if(_6f.Activities){var _79=_6f.Activities.Activity.length;if(_79){for(var j=0;j<_79;j++){if(_6f.Activities.Activity[j]["@Type"]==="Commenting"){var d=GlobalParseICalToDate(_6f.Activities.Activity[j]["@Timestamp"]);var _7c="";if(_6f.Activities.Activity[j].XmlData){_7c=_6f.Activities.Activity[j].XmlData.Comment.$;}_65.commentList.unsortedComments.push({name:_72,date:d,comment:_7c});}}}else{if(_6f.Activities.Activity["@Type"]==="Commenting"){var d=GlobalParseICalToDate(_6f.Activities.Activity["@Timestamp"]);var _7c="";if(_6f.Activities.Activity.XmlData){_7c=_6f.Activities.Activity.XmlData.Comment.$;}_65.commentList.unsortedComments.push({name:_72,date:d,comment:_7c});}}}if(_6f.LatestTss){if(_65.infoTable.availability.length==0){_65.infoTable.availability[0]=new Array();}_65.infoTable.availability[0].push(_72==_70?_70:(_72+" ("+_70+")"));var _7d=_65.infoTable.availability.length;_65.infoTable.availability[_7d]=new Array();storeTimeSlots(_6f.LatestTss.Ts,_65.infoTable.availability[_7d],_65.infoTable.length);if(_73=="Host"){storeTimeSlots(_6f.LatestTss.Ts,_65.timeSlots.unsortedDates,_65.infoTable.length);}}}if(_65.commentList.unsortedComments.length>0&&_65.commentList.unsortedComments[0].name.length==0){_65.commentList.unsortedComments[0].name=_65.infoTable.organizer.name;}_65.infoTable.responded=_6a-_69;_65.infoTable.total=_6a;_65.infoTable.totalMWM=_6b;_65.infoTable.totalNST=_6c;if(_65.timeSlots.unsortedDates.length==0&&_64.ProposedTss&&_64.ProposedTss.Ts){storeTimeSlots(_64.ProposedTss.Ts,_65.timeSlots.unsortedDates,_65.infoTable.length);}var _7e=new Array();while(_65.timeSlots.unsortedDates.length>0){var _7f=0;for(var i=0;i<_7e.length;i++){if(_65.timeSlots.unsortedDates[0].start.getTime()<_7e[i].start.getTime()){_7f=i;break;}else{_7f=i+1;}}_7e.splice(_7f,0,_65.timeSlots.unsortedDates[0]);_65.timeSlots.unsortedDates.splice(0,1);}_65.timeSlots.unsortedDates=_7e;jQuery.tungleGlobals.spaceHasCommonTimes=false;if(_64.LatestTss&&_64.LatestTss.Ts){var _80=null;var end=null;if(_65.pageStatus=="RTB"){jQuery.tungleGlobals.spaceHasCommonTimes=true;if(_64.LatestTss.Ts.length){_80=GlobalParseICalToDate(_64.LatestTss.Ts[0]["@Start"]);end=GlobalParseICalToDate(_64.LatestTss.Ts[0]["@End"]);}else{_80=GlobalParseICalToDate(_64.LatestTss.Ts["@Start"]);end=GlobalParseICalToDate(_64.LatestTss.Ts["@End"]);}}else{if(_65.pageStatus=="Booked"){_80=GlobalParseICalToDate(_64.LatestTss.Ts["@Start"]);end=GlobalParseICalToDate(_64.LatestTss.Ts["@End"]);}}_65.timeSlots.bookedSlot={start:_80,end:end};}else{if(!_65.infoTable.isHost){jQuery.tungleGlobals.spaceHasCommonTimes=jQuery.meetingParser.getCommonTimes(_65.infoTable.availability.slice(1)).length>0;}}if(_65.timeSlots.unsortedDates.length==0&&_65.pageStatus!="Expired"&&_65.pageStatus!="Cancelled"&&_65.pageExtStatus!="oNMST"){_65.pageStatus="Expired";}_65.infoTable.commentCount=_65.commentList.unsortedComments.length;var _82=new Array();while(_65.commentList.unsortedComments.length>0){var _7f=0;for(var i=0;i<_82.length;i++){if(_65.commentList.unsortedComments[0].date.getTime()<_82[i].date.getTime()){_7f=i;break;}else{_7f=i+1;}}_82.splice(_7f,0,_65.commentList.unsortedComments[0]);_65.commentList.unsortedComments.splice(0,1);}_65.commentList.unsortedComments=_82;var _83=0;var i=0;while(i<_65.commentList.unsortedComments.length){var _7c=_65.commentList.unsortedComments[i].comment;_65.infoTable.initComment.push({name:_65.commentList.unsortedComments[i].name,date:_65.commentList.unsortedComments[i].date,comment:_7c});_83++;i++;}function storeTimeSlots(_84,_85,_86){var _87=_84.length;if(_87){for(var j=0;j<_87;j++){jQuery.apiParser.processTimeSlot(_84[j],_85,_65.pageStatus,_86);}}else{jQuery.apiParser.processTimeSlot(_84,_85,_65.pageStatus,_86);}}return "";}};})(jQuery);(function($){$.mwmCoordinator={cache:{mwmData:new Array(),requestList:new Array()},updateMWMProfile:function(_2,_3){var _4=true;for(var i=0;i<$.mwmCoordinator.cache.mwmData.length;i++){if($.mwmCoordinator.cache.mwmData[i].pid==_2){_4=true;$.mwmCoordinator.cache.mwmData[i].mwmData=$.extend(true,$.mwmCoordinator.cache.mwmData[i].mwmData,_3);break;}}if(!_4){var _6=$.extend(true,{},_3);$.mwmCoordinator.cache.mwmData.push({pid:_2,mwmData:_6});}},findMwmProfile:function(_7,_8,_9){for(var i=0;i<$.mwmCoordinator.cache.mwmData.length;i++){if($.mwmCoordinator.cache.mwmData[i].pid==_7||$.mwmCoordinator.cache.mwmData[i].mwmData.tid==_8||$.mwmCoordinator.cache.mwmData[i].mwmData.email==_9){return $.mwmCoordinator.cache.mwmData[i];}}},getMwmProfiles:function(_b,_c,_d,_e){var _f=new Array();var _10=new Array();for(var k=0;k<_b.length;k++){var pid=_b[k];var _13=false;for(var i=0;i<$.mwmCoordinator.cache.mwmData.length;i++){if($.mwmCoordinator.cache.mwmData[i].pid==pid){_13=true;_f.push($.mwmCoordinator.cache.mwmData[i]);break;}}if(!_13){_10.push(pid);}}if(_10&&!_d){for(var k=0;k<_b.length;k++){for(var i=0;i<$.mwmCoordinator.cache.requestList.length;i++){if($.mwmCoordinator.cache.requestList[i]==_10[k]){_10.splice(k,1);k--;break;}}}$.mwmCoordinator.cache.requestList=$.mwmCoordinator.cache.requestList.concat(_10);if(_10.length>0){jQuery.serviceHelper.TungleMeGet("Profile",_10,function(_15,_16){$.mwmCoordinator.ajax_parseMWMDataToCache(_15,_16);},$.mwmCoordinator.callbackAjax_Error,_c,_e);}}return _f;},ajax_parseMWMDataToCache:function(_17,_18){if(!jQuery.ajaxHelper.isSuccessJSON(_17)){$.mwmCoordinator.callbackAjax_Error(_17.TRes.Code?_17.TRes.Code.$:null);return false;}var _19={};jQuery.mwmCoordinator.parseMWMData(_17.TRes.Settings,_19);for(var k=0;k<_19.mwmData.length;k++){var _1b=false;for(var i=0;i<$.mwmCoordinator.cache.mwmData.length;i++){if($.mwmCoordinator.cache.mwmData[i].pid==_19.mwmData[k].pid){_1b=true;break;}}if(!_1b){$.mwmCoordinator.cache.mwmData.push(_19.mwmData[k]);}for(var i=0;i<$.mwmCoordinator.cache.requestList.length;i++){if($.mwmCoordinator.cache.requestList[i]==_19.mwmData[k].pid){$.mwmCoordinator.cache.requestList.splice(i,1);break;}}}_18&&_18(_19.mwmData);},createMWMProfileXML:function(_1d,_1e){var XML="";var _20=true;if(_1d.mwmData[0]!=null){XML+="<Profile>";if(_1d.mwmData[0].mwmData.title[0]!=""){XML+="<FirstName><![CDATA["+_1d.mwmData[0].mwmData.title[0].xss()+"]]></FirstName>";_20=false;}if(_1d.mwmData[0].mwmData.title[1]!=""){XML+="<LastName><![CDATA["+_1d.mwmData[0].mwmData.title[1].xss()+"]]></LastName>";_20=false;}if(_1d.mwmData[0].mwmData.title[2]!=""){XML+="<Position><![CDATA["+_1d.mwmData[0].mwmData.title[2].xss()+"]]></Position>";_20=false;}if(_1d.mwmData[0].mwmData.title[3]!=""){XML+="<Company><![CDATA["+_1d.mwmData[0].mwmData.title[3].xss()+"]]></Company>";_20=false;}if(_1d.mwmData[0].mwmData.img!=""){XML+="<Image>true</Image>";_20=false;}if(_1d.duration&&_1d.duration.val1&&_1d.duration.val2){XML+="<MeetingLength Min=\""+(_1d.duration.val1)+"\" Max=\""+(_1d.duration.val2)+"\" />";}if(_1d.mwmData[0].mwmData.offset!=""){XML+="<BufferInMinutes>"+_1d.mwmData[0].mwmData.offset+"</BufferInMinutes>";}if(_1d.mwmData[0].mwmData.minpropose!=""){XML+="<MinProposeTimes>"+_1d.mwmData[0].mwmData.minpropose+"</MinProposeTimes>";}var _21="<Details>";for(var i=0;i<_1d.mwmData[0].mwmData.pref.length;i++){if(_1d.mwmData[0].mwmData.pref[i].val!=""){_21+="<Detail Type=\""+_1d.mwmData[0].mwmData.pref[i].type+"\"><![CDATA["+_1d.mwmData[0].mwmData.pref[i].val.xss()+"]]></Detail>";_20=false;}}XML+=(_21=="<Details>"?"":_21+"</Details>");if(_1d.mwmData[0].mwmData.note!=""){XML+="<Message><![CDATA["+_1d.mwmData[0].mwmData.note.xss()+"]]></Message>";_20=false;}var _23="<PublicLinks>";var _24=[];var _25=0;for(var i=0;i<_1d.mwmData[0].mwmData.ico.length;i++){if(_1d.mwmData[0].mwmData.ico[i].val&&_1d.mwmData[0].mwmData.ico[i].val.length>0){_24[(_1d.mwmData[0].mwmData.ico[i].order?_1d.mwmData[0].mwmData.ico[i].order:_25++)]="<PublicLink Type=\""+_1d.mwmData[0].mwmData.ico[i].type+"\"><![CDATA["+_1d.mwmData[0].mwmData.ico[i].val.xss()+"]]></PublicLink>";_20=false;}}for(var j=0;j<_1d.mwmData[0].mwmData.ico.length;j++){if(_24[j]){_23+=_24[j];}}XML+=(_23=="<PublicLinks>"?"":_23+"</PublicLinks>");XML+="</Profile>";}if(_1e){return _20;}else{return XML;}},createMWMSettingXML:function(_27){var _28=_27.mwmData[0].mwmData.enabled;XML="<TReq Type=\"TungleMe.Set\"><Settings Enabled=\""+_27.mwmData[0].mwmData.enabled+"\" ID=\""+jQuery.tungleGlobals.user.publicID+"\">";XML+=jQuery.mwmCoordinator.createMWMProfileXML(_27,false);if(_28&&_27.exceptionSlots){XML+="<Exceptions>";for(var i=0;i<_27.exceptionSlots.length;i++){for(var k=0;k<_27.exceptionSlots[i].timeSlots.length;k++){var _2b=_27.exceptionSlots[i].timeSlots[k];var _2c=_2b.type=="A"?"Add":"Remove";var _2d=jQuery.meetingParser.setStartSlot(_2b.start,_2b.end);XML+="<Ts Start=\""+_2d.startSlot+"\" End=\""+_2d.endSlot+"\" Type=\""+_2c+"\"/>";}}XML+="</Exceptions>";}if(_28&&_27.selectedSlots!=null&&_27.selectedSlots[0]&&_27.selectedSlots[0].timeSlots){XML+="<Availability>";jQuery.meetingParser.sortSelectedSlots(_27);var day=-1;for(var i=0;i<_27.selectedSlots[0].timeSlots.length;i++){var _2f=_27.selectedSlots[0].timeSlots[i].start.getDay()+1;var _30=Math.ceil((_27.selectedSlots[0].timeSlots[i].end.getTime()-_27.selectedSlots[0].timeSlots[i].start.getTime())/60000);if(day!=_2f){if(day!=-1){XML+="</Day>";}XML+="<Day DayOfWeek=\""+_2f+"\">";day=_2f;}XML+="<Slot Start=\""+_27.selectedSlots[0].timeSlots[i].start.format("HH:mm")+"\" Duration=\""+_30+"\" />";}XML+="</Day></Availability>";}XML+="</Settings></TReq>";return XML;},parseMWMDaySlots:function(_31,day,_33){var _34=new Array();if(_31.length){for(var i=0;i<_31.length;i++){_34=_34.concat(jQuery.mwmCoordinator.parseMWMSlot(_31[i],day,_33));}}else{_34=_34.concat(jQuery.mwmCoordinator.parseMWMSlot(_31,day,_33));}return _34;},parseMWMSlot:function(_36,day,_38){var _39=new Array();var _3a=new Date(_38.getTime());_3a.setDate(_3a.getDate()+(day-1));var _3b=_36["@Start"].split(":");_3a.setHours(parseInt(_3b[0],10),parseInt(_3b[1],10));var end=new Date(_3a.getTime());var dur=_36["@Duration"];end.setMinutes(end.getMinutes()+parseInt(dur,10));if(_3a.getDate()!=end.getDate()){while(_3a.format("MMddyy")!=end.format("MMddyy")&&_3a.getTime()<=end.getTime()){var _3e=new Date(_3a);_3e.setHours(23,59,59);_39[_39.length]={start:new Date(_3a),end:_3e};_3a.setDate(_3a.getDate()+1);_3a.setHours(0,0,0);if(_3a.format("MMddyy")===end.format("MMddyy")){var _3f=new Date(end);_3f.setHours(0,0,0);if(_3f.getTime()!=end.getTime()){_39[_39.length]={start:_3f,end:end};}}}}else{_39[_39.length]={start:_3a,end:end};}return _39;},parseMWMData:function(_40,_41){if(!_40){return false;}if(_41){_41.mwmData=new Array();}if(_40.length){for(var i=0;i<_40.length;i++){var _43=_40[i]["@ID"];var _44=jQuery.mwmCoordinator.parseProfile(_40[i],_43,_40[i]["@TID"]);_44.enabled=_40[i]["@Enabled"]=="true";_44.indexable=_40[i]["@Indexed"]=="true";if(_41){_41.mwmData.push({pid:_43,mwmData:_44});}}}else{var _44=jQuery.mwmCoordinator.parseProfile(_40,_40["@ID"],_40["@TID"]);_44.enabled=_40["@Enabled"]=="true";_44.indexable=_40["@Indexed"]=="true";if(_41){_41.mwmData.push({pid:_40["@ID"],mwmData:_44});if(_40.Profile&&_41.duration){_41.duration.val1=_40.Profile.MeetingLength?(parseInt(_40.Profile.MeetingLength["@Min"],10)):30;_41.duration.val2=_40.Profile.MeetingLength?(parseInt(_40.Profile.MeetingLength["@Max"],10)):jQuery.tungleGlobals.maxDuration;_41.duration.min=_41.duration.val1;}}if(_40.Availability&&_41&&_41.selectedSlots){if(!_40.Availability.Day){alert("Error: we should have template timeslots");return false;}var _45=new Date();_45.setDate(_45.getDate()-_45.getDay());_45.setHours(0,0,0,0);if(!_41.selectedSlots[0]){_41.selectedSlots=[{week:_45,timeSlots:new Array()}];}if(_40.Availability.Day.length){for(var i=0;i<_40.Availability.Day.length;i++){_41.selectedSlots[0].timeSlots=_41.selectedSlots[0].timeSlots.concat(jQuery.mwmCoordinator.parseMWMDaySlots(_40.Availability.Day[i].Slot,parseInt(_40.Availability.Day[i]["@DayOfWeek"],10),_45));}}else{_41.selectedSlots[0].timeSlots=_41.selectedSlots[0].timeSlots.concat(jQuery.mwmCoordinator.parseMWMDaySlots(_40.Availability.Day.Slot,parseInt(_40.Availability.Day["@DayOfWeek"],10),_45));}}if(_40.Exceptions&&_40.Exceptions.Ts&&_41&&_41.exceptionSlots){var _46=new Array();if(_40.Exceptions.Ts.length){for(var i=0;i<_40.Exceptions.Ts.length;i++){var _47=_40.Exceptions.Ts[i]["@Type"]=="Add"?"A":"X";jQuery.apiParser.processTimeSlot(_40.Exceptions.Ts[i],_46,null,null,_47);}}else{var _47=_40.Exceptions.Ts["@Type"]=="Add"?"A":"X";jQuery.apiParser.processTimeSlot(_40.Exceptions.Ts,_46,null,null,_47);}for(var i=0;i<_46.length;i++){jQuery.meetingParser.addRemoveTimeSlot(_46[i],true,_41.exceptionSlots);}}}},parseProfile:function(_48,_49,tid){var _4b={img:"",tid:tid,title:jQuery.defaultBuilder.buildEmptyTitle(),pref:jQuery.defaultBuilder.buildDefaultPreferences(),ico:jQuery.defaultBuilder.buildSocialIcons(),note:"",email:_49,offset:0,minpropose:2,minDuration:15,maxDuration:600,partial:false};if(_48.Profile){var _4c=_49?"/public/"+_49+"/Image":"/public/$TOKEN$/Image";_4b.img=_48.Profile.Image&&_48.Profile.Image.$=="true"?_4c:"";_4b.title[0]=_48.Profile.FirstName?_48.Profile.FirstName.$:"";_4b.title[1]=_48.Profile.LastName?_48.Profile.LastName.$:"";_4b.title[2]=_48.Profile.Position?_48.Profile.Position.$+"":"";_4b.title[3]=_48.Profile.Company?_48.Profile.Company.$+"":"";if(_48.Profile.Details&&_48.Profile.Details.Detail){if(_48.Profile.Details.Detail.length){for(var i=0;i<_48.Profile.Details.Detail.length;i++){_4b.pref[i]={type:_48.Profile.Details.Detail[i]["@Type"],val:_48.Profile.Details.Detail[i].$+""};}}else{_4b.pref[0]={type:_48.Profile.Details.Detail["@Type"],val:_48.Profile.Details.Detail.$+""};}}if(_48.Profile.BufferInMinutes){_4b.offset=parseInt(_48.Profile.BufferInMinutes.$,10);}if(_48.Profile.MinProposeTimes){_4b.minpropose=parseInt(_48.Profile.MinProposeTimes.$,10);}if(_48.Profile.MeetingLength){_4b.minDuration=parseInt(_48.Profile.MeetingLength["@Min"],10);_4b.maxDuration=parseInt(_48.Profile.MeetingLength["@Max"],10);}else{_4b.partial=true;}if(_48.Profile.PublicLinks&&_48.Profile.PublicLinks.PublicLink){if(_48.Profile.PublicLinks.PublicLink.length){for(var j=0;j<_48.Profile.PublicLinks.PublicLink.length;j++){for(var i=0;i<_4b.ico.length;i++){if(_4b.ico[i].type==_48.Profile.PublicLinks.PublicLink[j]["@Type"]){_4b.ico[i]={type:_48.Profile.PublicLinks.PublicLink[j]["@Type"],val:_48.Profile.PublicLinks.PublicLink[j].$+"",order:j};break;}}}}else{for(var i=0;i<_4b.ico.length;i++){if(_4b.ico[i].type==_48.Profile.PublicLinks.PublicLink["@Type"]){_4b.ico[i]={type:_48.Profile.PublicLinks.PublicLink["@Type"],val:_48.Profile.PublicLinks.PublicLink.$+"",order:0};break;}}}}_4b.note=_48.Profile.Message?_48.Profile.Message.$+"":"";_4b.retrievedFrom=(_48.Profile.RetrievedFrom&&_48.Profile.RetrievedFrom.$.split(/\s*and\s*/))||[];}return _4b;},callbackAjax_Error:function(_4f){var _50="";switch(_4f){case "LINK_DISABLED":case "NOT_FOUND":return false;break;case "INVALID_CODE":case "INVALID_REQUEST":default:_50="Unknown Tungle.me Profile Error.";}jQuery.ajaxHelper.popUpAlert(_50);}};})(jQuery);(function($){$.googleLocalSearch=function(_2,_3){var _4={width:480,trigger:false,hints:{search:"Enter name/type",near:"Enter province/state, city"},summonerId:null};var _5=false;var _6=false;var _7=false;var _8=new Object();var _9={domLocation:".details_location"};var _a={googleSearch:"#google-search",searchBTN:"#search_location"};var _b;var _c;var _d;var _e;var _f;_b=function(){if(!_7){_e();_7=true;}var _10=$(_a.googleSearch);_10.find(".results").hide();_10.find(".instructions").text("Please type in search terms.").show();_10.find("div.settings").hide();_10.find(".near_box").trigger("value",[""]);_10.find(".search_box").trigger("value",[""]);_10.jqmResize(null,200).jqmShow();};_e=function(){_8.localSearch=new google.search.LocalSearch();_8.localSearch.setNoHtmlGeneration();_8.localSearch.setAddressLookupMode(GSearch.ADDRESS_LOOKUP_DISABLED);_8.localSearch.setResultSetSize(GSearch.LARGE_RESULTSET);_8.localSearch.setSearchCompleteCallback(null,_f);};_f=function(){setTimeout(function(){_5=false;},2000);var _11=$(_a.googleSearch);var _12=_8.localSearch.results.length;if(_12==0){_11.find(".instructions").text("No results found.");_11.find(".results").hide();_11.jqmResize(null,200);return false;}else{_11.find(".instructions").hide();}_4.pageCount=0;_4.cursor=0;var _13=0;var _14="<div class=\"search_page "+_13+"\">";var _15=0;for(var i=0;i<_12;i++){_13=parseInt(i/4);if(_15!==_13){if(_13>0){_14+="</div>";}_14+="<div class=\"search_page "+_13+"\" style=\"display:none;\">";_15=_13;}var _17=_8.localSearch.results[i].title;var _18=_8.localSearch.results[i].titleNoFormatting;var _19=_8.localSearch.results[i].streetAddress;var _1a=_8.localSearch.results[i].city;var _1b=_8.localSearch.results[i].region;var _1c=_8.localSearch.results[i].country;var _1d=_8.localSearch.results[i].phoneNumbers?_8.localSearch.results[i].phoneNumbers[0].number:"";var _1e=_8.localSearch.results[i].url;var _1f=_18+" - "+_19+", "+_1a+", "+_1b;var _20="<div title=\""+_1f+"\" id=\"gs-result-"+i+"\" class=\"gs-localResult gs-result\">";_20+="<a class=\"gs-btn link\" href=\"javascript:void(0);\">Select</a>";_20+="<div class=\"gs-title text-overflow\">"+_17+"</div>";_20+="<div class=\"gs-address text-overflow\">"+_19+" ,"+_1a+" ,"+_1b+" ,"+_1c+"</div>";_20+="<div class=\"gs-phone text-overflow\">"+_1d+" <a class=\"gs-map\" href=\""+_1e+"\" target=\"_blank\">Map</a></div>";_20+="</div>";_14+=_20;}_14+="</div>";_11.find(".results").html(_14).show();_11.jqmResize(null,220+70*4);if(_13>0){$("#search_next").removeClass("hint");$("#search_prev").addClass("hint");_11.find("div.settings").show();}else{_11.find("div.settings").hide();}_4.pageCount=_13;};_d=function(){google.load("search","1",{"callback":function(){GSearch.getBranding("branding");}});};_c=function(_21){$.extend(_4,_21);if(_6){return false;}var _22="ABQIAAAAuE0HpMmvjb-VTiY_0Mm-0xTwM0brOpm-All5BF6PoaKBxRWWERRn3lbwWlyle837RfT0q2RcBgT7jQ";var _23=window.location.toString();if(_23.indexOf("localhost")>-1){_22="ABQIAAAAuE0HpMmvjb-VTiY_0Mm-0xTwM0brOpm-All5BF6PoaKBxRWWERRn3lbwWlyle837RfT0q2RcBgT7jQ";}else{if(_23.indexOf("www.tungle.me")>-1){_22="ABQIAAAAuE0HpMmvjb-VTiY_0Mm-0xSAIh8Lkg3G9RPE4SjE4WbWGOlBORSPDnUb_UkhWmnuapoQ9xuOGMS6ZA";}}var _24=document.getElementsByTagName("head")[0];var _25=document.createElement("script");_25.type="text/javascript";_25.src="https://www.google.com/jsapi?key="+_22+"&callback=$.googleLocalSearch._loadGoogleSearch";_24.appendChild(_25);$(_a.googleSearch).jqm({overlay:30,height:200,width:_4.width,modal:true,zIndex:5000,fixedHeight:false}).find(_a.searchBTN).click(function(){if(_5){return false;}_5=true;var _26=$(_a.googleSearch);_8.localSearch.setCenterPoint(_26.find(".near_box").triggerHandler("value"));_8.localSearch.execute(_26.find(".search_box").triggerHandler("value"));return false;});var _27=$(_a.googleSearch);_27.find("input:text").DefaultText().keypress(function(e){if(e.which==13){var _29=$(_a.googleSearch);$(_a.searchBTN).focus().click();_29.find(".search_box").focus();}});_27.find(".results").click(function(e){var cls=$(e.target);if(cls.hasClass("gs-btn")||cls.hasClass("gs-title")){var _2c=cls.parentHasClass("gs-localResult",2).attr("title");if(_4.trigger){$(_4.summonerId).find(_9.domLocation).trigger("value",[_2c]).focus();}else{$(_4.summonerId).find(_9.domLocation).val(_2c).focus();}$(_a.googleSearch).jqmHide();return false;}});$("#search_next").click(function(){if(_4.cursor==_4.pageCount){return false;}var _2d=$(_a.googleSearch);_2d.find(" ."+_4.cursor).hide();_4.cursor++;_2d.find(" ."+_4.cursor).show();if(_4.cursor==_4.pageCount){$(this).addClass("hint");}$("#search_prev").removeClass("hint");return false;});$("#search_prev").click(function(){if(_4.cursor==0){return;}var _2e=$(_a.googleSearch);_2e.find(" ."+_4.cursor).hide();_4.cursor--;_2e.find("."+_4.cursor).show();if(_4.cursor==0){$(this).addClass("hint");}$("#search_next").removeClass("hint");return false;});_6=true;};return {initialize:function(_2f){_c(_2f);},_loadGoogleSearch:function(){_d();},_searchCustom:function(_30,_31,_32,dom){if(!_7){_e();_7=true;}if(_31){_8.localSearch.setResultSetSize(_31);}if(_32){_8.localSearch.setSearchCompleteCallback(null,function(){_32(_8.localSearch.results,dom);_8.localSearch.setSearchCompleteCallback(null,_f);_8.localSearch.setResultSetSize(GSearch.LARGE_RESULTSET);});}_8.localSearch.setCenterPoint("");_8.localSearch.execute(_30);},_showPopup:function(id){_4.summonerId=id;_b();}};}();})(jQuery);var getSatisfactionWidget=false;function initGetSatisfactionWidget(){if(!getSatisfactionWidget){getSatisfactionWidget=true;$("body").append("<div id=\"gstfcwdg\"></div>");setTimeout(function(){var _1=("https:"==document.location.protocol);var _2=_1?"https://s3.amazonaws.com/getsatisfaction.com/":"http://s3.amazonaws.com/getsatisfaction.com/";$.getScript(_2+"javascripts/feedback-v2.js",function(){var _3={};_3.display="overlay";_3.container="gstfcwdg";_3.company="tungle";_3.placement="right";_3.color="#98c537";_3.style="idea";if(GSFN){GSFN.feedback_widget.prototype.local_base_url="http://www.getsatisfaction.com";GSFN.feedback_widget.prototype.local_ssl_base_url="https://www.getsatisfaction.com";var _4=new GSFN.feedback_widget(_3);}});},100);}}$.fn.WebExCheckbox=function(_1){var _2={IntegrationSource:null,wizardId:""};var _3={chk:".webex",par:".webexMeet",loc:".details_location",srch:".find_location",pass:".webexPass input[type=text]",actualPass:".webexPass input[type=password]"};var _4=false;var _5={};function setPassword(_6){_2.IntegrationSource.password=_6;}function passwordBlur(){var t=$(_2.wizardId).find(_3.actualPass);setPassword(t.val());if(t.val().isEmpty()){t.hide().prev().show();}}function initWebEx(_8){var _9=$(_2.wizardId);if(_8&&_8.init){_2.IntegrationSource={init:false,name:"WebEx",id:_8.id};if(_5.webexBehaviours){_9.find(_3.actualPass).val("").blur();_9.find(_3.pass).parent().hide();_9.find(_3.chk).attr("checked","").parent().show();_9.find(_3.loc).removeAttr("disabled");_9.find(_3.srch).show();return false;}else{_9.find(_3.pass).DefaultText();_9.find(_3.actualPass).blur(passwordBlur);}_5.webexBehaviours=true;_9.find(_3.chk).unbind("change").change(function(){var _a=$(_2.wizardId);var _b=$(this).attr("checked");if(_b){_2.IntegrationSource.init=true;_a.find(_3.loc).trigger("value",[jQuery.langStrings.partnerText.WebEx.meeting]).attr("disabled","disabled");_a.find(_3.srch).hide();_9.find(_3.actualPass).val("").blur();_9.find(_3.pass).parent().show();}else{_2.IntegrationSource.init=false;_a.find(_3.loc).trigger("value",[""]).removeAttr("disabled");_a.find(_3.srch).show();_9.find(_3.pass).parent().hide();}_a.find(_3.chk).attr("checked",_b);}).parent().show();}else{_2.IntegrationSource=null;_9.find(_3.pass).parent().hide();_9.find(_3.par).hide();_9.find(_3.loc).removeAttr("disabled");_9.find(_3.srch).show();}}function getWebex(_c){if(jQuery.integrationCache&&jQuery.tungleGlobals.featureArray[3]==="1"){var _d=jQuery.integrationCache.retrieveSources("WebEx",initWebEx,_c);if(_d){initWebEx(_d);}}}return this.each(function(){_2=$.extend(_2,_1);initialized=true;getWebex();$(this).bind("resetWebEx",function(e,_f){getWebex(_f);}).bind("getValue",function(e){return _2.IntegrationSource;}).bind("resetValue",function(e,_12){if(initialized){var _13=$(_2.wizardId);if(_12&&_12.init){_13.find(_3.chk).attr("checked","checked").parent().show();_13.find(_3.loc).attr("disabled","disabled");_13.find(_3.srch).hide();_2.IntegrationSource={init:true,name:_12.name,id:_12.id,password:_12.password};var _14=_12.password||"";if(_14){_13.find(_3.pass).hide();}_13.find(_3.pass).parent().show();_13.find(_3.actualPass).val(_14).show();passwordBlur();}else{if(_2.IntegrationSource){_13.find(_3.chk).attr("checked","").parent().show();_13.find(_3.loc).removeAttr("disabled");_13.find(_3.srch).show();_2.IntegrationSource.init=false;}}}}).bind("clearWebEx",function(e){initWebEx();});});};jQuery.weeklyCalendarInterface={myId:"wA",myMcalId:"mZ",timeLineId:"timeline",currentUserID:-1,calendarScrollPosList:new Array(),calHeight:960,callbacks:{},initialized:false,showCalendar:function(_1,_2,_3,_4,_5){var _6=jQuery.weeklyCalendarInterface;if(_6.initialized&&_6.currentUserID===_3){return false;}_6.callbacks=_2;if(!_6.initialized){_6.calHeight=Math.min(Math.max(screen.height-500,350),960);_1.calHeight=_6.calHeight;$("#"+_6.myId).weeklyCalendar(_1,{returnSpace:_6.returnSpace,retrieveSpaces:_6.retrieveSpaces,getValidSlots:_6.getValidSlots,highlightSlot:_6.highlightSlot,setNewDate:_6.setNewDate,setWeekLength:_6.setWeekLength,clearAllMeetings:_6.clearAllMeetings,openWizard:_6.openWizard,getMeetings:_6.getMeetings,getUserAvailability:_6.getUserAvailability,getAllUserAvailability:_6.getAllUserAvailability}).find("div.containter").scrollTop((960-_6.calHeight)/2);$("#"+_6.myMcalId).monthlyCalendar({constantDisplay:true,defaultNumCalendars:1,clickHandler:_6.callback_MCalSelectDate,calendarId:_6.myMcalId});if($.fn.PublicEventsTimeline){$("#"+_6.timeLineId).PublicEventsTimeline({tidList:_5,defaultDate:_4,selectDate:_6.callback_PTimeline});}_6.initialized=true;}else{var _7=$("#"+_6.myId);if(_6.currentUserID>0){_6.calendarScrollPosList[_6.currentUserID]=_7.find("div.container").scrollTop();}_7.trigger("resetCalendar",[_4,null,_1]);_6.rescrollCalendar();$("#"+_6.myMcalId).trigger("resetHighLights",[new Array()]);$("#"+_6.timeLineId).trigger("selectWeek",[_4]).trigger("resetList",[_5]);}_6.currentUserID=_3;},rememberCalScroll:function(){var _8=jQuery.weeklyCalendarInterface;if(_8.currentUserID>0){_8.calendarScrollPosList[_8.currentUserID]=$("#"+_8.myId).find("div.container").scrollTop();}},rescrollCalendar:function(){var _9=jQuery.weeklyCalendarInterface;if(_9.calendarScrollPosList[_9.currentUserID]!==undefined){var _a=$("#"+_9.myId);if(!_a.triggerHandler("setCalTop")){clearTimeout(_9.scrollTimeout);_9.scrollTimeout=setTimeout(function(){$("#"+_9.myId).find("div.container").scrollTop(_9.calendarScrollPosList[_9.currentUserID]);},150);}}},triggerTimeline:function(_b,_c,_d){var _e=jQuery.weeklyCalendarInterface;if(_e.initialized&&_e.currentUserID===_d){$("#"+_e.timeLineId).trigger(_b,_c);}},triggerCalendar:function(_f,_10,_11){var _12=jQuery.weeklyCalendarInterface;if(_12.initialized&&_12.currentUserID===_11){$("#"+_12.myId).trigger(_f,_10);}},triggerMCalendar:function(_13,_14,_15){var _16=jQuery.weeklyCalendarInterface;if(_16.initialized&&_16.currentUserID===_15){$("#"+_16.myMcalId).trigger(_13,_14);}},callback_PTimeline:function(_17){if(jQuery.weeklyCalendarInterface.callbacks.callback_PTimeline){return jQuery.weeklyCalendarInterface.callbacks.callback_PTimeline(_17);}},callback_MCalSelectDate:function(_18){if(jQuery.weeklyCalendarInterface.callbacks.callback_MCalSelectDate){return jQuery.weeklyCalendarInterface.callbacks.callback_MCalSelectDate(_18);}},getAllUserAvailability:function(){if(jQuery.weeklyCalendarInterface.callbacks.getAllUserAvailability){return jQuery.weeklyCalendarInterface.callbacks.getAllUserAvailability();}},returnSpace:function(_19,add,i,j,_1d){if(jQuery.weeklyCalendarInterface.callbacks.returnSpace){return jQuery.weeklyCalendarInterface.callbacks.returnSpace(_19,add,i,j,_1d);}},retrieveSpaces:function(_1e,_1f,_20){if(jQuery.weeklyCalendarInterface.callbacks.retrieveSpaces){return jQuery.weeklyCalendarInterface.callbacks.retrieveSpaces(_1e,_1f,_20);}},getValidSlots:function(_21,_22,_23){if(jQuery.weeklyCalendarInterface.callbacks.getValidSlots){return jQuery.weeklyCalendarInterface.callbacks.getValidSlots(_21,_22,_23);}},highlightSlot:function(_24,add,_26){if(jQuery.weeklyCalendarInterface.callbacks.highlightSlot){return jQuery.weeklyCalendarInterface.callbacks.highlightSlot(_24,add,_26);}},setNewDate:function(_27){if(jQuery.weeklyCalendarInterface.callbacks.setNewDate){return jQuery.weeklyCalendarInterface.callbacks.setNewDate(_27);}},setWeekLength:function(_28){if(jQuery.weeklyCalendarInterface.callbacks.callback_WCalSwitchDayNum){return jQuery.weeklyCalendarInterface.callbacks.setWeekLength(_28);}},clearAllMeetings:function(){if(jQuery.weeklyCalendarInterface.callbacks.clearAllMeetings){return jQuery.weeklyCalendarInterface.callbacks.clearAllMeetings();}},openWizard:function(_29){if(jQuery.weeklyCalendarInterface.callbacks.openWizard){return jQuery.weeklyCalendarInterface.callbacks.openWizard(_29);}},getMeetings:function(_2a,_2b,_2c){if(jQuery.weeklyCalendarInterface.callbacks.getMeetings){return jQuery.weeklyCalendarInterface.callbacks.getMeetings(_2a,_2b,_2c);}},getUserAvailability:function(_2d,_2e,_2f){if(jQuery.weeklyCalendarInterface.callbacks.getUserAvailability){return jQuery.weeklyCalendarInterface.callbacks.getUserAvailability(_2d,_2e,_2f);}}};(function($){$.contactCoordinator={idsAndClasses:{liClass:"contact",liClass_selected:"contact-selected"},UserIdentType:{email:"Email",publicId:"PublicID"},constructContactRequest:function(_2,_3,_4,_5,_6,_7,_8){var _9="";_2=_2==undefined?"Type=\"All\"":"Type=\""+_2+"\"";_9+="<Query "+_2+">";if(_3){if(_8==="DirectorySearchJSON"){_9+="<Words Operator=\"and\"><![CDATA["+_3+"]]></Words>";}else{_9+="<NameFilter Strict=\""+_3.type+"\"><![CDATA["+_3.string+"]]></NameFilter>";}}if(_4){_9+="<SortBy>"+_4+"</SortBy>";}if(_5){_9+="<Paging>"+_5.from+"-"+_5.to+"</Paging>";}if(_6){_9+="<ExcludeByStatus>"+_6+"</ExcludeByStatus>";}if(_7){_9+="<ExcludeByID>"+_7+"</ExcludeByID>";}_9+="</Query>";return _9;},requestContacts:function(_a,_b,_c,_d,_e,_f,_10,_11,_12,tm,_14,_15){var _12=_12==undefined?"QueryContactsJSON":_12;var _16=$.contactCoordinator.constructContactRequest(_a,_b,_c,_d,_e,_f,_12);return jQuery.ajaxHelper.sendAjaxPostRequest(_12,_16,$.contactCoordinator.callbackAjax_Contacts,$.contactCoordinator.callbackAjax_Error,{contactCallBack:_10,errorCallback:_11,option:_14},tm==undefined?null:tm,_15);},parse_ContactJSON:function(_17){var _18=null;var _19=null;var _1a=false;var _1b=_17.FullName==undefined?_18:_17.FullName.$.xss();var _1c=$.contactCoordinator.UserIdentType.email;if(_17.Email){_18=_17.Email.Pri.$;_19=null;if(_17.Email.Alts){_19=new Array();if(_17.Email.Alts.Alt.length){for(var i=0;i<_17.Email.Alts.Alt.length;i++){_19.push(_17.Email.Alts.Alt[i].$);}}else{_19.push(_17.Email.Alts.Alt.$);}}_1b=(_1b!=null&&_1b.trim().length>0)?_1b:_18;}if(_17.UserID){_18=_17.UserID.$;if(_17.UserID["@Type"]=="PublicID"){_1c=$.contactCoordinator.UserIdentType.publicId;_1a=(_17.UserID["@Enabled"]&&_17.UserID["@Enabled"]=="false")?false:true;}if(_17.Email){var _1e=_17.Email.Pri.$;if(_19){_19.push(_1e);}else{_19=[_1e];}}}var tId=_17["@TID"]==undefined?null:_17["@TID"];var id=_17["@ID"]==undefined?null:_17["@ID"];var _21=(_17["@Status"]==undefined?"00":_17["@Status"]);var _22=_17["@Type"]!=undefined&&_17["@Type"].toLowerCase()=="group";var _23=null;if(_17.Profile){_23=jQuery.mwmCoordinator.parseProfile(_17,_18);}return $.contactCoordinator.createContactObject(id,tId,_1b,_21,_18,_19,_1c,_1a,_23,_22);},createContactObject:function(id,tId,_26,_27,_28,_29,_2a,_2b,_2c,_2d){return {id:id,tid:tId,name:_26,sharing:_27!=null&&_27!=="00",status:_27,email:_28,secEmail:_29,type:(_2a==undefined?$.contactCoordinator.UserIdentType.email:_2a),avEn:_2b,mwmData:_2c,isGroup:_2d};},parseContactsJSON:function(_2e){var _2f=new Array();if(_2e.Contact){if(_2e.Contact.length){for(var i=0;i<_2e.Contact.length;i++){_2f.push($.contactCoordinator.parse_ContactJSON(_2e.Contact[i]));}}else{_2f.push($.contactCoordinator.parse_ContactJSON(_2e.Contact));}}return _2f;},parsePeopleJSON:function(_31){var _32=new Array();if(_31.Persona){if(_31.Persona.length){for(var i=0;i<_31.Persona.length;i++){_32.push($.contactCoordinator.parse_ContactJSON(_31.Persona[i]));}}else{_32.push($.contactCoordinator.parse_ContactJSON(_31.Persona));}}return _32;},getSharingTooltip:function(_34,_35){var _36="";switch(_35){case "12":_36="You are sharing Meeting Details, "+_34+" is sharing Free/Busy";break;case "22":_36="You are both sharing Meeting Details";break;case "11":_36="You are both sharing Free/Busy";break;case "21":_36="You are sharing Free/Busy, "+_34+" is sharing Meeting Details";break;case "00":_36="";break;}return _36;},drawContactEntry:function(_37,_38,_39){var _3a=$.contactCoordinator.idsAndClasses.liClass;var _3b="";if(_39){_3a+=" "+$.contactCoordinator.idsAndClasses.liClass_selected;if(_39.color){_37.color=_39.color;_3b="style=\"background-color: "+_39.color+";\"";}}var _3c="";var _3d=_37.email;if(_37.type===$.contactCoordinator.UserIdentType.publicId){_3d="tungle.me/"+_3d;}else{if(_37.isGroup){_3d="Tungle Group";}}var _3e="<li "+_3b+" class=\""+_3a+"\" id=\""+_38+"-"+(_37.isGroup?"g-":"")+_37.id+"\"";_3e+=" data-type=\""+(_37.isGroup?"group":"contact")+"\" data-cid=\""+_37.id+"\" >";_3e+=_3c;if(_37.sharing){_3e+="<img width=\"24\" height=\"24\" src=\"images/contacts/share.png\" class=\"cl-img-share\" title=\""+$.contactCoordinator.getSharingTooltip(_37.name,_37.status)+"\"/>";}else{if(_37.isGroup){_3e+="<img width=\"24\" height=\"24\" src=\"images/contacts/group.png\" class=\"cl-img-share\"/>";}}_3e+="<span class=\"contact-name text-overflow\">"+_37.name+"</span><br/><span class=\"contact-pid text-overflow\">"+_3d+"</span></li>";return _3e;},callbackAjax_Contacts:function(_3f,_40){if(jQuery.ajaxHelper.isSuccessJSON(_3f)){var _41=null;var _42=new Array();if(_3f.TRes.Contacts){_41=_3f.TRes.Contacts;_42=_42.concat($.contactCoordinator.parseContactsJSON(_41));}if(_3f.TRes.DirectoryUsers){_41=_3f.TRes.DirectoryUsers;_42=_42.concat($.contactCoordinator.parseContactsJSON(_41));}if(_3f.TRes.Contacts){_41=_3f.TRes.Contacts;_42=_42.concat($.contactCoordinator.parseContactsJSON(_41));}if(!_41){_40.contactCallBack(new Array(),_40.option);return false;}if(_40&&_40.contactCallBack){_40.contactCallBack(_42,_40.option);}else{return _42;}}else{$.contactCoordinator.callbackAjax_Error(_40);}},callbackAjax_Error:function(_43){var _44="Unknown query contacts Error.";if(_43.errorCallback){_43.errorCallback(_43.option);}else{jQuery.ajaxHelper.popUpAlert(_44);}}};})(jQuery);(function($){jQuery.integrationCache={initialized:false,sourceCache:{},retrieveSources:function(_2,_3,_4){if(!jQuery.integrationCache.initialized||_4){jQuery.integrationCache.sourceCache={Foursquare:{},WebEx:{}};var _5={callback:_3,data:{source:_2}};jQuery.integrationCache.initialized=true;jQuery.ajaxHelper.sendAjaxGetRequest("IntegrationSources.GetJSON",jQuery.integrationCache.callbackAjax_Success,jQuery.integrationCache.callbackAjax_Error,_5);return false;}else{if(_2){return jQuery.integrationCache.sourceCache[_2];}else{return jQuery.integrationCache.sourceCache;}}},updateSource:function(_6,_7,_8){var _9={callback:_8,data:_7};if(_6==="Init"){var _a=$.apiParser.syncAPI.initINTSourceXML(_7.source,document.location.href+"/"+_7.source);jQuery.ajaxHelper.sendAjaxPostRequest("IntegrationSources.InitJSON",_a,jQuery.integrationCache.callbackAjax_InitSuccess,jQuery.integrationCache.callbackAjax_Error,_9);}else{if(_6==="Del"&&jQuery.integrationCache.sourceCache[_7.source].id){var _a=$.apiParser.syncAPI.delINTSourceXML(jQuery.integrationCache.sourceCache[_7.source].id);jQuery.ajaxHelper.sendAjaxPostRequest("IntegrationSources.DeleteJSON",_a,jQuery.integrationCache.callbackAjax_DeleteSuccess,jQuery.integrationCache.callbackAjax_Error,_9);}else{if(_6==="Add"){var _a=$.apiParser.syncAPI.addINTSourceXML(_7.user,_7.pass,_7.type,_7.source,_7.uri);jQuery.ajaxHelper.sendAjaxPostRequest("IntegrationSources.AddJSON",_a,jQuery.integrationCache.callbackAjax_Success,jQuery.integrationCache.callbackAjax_Error,_9);}}}},callbackAjax_InitSuccess:function(_b,_c){if(jQuery.ajaxHelper.isSuccessJSON(_b.TRes)){var _d=_b.TRes.Data.StartUrl.$;jQuery.integrationCache.sourceCache[_c.data.source].url=_d.replace("#","%23");if(_c.callback){_c.callback(jQuery.integrationCache.sourceCache[_c.data.source],_c.data);}}else{jQuery.integrationCache.callbackAjax_Error(_c);}},callbackAjax_DeleteSuccess:function(_e,_f){if(jQuery.ajaxHelper.isSuccessJSON(_e.TRes)){jQuery.integrationCache.sourceCache[_f.data.source].id=null;jQuery.integrationCache.sourceCache[_f.data.source].init=false;if(_f.callback){_f.callback(jQuery.integrationCache.sourceCache[_f.data.source],_f.data);}}else{jQuery.integrationCache.callbackAjax_Error(_f);}},callbackAjax_Success:function(_10,_11){if(jQuery.ajaxHelper.isSuccessJSON(_10.TRes)){if(_10.TRes.Source){if(!_10.TRes.Source.length){_10.TRes.Source=new Array(_10.TRes.Source);}for(var i=0;i<_10.TRes.Source.length;i++){var _13=_10.TRes.Source[i]["@Type"];var id=_10.TRes.Source[i]["@ID"];var _15=_10.TRes.Source[i].UserName==undefined?null:_10.TRes.Source[i].UserName.$;var uri=_10.TRes.Source[i].Uri==undefined?null:_10.TRes.Source[i].Uri.$;jQuery.integrationCache.sourceCache[_13].id=id;jQuery.integrationCache.sourceCache[_13].user=_15;jQuery.integrationCache.sourceCache[_13].init=true;jQuery.integrationCache.sourceCache[_13].uri=uri;}}if(_11.callback){if(_11.data.source){_11.callback(jQuery.integrationCache.sourceCache[_11.data.source],_11.data);}else{_11.callback(jQuery.integrationCache.sourceCache,_11.data);}}}else{jQuery.integrationCache.callbackAjax_Error(_11);}},callbackAjax_Error:function(_17){if(_17&&_17.callback){_17.callback(null,_17.data);}jQuery.ajaxHelper.popUpAlert(jQuery.langStrings.fatalError);}};})(jQuery);(function($){$.fn.PublicEventsTimeline=function(_2){var _3={myId:"timeline",selectedDate:null,startDate:null,endDate:null,numWeeks:null,initialized:false,dim:{dayLength:0,arrowWidth:10,labelwidth:100,monthpadding:4,MAXWIDTH:720,offset:0},tidList:new Array(),selectDate:null,getTIDList:null};var _4={currentWeek:null,currentEvent:null};function getNumDays(_5,_6){var _7=1000*60*60*24;return Math.ceil((_6.getTime()-_5.getTime())/_7);}function selectWeek(id,_9,_a){if(_4.currentWeek!==id){if(_4.currentWeek){$("#"+_4.currentWeek).removeClass("selected");}_4.currentWeek=id;var dt=$("#"+_4.currentWeek).addClass("selected").attr("data-dt");if(_3.selectDate&&_9!==false&&dt){var _a=new Date();_a.setTime(dt);_3.selectDate(_a);}else{if(_9===false&&!dt&&_a){_a.setDate(_a.getDate()-_a.getDay());if(_a.getTime()<_3.startDate.getTime()&&_a.getTime()>$.ptEventCoordinator.getFirstSundayOfTheMonth($.tungleGlobals.getUserTodayDate()).getTime()){while(_a.getTime()<_3.navDateStart.getTime()){_3.selectedDate=new Date(_3.navDateStart.getTime());resetDates();}_3.selectedDate=new Date(_3.navDateStart.getTime());drawTimeline();}else{if(_a.getTime()>=_3.endDate.getTime()){while(_a.getTime()>_3.navDateEnd.getTime()){_3.selectedDate=new Date(_3.navDateEnd.getTime());resetDates();}if(_a.getTime()==_3.endDate.getTime()){_3.selectedDate=new Date(_3.navDateEnd.getTime());}drawTimeline();}}}}}}function resetOnMeetingUpdate(_c,_d){if(_c&&_d&&((_3.startDate.getTime()<=_c.getTime()&&_3.endDate.getTime()>=_c.getTime())||(_3.startDate.getTime()<=_d.getTime()&&_3.endDate.getTime()>=_d.getTime()))){if(_3.tidList&&_3.tidList.length>0){var _e=jQuery.ptEventCoordinator.retrievePE_List(_3.tidList,_3.startDate,_3.endDate,{callback:drawEvents});drawEvents(_e);}}}function resetDates(){_3.endDate=new Date(_3.selectedDate.getTime());_3.endDate.setDate(1);_3.endDate.setMonth(_3.endDate.getMonth()+3);_3.endDate=$.ptEventCoordinator.getFirstSundayOfTheMonth(_3.endDate);_3.startDate=$.ptEventCoordinator.getFirstSundayOfTheMonth(_3.selectedDate);var _f=new Date(_3.startDate.getTime());_f.setDate(1);_f.setMonth((_f.getMonth()-3)%11);_f=$.ptEventCoordinator.getFirstSundayOfTheMonth(_f);_3.navDateStart=new Date(_f.getTime());var _10=new Date(_3.endDate.getTime());_10.setDate(_10.getDate()+1);_3.navDateEnd=new Date(_10.getTime());}function drawTimeline(){resetDates();var _11=new Array();var _12=new Date(_3.startDate.getTime());_12.setDate(1);_3.numWeeks=0;while(_12.getTime()<_3.endDate.getTime()){var _13=$.ptEventCoordinator.getFirstSundayOfTheMonth(_12);_12.setMonth(_12.getMonth()+1);var _14=$.ptEventCoordinator.getFirstSundayOfTheMonth(_12);_14.setDate(_14.getDate()-1);if(_14.getTime()>_3.endDate.getTime()){break;}var _15=Math.ceil(getNumDays(_13,_14)/7);_11.push({start:_13,end:_14,numWeeks:_15});_3.numWeeks+=_15;}_3.dim.weekLength=Math.floor((_3.dim.MAXWIDTH-2*_3.dim.arrowWidth-_3.dim.monthpadding*(_11.length))/_3.numWeeks);_3.dim.offset=(_3.dim.MAXWIDTH-(_3.dim.weekLength*_3.numWeeks+2*_3.dim.arrowWidth+_3.dim.monthpadding*(_11.length)));_3.dim.leftOffset=Math.round(_3.dim.offset/2);_3.dim.rightOffset=_3.dim.offset-_3.dim.leftOffset;var _16="";var _17=0;if(_3.startDate.getTime()>$.tungleGlobals.getUserTodayDate().getTime()){_16+="<div class=\"arrow\" style=\"left:"+_17+"px;\"><img data-date=\""+_3.navDateStart.getTime()+"\" class=\"nav\" src=\"/portal/images/ptimeline/arrL.png\" border=\"0\"/></div>";}_17+=_3.dim.arrowWidth;for(var i=0;i<_11.length;i++){var _19=_11[i].numWeeks*_3.dim.weekLength;var _1a=_17-_3.dim.labelwidth/2;var _1b=_3.dim.labelwidth+"px;";var _1c=_11[i].start.format("MMM d");if(i==0){_1a=_17-_3.dim.arrowWidth;_1b="auto";_1c=_11[i].start.format("MMM d, yyyy");}_16+="<div class=\"label\" style=\"left:"+_1a+"px;width:"+_1b+";\">"+_1c+"</div>";var _1d=_17;if(i==0){_19+=_3.dim.leftOffset;_1d+=_3.dim.leftOffset;}else{if(i==_11.length-1){_19+=_3.dim.rightOffset;}}_16+="<div class=\"month\" style=\"left:"+_17+"px;width:"+_19+"px;\"></div>";for(var k=0;k<_11[i].numWeeks;k++){var _1f=new Date(_11[i].start.getTime());_1f.setDate(_1f.getDate()+k*7);if(k>0){_16+="<div class=\"w_divider\" style=\"left:"+_1d+"px;\"></div>";}var _20=_3.dim.weekLength;var _21=_1d;if(k===0&&i===0){_20+=_3.dim.leftOffset;_21-=_3.dim.leftOffset;}else{if(k===_11[i].numWeeks-1&&i==_11.length-1){_20+=_3.dim.rightOffset;}}var _22="week";var _23=_3.myId+_1f.format("MMddyyyy");if(_4.currentWeek===_23){_22+=" selected";}_16+="<div class=\""+_22+"\" id=\""+_23+"\" data-dt=\""+_1f.getTime()+"\" style=\"left:"+(_21+1)+"px;width:"+_20+"px;\"></div>";_1d+=_3.dim.weekLength;}_17+=_3.dim.monthpadding+_19;if(i+1===_11.length){_16+="<div class=\"label\" style=\"right:0px;width:auto;\">"+_11[i].end.format("MMM d")+"</div>";}}_3.dim.dimArray=_11;_16+="<div class=\"arrow\" style=\"left:"+_17+"px;\"><img data-date=\""+_3.navDateEnd.getTime()+"\" class=\"nav\" src=\"/portal/images/ptimeline/arrR.png\" border=\"0\"/></div>";var _24="";if(_3.tidList&&_3.tidList.length>0){var _25=jQuery.ptEventCoordinator.retrievePE_List(_3.tidList,_3.startDate,_3.endDate,{callback:drawEvents});_24+=drawEvents(_25,true);jQuery.ptEventCoordinator.callbackResetTimelineOnEventChange=resetOnMeetingUpdate;}_16+="<div class=\"events\">"+_24+"</div>";$("#"+_3.myId).html(_16);}function drawEvents(_26,_27){var _28="";var _29=_3.dim.arrowWidth;var _2a=0;if(_26&&_26.length>0){for(var i=0;i<_3.dim.dimArray.length;i++){for(var k=0;k<_3.dim.dimArray[i].numWeeks;k++){var _2d="event";if(_26[_2a]>=2&&_26[_2a]<=5){_2d+=" med";}else{if(_26[_2a]>=6){_2d+=" large";}}var _2e=new Date(_3.dim.dimArray[i].start.getTime());_2e.setDate(_2e.getDate()+k*7);var _2f=_3.dim.weekLength;if(k===0&&i===0){_2f+=_3.dim.leftOffset;}else{if(k===_3.dim.dimArray[i].numWeeks-1&&i==_3.dim.dimArray.length-1){_2f+=_3.dim.rightOffset;}}var _30=(_2f/2);if(_26[_2a]>0){_28+="<div data-date=\""+_2e.getTime()+"\" class=\""+_2d+"\" id=\""+_3.myId+"_ev_"+_2e.format("MMddyyyy")+"\" data-id=\""+_3.myId+_2e.format("MMddyyyy")+"\" style=\"left:"+(_29+_30)+"px;\"></div>";}if(k===0&&i===0){_29+=_3.dim.leftOffset;}_29+=_3.dim.weekLength;_2a++;}_29+=_3.dim.monthpadding;}}if(_27){return _28;}else{_3.eventArray=_26;$("#"+_3.myId).find("> .events").html(_28);}}return this.each(function(){defaults=$.extend(_3,_2);_3.myId=$(this).attr("id");if(!_3.selectedDate){_3.selectedDate=jQuery.tungleGlobals.getUserTodayDate();}_3.selectedDate.setDate(_3.selectedDate.getDate()-_3.selectedDate.getDay());if(_3.defaultDate){_3.defaultDate.setDate(_3.defaultDate.getDate()-_3.defaultDate.getDay());_4.currentWeek=_3.myId+_3.defaultDate.format("MMddyyyy");}drawTimeline();$(this).click(function(e){var _32=$(e.target);if($(e.target).hasClass("week")){selectWeek($(e.target).attr("id"));}else{if($(e.target).hasClass("nav")){_3.selectedDate=new Date();_3.selectedDate.setTime($(e.target).attr("data-date"));drawTimeline();}else{if($(e.target).hasClass("event")){selectWeek($(e.target).attr("data-id"));}}}}).mousemove(function(e){var _34=$(e.target);if($(e.target).hasClass("event")){var id=$(e.target).attr("id");if(id!==_4.currentEvent){var _36=new Date();_36.setTime($(e.target).attr("data-date"));jQuery.eventListBubble.show($(e.target),_3.tidList,_36,function(_37){selectWeek(_3.myId+_37.format("MMddyyyy"));});_4.currentEvent=id;}}else{if(_4.currentEvent){jQuery.eventListBubble.hide();_4.currentEvent=null;}}}).mouseleave(function(e){if(_4.currentEvent){jQuery.eventListBubble.hide();_4.currentEvent=null;}});$(this).bind("selectWeek",function(e,_3a){_3a.setDate(_3a.getDate()-_3a.getDay());var id=_3.myId+_3a.format("MMddyyyy");selectWeek(id,false,_3a);}).bind("resetList",function(e,_3d){if(_3d){_3.tidList=_3d;}if(_3.tidList&&_3.tidList.length>0){var _3e=jQuery.ptEventCoordinator.retrievePE_List(_3.tidList,_3.startDate,_3.endDate,{callback:drawEvents});drawEvents(_3e);}});});};jQuery.eventListBubble={data:{id:"event_list",initialized:false,lockMethod:false,currTarget:null,callback:null,currTargetID:null,showTimeout:null,date:null},show:function(_3f,_40,_41,_42){var _43=jQuery.eventListBubble.data;clearTimeout(_43.showTimeout);_43.showTimeout=setTimeout(function(){jQuery.eventListBubble.display(_3f,_40,_41,_42);},200);},hide:function(_44){clearTimeout(jQuery.eventListBubble.data.showTimeout);if(_44&&!jQuery.eventListBubble.isHidden()){$.Bubble.clearBodyHandler(false,jQuery.eventListBubble.data.id);}},isHidden:function(){var _45=$.Bubble.findObj(jQuery.eventListBubble.data.id);if(_45&&_45.show){return false;}else{return true;}},display:function(_46,_47,_48,_49){var _4a=jQuery.eventListBubble.data;if(!_46||!_47||!_47.length||!_48){return false;}_46=$(_46);_4a.currTarget=_46;var _4b={};var _4c=270;var _4d=null;var _4e=null;_4a.date=_48;_4a.callback=_49;_4a.tidList=_47;var _4f=$.eventListBubble.retrieveMeetings(_48,_47);_4b=$.eventListBubble.buildEventHTML(_4f,_4a.tidList);_46.Bubble({title:_48.formatToWeek(defaults.slotWidth),text:_4b,cssWidth:_4c,domId:_4a.id,defStartPos:2,center:true,offset:-15,clickToDismiss:false,xBtn:false,clickOutsideDismiss:true,show:true});var _50=null;if(!_4a.initialized){_4a.initialized=true;_50=$("#"+_4a.id);_50.click(function(e){var _52=$(e.target);if(_52.hasClass("goto")||_52.hasClass("next")||_52.hasClass("prev")&&!_52.hasClass("selected")){var _53=parseInt(_52.attr("data-pg"),10);var _54=$(this).find("div.page").hide();var nav=$(this).find("div.links");nav.find(".selected").removeClass("selected");_54.eq(_53).show();if(_53>0){nav.find(".prev").removeClass("selected").attr("data-pg",_53-1);}else{nav.find(".prev").addClass("selected");}if(_53<_54.length-1){nav.find(".next").removeClass("selected").attr("data-pg",_53+1);}else{nav.find(".next").addClass("selected");}nav.find(".goto").eq(_53).addClass("selected");}else{if(_52.parentHasClass("p_event_det",4).hasClass("p_event_det")){if(jQuery.eventListBubble.data.callback){jQuery.eventListBubble.data.callback(jQuery.eventListBubble.data.date);}jQuery.eventListBubble.hide(true);}}});}},buildEventHTML:function(_56,_57){var _58="";if(!_56||_56.length===0){_58+="Loading...";}else{var _59=0;var _5a=0;_58+="<div class=\"page page"+_59+"\" style=\"display:block;\">";for(var i=0;i<_56.length;i++){if(_56[i].pub){_5a++;if(_59*5+5<_5a){_59++;_58+="</div><div class=\"page page"+_59+"\" style=\"min-height:310px;\">";}_58+="<div class=\"p_event_det\">";var img="";var _5d="";for(var m=0;m<_57.length;m++){if(_57[m].id===_56[i].owner){img=_57[m].pid;_5d=_57[m].name;}}_58+="<img src=\"/public/"+img+"/Image\"/>";_58+="<div class=\"t0 text-overflow\">"+_5d+"</div>";_58+="<div class=\"t1 text-overflow\">"+_56[i].label+"</div>";var _5f=_56[i].start.format("MMM d, hh:mmt - ");if(_56[i].start.format("MMddyyyy")!==_56[i].end.format("MMddyyyy")){_5f+=_56[i].end.format("MMM d, hh:mmt");}else{_5f+=_56[i].end.format("hh:mmt");}_58+="<div class=\"d text-overflow\">"+_5f+"</div>";_58+="</div>";}}_58+="</div>";if(_59>0){_58+="<div class=\"links\">";_58+="<a class=\"link prev selected\" data-pg=\"0\">&#139; Prev</a> | ";for(var i=0;i<=_59;i++){var _60=i==0?"selected":"";_58+="<a class=\"link goto "+_60+"\" data-pg=\""+i+"\">"+(i+1)+"</a> | ";}_58+="<a class=\"link next\" data-pg=\""+_59+"\">Next &#155;</a>";_58+="</div>";}}return _58;},retrieveMeetings:function(_61,_62){var _63=new Date(_61);_63.setDate(_63.getDate()-_63.getDay());_63.setHours(0,0,0,0);var _64=new Array();var _65=new Array();for(var i=0;i<_62.length;i++){var id=_62[i].id;var _68=jQuery.meetingParser.getCurrentWeekMeetings(id,_63,true,$.meetingCoordinator.cache);if(_68==null){_65[_65.length]=id;}else{_64=_64.concat(_68);}var _69=jQuery.meetingParser.getAllDayMeetings(id,_63,true,$.meetingCoordinator.cache);if(_69!=null){_64=_64.concat(_69);}}if(_65.length!=0){jQuery.meetingCoordinator.requestMeetings(_63,_65,false,1,function(_6a,_6b){_6a=_6a.concat(_6b);var _6c=new Array();for(var i=0;i<_6a.length;i++){_6c.push(_6a[i].meeting);}$.eventListBubble.callback_getMeetings(_6c,_61);});return new Array();}return _64;},callback_getMeetings:function(_6e,_6f){if(!$.eventListBubble.isHidden()&&_6f.format("MMddyyyy")===_6f.format("MMddyyyy")){var _70=$.eventListBubble.buildEventHTML(_6e,$.eventListBubble.data.tidList);$("#"+$.eventListBubble.data.id).find(".content").html(_70);}}};})(jQuery);(function($){$.fn.createForm=function(_2){var _3={formId:"fRG",inputObjects:new Array(),callBackSubmit:null,callBackError:null,callBackSuccess:null,counter:0,tabStart:null,backgroundColor:"white",btnSubmit:null,inputWidth:"200px",css:{cellspacing:0,align:"",chkBox:"",extraLoader:""},addStyle:"",maxLength:255};var _4={inputContainer:"formElem",label:"fLB",inputDiv:"fDV",submitDiv:"fSD"};var _5;var _6;_5=function(){var _7=new Array();var _8=$("#"+_3.formId);for(var i=0;i<_3.counter;i++){var _a=_8.find(".ff"+i);var _b=_a.attr("label");var vT=_a.hasClass("vT");var _d=vT?_a.triggerHandler("value"):_a.val();_d=_d.isEmpty()?_a.text().trim():_d.trim();if(_a.attr("type")=="checkbox"){_d=_a.is(":checked");}_7[_7.length]={name:_b,value:_d,counter:i};}var _e=_3.callBackSubmit(_7,_3.formId);if(_e&&_e.counter>-1&&_e.text&&jQuery.BubbleError){jQuery.BubbleError.show(_8.find(".ff"+_e.counter),_e.text);}};_6=function(_f){if(_f.find("form").length==0){var _10="<form id=\""+_3.formId+"_form\" action=\"javascript:void(0);\" method=\"POST\">";for(var i=0;i<_3.inputObjects.length;i++){var _12=_3.tabStart?"\" tabindex=\""+(_3.tabStart+_3.counter):"";_10+="<div class=\""+_4.inputContainer+" "+_3.addStyle+"\">";switch(_3.inputObjects[i].type){case "Password":_10+="<label for=\""+_3.formId+"ff"+_3.counter+"\">"+_3.inputObjects[i].label+"</label>";_10+="<input class=\"ff"+_3.counter+"\" id=\""+_3.formId+"ff"+_3.counter+"\" label=\""+_3.inputObjects[i].label+_12+"\" maxlength=\""+_3.maxLength+"\" type=\"password\" name=\"pass\"/>";break;case "Break":_10+="<br/>";break;case "Email":case "Last Name":case "First Name":case "Name":var _13=_3.inputObjects[i].type==="Email"?"name=\"email\"":"";var _14=_3.inputObjects[i].value==null?"":_3.inputObjects[i].value;var _15=_3.inputObjects[i].disabled==true?"disabled":"";var vT="";var _17=_3.counter;if(_3.inputObjects[i].vT){vT="vT=\""+_3.inputObjects[i].vT+"\"";_17+=" vT";}if(_3.inputObjects[i].label&&_3.inputObjects[i].label.length>0){if(!_3.inputObjects[i].hideLabel){_10+="<label for=\""+_3.formId+"ff"+_3.counter+"\">"+_3.inputObjects[i].label+"</label>";}if(_3.inputObjects[i].custom&&_3.inputObjects[i].custom.length>0){_10+=_3.inputObjects[i].custom.replace("$id$",_3.formId+"ff"+_3.counter).replace("$tab$",_3.tabStart?_3.tabStart+_3.counter:_3.counter).replace("$class$","ff"+_3.counter).replace("$label$",_3.inputObjects[i].label);}else{_10+="<input class=\"ff"+_17+"\" "+vT+" id=\""+_3.formId+"ff"+_3.counter+"\" label=\""+_3.inputObjects[i].label+_12+"\" maxlength=\""+_3.maxLength+"\" type=\"text\" value=\""+_14+"\" "+_15+_13+"/>";}}else{_10+="<input class=\"ff"+_17+"\" id=\""+_3.formId+"ff"+_3.counter+"\" label=\""+_3.inputObjects[i].label+_12+"\" maxlength=\""+_3.maxLength+"\" type=\"text\" value=\""+_14+"\" "+_15+_13+"/>";}break;case "TextArea":_10+="<label for=\""+_3.formId+"ff"+_3.counter+"\">"+_3.inputObjects[i].label+"</label>";_10+="<textarea class=\"ff"+_3.counter+"\" id=\""+_3.formId+"ff"+_3.counter+"\" label=\""+_3.inputObjects[i].label+_12+"\" maxlength=\""+_3.maxLength+"\"></textarea>";break;case "CheckBox":var _18=_3.inputObjects[i].text?_3.inputObjects[i].text:_3.inputObjects[i].label;_10+="<div class=\"checkbox\">";_10+="<input type=\"checkbox\" class=\"chk ff"+_3.counter+_12+"\" label=\""+_3.inputObjects[i].label+_12+"\" id=\""+_3.formId+"ff"+_3.counter+"\"/>";_10+="<label for=\""+_3.formId+"ff"+_3.counter+"\">"+_18+"</label>";_10+="</div>";break;case "Submit":_10+="<div class=\"submitActions\">";if(_3.inputObjects[i].extraLinks){_10+=_3.inputObjects[i].extraLinks;}if(_3.inputObjects[i].custom&&_3.inputObjects[i].custom.length>0){_10+=_3.inputObjects[i].custom.replace("$id$",_3.formId+"ff"+_3.counter).replace("$tab$",_3.tabStart?_3.tabStart+_3.counter:_3.counter).replace("$class$","ff"+_3.counter).replace("$label$",_3.inputObjects[i].label);}else{_10+="<a class=\"medium purple t_btn ff"+_3.counter+" submit\" id=\""+_3.formId+"ff"+_3.counter+"\" href=\"javascript:void(0);\" >"+_3.inputObjects[i].label+"</a>";}_10+="</div>";break;case "Select":case "SelectWL":var _19="";for(var j=0;j<_3.inputObjects[i].select.array.length;j++){var _1b="";if(_3.inputObjects[i].select.array[j].label==_3.inputObjects[i].select.selected){_1b="selected";}_19+="<option value=\""+_3.inputObjects[i].select.array[j].label+"\" "+_1b+">"+_3.inputObjects[i].select.array[j].text+"</option>";}_10+="<label for=\""+_3.formId+"ff"+_3.counter+"\">"+_3.inputObjects[i].label+"</label>";_10+="<select class=\"ff"+_3.counter+"\" id=\""+_3.formId+"ff"+_3.counter+"\" label=\""+_3.inputObjects[i].label+_12+"\" size=\"1\">"+_19+"</select>";break;case "Hidden":_10+="<input class=\"ff"+_3.counter+"\" id=\""+_3.formId+"ff"+_3.counter+"\" label=\""+_3.inputObjects[i].label+"\" value=\""+_3.inputObjects[i].value+_12+"\" type=\"hidden\"/>";break;default:break;}_3.counter++;_10+="</div>";}_10+="</form>";_f.prepend(_10);}else{_3.counter=_3.inputObjects.length;}if(_3.callBackSubmit!=null){_f.find("form").submit(function(){_5();return false;});_f.find(".submit").click(function(){$("#"+_3.formId).find("form").submit();});}_f.find("input.vT").DefaultText();_f.find("input").keyup(function(e){if(e.keyCode===13){_5();return true;}});};return this.each(function(){_3=$.extend(_3,_2);if(_3.formId.indexOf("#")==0){_3.formId=_3.formId.substring(1);}$(this).attr("id",_3.formId);if(_3.backgroundColor){$(this).css("background-color",_3.backgroundColor);}$(this).bind("getData",function(){_5();});$(this).bind("hideFields",function(e,_1e,_1f){for(var i=0;i<_1e.length;i++){if(!_1f){$("#"+_3.formId+"ff"+_1e[i]).parent().hide();}else{$("#"+_3.formId+"ff"+_1e[i]).parent().show();}}});$(this).bind("addHelp",function(e,_22,_23,_24){for(var i=0;i<_22.length;i++){var _26=$("#"+_3.formId+"ff"+_22[i]);var _27=_26.parent().find("img.cHelp");if(_27.length==0){_26.parent().append("<img id=\""+_23[i]+"\" class=\"cHelp\" src=\"/portal/images/help_qm.png\"/>");_26.parent().find("img.cHelp").Contextual();}else{_27.show();}}}).bind("hideHelp",function(e,_29){for(var i=0;i<_29.length;i++){var _2b=$("#"+_3.formId+"ff"+_29[i]);_2b.parent().find("img.cHelp").hide();}});_6($(this));});};})(jQuery);(function($){$.fn.mwmParticipants=function(_2,_3){var _4={myId:"mwmAttd",attendeeClass:"participant",objIdPre:"#pre-",organizer:{email:""},initialized:false,sample:false,visibleArray:new Array(),currentVisible:-1,toggleAvailability:null,showToggle:true,actionable:true};var _5=new Array();var _6=jQuery.defaultBuilder.buildEmptyData(true);var _7=jQuery.defaultBuilder.mwmDefaultData.imageMin;var _8=jQuery.defaultBuilder.buildPathObj();$.extend(_5,_2);$.extend(_4,_3);var _9;var _a;var _b;var _c;var _d;var _e;var _f;var _10;var _11;var _12;var _13;var _14;var _15;var _16;_a=function(src,_18,_19){if(!src){src=_6.img;}else{src+="?Type=1";}src=src.xss();html="";if(_18!==true){var _1a=_4.showToggle?"":"style=\"display:none;\"";html+="<input class=\"chk check\" type=\"checkbox\" "+_1a+"/>";}if(_19!==true){html+="<img height=\"16\" width=\"16\" class=\"rm_contact\" src=\"/portal/images/tungle-me/closehover.png\">";}html+="<img class=\"main\" src=\""+src+"\"/>";return html;};_b=function(_1b,_1c,_1d,pid){var _1f="";for(var i=1;i<_1b.length;i++){var dt=_1b[i].xss();if(dt!=""){_4.visibleArray[0]=1;if(i===1){dt=jQuery.tungleGlobals.getFullName(_1b[0].xss(),dt);}_1f+="<div title=\""+dt+"\" class=\"t"+i+" text-overflow\">"+(i==1?"<b>"+dt+"</b>":dt)+"</div>";}}if(!_1d){_1f+="<div class=\"t4 text-overflow\"><i>(Not sharing availability)</i></div>";}else{_1f+="<div class=\"t4 text-overflow\"><i>&nbsp;</i></div>";}_1f+=drawIcons(_1c,pid);return "<div class=\"page title\">"+_1f+"</div>";};_c=function(_22,_23,_24){if(!_23){_23="<i>(Calendar not available)</i>";}var _25="";_25+="<div class=\"t0 text-overflow\"><b>"+_22+"</b></div>";_25+="<div class=\"t0 text-overflow\">"+_23+"</div>";if(_24){_25+="<div class=\"t0 text-overflow\" style=\"margin-top:8px;\"><i>"+_24+"</i></div>";}return "<div class=\"page title\">"+_25+"</div>";};drawIcons=function(_26,pid){var _28="";_28+="<a class=\"link tungleme\" target=\"_blank\" href=\"http://tungle.me/"+pid+"\">"+_7.replace("ico$TYPE$Min","tgl")+"</a>";for(var i=0;i<_6.ico.length;i++){var dt=_26[i];if(dt&&dt.val){_4.visibleArray[2]=1;var _2b=_8[dt.type].replace("$LINK$",dt.val.xss());if(_2b.indexOf("http")!=0){_2b="http://"+_2b;}_28+="<a class=\"link "+dt.type+"\" target=\"_blank\" href=\""+_2b+"\">"+_7.replace("$TYPE$",dt.type)+"</a>";}}return "<div class=\"t4\">"+_28+"</div>";};_13=function(_2c,_2d){var _2e="";if(jQuery.tungleGlobals.user.id){var pid=jQuery.tungleGlobals.user.publicID;if(pid!==null&&jQuery.tungleGlobals.user.meetWithMe.enabled){_2e+="<div id=\""+_4.objIdPre.substring(1)+pid+"\" class=\"organizer signedinOrg\" data-email=\""+pid+"\">";}else{_2e+="<div class=\"organizer\" >";}var _30=pid==null?null:"/public/"+jQuery.tungleGlobals.user.publicID+"/Image?Type=1&date="+(new Date()).getTime();_2e+=_a(_30,true,true);var _31="<label class=\"showcal\"><input class=\"chk showcal\" type=\"checkbox\"/>Show my calendar</label>";_31+="<label class=\"showav\"><input class=\"chk showav\" "+(jQuery.tungleGlobals.user.meetWithMe.enabled?"":"disabled")+" type=\"checkbox\"/>Show my availability</label>";_2e+=_c(jQuery.tungleGlobals.user.name,_31);}else{if(_2c&&_2d){_2e+="<div class=\"organizer\" >";_2e+=_a(null,true,true);_2e+=_c(_2d);}else{_2e+="<div class=\"organizer\" >";_2e+=_a(null,true,true);var _32="<i>Tungle user? <a href=\"javascript:void(0);\" class=\"link signin\">Sign in</a></i>";var _33="<a class=\"link schedule\" href=\"javascript:void(0);\">Schedule this meeting</a>";_2e+=_c("You are the organizer",_33,_32);}}_2e+="</div>";return _2e;};_f=function(_34){if(_15(_34.email)!==null){return false;}var _35=_10(_34);_5.push(_34);$("#"+_4.myId).find("div.attendees").prepend(_35).find(".check").attr("checked","checked");};modifyContacts=function(_36){for(var i=0;i<_36.length;i++){var _38=_15(_36[i].pid);if(_38){_38.mwmData=_36[i].mwmData;var _39=_10(_38);var _3a=$(_4.objIdPre+_38.email.stripEmail());_3a.after(_39).remove();$(_4.objIdPre+_38.email.stripEmail()).find(".check").attr("checked","checked");}}};_10=function(_3b){var _3c="";if(_3b.type==jQuery.tungleGlobals.UserIdentType.publicId){var pid=_3b.email;var _3e=_3b.mwmData;if(!_3e||_3e.partial){var _3e=_4.getMwMData(pid,modifyContacts);}var _3f="";if(_3b.color){_3f="style=\"background-color: "+_3b.color+";\"";}_3c+="<div "+_3f+" id=\""+_4.objIdPre.substring(1)+pid.stripEmail()+"\" class=\""+_4.attendeeClass+" selected\" data-email=\""+pid+"\">";_3c+="<div class=\"pflip\"><img src=\"/portal/images/tungle-me/pageflip.png\" width=\"16\" height=\"17\"/></div>";if(_3e){_3c+=_a(_3e.img,!_3e.enabled);_3c+=_b(_3e.title,_3e.ico,_3e.enabled,pid);}else{_3c+=_a("",true);_3c+=_c(_3b.name,"Loading full profile...");}_3c+="</div>";_3b.selected=true;}else{var _40=_3b.email;var _41=_3b.name;var _3e=_4.getMwMData(_3b.email,modifyContacts);_3c+="<div id=\""+_4.objIdPre.substring(1)+_40.stripEmail()+"\" class=\""+_4.attendeeClass+" selected\" data-email=\""+_40+"\">";_3c+=_a(null,true);_3c+=_c(_41);_3c+="</div>";_3b.selected=true;}return _3c;};_9=function(_42){var _43="";var _44="";var _45=_13();if(_4.desc){_43+="<div class=\"desc w_wrp\">"+_4.desc+"</div>";}for(var i=0;i<_5.length;i++){_44+=_10(_5[i]);}var _47=$("#"+_4.myId);_47.find("div.customData").html(_43);if(!_42){_47.find("div.org").html(_45);}_47.find("div.attendees").html(_44);_47.find(".check").attr("checked","checked");};_12=function(obj){var _49=6,i=0;while(!obj.hasClass(_4.attendeeClass)&&!obj.hasClass("signedinOrg")){obj=obj.parent();i++;if(i>_49){break;}}return obj;};_e=function(_4b,obj,_4d){var _4e=null;for(var i=0;i<_5.length;i++){if(_5[i].email==_4b){_4e=_5[i];_5.splice(i,1);}}if(!_4e){return false;}if(!obj){obj=$(_4.objIdPre+_4b.stripEmail());}obj.remove();if(_4d&&_4e){if(_4.hoverObject&&_4.hoverObject==_4.objIdPre.substring(1)+_4b.stripEmail()){_16(_4e,false);_4.hoverObject=null;}if(_4.manageContactList){_4.manageContactList("delete",_4e,true);}}};_11=function(_50,obj,_52){var _53=_15(_50);if(!_53||!_53.avEn){return false;}if(!obj){obj=$(_4.objIdPre+_50.stripEmail());}var _54=obj.hasClass("selected");if(_54){if(_4.manageContactList){_4.manageContactList("deselect",_53,true);}obj.removeClass("selected");if(!_52){obj.find(".check").attr("checked","");}_53.selected=false;}else{if(_4.manageContactList){_4.manageContactList("select",_53,true);}obj.addClass("selected");if(!_52){obj.find(".check").attr("checked","checked");}_53.selected=true;}};_14=function(_55){if(_4.hoverObject!=null){var obj=$("#"+_4.hoverObject);var _57=obj.attr("data-email");var _58=_15(_57);obj.removeClass("hover");if(_58){if(_58.color){var _59="background-color: "+_58.color;obj.attr("style",_59);}if(_55!==false){_16(_58,false);}}else{if(jQuery.tungleGlobals.user.id&&jQuery.tungleGlobals.user.publicID==_57){if(_55!==false){_16({email:_57,type:jQuery.tungleGlobals.UserIdentType.publicId},false);}}}_4.hoverObject=null;}};_16=function(_5a,_5b){if(_4.toggleAvailability&&_5a&&_5a.type==jQuery.tungleGlobals.UserIdentType.publicId){_4.toggleAvailability(_5b,true,_5a.email);}};_15=function(_5c){var _5d=null;for(var i=0;i<_5.length;i++){if(_5[i].email==_5c){_5d=_5[i];break;}}return _5d;};return this.each(function(){_4.myId=$(this).attr("id");_9();$(this).click(function(e){if(!_4.actionable){return false;}var _60=$(e.target);var cl=_60.attr("class");if(!cl){_60=_60.parent();cl=_60.attr("class");}var _62=cl.hC("check");var obj=_12($(e.target));if(cl.hC("rm_contact")){_e(obj.attr("data-email"),obj,true);return false;}else{if(cl.hC("linkedin")){if($.browser.msie){return true;}var _64=_60.attr("href");jQuery.linkedInProfilePopup.showPopup(_60,_64);return false;}else{if(cl.hC("signin")){if(_4.showSignInPopup){_4.showSignInPopup();}return false;}else{if(cl.hC("schedule")){if(_4.openWizard){_4.openWizard();}return false;}else{if(cl.hC("showcal")){if(_4.toggleUserCalendar){_4.toggleUserCalendar($(e.target).parent().find("input.showcal").attr("checked"));}}else{if(cl.hC("showav")||(cl.hC("main")&&obj.hasClass("signedinOrg"))){var tmp=$(e.target).parent().find("input.showav");if(!tmp.attr("disabled")){if(cl.hC("main")&&obj.hasClass("signedinOrg")){tmp.attr("checked",(tmp.attr("checked")?"":"checked"));}if(_4.toggleUserAvailability){_4.toggleUserAvailability(tmp.attr("checked"));}}}else{if(cl.hC("show_search")){$("#"+_4.myId).find("div.searchbox, img.hide_search").show();$(e.target).hide();}else{if(cl.hC("hide_search")){$("#"+_4.myId).find("div.searchbox, img.hide_search").hide().end().find("img.show_search").show();}else{if(!cl.hC("link")&&_4.showToggle){_11(obj.attr("data-email"),obj,_62);}}}}}}}}}return true;}).mousemove(function(e){if(!_4.actionable){return false;}var cl=$(e.target).attr("class");if(cl.hC("check")){_14();return false;}jQuery.linkedInProfilePopup.hover($(e.target));var obj=_12($(e.target));var _69=obj.attr("data-email");var _6a=_15(_69);if(!_6a||_6a.type!==jQuery.tungleGlobals.UserIdentType.publicId||(jQuery.tungleGlobals.user.id&&jQuery.tungleGlobals.user.publicID!=_69)){_14();}if(obj.attr("id")==_4.hoverObject){return false;}else{if(_6a||(_69&&jQuery.tungleGlobals.user.id&&jQuery.tungleGlobals.isOwnerEmail(_69))){if(_4.hoverObject!=null){_14(false);}if(obj.hasClass("signedinOrg")&&!obj.find("input.showav").attr("checked")){return true;}_4.hoverObject=obj.attr("id");obj.attr("style","").addClass("hover");if(_6a){_16(_6a,true);}else{if(jQuery.tungleGlobals.user.id&&jQuery.tungleGlobals.user.publicID==_69){_16({email:_69,type:jQuery.tungleGlobals.UserIdentType.publicId},true);}}}}return true;}).mouseleave(function(){if(!_4.actionable){return false;}jQuery.linkedInProfilePopup.hover();_14();return false;}).bind("resetAll",function(e,_6c,_6d,_6e){_5=$.extend(new Array(),_6c);_4.showAvail=_6d;_4.hideCal=_6e;_9(true);}).bind("SetOrganizer",function(e,_70,_71,pid){if(_70&&_71){for(var i=0;i<_5.length;i++){if(_5[i].email.toLowerCase()==_70.toLowerCase()||(pid&&_5[i].email.toLowerCase()==pid.toLowerCase())){_e(_5[i].email,null,true);break;}}}var _74=$("#"+_4.myId).find("div.org");_74.html(_13(_70,_71));_74.find(".showcal").attr("checked","checked");}).bind("removeContact",function(e,_76){_e(_76);}).bind("addContact",function(e,_78){_f(_78);}).bind("showSearch",function(e,_7a){if(_7a){$("#"+_4.myId).find("div.searchbox, img.hide_search").show().end().find("img.show_search").hide();}else{$("#"+_4.myId).find("div.searchbox, img.hide_search").hide().end().find("img.show_search").show();}}).bind("showToggle",function(e,_7c){_4.showToggle=_7c;if(_7c){$("#"+_4.myId).find("input.check").show();}else{$("#"+_4.myId).find("input.check").hide();}}).bind("actionableToggle",function(e,_7e){_4.actionable=_7e;if(!_7e){$("#"+_4.myId).find("input").attr("disabled","disabled");}else{$("#"+_4.myId).find("input").removeAttr("disabled");}});});};})(jQuery);(function($){jQuery.langStrings={externalSync:{cantRetrieve:"Tungle is temporarily unable to retrieve your calendar updates for",tryAgain:"Tungle will reconnect the next time you sign in."},partnerText:{Foursquare:{popupE1:"Tungle was unable to gain access to your Foursquare account. Please make sure you click on \"Grant access to Tungle\" from the Foursquare website when asked to do so.",popupT2:"Allow Tungle to access your Foursquare account",deleteSrc:"Are you sure you want to disconnect Tungle from your Foursquare account? By doing so, Tungle will no longer be able to automatically check you in into Foursquare for your public events.",popupT1:"<p>Now that your Tungle account is linked with Foursquare, Tungle will automatically check you in on your behalf for any public events that appear on your Tungle.me page. The subject and the location of the meeting will be added to your check-in message.</p><p><b>Note:</b><br/><br/>Only public events are checked-in. Tungle will not check-in non-public events.<br/>Tungle will only check-in public events which have a location.</p>",popupT1D:"<p>In order to be able to execute automatic \"check-in\" to Foursquare on your behalf, you must first grant access to your Foursquare account to Tungle. Once you click on \"Continue\", you will be redirected to the Foursquare website where you can grant acess to Tungle.</p><p>Note that at any time you may prevent Tungle from accessing your Foursquare account. Your Foursquare password will not be revealed to Tungle</p>"},WebEx:{popupE1:"Tungle was unable to gain access to your WebEx account, please make sure you have entered your credentials correctly.",desc:"Add webex calls to your Tungle.me meetings by entering your WebEx username and password below. Whenever you schedule a meeting, you will be able to add your webex bridge or webconference with a simple click.",note1:"Not a WebEx user?",note2:"Get your account here",deleteSrc:"Are you sure you want to disconnect Tungle from your WebEx account? Doing so will remove the WebEx conference calls from all your pending meetings containing the WebEx bridge.",popupT1:"<p>Now that your Tungle account is linked with WebEx, you can add your WebEx bridge to any meetings you schedule using the checkbox above the \"Location\" field</p>",cfg:"Configure your WebEx account",meeting:"Webex details to be provided once meeting is booked."}},rpxPopup:{rpxForm:"Sign in with your existing account",rpxFormSimple:"Sign in with:",rpxFormBack:"Welcome back",rpxFormBack2:"Click the $PROVIDER$ button to sign in",SIGNIN:"Sign in to Tungle",REGISTER:"Register a Tungle account",REGISTERALT:"Continue registering your Tungle account",SIGNINLONG:"Sign in with your Tungle account",FORGOT:"Forgot your password?",cancelSignRPX:"Click here if you want to use a different account",confirmReg:"<div class=\"title\" style=\"height:40px\">Check your inbox</div><div style=\"padding:10px;text-align:center\"><img style=\"height:30px;margin:0 10px 10px 0\" src=\"images/border/envTr.png\"/><div>Your account has been created but you still<br/><b>need to confirm your email</b>.</div><div style=\"font-weight:bold;line-height:25px;font-size:13px;margin-top:20px\"><div><span><b>Please check your email at</b></span></div><div class=\"text-overflow\"><span style=\"color:rgb(141, 36, 185);font-size:18px\">$EMAIL$</span></div><div><span>to confirm.</span></div></div></div>"},rpxSocialWidget:{TungleMe:{title:"Share your Tungle.me url",message:"Easily schedule a meeting with me by using my Tungle.me link -"},PublicEvent:{title:"This event is now public! Share it",message:"I will be attending \"$MEETING$\" on $DATE$ at $TIME$",ADmessage:"I will be attending \"$MEETING$\" on $DATE$"},TweetIt:{title:"Share your link",message:"I've joined Tungle.me to make scheduling meetings easy! Schedule a meeting with me at"}},scheduledByTungle:"(Meeting Scheduled by Tungle)",spaceMessages:{selectAvailSlots:"Please <b>select all your available times</b> inside the \"Proposed times\" slots <b>on the calendar</b>. Then click the \"Submit my availability\" button.",selectASlot:"Please <b>select a meeting time</b> inside one of the \"Pick a time\" slots <b>on the calendar</b>. Then click the \"Book meeting\" button.",staticCancelled:"<div class='mcancelled'><span>This meeting has been cancelled.</span></div><div style='font-size:15px;font-weight:bold;margin-top:10px;line-height:20px'>$Subject$</div>",staticOnHold:"<div class='mhold'><span>This meeting invitation is currently on hold. <b>Please revisit later</b>.</span></div><div style='font-size:15px;font-weight:bold;margin-top:10px;line-height:20px'>$Subject$</div>",staticExpired:"<div class='mexpired'><span>This meeting invitation has expired.<br/>The meeting is now cancelled.</span></div><div style='font-size:15px;font-weight:bold;margin-top:10px;line-height:20px'>$Subject$</div>",staticBooked:"<div class='mbooked'><span>Meeting booked</span></div><div style='font-size:15px;font-weight:bold;margin-top:10px;line-height:20px'>$Subject$</div><div class='mbooked_time'>$Date$<br/>$Time$</div>",errorServerPB:"<b>The server could not complete your request.</b> <br><br>Please make sure you are using a valid link and try again. If the error persists, send us feedback to let us know how you encountered this error. We appreciate your help!",errorServerPT:"<div class=\"mexpired\"><span>Error contacting the server. Please try again later.</span></div>",NOT_FOUND:"<div class='mexpired'><span>The requested meeting invitation was not found.</span></div>",INVALID_CODE:"<div class='mexpired'><span>The requested meeting invitation was not found.</span></div>",INVALID_CODE_REMOVED:"<div class='mexpired'><span>Your participation for this meeting is no longer required.  You have been removed from the list of invitees. Please contact the meeting organizer if you want more details.</span></div>",updateBooked:"This meeting invitation was updated by $Originator Name$ while you were providing your times. $Originator Name$ has now booked the meeting. You will receive a meeting invitation by email.",submitAvail:"<div class=\"container\" style=\"padding:0;margin:10px\">If you need to <b>update your availability</b> in the future, just click again on the <b>link included in your invitation email</b>.</div>",submitMWM:"<div class=\"container\" style=\"padding:0;margin:10px\">If you change your mind and want to <b>update your availability</b> in the future, just click again on the <b>link included in your invitation email</b>.</div>",submitMWMonBooked:"<div class=\"container\" style=\"padding:0;margin:10px\">Thank you, you have been removed from the list of participants for this meeting.</div>",submitAllMWM:"<div class=\"container\" style=\"padding:0;margin:10px\">Thank you for your answer. $HOST$ will be notified that you <b>will not attend this meeting</b>.</div>",submitNST:"<div class=\"container\" style=\"padding:0;margin:10px\">If you need to <b>update your availability</b> in the future, just click again on the <b>link included in your invitation email</b>.</div>",welcome:{SubmitAvailability:"You have <b>already submitted your availability</b> for this meeting. Since this meeting is still being scheduled, you may update your availability but <b>are not required to do so.</b>",NoResponse:"<span class=\"host\"></span>&nbsp;is inviting you to this meeting",NoSuitableTime:"You previously answered that <b>none of the proposed times</b> for this meeting <b>were suitable to you</b>. This meeting is still being scheduled and you may <b>update your response</b>.",NoMoreSuitableTime:"All the times you previously submitted for this meeting are <b>no longer available</b>. In order to find a common meeting times with the other invitees, you are asked to <b>update your response</b>.",MeetWithoutMe:"You previously indicated that <b>you would not attend this meeting</b>. This meeting is still being scheduled and you may <b>update your response</b>."},bannerText:{oneToOneOrganizerNMST:"You are no longer available for any of the times you've proposed. <b>This meeting is on hold and requires your action</b>.",oneToManyOrganizerNMST:"Warning - You are no longer available for any of the times you've proposed.",commonFoundForAll:"Your meeting is ready to be booked - common times were found for your invitees.",commonFoundForSome:"Your meeting is ready to be booked - common times were found for the <b>selected</b> invitees.",noCommonForAll:"Tungle was unable to find common times for your invitees.",noCommonFor1To1:"<b>$Invitee$</b>&nbsp;is not available for the times you have proposed.",updateSucceeded:"Your meeting $Property$ was successfully updated.",commentOnBooked:"Your comment was sent to $Organizer$.",commonTimeBroken:"Your selection has no common time with fellow attendees.",noCommonForSelected:"There are no common meeting times for the <b>selected</b> invitees.",timezoneNotMatchedPublic:"All times are displayed in $Timezone$ <span id=\"tz_chng_top\" style=\"cursor:pointer;text-decoration:underline\">Change</span>",timezoneNotMatched:"All times are displayed in $Timezone$"},alertTip:{submitAvailability:"Please highlight the times in the calendar when you are available to meet.",bookMeeting:"You are invited to this meeting. Please book the meeting by picking a time in the calendar within the proposed times."},confirmHeader:{MeetingCreated:"<span class=\"title\">Meeting booked!</span>",SubmitAvailability:"<span class=\"title\">Your availability has been submitted, you are done!</span>",NoSuitableTime:"<span class=\"title\">No suitable times - $HOST$ will be notified.</span>",MeetWithoutMe:"<span class=\"title\">You won't attend - $HOST$ will be notified.</span>",Cancelled:"<span class=\"title\">The meeting has been cancelled. All attendees will be notified of the cancellation.</span>",CancelledNoEmail:"<span class=\"title\">The meeting has been cancelled.</span>"},confirmWhatNow:{MeetingCreated:"<div style=\"font-weight:bold;text-decoration:underline\">What now?</div><div class=\"mti\">- $INVITEE$ will receive a confirmation by email.</div><div class=\"mti\">- $HOST$ will be notified of the time you chose.</div>",Cancelled:"<div class=\"mti\">- Attendees will be notified by email.</div>",SubmitAvailability:"<div class=\"mti\">- Other participants will submit their availability for this meeting.</div><div class=\"mti\">- You will receive an email meeting confirmation once the meeting gets booked.</div>",NoSuitableTime:"<div class=\"mti\">- $HOST$ will propose a new time, book the meeting or cancel it.</div><div class=\"mti\">- You will be notified once a decision has been made.</div>"},loadingMWMSlots:"Retrieving real-time availability...<br/><img src='/portal/images/tungle-me/ldrEFEFEF.gif'/>",noCommonTimes:"There is no common availability for the selected users for the current week.",noAvailableTimesI:"$NAME$ has no availability this week.<br/>Check other weeks for availability.",exitWarning1:"Warning: You haven't submitted your availability for this meeting. Please make sure to select a time in the calendar and then click on the \"Book Meeting\" button to submit your answer.\n\nIf you leave now, your answer will not be sent to ",exitWarning2:"Warning: You haven't submitted your availability for this meeting. Please make sure you highlight all the times for which you are available in the calendar below and then click on the \"Submit Availability\" button to submit your answer.\n\nIf you leave now, your answer will not be sent to ",noAvailableTimes:"There are presently no available times for this week.<br/><br/>Check other weeks for availability.",noAvailableTimesNA:"There are presently no available times for this week.<br/>Check other weeks for availability.<br/><span style='font-size:13px;'>To propose times outside the common availability please sign in or register a free Tungle.me account.</span>"},spaceInstructions:{readOnly:"<span><b>$User$</b>, you have already submitted your availability. You will be notified once the meeting is booked.</span>",bookMeetingOrganizerNST:"<span>There are no suitable times for one of the people you invited. This meeting is on hold until you take action.</span><br/>You can either book the meeting or cancel it.",bookMeetingOrganizerTC:"<span>The initially proposed times are no longer available for you or one of your attendees.</span><br/>You can either book the meeting or cancel it.",bookMeetingOrganizerUS:"<span>Your Google Calendar password is invalid and Tungle can't retrieve your latest availability.</span><br/>This meeting is on hold until you update your Google password from the <span class='link'>Account Settings</span> page.<br/>You can either book the meeting or cancel it.",bookMeetingOrganizer:{Booked:{OnTrack:"<span>Click any time slot on the calendar to select a meeting time, then click on \"Update meeting\" to confirm the meeting time and send updated invitations to your invitees.</span>",NMST:"<span>Click any time slot on the calendar to select a meeting time, then click on \"Update meeting\" to confirm the meeting time and send updated invitations to your invitees.</span>",NST:"<span>Click any time slot on the calendar to select a meeting time, then click on \"Update meeting\" to confirm the meeting time and send updated invitations to your invitees.</span>"},Cancelled:{OnTrack:"OK",NMST:"OK2",NST:"OK2"},Expired:{OnTrack:"OK",NMST:"OK2",NST:"OK2"},RTB:{OnTrack:"<span>All your invitees have submitted their availability. Book the meeting by selecting the desired time and then clicking on Book meeting.</span>",NMST:"<span>All your invitees have submitted their availability but at least one invitee is not available for the times you've proposed. You may propose new times, pick a time and book the meeting or cancel it.</span>",NST:"<span>All your invitees have submitted their availability but at least one invitee is not available for the times you've proposed. You may propose new times, pick a time and book the meeting or cancel it.</span>",MWM:"<span>All your invitees have submitted their availability. Book the meeting by selecting the desired time and then clicking on Book meeting.</span>",oNMST:"<span>All your invitees have submitted their availability but you are no longer available for any of the times you've proposed. You may propose additional times, free your calendar, pick a time and book the meeting or cancel it.</span>"},Pending:{MWM:"<span>This meeting is currently being scheduled. You do not need to take any action.</span>",OnTrack:"<span>This meeting is currently being scheduled. You do not need to take any action.</span>",NST:"<span>This meeting is currently being scheduled. At least one invitee is not available within the times proposed. You may propose more times or remove this invitee.</span>",NMST:"<span>This meeting is currently being scheduled. At least one invitee is not available within the times proposed. You may propose more times or remove this invitee.</span>",oNMST:"<span>This meeting is currently being scheduled. You are no longer available for any of the times you've proposed.</span>"}},barInfoAttendee:{singleAttendee:"<span>Pick a time that suits you from the calendar, then click \"Book Meeting\".</span>",SubmitAvailability:"<span>You have submitted your availability, you are not required to take any action.<br/>You may update your availability by painting on the calendar.</span>",NoResponse:"<span>Click and drag over all the proposed times that suit your schedule.</span><br/><br/>Tip: The more times you highlight, the better chance of finding a common time.",NoSuitableTime:"<span>You previously submitted that none of the proposed times were suitable. You may change your answer by painting your availability on the calendar.</span>",NoMoreSuitableTime:"<span>All the times you previously submitted are no longer available. You may update your availability by painting new times on the calendar.</span>",MeetWithoutMe:"<span>You previously answered that you will not attend this meeting. You may change your answer by painting your availability on the calendar.</span>"},selectSlots:"<span>Click and drag over all the proposed times that suit your schedule.</span><br/><br/>Tip: The more times you highlight, the better chance of finding a common time.",pastMeeting:"<b>Warning:</b> you have selected a meeting time in the past.",outsideMeeting:"<b>Warning:</b> you have selected a meeting time outside the suggested time slots.",removeAllInvitees:"You are removing <b>all the invitees</b>. If you continue, the meeting will be automatically cancelled. <b>Cancel this meeting?</b>",removeAllInviteesTitle:"Cancel this meeting",connectError:"Error contacting the server. Please try again later.",concurrencyError:"This space has been updated. Please review the changes.",reminderSent:"Meeting reminder(s) <b>successfully sent</b>.",invalidLength:"At least one proposed time is shorter than the meeting duration.",noSelections:"You have <b>not selected</b> any time slots.  If you choose to submit now, you are confirming that you are <b>available</b> during <b>all the time slots</b>.",noMeetSelections:"Please select a valid time slot before booking the meeting.",buddySelectSlots:"<span>You do NOT need to take any action; you are already sharing your availability with the organizer.</span>",confirmMWM:"Click on <b>\"Submit\"</b> to confirm that you <b>won't be attending</b> this meeting.",confirmNST:"Click on <b>\"Submit\"</b> to confirm that you are <b>not available</b> during the proposed times.",confirmBook:"You selected $Time$ Click on <b>\"Submit\"</b> to book the meeting and send meeting invitations to all attendees.",confirmUpdate:"Click on <b>\"Submit\"</b> to submit your availability for this meeting.",popupReminder:"Would you like to send an email reminder to <b>$User$?</b>",updateLastIn:"The Tungle meeting invitation was <b>updated by another attendee</b> while you were providing your times. Since <b>you are</b> now the <b>last attendee</b> to visit this Tungle meeting invitation, you may now <b>pick a time</b> to <b>book</b> the meeting",updateNormal:"This Tungle meeting invitation was <b>updated by another attendee</b> while you were providing your times. Please <b>resubmit your availability</b> within the updated available time slots",updateOrganizer:"This Tungle meeting invitation was <b>updated by an attendee</b>. Please <b>resubmit your action</b>.",updateBooked:"This Tungle meeting invitation was <b>booked by another attendee</b>.",updateCancelled:"This Tungle meeting invitation was <b>cancelled by the organizer</b>.",updateComment:"This Tungle meeting invitation <b>was updated</b> while you are posting your comment. Please <b>review and re-post</b> your comment.",newMeeting:"Are you sure you want to reschedule?",allAvailable:"You have selected <b>only one period</b> of $Time$ minutes. Please note that the <b>more areas</b> you highlight, the <b>more flexibility</b> you give to the other participants to schedule this meeting. You should highlight <b>all the times</b> that you are available for this meeting.",noCommonTimeTitle:"No common times with other invitees",noCommonTime:"<b>None of the times</b> you selected <b>work for the other invitees</b> who have replied. To help get this meeting booked, we encourage you to <b>select additional times</b>."},weeklyCalendar:{chooseSlots:"More times to pick from",moreSlots:"More availability",chooseTimes:"Additional proposed times",moreExceptions:"More exceptions",previousAvailability:"Show previous available week",nextAvailability:"Show next available week",currentDay:"Current week",ERROR_DETAILS:"Tungle encountered an error during the retrieval of this event's details. Please try again later.",eventPublicTitle:"Make this event visible on my Tungle.me Public Profile",eventPublic:"<p>The event $EVENT$ has been published on your Tungle.me page. Visitors to your Tungle.me page will now be able to see the event time and subject.</p><br/><p>Want to let others know about this event? Broadcast it to your social networks (optional).</p>",eventPublicPre:"<p>Are you sure you want to publish $EVENT$ to your Tungle.me Public Profile? Visitors to your Tungle.me page will be able to see the event time, subject and location.</p>",eventPrivate:"<p>The event $EVENT$ is no longer visible on your Tungle.me page.</p>",eventPNote:"You may add a personal note to this event for your visitors",markedAvailable:"By painting availability over this event you have marked it as free, and may be double-booked."},feedBack:{error:"There was an error sending your feedback. Please let tungle know by email at feedback@tungle.com"},spaceBubbles:{selectTime:"Click to select a time that suits you.",dragTime:"Click and drag over all available times when you are free.",moreTimes:"There are more times available in later weeks. Click to scroll through.",submitAvail:"Be sure to select as many times as possible. This gives others flexibility and makes it easier to book the meeting.<br/><br/>When you're happy with your choices, click Submit my availability.",bookMeeting:"When you're happy with your choice, click Book meeting."},mwmMessages:{oneSelected:"You <b>only selected one time slot</b> of $Time$ minutes. Note that the <b>more times</b> you propose, the <b>more flexibility</b> you give to $User$.",directbkTime:"on $Time$",directbkInstr:{us:"and let your invitees submit their availability in order to find the best common meeting time.",me:"and let $User$ pick the final meeting time."},fatalError:"Sorry, Tungle is experiencing difficulties in loading this page. Please refresh and try again. Contact Tungle if the problem persists.",invalidToken:"The link contains invalid characters - please use only letters, numbers, underscores and dots.",saveChanges:"Your Tungle.me page has been successfully updated.",shortToken:"Your Tungle.me link must be between 2 and 32 characters.",emailLink:"Your link has been successfully sent.",clickToEdit:"Edit personal details",DUPLICATED_PUBLIC_ID:"Sorry! This link is not available. Please try another one.",defaultTungleMeTitle:"Welcome to Tungle.me",defaultTungleMeMessage:"<p>Welcome to $USER$'s Tungle.me page. To start proposing meeting times, click on the \"Schedule a meeting\" button.</p>"+"<p>In order to increase chances of finding a common meeting time, propose as many times as possible (tip: click and drag on the calendar to propse more times).</p>"+"<p>Once you have completed your invitation, $USER$ will receive an email with your meeting details.</p>",imgUpload:{EXCEED_QUOTE:"Your file is larger than 2mb, please use a smaller size.",INVALID_REQUEST:"File type not supported, please use image files only."},errorList:{LOGIN_FAILED:"Login Failed.",INVALID_REQUEST:"Login Failed.",INVALID_EMAIL_ADDRESS:"The email address is not valid.",INVALID_USER_STATUS:"The email address does not belong to a valid user.",LOGIN_FAILED_EMAIL_NOT_CONFIRMED:"Login Failed, Email not confirmed.",LOGIN_FAILED_NOT_ACTIVATED:"Login Failed, Account not activated.",LOGIN_FAILED_INACTIVE:"Login Failed, Account is inactive.",TIMEDOUT:"The connection has timed out, please refresh and try again",PROPOSED_TIMES_IN_MEETING_BUFFER:"The availability of $OWNER$ was changed while the Tungle.me page was loaded. Please adjust your proposed times if needed."},error:"Server error. Please try again.",emailError:"Please enter valid emails.",popContinue:{btn:"Let me add my availability",txtLnk:"Don't display my availability",text:"You have not selected any availability in the calendar. We recommend you do so to improve the chances of finding common times with your visitors."},switchTabs:{btn:"Save Changes",txtLnk:"Discard Changes",title:"You have pending changes",text:"You have made changes to your Tungle.me availability profile, would you like to save them?",profileText:"You have made changes to your Tungle.me profile, would you like to save them?"},confirmMeeting:{Default:"<li>- $INVITEE$ will receive an email with your proposed times.</li><li style=\"height:30px;line-height:15px;\">- Once $INVITEE$ picks a time for the meeting, you will receive an email confirming that the meeting is booked.</li>",Defaults:"<li>- $INVITEE$ will receive an email with your proposed times.</li><li style=\"height:30px;line-height:15px;\">- Once $INVITEE$ pick a time for the meeting, you will receive an email confirming that the meeting is booked.</li>",Booked:"<li>- $INVITEE$ will receive an email with your proposed times.</li>"},editAvailability:"Do you want to edit your Tungle.me availability?",minimumProposed:"You have selected <b>only $Num$ possible meeting times</b>.<br/><br/>In order to increase the chances of finding a common meeting time, <b>$User$ is requesting</b> that you propose at least <b>$Min$ possible meeting times</b>.",loginToManage:"You are <b>signing in as the owner</b> of the page. Once signed in you will be able to <b>manage your Tungle.me</b> page.",scheduleME:"I have joined the Tungle.me revolution. Easily schedule a meeting with me",availHide:"You will be able to select your availability on the next step",previewMode:"Preview of times your invitees will see",addUsers:"In order to propose meeting times you must add at least one participant",availDisabled:"Your availability will not be displayed to your visitors<br/><br/>Click the calendar to add your availability.",availDisabledUserLoggedIn:"<img src=\"/portal/images/tungle-me/lockAvail.png\"/><div style=\"width:80%;\">Your Tungle.me availability is not displayed to your visitors.</div><div style=\"margin-top:30px;\"><a href=\"javascript:void(0);\" style=\"font-size:14px;\" class=\"link\">Change your availability</a></div>",availDisabledUser:"<img src=\"/portal/images/tungle-me/lockAvail.png\"/><div style=\"width:80%;\">This user is not displaying their availability.</div><div style=\"margin-top:30px;\">You can still organize a meeting with them.</div><a href=\"javascript:void(0);\" style=\"font-size:14px;\" class=\"link\">Organize a meeting</a>",availDisabledUsers:"<img src=\"/portal/images/tungle-me/lockAvail.png\"/><div style=\"width:80%;\">These users are not displaying their availability.</div><div style=\"margin-top:30px;\">You can still organize a meeting with them.</div><a href=\"javascript:void(0);\" style=\"font-size:14px;\" class=\"link\">Organize a meeting</a>"},contactSearch:{noContacts:"You have no contacts.",noSearch:"None of your contacts match your search criteria."},signIn:"Enter your Tungle account information:",formMessages:{noPass:"Please enter a password.",noPass2:"Please enter your password.",noPassMatch:"Passwords do not match.",shortPass:"Password must be at least 6 characters long",noAgree:"Please agree to Tungle TOS.",noEmail:"Please enter your email.",noUser:"Please enter your username.",noFName:"Please enter your first name.",noLName:"Please enter your last name.",errorNotMatched:"Passwords do not match",errorNoAcceptance:"Please agree to the Tungle Terms of Service",noSubject:"Please enter a subject for the meeting.",errorDuplicateEmail:"You have already added this person.",errorLongEmail:"The email should not exceed 170 characters.",errorOrganizerEmail:"You entered your own email.",emailIsInvitee:"Please use different email for organizer and invitee.",errorNoAttendees:"Please invite someone to the meeting.",errorInvalidEmail:"Invalid email",errorNoRegisteredEmail:"Please enter the email you registered with",errorNoEmail:"Please enter a valid email.",errorNoSubject:"Please enter a subject.",errorShortTS:"Some timeslots are shorter than the meeting duration.",errorMinTS:"Please select some timeslots.",errorLoginFailed:"Login Failed.",ownEmail:"You have entered the owner's email.",ownEmailInstr:"You cannot schedule a meeting with yourself.<br/> <a class='link' href='#HREF#'>Click here to sign in</a> to your Tungle.me profile to manage your invitations and availability.",existsEmail:"This email is registered, please sign in.",confirmTry:"Please check your inbox and follow the instructions to start exploring Tungle.",confirmForgot:"Please check your inbox and follow the instructions to reset your password.",confirmReg:"Please check your inbox and follow the instructions to validate your email address."},tglMessages:{serverError:"A server error has occured, please try again later or contact Tungle.",serverErrorShort:"Server error, please try again.",noLinkEntered:"Please fill in a Tungle.me link of your choice.",noLinkEnteredShort:"Please fill in a Tungle.me link of your choice.",invalidToken:"The link contains invalid characters - Please use only letters, numbers, underscores and dots.",invalidTokenShort:"Letters, numbers, \"_\" and \".\" only.",usedToken:"Sorry! This link is not available. Please try another one.",usedTokenShort:"Url not available.",shortLink:"Your Tungle.me link must be between 2 and 32 characters.",shortLinkShort:"Link must be 2 to 32 chars.",availableToken:"This link is available!",availableTokenShort:"This link is available!"},groupMessages:{noNameEntered:"Please fill in a name of your choice.",invalidName:"Please use only letters, numbers, underscores and dots.",shortName:"Group names must be between 2 and 32 characters.",usedName:"This name is already taken."},serverErrorList:{serverError:"Server error, please try again.",connectError:"Error contacting the server. Please try again later.",LOGIN_FAILED:"Login Failed.",INVALID_REQUEST:"Login Failed.",INVALID_EMAIL_ADDRESS:"The email address is not valid.",INVALID_USER_STATUS:"The email address does not belong to a valid user.",LOGIN_FAILED_EMAIL_NOT_CONFIRMED:"Login Failed, Email not confirmed.",LOGIN_FAILED_NOT_ACTIVATED:"Login Failed, Account not activated.",LOGIN_FAILED_INACTIVE:"Login Failed, Account is inactive.",EXTERNAL_SERVICE_AUTH_FAILED:"Authentication failed",DUPLICATED_EMAIL_ADDRESS:"This email is already registered with Tungle.",TOKEN_EMAIL_NOT_MATCH:"Please use the original email address",INVALID_ACTIVATION_CODE:"Invalid activation code, please check your email.",INVALID_INVITATION_CODE:"Invalid invitation code, please check your email.",EXPIRED_ACTIVATION_CODE:"Activation code has expired",INVALID_PASSWORD:"Incorrect password",DUPLICATED_DATA:"This calendar is already synced with your Tungle account.",DUPLICATED_CONFIRMATION:"This email has already been confirmed with Tungle.",TIMEDOUT:"The connection has timed out, please refresh and try again"},firstWiz:{noSyncSelected:"Please make a choice before proceeding.",serverError:"A server error has occured, please try again later or contact Tungle.",synchronizeF:"Your calendar is now synced with Tungle.",synchronizeTF:"Your availability has been updated for your Tungle.me profile.",synchronizeNF:"Remember that you can sync your calendar any time from the management tab.",syncCongrats:"Successfully synced.",congrats:"Congratulations!",chooseCalendar:"Please select at least one calendar.",noAnswerSelected:"Please make a choice before answering.",noLinkEntered:"Please enter a link of your choice.",meetLink:"You created your personal Tungle.me link: <u>http://tungle.me/$LINK$</u>&nbsp;&nbsp;(&nbsp;<span class=\"link share_sc\">share</span><img class=\"share_sc\" src=\"images/tungle-me/icotwitterMin.png\"/><img class=\"share_sc\" src=\"images/tungle-me/icofacebkMin.png\"/>&nbsp;)",DUPLICATED_DATA:"You are already synced to that Google account. Please refresh the page.",REMOTE_CALENDAR_NOT_AVAILABLE:"You must set up Google Calendar before you can sync with Tungle.",EXTERNAL_SERVICE_AUTH_FAILED:"You must grant Tungle access to your Facebook Events.",invalidToken:"Please use only letters, numbers, '.' and '_'.",shortLink:"Link must be 2 to 32 characters long.",DUPLICATED_PUBLIC_ID:"Sorry! This link is not available. Please try another one.",alreadyTaken:"Sorry, \"$PUBLICID$\" is already taken.<br/>Please Try Again.",availableToken:"Congratulations, \"$PUBLICID$\" is available.<br/>Click \"Accept\" to confirm.",errorList:{DUPLICATED_PUBLIC_ID:"Sorry, the name you picked was just taken. Please try again"}},infoTable:{edit:"Edit this meeting"},infoPopup:{makePublic:"Make event public",makePrivate:"Change public status",explainText:"on my Tungle.me profile",meetingMsgTitle:"<b>Add a comment to your answer</b> (optional)",invitationMsgTitle:"<b>Add a note to your invitation</b> (optional)"},syncMessages:{addSourcesFail:"Tungle encountered an error syncing to your account. Please try again, contact Tungle if the problem persists.",Google:{h1:"Google Calendar and Contacts",text:"Please enter the Google email address that you want to sync with your Tungle account:",chkBox:"Also <b>import my Google contacts</b> for easier meeting scheduling (<i>Tungle will never spam your contacts</i>)",instr:"<p>Once you click on \"Continue\", you will be redirected to a Google page where you will be able to grant access to your Google calendars and contacts to Tungle.</p><p>This process is secure and completely private. Tungle will not have access to your Google password.</p><p>Note that you can revoke access to Tungle at any time through your Google settings.</p>",synced:["Please wait while Tungle retrieves your calendar information","Select from your Google Calendars","Please check the calendars you wish to synchronize. You can also add or remove calendars later from your Management tab.","Successfully synchronized!","Congratulations! Your Google calendar events and contacts(optional) are now synchronized with your Tungle account.","<p><b>Any changes you make to your Google Calendar will now appear in your secure Tungle account.<img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"succGG\"></b></p>","<p><br/>Please note that it may take a few minutes for Tungle to organize your contacts if you synced them.</p>","Please wait while Tungle synchronizes your calendars","<p>Your changes have been successfully saved.</p>","<p>You are already synced with a Google calendar source. At this time Tungle supports only one Google calendar source per account.</p>","<p>If your Google account had multiple calendars, you would be able to choose which ones to sync with Tungle from this popup.</p>"]},LotusLive:{h1:"LotusLive Contacts",text:"Import your LotusLive contacts into Tungle",instr:"<p>Once you click on \"Continue\", you will be redirected to LotusLive page where you will be able to grant access (read-only) to your LotusLive contacts.</p><p>This process is secure and completely private. Tungle will not have access to your LotusLive password.</p><p>Note that you can revoke access to Tungle at any time through your settings on LotusLive.</p>",synced:["Please wait while Tungle retrieves your calendar information","Select from your LotusLive Calendars","Please check the calendars you wish to synchronize. You can also add or remove calendars later from your Management tab.","Successfully synchronized!","Congratulations! Your LotusLive contacts are now synchronized with your Tungle account.","","<p>Please note that it may take a few minutes for Tungle to organize your contacts if you synced them.</p>","Please wait while Tungle synchronizes your calendars","<p>Your changes have been successfully saved.</p>","<p>You are already synced with a LotusLive calendar source. At this time Tungle supports only one LotusLive calendar source per account.</p>","<p>If your LotusLive account had multiple calendars, you would be able to choose which ones to sync with Tungle from this popup.</p>","Your Tungle account is already synced with your LotusLive account.","Please select the actions you like to take."]},facebook:{h1:"<br/>Facebook Events <img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"succFB\"/>",instr:"<p>Upon logging in to Facebook in the new browser window you will be able to grant access to your Facebook Events to Tungle.</p><p>This process is secure and completely private. Tungle will not have access to your Facebook password.</p><p>Note that you can revoke access to Tungle at any time through your Facebook Application Settings.</p>",synced:["Please wait while Tungle retrieves your calendar information","Select from your Facebook Events","Please check the calendars you wish to synchronize. You can also add or remove calendars later from your Management tab.","Successfully synchronized!","Congratulations! Your Facebook Events are now synchronized with your Tungle account.","<p><b>Any Facebook events for which you are attending will now appear in your secure Tungle account.<img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"succFB\"/></b></p>","","Please wait while Tungle synchronizes your calendars","<p>Your changes have been successfully saved.</p>","<p>You are already synced with a Facebook Events source. At this time Tungle supports only one Facebook Events source per account.</p>","<p>If your Facebook Events had multiple calendars, you would be able to choose which ones to sync with Tungle from this popup.</p>"]},outlook:{h1:"Microsoft Outlook",title:"Outlook Connector",bullets:["Install the Tungle Outlook Connector.<img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"installCN1\">","Start your Outlook and enter your Tungle Account username and password.<img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"installCN2\"/>","Enjoy! Your Outlook contacts and calendar events are now synced with Tungle."],text:"In order to synchronize Tungle with Outlook, you need to install the <b>Outlook Connector</b>.",instr:"<p>Installation takes <b>under a minute.</b></p><p>Outlook Connector is lightweight and will <b>not impact the performance</b> of your Outlook.</p><p>It is compatible with <b>Outlook 2003 to 2010</b>, on <b>Windows XP, Vista, and 7</b>.</p>"},ical:{h1:"iCal or Entourage (Mac) - beta",title:"iCal & Entourage Connector Connector",bullets:["Launch the Tungle iCal & Entourage Connector.<img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"installCN1\"/>","Enter your Tungle Account username and password.<img src=\"/portal/images/help_qm.png\" class=\"cHelp\" id=\"installCN2\"/>","Enjoy! Your iCal & Entourage contacts and calendar events are now synced with Tungle."],text:"To synchronize Tungle with iCal or Entourage, you need to install the <b>Mac Connector</b>.",instr:"<p>Installation takes <b>under a minute.</b></p><p>Mac Connector is lightweight and will <b>not impact the performance</b> of your ICal or Entourage.</p><p>It is compatible with <b>OS X Leopard and above (10.5+)</b>.</p>"},lotus:{h1:"Lotus Notes 8.0.2 FC4 and above",text:"To synchronize Tungle with Lotus Notes, you must install the <b>Notes Connector</b>.",frm:"Drag and drop the link below to your <b>\"My Widgets\"</b> sidebar in Lotus Notes.",instr:"<p>Installation takes <b>under a minute.</b></p><p>Notes Connector is lightweight and will <b>not impact the performance</b> of your Lotus Notes.</p><p>It is compatible with <b>Notes 8.0.2 FC4 and above</b>.</p>"},wlive:{h1:"Windows Live/Hotmail (beta)",text:"Automatically update your Tungle.me availability with Windows Live events by adding your Windows Live calendar.",instr:"<p><b>How do I get my Windows Live calendar URL? <a class=\"vidlink link\" href=\"javascript:void(0);\">See this short video.</a></b></p><p>Note that since your Windows Live calendar feed gives read-only access, Tungle.me won't be able to add events directly to your Windows Live calendar. Instead, meetings booked through Tungle.me will be sent to you by email, which you can click to add to your calendar.</p>"},tripit:{h1:"Tripit (beta)",text:"Automatically update your Tungle.me availability with Tripit events by adding your Tripit calendar.",instr:"<p><b>How do I get my Tripit calendar URL? <a class=\"vidlink link\" href=\"javascript:void(0);\">See this short video.</a></b></p><p>Note that since your Tripit calendar feed gives read-only access, Tungle.me won't be able to add events directly to your Tripit calendar. Instead, meetings booked through Tungle.me will be sent to you by email, which you can click to add to your calendar.</p>"},plancast:{h1:"Plancast (beta)",text:"Automatically update your Tungle.me availability with Plancast events by adding your Plancast calendar.",instr:"<p><b>How do I get my Plancast calendar URL? <a class=\"vidlink link\" href=\"javascript:void(0);\">See this short video.</a></b></p><p>Note that since your Plancast calendar feed gives read-only access, Tungle.me won't be able to add events directly to your Plancast calendar. Instead, meetings booked through Tungle.me will be sent to you by email, which you can click to add to your calendar.</p>"},yahoo:{h1:"Yahoo Calendar (CalDAV) (beta)",text:"Automatically update your Tungle.me availability with Yahoo Calendar events by adding your Yahoo Calendar calendar.",instr:"<p>Once your synced with Yahoo calendar (CalDAV), any meeting created in Tungle will automatically be pushed to your Yahoo calendar. Any meetings created in Yahoo will also be synced back into Tungle.</p>"},ics:{h1:"CalDAV and ICS calendars",text:"Tungle supports subscribing to most ICS calendars (read-only) and CalDAV servers (read/write).",instr:"<p>Tungle supports syncing with non-password protected ICS calendars only. Note that ICS calendars can not be used as a Tungle default calendar since they are read-only.</p>",error:["Please enter a name for this calendar.","Please enter a valid URL that starts with http(s):// or webcal://.","Please type your CalDAV server username","Please type your CalDAV server password","Tungle could not retrieve your calendar","<p>Please make sure you entered the full path to your ICS calendar. In most cases, your url should start with <b>\"http://\"</b> or <b>\"webcal://\"</b> and end with <b>\".ics\"</b> or <b>\".ifb\"</b>.</p>","<p><i>Please note that Tungle cannot access ICS calendar urls that require a username and password.</i></p>"],EXTERNAL_SERVICE_AUTH_FAILED:"<p>Tungle was unable to gain access to your CalDAV account. Please make sure you have entered your login information correctly.</p>",synced:["Successfully synchronized!","<p>Congratulations! Your <b>\"$NAME$\"</b> events are now synchronized with your Tungle account.</p>","<p>Any changes you make to your <b>\"$NAME$\"</b> will now appear in your secure Tungle account.</p> ","<p>Please note that Tungle is unable to sync back meetings <b>if \"$NAME$\" is a read-only</b> calendar.</p>"]},privacyControl:{Public:{header:"The calendar \"<b>$CALNAME$</b>\" is currently <b>Public</b>. All events added to this calendar will automatically be shown as public events on your Tungle.me page",footer:"By default, all events added to a public calendar will automatically be shown on your Tungle.me page. Individual events that are marked as private events will not be shown and will remain private."},Private:{header:"The calendar \"<b>$CALNAME$</b>\" is currently <b>Private</b>. Unless you manually change a calendar event to public, <b>no calendar events will be displayed</b> on your Tungle.me page.",footer:"Unless manually changed to public, all events part of a private calendar will remain private and not be shown on your Tungle.me page."}},emailError:"Please enter a valid email.",emailErrorGmail:"Please enter a valid Google email.",INVALID_REQUEST:"Tungle was unable to gain access to your $SOURCE$ account.",EXTERNAL_SERVICE_AUTH_FAILED:"Tungle was unable to gain access to your $SOURCE$ account. Please make sure the account you grant access to in $SOURCE$ is the same account you selected from within Tungle.",REMOTE_CALENDAR_NOT_AVAILABLE:"You must set up $SOURCE$ Calendar before you can sync it with Tungle. To set up your $SOURCE$ Calendar, go to your $SOURCE$ account, click the \"calendar\" link and follow setup instructions. Then retry Tungle sync."},inboxManager:{warnRemove:"Are you sure you want to remove this calendar source from your Tungle Account?<br/><br/>All contacts and calendar events associated with this source will be permanently deleted from the Tungle Server. This action can not be undone.",warnPrivacyChange:"Are you sure you want to change the privacy level of \"<b>$CALNAME$</b>\" to <b>$CALLEVEL$</b>?",warnDeleteContacts:"Are you sure you want to remove all your contacts from your Tungle account?<br/><br/>Your synced contacts will be permanently deleted from the Tungle server. This action can not be undone. Note that manually added contacts and sharing ones must be removed manually from the contact list from the Home tab.",successDeleteContacts:"Your contacts have been succesfully removed from the Tungle server.",Google:"Your Google source has been succesfully removed from Tungle.",def:"Your <b>$Source$</b> source has been succesfully removed from Tungle.",Outlook2:"Your Outlook source <b>$Source$</b> has been succesfully removed from Tungle.<br/><br/>You should also uninstall your Outlook connector.",iCal2:"Your iCal/Entourage source <b>$Source$</b> has been succesfully removed from Tungle.<br/><br/>You should also uninstall your Mac connector.",LotusNotes2:"Your Lotus Notes source <b>$Source$</b> has been succesfully removed from Tungle.<br/><br/>You should also uninstall your Lotus Notes connector.",zeroSource0:"There are no calendars or contacts synced with your Tungle account.",zeroSource1:"There are no calendars synced with your Tungle account.",zeroSource2:"There are no contacts synced with your Tungle account.",zeroShare:"You are not sharing your calendar with anyone.",zeroActions:"You don't have any items requiring your attention.",zeroArchived:"This section lists all the meetings that are in the past or that you manually archived.",zeroBooked:"This section lists all your meetings that have been booked using Tungle.",zeroPending:"This section lists all meetings that you are organizing or being invited to that are still being scheduled using Tungle.",errorServer:"Error contacting the server. Please try again later.",registrationFailed:"Sorry! Your registration did not go through. Error code: $code$. Please try again.",NOT_FOUND:"The calendar sharing request from $invitor$ has been revoked."},sharing:{sent:"Sharing Request Sent",sent_sub:"Your sharing request to $NAME$ has been sent ($EMAIL$)",successNEW:"Once the sharing request is accepted, you both will have read access to each other's calendar. You have chosen to share your <b>$LEVEL$</b> with $NAME$",update:"Sharing Status Updated",noShare:"You have chosen not to share with $NAME$, neither of you may view the other's calendar.",successEDIT:"You have chosen to share your $LEVEL$ with $NAME$",answer:"Sharing Request Accepted",answer_n:"Sharing Request Rejected",answer_sub:"You have accepted the sharing request from $NAME$",successANSWER:"You are sharing your $LEVELME$ with $NAME$, and $FNAME$ is sharing their $LEVEL$ with you."},mwmEditMessage:{help_schedule:"Visitors to your Tungle.me page can send you meeting invitations.",help_add:"Visitors to your Tungle.me page can add you to their Tungle contact list so that they can easily return to your Tungle.me page."},fatalError:"Tungle encountered an error. Please refresh and try again. If the problem persists contact Tungle."};})(jQuery);(function($){$.oppRegister=function(){var _2={myId:"rpx-panel",oppWin:null,user:{email:null},rpxUser:null,userRpxReg:null,oppTimer:null,errorCount:0,addTungleMe:false,adw:false,fullForm:true,disableForm:true,piggyBackCalls:null,callbackAjax_LoginExt:null,STATE:"REGISTER",valSeparator:jQuery.tungleGlobals.Separators.basic,buttonColumns:2,type:null,fName:null,domain:null,tabStart:100,defaultWidth:700};var _3={};var _4={signInCallback:null,signInFailedCallback:null};var _5={rpxForm:"#rpx_form",rpxTitle:"#rpx_title",rpxWait:"#rpx_wait",rpxReg:"#rpx_reg",rpxTerms:"#rpx_terms",rpxWelcome:"#rpx_welcome",registerForm:"#signup",signinTab:"#signinTab",forgotTab:"#forgotTab",signupTab:"#signupTab",oidTab:"#oidTab",signIn:"#rpx_signin",regSuccess:"#rpx_regEmail",linkSuccess:"#rpx_Linked",activation:"#activation",rpxError:"#rpx_Error",contextual:"#con-help"};var _6={rpx:".rpx",norpx:".norpx",rpxContainer:".rpx_container",loginForm:".loginForm",forgotForm:".forgotForm",rpxRegForm:".rpxRegForm",signupForm:".signupForm",form:".form",loadingContainer:".loading",animationDomClass:"miniLoader",oidForm:"openid-frm",confirmMsg:".confirm-msg",typeData:".type",cHelp:".cHelp",curProvider:".opp-active",errorText:".errorText span",successText:".successText span",loginPopup:".login-popup",formData:{user:".user",pass:".pass",error:".errorText span"}};var _7={rpxForm:false,signinForm:false,forgotForm:false,regForm:false,RPXWaiting:false,RPXReg:false,regSuccess:false};var _8={register:"REGISTER",signin:"SIGNIN",forgot:"FORGOT",registerRPX:false};var _9=window.location.hostname.indexOf("tungle.me")>-1?"https://signin.tungle.com":"https://tungle-eval.rpxnow.com";var _a=escape(window.location.protocol+"//"+window.location.host+"/intgn/rpx/response?dest=/portal/oppAuth.htm");var _b=[{id:"rpx_facebook",pos:"-100",sPos:"0",url:"/facebook/start?token_url=",visible:true,txt:"Facebook",gaType:"Facebook"},{visible:true,txt:"Twitter",id:"rpx_twitter",pos:"-400",sPos:"-128",url:"/twitter/start?token_url=",gaType:"Twitter"},{visible:true,txt:"Google",id:"rpx_google",pos:"-200",sPos:"-64",url:"/openid/start?token_url=",gaType:"Google",hidden:"<input type=\"hidden\" name=\"openid_identifier\" value=\"https://www.google.com/accounts/o8/id\"/>"},{visible:true,txt:"Windows Live",gaType:"Windows Live ID",id:"rpx_liveid",pos:"-250",sPos:"-96",url:"/liveid/start?token_url="},{visible:true,txt:"Yahoo",gaType:"Yahoo!",id:"rpx_yahoo",pos:"-550",sPos:"-160",url:"/openid/start?token_url=",hidden:"<input type=\"hidden\" name=\"openid_identifier\" value=\"yahoo.com\"/>"},{visible:true,txt:"LinkedIn",gaType:"LinkedIn",id:"rpx_linkedin",pos:"-150",sPos:"-32",url:"/linkedin/start?token_url="},{visible:true,txt:"GoogleApps",gaType:"Google Apps",id:"rpx_googleApps",img:"/portal/images/rpx/googlApps.png",pos:"-600",sPos:"-192",url:"/openid/start?token_url=",special:true}];var _c=false;var _d;var _e;var _f;var _10;var _11;var _12;var _13;var _14;var _15;var _16;var _17;var _18;var _19;var _1a;var _1b;var _1c;var _1d;var _1e;var _1f;var _20;var _21;var _22;var _23;var _24;var _25;var _26;var _27;var _28;var _29;var _2a;var _2b;var _2c;var _2d;var _2e;var _2f;var _30;var _31;var _32;var _33;var _34;var _35;var _36;var _37;var _38;var _39;var _3a;var _3b;var _3c;var _3d;var _3e;var _3f;_1d=function(){};_2e=function(){$(_5.rpxTitle).text(jQuery.langStrings.rpxPopup[_2.STATE]);};_31=function(_40){_2.STATE=_40;_2e();};_34=function(){_c=true;if(_6.animationDomClass){$("#"+_2.myId+" ."+_6.animationDomClass).show();}};_33=function(){_c=false;if(_6.animationDomClass){$("#"+_2.myId+" ."+_6.animationDomClass).hide();}};_35=function(_41){_37();if(!_41||_41.isEmpty()){return false;}$("#"+_2.myId).find(_6.errorText).text(_41).parent().show();if(_41===jQuery.langStrings.tglMessages.usedTokenShort||_41===jQuery.langStrings.tglMessages.usedToken){_2.errorCount++;jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Tungle.me URL Unavailable",_2.errorCount);}if(!_7.resendEmail){_7.resendEmail=true;$(_5.signIn+" span.login-reconfirm").click(function(){if(_c){return false;}jQuery.rpxPopup.resendEmail(_2.user,_26,_2a);_34();return false;});}};_36=function(_42){_37();if(!_42||_42.isEmpty()){return false;}$("#"+_2.myId).find(_6.successText).text(_42).parent().show();};_37=function(){$("#"+_2.myId).find(_6.errorText+", "+_6.successText).parent().hide();};_38=function(_43){$(_43+" input").val("");};_2f=function(_44,_45){if(!_2.disableForm){return false;}if(_45){$(_44).css("cursor","auto");$(_44+" input").removeAttr("disabled");}else{$(_44).css("cursor","wait");$(_44+" input").attr("disabled","disabled");}};_2a=function(_46){_33();_2f("#myLogin",true);_2f("#forgot",true);var _47=jQuery.ajaxHelper.procErrorCode(_46);if(_2.callBackFailed){_2.callBackFailed(_47);}else{if(_2.callBackConfirm){_2.callBackConfirm(null,_47);}else{_35(_47);}}};_e=function(_48,_49){if(!_48){if(_49==undefined||_49.length==0){$(_5.rpxForm).hide();}else{for(var i=0;i<_49.length;i++){for(var j=0;j<_b.length;j++){if(_b[j].txt==_49[i]){$("#"+_b[j].id).hide();}}}}$("."+_6.oidForm).hide();}else{if(!_7.rpxForm){_7.rpxForm=true;var _4c="<div class=\"title\">";if(_2.fullForm){_4c+=(_2.type?jQuery.langStrings.rpxPopup.rpxFormBack+(_2.fName?", "+_2.fName:""):jQuery.langStrings.rpxPopup.rpxForm);}else{_4c+=jQuery.langStrings.rpxPopup.rpxFormSimple;}_4c+="</div>";var _4d="";var _4e=0;var i;var _4f=[_2.buttonColumns];for(i=0;i<_2.buttonColumns;i++){_4f[i]="";}for(i=0;i<_b.length;i++){if(_b[i].visible){var _50=_4e%_2.buttonColumns;_4e++;var _51=_2.fullForm?_b[i].pos:_b[i].sPos;_4f[_50]+="<li id=\"li_"+_b[i].id+"\" style=\"background-position:0 "+_51+"px\" txt=\""+_b[i].txt+"\" frm=\""+_b[i].id+"\" class=\"provider-login";if(_b[i].special){_4f[_50]+=" show\">";_4d+="<div id=\"gen_"+_b[i].id+"\" class=\""+_6.oidForm+" brd_eeeeee\">";_4d+="<a href=\"javascript:void(0);\" class=\"openid-x\"><img class=\"close\" src=\"/portal/images/popups/close2.png\" frm=\""+_b[i].id+"\" style=\"border:0\"/></a>";_4d+="To sign in to <img src=\""+_b[i].img+"\" style=\"margin:0px;vertical-align:top\"/> please enter your "+_b[i].txt+" domain:";_4d+="<form id=\""+_b[i].id+"\" method=\"POST\" action=\""+_9+_b[i].url+_a+"\" target=\"rpx\" class=\"rpx-form\">";_4d+="<input type=\"text\" txt=\""+_b[i].txt+"\" frm=\""+_b[i].id+"\" style=\"width: 180px;margin-right:5px;\" name=\"openid_identifier\">";_4d+="<a class=\"link submit\" txt=\""+_b[i].txt+"\" frm=\""+_b[i].id+"\" href=\"javascript:void(0);\">Sign in</a>";_4d+="</form></div>";}else{_4f[_50]+=" submit\"><form id=\""+_b[i].id+"\" method=\"POST\" action=\""+_9+_b[i].url+_a+"\" target=\"rpx\">";if(_b[i].hidden){_4f[_50]+=_b[i].hidden;}_4f[_50]+="</form>";}_4f[_50]+="</li>";}}if(_4e>0){_4c+="<div class=\"op-list\">";if(_2.fullForm){for(i=0;i<_2.buttonColumns;i++){_4c+="<ul>"+_4f[i]+"</ul>";}}else{_4c+="<ul>";for(i=0;i<_2.buttonColumns;i++){_4c+=_4f[i];}_4c+="</ul>";}_4c+="</div>";if(_2.fullForm){_4c+=_4d;}else{$(_5.oidTab).append(_4d);}$(_5.rpxForm+" "+_6.rpxContainer).html(_4c).show();$(_5.rpxForm+" "+_6.rpxContainer+",."+_6.oidForm).unbind("click").click(function(e){_37();var cl=$(e.target).attr("class");var _54=$(e.target).attr("frm");if(cl.hC("submit")){if(e.target.nodeName.toLowerCase()=="a"){var _55=null;if(_2.fullForm){_55=$(_5.rpxForm).find("input[frm="+_54+"]").val();}else{_55=$(_5.signIn).find("input[frm="+_54+"]").val();}if(_55.isEmpty()){return false;}_2.domain=_55;}_d($(e.target).attr("txt"),"rpx");$("#"+_54).submit();return false;}else{if(cl.hC("show")){$(_5.oidTab+" ."+_6.oidForm).hide();if(_2.domain){var dom=_2.fullForm?$(_5.rpxForm):$(_5.signIn);dom.find("input[frm="+_54+"]").val(_2.domain).end().find("a.submit").click();}else{_12(true,_54);}return false;}else{if(cl.hC("close")){_12(false,_54);}}}}).keydown(function(e){if(e.keyCode===13){return false;}else{_37();}});var _58=$("#"+_2.myId);var _59=_2.defaultWidth;_58.css("width",_59+"px");if(_2.popup){_58.jqmResize(_59+5);}if(_4e==1){$(_5.rpxForm).find("ul").css("float","none").css("margin","0 auto");}$(_5.rpxForm).show();if(_2.fullForm&&_4e==_b.length){_18(true);}else{_18(false);}}else{$(_5.rpxForm+" "+_6.rpxContainer).html("").hide();_7.rpxForm=false;var _58=$("#"+_2.myId);var _59=360;_58.css("width",_59+"px");if(_2.popup){_58.jqmResize(_59+5);}}}}};_12=function(_5a,_5b){if(!_5b){$(_5.oidTab+" ."+_6.oidForm).hide();}if(_5a){$("#gen_"+_5b).show();if(!_2.fullForm){var _5c=_2.STATE==_8.register?_5.signupTab:_5.signinTab;$(_5c).hide();$(_5.oidTab).show();}}else{$("#gen_"+_5b).hide();if(!_2.fullForm){var _5c=_2.STATE==_8.register?_5.signupTab:_5.signinTab;$(_5.oidTab).hide();$(_5c).show();}}};_13=function(_5d,_5e){if(!_5d){$(_5.rpxWait).hide();}else{if(!_7.RPXWaiting){_7.RPXWaiting=true;$(_5.rpxWait).find("a.cancel").click(function(){_1a("cancel");return false;});}$(_5.rpxWait).stop(true,true).show().find(_6.typeData).text(_5e);}};_18=function(_5f,dom){var _61=$(_5.rpxTerms);if(!dom){dom=$("#"+_2.myId);}_61.appendTo(dom);if(_5f){_61.show();}else{_61.hide();}};_15=function(_62){if(!_62){$(_5.rpxError).hide();}else{if(!_7.RPXError){_7.RPXError=true;$(_5.rpxError).find("a.cancel").click(function(){_15(false);return false;});}$(_5.rpxError).find(".rpxErr").hide().end().find("."+_2.STATE.toLowerCase()).show();$(_5.rpxError).stop(true,true).show().find(_6.typeData).text(_2.type);if(_4.signInFailedCallback){_4.signInFailedCallback();}}};_14=function(_63,_64){var _65=$(_5.rpxReg);if(!_63){_65.hide();}else{if(!_7.RPXReg){_7.RPXReg=true;var tmp=new Array();tmp[tmp.length]={type:"Name",label:"First name"};tmp[tmp.length]={type:"Name",label:"Last name"};tmp[tmp.length]={type:"Email",label:"Email"};if(_2.fullForm){tmp[tmp.length]={type:"SelectWL",label:"Timezone",select:{array:TimeZoneLabelToText,selected:getTimeZoneToken()}};}_65.find(_6.rpxRegForm+" "+_6.form).createForm({inputObjects:tmp,callBackSubmit:_1c,formId:"rpxReg",tabStart:100,backgroundColor:"transparent",inputWidth:"220px"});}if(_64.account.fName){_2.fName=_64.account.fName;}if(_64.account.fName&&_64.account.fName!=_64.account.email){_65.find("input[label=First name]").val(_64.account.fName);}if(_64.account.lName&&_64.account.lName!=_64.account.email){_65.find("input[label=Last name]").val(_64.account.lName);}if(_64.account.email){_65.find("input[label=Email]").val(_64.account.email);}_3f(_65);_65.show();_18(false);}};_3f=function(dom){if(!_2.type){return false;}var _68=null;for(var i=0;i<_b.length;i++){if(_b[i].txt==_2.type){_68=_b[i];break;}}dom.find(_6.curProvider).css("background-position","0 "+_68.pos+"px").attr("frm",_68.id).attr("txt",_68.txt).end().find(".welcome1").text(jQuery.langStrings.rpxPopup.rpxFormBack+(_2.fName?", "+_2.fName:"")).end().find(".welcome2").text(jQuery.langStrings.rpxPopup.rpxFormBack2.replace("$PROVIDER$",_68.txt));};_16=function(_6a,_6b){_3d(_2.type,_2.fName,_2.domain);if(!_6a){$(_5.regSuccess).hide();}else{if(window!=top&&_2.fullForm){window.location="/portal/regconPopup.htm?"+(_2.adw?"cv="+_2.adw+"&":"")+"email="+_6b;}else{if(!_7.regSuccess){_7.regSuccess=true;$(_5.regSuccess).find("a.signin").click(function(){$(_5.regSuccess).hide();_3e(_8.signin);return false;});}$(_5.regSuccess).show().find(_6.typeData).text(_6b).attr("title",_6b);if(!_2.fullForm){_e(false);}if(_2.popup){var _6c=$("#"+_2.myId);_6c.jqmResize(null,200,true);_6c.parent().css("overflow","hidden");$(_5.rpxForm).height(120).find(_6.rpxContainer).hide();$(_5.rpxTerms).hide();}if(_2.adw){var _6d=$("#cv-frame");if(_6d.length==0){var _6e="/portal/adw_conversion.htm";_6d=$("<iframe id=\"cv-frame\" src=\""+_6e+"\" width=\"0\" height=\"0\" frameborder=\"0\"></iframe>");$("body",document).append(_6d);}}}}};_3e=function(_6f){_37();$(".form input").val("");if(_6f==_8.register){_10(true);}else{_f(true,false,false);}if(!_2.fullForm){_7.rpxForm=false;_e(true);$(_5.signIn).find(_6.norpx).show();var _70=$(_5.signupTab+" "+_6.signupForm+" "+_6.form);_70.trigger("hideHelp",[[2,3]]);$(_5.rpxReg+","+_5.rpxWelcome).hide();}};_17=function(_71,_72){if(!_71){$(_5.linkSuccess).hide();}else{if(!_7.RPXLinked){_7.RPXLinked=true;$(_5.linkSuccess).find("a.continue").click(function(){_1d();return false;});}$(_5.linkSuccess).show().find(_6.typeData).text(email);}};_1a=function(_73){if(_73&&_73.session){if(_73.account&&_73.account.fName){_2.fName=_73.account.fName;}_3d(_2.type,_2.fName,_2.domain);if(_2.piggyBackCalls){var _74=jQuery.ajaxHelper.sessionId;jQuery.ajaxHelper.sessionId=_73.session;jQuery.ajaxHelper.sendAjaxPostRequest("InitializeJSON",_2.piggyBackCalls,function(_75,_76){_2.callbackAjax_LoginExt(_75,false,_76);_13(false);if(_2.popup){$("#"+_2.myId).jqmHide();}},function(){_15(true);},_73.session);clearInterval(_2.oppTimer);jQuery.ajaxHelper.sessionId=_74;return;}else{_1f(_73.session);}}else{if(_73&&_73.account){if(_2.STATE==_8.signin&&_2.popup){_15(true);}else{_8.registerRPX=true;$("#"+_2.myId).find(_6.rpx).show().end().find(_6.norpx).hide();if(_2.fullForm){_e(false);_f(false);_10(true);_14(true,_73);var _77=$(_5.signupTab+" "+_6.signupForm+" "+_6.form);var _78=$(_5.rpxReg+" "+_6.rpxRegForm+" "+_6.form);if(_73.account.email){_77.trigger("addHelp",[[3],["whyRpxPassword"],true]);_78.trigger("addHelp",[[2],["whyRpxEmail"]]);_77.trigger("hideFields",[[0,1,2]]);}else{_77.trigger("addHelp",[[2,3],["whyRpxEmail","whyRpxPassword"],true]);_77.trigger("hideFields",[[0,1]]);_78.trigger("hideFields",[[2]]);}}else{_e(false);_12(false);_f(false);_10(true,_73);var _77=$(_5.signupTab+" "+_6.signupForm+" "+_6.form);_77.trigger("addHelp",[[2,3],["whyRpxEmail","whyRpxPassword"],true]);var _78=$(_5.rpxReg);var _79=null;for(var i=0;i<_b.length;i++){if(_b[i].txt==_2.type){_79=_b[i];break;}}_78.find(_6.curProvider).css("background-position","0 "+_79.pos+"px");_78.show();}if(_73.tEmail){if(!_7.simpleSignin){_3c();}$(_6.loginPopup).trigger("login",_73.tEmail);}}}else{if(_73&&_73.error){_15(true);}else{if(_73!=="cancel"){_15(true);}}}}clearInterval(_2.oppTimer);_13(false);};_d=function(_7b,_7c){jQuery.tungleGlobals.showPopWin("",_7c,_1a);_2.type=_7b;_13(true,_7b);};_1f=function(_7d,_7e){_3d(_2.type,_2.fName,_2.domain);if(_2.popup){$("#"+_2.myId).jqmHide();}if(_4.signInCallback){_4.signInCallback(_7d);}else{var _7f="";if(_7e){_7f+="#";switch(_7e){case "READY":_7f+="1";break;default:break;}}if(window!=top){top.location="/portal/hosted.htm?"+(_2.adw?"cv="+_2.adw+"&":"")+"code="+_7d+_7f;}else{window.location="/portal/hosted.htm?"+(_2.adw?"cv="+_2.adw+"&":"")+"code="+_7d+_7f;}}};_f=function(_80,_81,_82){if(!_80){$(_5.signinTab).hide();}else{$("#myLogin input:password").val("");if(_82){_2f("#myLogin",true);}var _83=$(_5.signIn);if(!_7.signinForm){_7.signinForm=true;_21();var _84=$.ajaxHelper.getParameter(document.location.search,"email");_84&&_83.find("input[label='Email']").val(_84);}if(_81){_83.find(_6.loginForm).hide();_83.find(_6.forgotForm).show().find("input:text").blur().focus();_83.parent().find(".login-header").text(jQuery.langStrings.rpxPopup.FORGOT);_31(_8.forgot);}else{_83.find(_6.forgotForm).hide();_83.find(_6.loginForm).show().find("input:text").blur().focus();_83.parent().find(".login-header").text(_2.fullForm?jQuery.langStrings.rpxPopup.SIGNINLONG:jQuery.langStrings.rpxPopup.SIGNIN);_31(_8.signin);}$(_5.signupTab).hide();$(_5.signinTab).show();}};_10=function(_85,_86){var _87=$(_5.signupTab);if(!_85){_87.hide();}else{if(!_7.signupForm){_7.signupForm=true;_20();var _88=$.ajaxHelper.getParameter(document.location.search,"email");var _89=$.ajaxHelper.getParameter(document.location.search,"first");var _8a=$.ajaxHelper.getParameter(document.location.search,"last");_88&&_87.find("input[label='Email']").val(_88);_89&&_87.find("input[label=First name]").val(_89);_8a&&_87.find("input[label=Last name]").val(_8a);}$(_5.signinTab).hide();_87.show();_31(_8.register);if(_86){var _8b=$(_5.signupTab+" "+_6.signupForm+" "+_6.form);if(_86.account.fName){_2.fName=_86.account.fName;}if(_86.account.fName&&_86.account.fName!=_86.account.email){_8b.find("input[label=First name]").val(_86.account.fName);}if(_86.account.lName&&_86.account.lName!=_86.account.email){_8b.find("input[label=Last name]").val(_86.account.lName);}if(_86.account.email){_8b.find("input[label=Email]").val(_86.account.email);}}_18(true);}};_11=function(_8c){var dom=$(_5.rpxWelcome);if(!_8c){dom.hide();}else{_3f(dom);dom.find(".title").text(jQuery.langStrings.rpxPopup.SIGNIN).end().click(function(e){var cl=$(e.target).attr("class");if(cl.hC(_6.curProvider.substring(1))){var _90=$(e.target).attr("frm");$(_5.signIn).find("input[frm="+_90+"]").val(_2.domain);_d($(e.target).attr("txt"),"rpx");$("#"+_90).submit();}});dom.show();_18(false);}};_21=function(){var _91=$(_5.signinTab);var tmp=new Array();tmp[tmp.length]={type:"Email",label:"Email"};tmp[tmp.length]={type:"Password",label:"Password"};tmp[tmp.length]={type:"CheckBox",label:"Remember me"};tmp[tmp.length]={type:"Submit",label:"Sign in",extraLinks:"<a id=\"btn_pop_lpc\" class=\"medium t_link not-user\">Not a user</a><a id=\"btn_pop_lpf\" class=\"medium t_link login-forgot\">Forgot password</a>"};_91.find(_6.loginForm+" "+_6.form).createForm({inputObjects:tmp,callBackSubmit:_23,formId:"myLogin",tabStart:_2.tabStart,backgroundColor:"transparent",inputWidth:"220px",css:{cellspacing:2,chkBox:"margin-left:-4px;",extraLoader:"<div class=\"miniLoader\" style=\"float:right;margin:5px 20px 0 0\">Please wait...<img src=\"/portal/images/loading2G.gif\"/></div>"}});tmp=new Array();tmp[tmp.length]={type:"Email",label:"Email"};tmp[tmp.length]={type:"Submit",label:"Reset password",extraLinks:"<a id=\"btn_pop_lpc2\" class=\"not-user medium t_link\">Not a user</a><a id=\"btn_pop_lpfu\" class=\"is-user medium t_link\">Sign in</a>"};_91.find(_6.forgotForm+" "+_6.form).createForm({inputObjects:tmp,callBackSubmit:_24,formId:"forgot",tabStart:_2.tabStart+100,backgroundColor:"transparent",inputWidth:"220px",css:{cellspacing:2,extraLoader:"<div class=\"miniLoader\" style=\"float:right;margin:5px 20px 0 0\">Please wait...<img src=\"/portal/images/loading2G.gif\"/></div>"}});_91.find(".not-user").click(function(){if(!_c){_10(true);$(_5.rpxForm+" .not-you").click();}return false;});_91.find(".is-user").click(function(){if(!_c){_37();_f(true,false,false);}return false;});_91.find(".login-forgot").click(function(){if(!_c){_f(true,true,false);}return false;});$("#"+_2.myId).find(_6.loadingContainer).hide();};_20=function(){var _93=$(_5.signupTab+" "+_6.signupForm);jQuery.rpxPopup.buildRegistrationForm(_93,_2.addTungleMe,_5.registerForm,31,_35,_36,_25,"<a id=\"btn_pop_lpu\" class=\"is-t-user medium t_link\">Already a user?</a>",_2.fullForm);_93.find(".is-t-user").click(function(){_3e(_8.signin);return false;});$("#"+_2.myId).find(_6.loadingContainer).hide();};_23=function(_94){if(!_94){return false;}if(_c){return false;}_37();$(_5.signIn+" "+_6.loginForm+" input:text:first").blur().focus();var _95={user:"",pass:"",remember:false};for(var i=0;i<_94.length;i++){if(_94[i].name=="Email"){_95.user=_94[i].value.trim();_2.user.email=_95.user;}else{if(_94[i].name=="Password"){_95.pass=_94[i].value;}else{if(_94[i].name=="Remember me"){_95.remember=_94[i].value;}}}}var _97=jQuery.rpxPopup.login(_95,"#myLogin",_30,_2a,_8.registerRPX,_2.piggyBackCalls);if(_97){_2f("#myLogin",false);_34();}else{_2.user.email="";}};_27=function(_98,_99){_25(_98,null,_99);};_25=function(_9a,_9b,_9c){if(!_9a){return false;}if(_c){return false;}if(_8.registerRPX&&_2.fullForm){$.each(_1b(),function(i,_9e){for(var i=0;i<_9a.length;i++){if(_9a[i].name==_9e.name&&!_9e.value.isEmpty()){_9a[i].value=_9e.value;break;}}});}if(!_9a){return false;}var _9f=jQuery.rpxPopup.parseRegisterFormData(_9a);if(_2.addTungleMe){if(!_9c){$(_5.registerForm).trigger("verify",[_27,_9a]);return false;}else{if(_9c=="error"){return false;}else{_9f.link=_9c;}}}if(_3&&_3.email==_9f.email){_9f.code=_3.code;}var _a0=jQuery.rpxPopup.signup(_9f,_35,_26,_2a,_8.registerRPX,_5.registerForm,_2);if(_a0){_34();}};_26=function(_a1,_a2){_33();if(!jQuery.ajaxHelper.isSuccessJSON(_a1)){var _a3=jQuery.ajaxHelper.procErrorCode(_a1.TRes.Code.$);_35(_a3);}else{var _a4="";if(!_2.type||!_8.registerRPX){_a4="Direct";}else{if(_2.type){for(var i=0;i<_b.length;i++){if(_b[i].txt===_2.type){_a4=_b[i].gaType;break;}}}}jQuery.tungleGlobals.trackGAEvents("Sign Up","Completed Attempt",_a4,_2.errorCount);if(_a1.TRes.Session){jQuery.tungleGlobals.trackGAEvents("Sign Up","Confirmed Completion",_a4);_1f(_a1.TRes.Session["@Code"],"READY");}else{if(_a1.TRes.ActivationCode){$(_5.activation).attr("value",_a1.TRes.ActivationCode.$);window.setTimeout(function(){_10(false);_16(true,_a2.email);},2000);}else{$(_6.loginPopup).jqmHide();_10(false);_16(true,_a2.email);}}}};_30=function(_a6,_a7){_33();var _a8=_a6;if(_2.piggyBackCalls&&_a6.TRes.length){for(var i=0;i<_a6.TRes.length;i++){if(_a6.TRes[i]["@Type"]=="Signon"){_a8=_a6.TRes[i];break;}}}else{_a8=_a6.TRes;}if(_a8["@Status"]=="ERROR"){var _aa=_a8.Code.$;var _ab=jQuery.ajaxHelper.procErrorCode(_aa);removeCookie(jQuery.tungleGlobals.cookieUser);removeCookie(jQuery.tungleGlobals.cookiePassword);removeCookie(jQuery.tungleGlobals.cookieSession);removeCookie(jQuery.tungleGlobals.cookieName);_f(true,false,true);if(_2.callBackFailed){_2.callBackFailed(_ab);}_35(_ab);}else{if(_a7.remember){createCookie(jQuery.tungleGlobals.cookiePassword,_a7.pass);}var _aa=_a8.Session["@Code"];var _ac=_a8.User?_a8.User["@OldStatus"]:null;createCookie(jQuery.tungleGlobals.cookieName,_a8.User.FirstName?_a8.User.FirstName.$:"");createCookie(jQuery.tungleGlobals.cookieSession,_aa);createCookie(jQuery.tungleGlobals.cookieUser,_a7.user);if(_2.piggyBackCalls){if(_2.callbackAjax_LoginExt){_2.callbackAjax_LoginExt(_a6,false,_aa);if(_2.popup){$("#"+_2.myId).jqmHide();}}else{}return false;}if(_2.callBackSuccess){_2.callBackSuccess(_aa,_ac);}else{_2.type=_2.fName=_2.domain=null;_1f(_aa,_ac);}jQuery.tungleGlobals.trackGAEvents("Sign In","Signed In","Manual");}};_2b=function(_ad,_ae,_af,_b0){$.ajax({type:"POST",url:"/service/session/"+jQuery.ajaxHelper.sessionId+"/Password.Forgot",data:jQuery.ajaxHelper.createTMsg("Password.Forgot",_ad,_b0),dataType:"xml",success:function(xml){if(_ae){_ae(xml);}},error:function(xhr,b){if(jQuery.ajaxHelper.ajaxErrorHandler(xhr)){_2b(_ad,_ae,_af,true);}else{if(_af){_af(b);}}}});};_24=function(_b4){if(!_b4){return false;}if(_c){return false;}var _b5=_b4[0].value.trim();var _b6=$(_5.signIn+" "+_6.forgotForm+" input:text:first");_b6.blur().focus();if(_b5==""||!_b5.emailIsValid()){jQuery.BubbleError.show(_b6,jQuery.langStrings.formMessages.errorNoEmail);return false;}$(_5.signIn+" "+_6.forgotForm+" input:text").val("");_2f("#forgot",false);var _b7="<Account><Email><Pri><![CDATA["+_b5+"]]></Pri></Email></Account>";_2b(_b7,_28,_2a);_34();};_28=function(xml){_33();_2f("#forgot",true);if(jQuery.ajaxHelper.isSuccess(xml)){if(_2.callBackConfirm){_2.callBackConfirm("#forgot",jQuery.langStrings.formMessages.confirmForgot);}else{_36(jQuery.langStrings.formMessages.confirmForgot);}}else{$(_5.signIn+" "+_6.forgotForm+" input:text:first").blur().focus();var _b9=$("Code",xml).text();var _ba=jQuery.ajaxHelper.procErrorCode(_b9);_35(_ba);}};_29=function(_bb){_33();window.location="/portal/regcon.htm?email="+_2.user.email;};_2d=function(_bc){return false;$(_bc).keypress(function(e){switch(e.keyCode){case 13:$(this).find("a.defBtnS").focus().click();return false;case 27:if(!_2.usePopup){return true;}break;default:break;}});};_1b=function(){$(_5.rpxReg+" "+_6.rpxRegForm+" "+_6.form).trigger("getData");return _2.userRpxReg;};_1c=function(_be){_2.userRpxReg=_be;};_32=function(_bf){if(!_2.fullForm&&_2.type){_11(true);_f(false);_10(false);_e(false);}else{if(_bf==_8.signin){_f(true,false,true);}else{if(_bf==_8.register){_10(true);}else{if(_bf==_8.forgot){_f(true,true,true);}}}}};_1e=function(_c0){var _c1=$(_5.signIn);if(_c0.email){_c1.find("input[label='Email']").val(_c0.email);if(_2.STATE==_8.signin){_c1.find("input[label='Email']").attr("disabled","disabled");}}if(_c0.link){_c1.find("input[label='Pick your url']").val(_c0.link);}if(_c0.name&&_c0.email&&_c0.name!=_c0.email){var _c2=guessName(_c0.name);var _c3=_c2[0];var _c4=_c2[1];_c1.find("input[label='First name']").val(_c3);_c1.find("input[label='Last name']").val(_c4);_c1.find("input[label='Pick your url']").val(_c4.length>0?_c3+_c4:_c3);}};_2c=function(){$(_5.rpxForm+" .not-you").click(function(){_3a(null,false);_7.rpxForm=false;$(_5.rpxForm).find(".not-you").parent().hide().end().end().find("."+_6.oidForm).hide();_e(true);return false;});$(_5.rpxReg+","+_5.rpxWelcome).find(".reload").click(function(){_3e(_8.register);return false;});};_3a=function(_c5,_c6){for(var i=0;i<_b.length;i++){var _c8=!_c6;if(_c6){for(var j=0;j<_c5.length;j++){if(_c5[j]==_b[i].txt){_c8=true;break;}}}_b[i].visible=_c8;}};_3b=function(_ca){_2.fullForm=_ca.fullForm==undefined?_2.fullForm:_ca.fullForm;_2.addTungleMe=_ca.addTungleMe==undefined?_2.addTungleMe:_ca.addTungleMe;_2.piggyBackCalls=_ca.piggyBackCalls;_2.callbackAjax_LoginExt=_ca.callbackAjax_LoginExt;_2.defaultWidth=_ca.defaultWidth||_2.defaultWidth;if(_ca.tabStart){_2.tabStart=_ca.tabStart;}if(_ca.state&&_ca.state==_8.signin||!_2.fullForm){var _cb=_3d();if(_cb){_2.type=_cb[0];_2.fName=_cb[1];if(_cb.length>2){_2.domain=_cb[2];}if(_2.fullForm){_3a([_2.type],true);$(_5.rpxForm+" .not-you").parent().show();}}else{if(_ca.rpxArray){_3a(_ca.rpxArray,true);}}}_32(_ca.state);if(_ca.callbacks){$.extend(_4,_ca.callbacks);}if(_ca.popup&&!_2.popup){var _cc=$("#"+_2.myId);_cc.jqm({overlay:30,height:420,width:705,modal:true,fixedHeight:false});if(_4.xBtnCallback){_cc.parent().siblings(".jqmClose").unbind("click").click(function(){_4.xBtnCallback();});}_2.popup=true;}if(_ca.user){_1e(_ca.user);}if(_ca.quickReg){$.extend(_3,_ca.quickReg);}if(_ca.rebuildRpx){_7.rpxForm=false;_e(true);}};_3c=function(){$(_6.loginPopup).signon({idPrefix:"pip-",popupDim:{overlay:0,height:300,width:400,xBTN:true},signinMethod:"Rpx.SignonJSON",callBackSuccess:function(_cd,_ce){_1f(_cd,_ce);},callBackReconfirm:_26,callBackCancel:function(){$(_6.loginPopup).jqmHide();}});};_3d=function(_cf,_d0,_d1){if(_cf===null){removeCookie(jQuery.tungleGlobals.cookieOpenID);return null;}else{if(_cf){var _d2=_cf+_2.valSeparator+_d0;if(_d1&&_cf=="GoogleApps"){_d2+=_2.valSeparator+_d1;}createCookie(jQuery.tungleGlobals.cookieOpenID,encodeURIComponent(_d2),14);jQuery.tungleGlobals.trackGAEvents("Sign In","Signed In",_2.type);return null;}else{var _d2=readCookie(jQuery.tungleGlobals.cookieOpenID);if(_d2){_d2=decodeURIComponent(_d2);}return _d2?_d2.split(_2.valSeparator):_d2;}}};return {initialize:function(_d3,_d4){_2.myId=$(_d3).attr("id");if(_d4){_3b(_d4);}else{_10(true);}_2.errorCount=0;_e(true);if(!_2.fullForm&&_2.type){_e(false);}else{if(_2.type){_18(false);}}$(_d3).bind("show",function(e,_d6,_d7){_37();if(_d7){_3b(_d7);}else{_10(true);}_7.rpxForm=false;if(_2.fullForm){_e(true);}if(_d6){if(_2.popup){$(this).jqmShow();}}else{if(_2.popup){$(this).jqmHide();}}}).bind("login",function(e,_d9){return false;}).bind("error",function(e,_db){_35(_db);}).show();if(_2.popup&&(!_d4||!_d4.hide)){$(_d3).jqmShow();}_2c();_2.adw=jQuery.ajaxHelper.getParameter(document.location.search,"cv");},getTokenUrl:function(_dc,_dd){for(var i=0;i<_b.length;i++){if(_b[i].txt==_dc){var _df=_dd?("&ext_perm="+_dd):"";return _9+_b[i].url+_a+_df;}}}};}();jQuery.rpxPopup={enabled:false,id:"#rpx-panel",open:function(_e0){if(!jQuery.rpxPopup.enabled){$(jQuery.rpxPopup.id).oppRegister(_e0);}else{$(jQuery.rpxPopup.id).trigger("show",[true,_e0]);}},resendEmail:function(_e1,_e2,_e3){var _e4="<Recipients><Tos><To><Email><![CDATA["+_e1.email+"]]></Email></To></Tos></Recipients>";_e4+="<EmailTemplate ID=\"User_Registration_Confirmation\"/>";jQuery.ajaxHelper.sendAjaxPostRequest("SendEmailJSON",_e4,_e2,_e3,_e1);},login:function(_e5,_e6,_e7,_e8,rpx,_ea){if(!_e5){return false;}if(!_e5.user||_e5.user==""){jQuery.BubbleError.show($(_e6).find(" input[label=Email]"),jQuery.langStrings.formMessages.errorNoRegisteredEmail);return false;}if(!_e5.user.emailIsValid()){jQuery.BubbleError.show($(_e6).find(" input[label=Email]"),jQuery.langStrings.formMessages.errorInvalidEmail);return false;}if(!_e5.pass||_e5.pass==""){jQuery.BubbleError.show($(_e6).find(" input[label=Password]"),jQuery.langStrings.formMessages.noPass2);return false;}if(!_e5.encoded){_e5.pass=b64_sha1_utf8(_e5.pass);}var _eb="<Pwd>"+_e5.pass+"</Pwd>";_eb+="<Email><![CDATA["+_e5.user+"]]></Email>";var _ec=rpx==true?"Rpx.Signon":"Signon";if(_ea){_eb="<TReq Type=\""+_ec+"\">"+_eb+"</TReq>"+_ea;}jQuery.ajaxHelper.sendAjaxPostRequest(_ec+"JSON",_eb,_e7,_e8,_e5);return true;},signup:function(_ed,_ee,_ef,_f0,rpx,_f2,_f3){if(!_ed){return false;}if(_ed.fname.isEmpty()){jQuery.BubbleError.show($(_f2+" input[label=First name]"),jQuery.langStrings.formMessages.noFName);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Missing First Name",_f3.errorCount);return false;}else{if(_ed.lname.isEmpty()){jQuery.BubbleError.show($(_f2+" input[label=Last name]"),jQuery.langStrings.formMessages.noLName);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Missing Last Name",_f3.errorCount);return false;}else{if(_ed.email==""||!_ed.email.emailIsValid()){jQuery.BubbleError.show($(_f2+" input[label=Email]"),jQuery.langStrings.formMessages.errorNoEmail);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Invalid Email",_f3.errorCount);return false;}else{if(_ed.pass.isEmpty()){jQuery.BubbleError.show($(_f2+" input[label=Password]"),jQuery.langStrings.formMessages.noPass);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Password missing",_f3.errorCount);return false;}else{if(_ed.pass.length<6){jQuery.BubbleError.show($(_f2+" input[label=Password]"),jQuery.langStrings.formMessages.shortPass);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Password too short",_f3.errorCount);return false;}else{if(_ed.passC&&_ed.passC!==_ed.pass){jQuery.BubbleError.show($(_f2+" input[label=Password]"),jQuery.langStrings.formMessages.errorNotMatched);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Passwords don't match",_f3.errorCount);return false;}else{if(_ed.notAccept){jQuery.BubbleError.show($(_f2+" input[type=checkbox]"),jQuery.langStrings.formMessages.errorNoAcceptance);if(_f3){_f3.errorCount++;}jQuery.tungleGlobals.trackGAEvents("Sign Up","Form Error","Missing terms agreement",_f3.errorCount);return false;}}}}}}}if(!_ed.encoded){_ed.pass=b64_sha1_utf8(_ed.pass);}var _f4="<Account>";_f4+="<Pwd>"+_ed.pass+"</Pwd>";_f4+="<FirstName><![CDATA["+_ed.fname+"]]></FirstName>";_f4+="<LastName><![CDATA["+_ed.lname+"]]></LastName>";_f4+="<Email><Pri><![CDATA["+_ed.email+"]]></Pri></Email> ";_f4+="<TimeZone>"+_ed.timezone+"</TimeZone>";_f4+="<TrackCode>"+(jQuery.tungleGlobals.corpReg?"corp":"portal")+"</TrackCode>";if(_ed.link&&!_ed.link.isEmpty()){_f4+="<PublicId>"+_ed.link+"</PublicId>";}if(_ed.code){_f4+=_ed.code;}_f4+="</Account>";var _f5=rpx==true?"Rpx.SignupJSON":"RegisterJSON";jQuery.ajaxHelper.sendAjaxPostRequest(_f5,_f4,_ef,_f0,_ed);return true;},buildRegistrationForm:function(_f6,_f7,_f8,tab,_fa,_fb,_fc,_fd,_fe){_fe=_fe==undefined?true:_fe;var tmp=new Array();if(_f7){tmp.push({type:"Name",label:"Pick your url",hideLabel:true,custom:"<img id=\"whatsTungleMe\" class=\"cHelp\" src=\"/portal/images/help_qm.png\" style=\"float:right;height:12px;margin-top:15px\"/><div class=\"tungle-me-link listL listLLG\""+(jQuery.browser.safari?"":" style=\"width:285px\"")+"><img src=\"/portal/images/tungle-me/tglLogo2.png\" style=\"float:left;height:25px;margin:3px 5px\"/><div style=\"padding:5px 5px 5px 0;overflow:auto;font-family:arial;font-weight:bold;color:#000000;float:left\"><span style=\"font-size:13px\">http://tungle.me/</span><input type=\"text\" label=\"$label$\" tabindex=\"$tab$\" id=\"$id$\" class=\"$class$\" maxlength=\"32\" style=\"width:130px\"/></div></div>"});}tmp.push({type:"Name",label:"First name"});tmp.push({type:"Name",label:"Last name"});tmp.push({type:"Email",label:"Email"});tmp.push({type:"Password",label:"Password"});tmp.push({type:"Submit",label:"Sign up free",extraLinks:_fd});_f6.find("div.form").createForm({inputObjects:tmp,callBackSubmit:_fc,formId:_f8,tabStart:(tab==undefined?0:tab),backgroundColor:"transparent",inputWidth:"220px",css:{cellspacing:2,align:"align=\"right\"",chkBox:"padding-left:10px;"}});if(_f7){_f6.tungleMe({myId:_f8,callback_error:function(_100){_fa(_100);},callback_success:function(msg){_fb(msg);}}).find(".tungle-me-link input").blur(function(){_f6.trigger("verify");});}_f6.find(".cHelp").Contextual();},buildAltRegistrationForm:function(_102,_103,_104,tab,warn,_107,_108){var tmp=new Array();tmp.push({type:"Name",label:"First name"});tmp.push({type:"Name",label:"Last name"});tmp.push({type:"Email",label:"Email"});tmp.push({type:"Password",label:"Password"});tmp.push({type:"Submit",label:"Create account"});_102.find("div.form").createForm({inputObjects:tmp,callBackSubmit:_108,formId:_104,tabStart:(tab==undefined?0:tab),backgroundColor:"transparent",inputWidth:"220px",css:{cellspacing:2,align:"align=\"right\"",chkBox:"padding-left:10px;"}}).end().find("input").css({fontSize:"13px",borderColor:"#000000"}).end().find(".fTB .fLB").css({fontWeight:"bold",lineHeight:"30px",fontSize:"13px"});_102.find(".cHelp").Contextual();},parseRegisterFormData:function(data){if(!data){return false;}var auth={fname:"",lname:"",pass:"",email:"",timezone:getTimeZoneToken(),tungleme:""};for(var i=0;i<data.length;i++){if(data[i].name=="First name"){auth.fname=data[i].value.trim();}else{if(data[i].name=="Last name"){auth.lname=data[i].value.trim();}else{if(data[i].name=="Email"){auth.email=data[i].value.trim();}else{if(data[i].name=="Password"){auth.pass=data[i].value;}else{if(data[i].name=="Retype password"){auth.passC=data[i].value;}else{if(data[i].name=="license"){auth.notAccept=!data[i].value;}else{if(data[i].name=="Timezone"){auth.timezone=data[i].value;}else{if(data[i].name=="Pick your url"){auth.tungleme=data[i].value;}}}}}}}}}return auth;}};jQuery.fn.oppRegister=function(_10d){jQuery.rpxPopup.enabled=true;this.each(function(){jQuery.oppRegister.initialize(this,_10d);});return this;};})(jQuery);(function($){$.meetMe=function(){var _2="<TReq Type=\"ActionItems.Get\"><CountOnly>true</CountOnly></TReq><TReq Type=\"QueryUser\"></TReq><TReq Type=\"Feature.Get\"></TReq>";var _3={myId:"meetWMeH",currentDay:new Date(),currentWeek:new Date(),host:{email:"marc@tungle.com",first:"",last:"",altMail:null,id:0},timezone:"",emailChanged:true,showMyAvailability:false,directbk:false,duration:1,hints:{search:"Enter name/type",near:"Enter province/state, city"},activeSearchBox:null};var _4=false;var _5={URLattendees:new Array(),selectedContacts:new Array(),meetingUserList:new Array(),meetingList:new Array(),meetingADList:new Array(),userAvailability:new Array(),overlapMeetings:new Array(),overlapMeetingsAD:new Array(),selectedSlots:new Array(),duration:{val1:15,val2:600,min:15,defaultValue:30}};var _6={webex:"#wz0_webex",monthlyCalendar:"mZ",weeklyCalendar:"wA",loadScreen:"mainLoadContainer",mainBody:"mainBody",errorBody:"",confirmBody:"",wizard:"#at_01",googleSearch:"#google-search",searchBTN:"#search_location",calScrollLeft:"#cal_SL",calScrollRight:"#cal_SR",staticPage:"#staticPage",timezoneDLG:"time_zone-dlg",timezoneChangeLink:"#wAtz_chng",headerTitle:"#mwmHD",mainLoader:"#mnLoad",meetingObject:"#meetManager",myMeetings:"#mymeetsent",previewDivs:"#previewDivs",previewButtons:"#previewButtons",previewInfoTable:"infoTablePreview",previewOverlay:"#previewBox",signOut:"#signOut, #signout2",signIn:"#signIn, #signin2",mwmAttendees:"#mwmAttendees",organizeButton:"#btn__wzopen1",profileTop:"#profileTop",timeLine:"#timeline",manageButton:"#tab_inboxTab",homeBtn:"#tab_calendarTab",profileBtn:"#tab_tglmeTab",searchBox:"#cnt_search_box",searchBox1:"#cnt_search_wz",attendeeAddBTN:"#cnt_add_btn",attendeeAddBTN1:"#cnt_add_wz",tungleOpenIdRegister:"#getOwn_0",addContactDLG:"#addcontact-dlg",addContactBtn:"#addcontact-add",addContactFromProfileBTN:"#btn__addcontact",miniProfile:"#mwm-mini",locationBox:"#input_wz0_loc",subjectBox:"#input_wz0_subj",noteArea:"#input_wz0_msg",showHideCal:"#wCalShowHide"};var _7={detailsForm:{timeSlotList:"ul.details_timeslots",subject:"input.details_subject",mLocation:"textarea.details_location",uEmail:"input.details_email",uFName:"input.details_nameF",uLName:"input.details_nameL",inviteeList:"ul.details_invitees",inviteeAdd:"details_add",inviteeBox:"input.details_inviteeBX",timeLength:"select.details_duration",mMessage:"textarea.details_message",meetLengthLabel:"span.meetLLabel",rmTimeslot:"rm_timeslot",rmContact:"rm_contact",sendBTN:"send_btn",openDetailsBTN:"schedule",openManageBTN:"manage",showHow:"showHow",findLocation:"find_location",previewBTN:"preview_btn",login:"signin",logout:"signout",userName:"input.username",password:"input.password",ulEmail:"input.details_emailL",ulName:"input.details_nameUL",cancelBTN:"cancel_btn",showSignIn:"showSignIn",showSignInForm:"login_form",autobook:"div.autobook"},visName:"span.rname",userName:"span.uname",login:".login",loggedin:".loggedin",wizStep:"wstep",blackBorder:"wrapperBB",errorDiv:"div.errorText",addContactStep1:".step1",addContactSte