/*DO NOT REMOVE!! THIS CODE IS USED FOR VERSION CHECKING::: <HASH>Scripts/XLibrary/xaddeventlistener.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC+Rp1GTY6D46L+FTQU6CqYgs=:True,Scripts/XLibrary/xbackground.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACMAZsEMyotKFK7mVkwIxmVws=:True,Scripts/XLibrary/xcamelize.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACnz9lIXL6zMFYAgbljBr0QQs=:True,Scripts/XLibrary/xclientheight.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC8/jq3aQcWw1MUKEsghHqWAs=:True,Scripts/XLibrary/xclientwidth.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACcT3uquar0WwTUUfN5WNGpws=:True,Scripts/XLibrary/xclip.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACp0+I/7VbsyJu9MCxZx2NkAs=:True,Scripts/XLibrary/xcolor.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACKhJmAbvKWHGj34PSrnHAqws=:True,Scripts/XLibrary/xdef.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACObrc6Jl0u1KZTj7CvQfefws=:True,Scripts/XLibrary/xdisplay.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACth6KKLx7TrAJq+0owI6x1ws=:True,Scripts/XLibrary/xevent.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACYTNir6V1S1lDVevUNYUZkgs=:True,Scripts/XLibrary/xgetcomputedstyle.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAClFLiNPjhrNUApMZMYgydtAs=:True,Scripts/XLibrary/xgetelementbyid.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC6ZbMdGUPgi3TS+zYUF4xUAs=:True,Scripts/XLibrary/xgetelementsbyattribute.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC1pQJeszR4lV6xhvhiKnx+As=:True,Scripts/XLibrary/xgetelementsbytagname.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC+rOCE3V1vL60iUjebGtcWAs=:True,Scripts/XLibrary/xhaspoint.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACQ/TFVSfIw9WJ4sz+34Py4ws=:True,Scripts/XLibrary/xheight.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACaa5H4wggH78/JRHYY4Y3nQs=:True,Scripts/XLibrary/xhide.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACz6eOqDmbPmIeniWE9XjCtAs=:True,Scripts/XLibrary/xleft.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACGBhKHhMTAU7Ll5SIx5WF9Qs=:True,Scripts/XLibrary/xmoveto.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACpD4yq7BJe4ILODOY9DLubgs=:True,Scripts/XLibrary/xnum.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACzUNl7MssrJyEVSA/cvFSFAs=:True,Scripts/XLibrary/xoffsetleft.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACH2KwAzDm4TIC2ucvFQnlgQs=:True,Scripts/XLibrary/xoffsettop.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACAtG6Dz3PRNdr7I7Fmcn5Zgs=:True,Scripts/XLibrary/xpagex.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC92lXgKTLOqjsHqJvVdE7Vws=:True,Scripts/XLibrary/xpagey.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACaLWHpM9R+2DZAiholjQ1KQs=:True,Scripts/XLibrary/xparent.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACQPjCcaOlBMw05XtPg/qLmAs=:True,Scripts/XLibrary/xremoveeventlistener.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACYLqN9O7TiQeFTPqKIVIacAs=:True,Scripts/XLibrary/xresizeto.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACpKAw6keMIPhSWibFt3GZWgs=:True,Scripts/XLibrary/xscrollleft.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC4TQdBQYEu3mW6h3t4wXz2ws=:True,Scripts/XLibrary/xscrolltop.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACGJUqd56ID9s3q+ButfLOHgs=:True,Scripts/XLibrary/xshow.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACtZF6FLffPiVnxWhZnkgYzgs=:True,Scripts/XLibrary/xslideto.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACLnsKn2+Jn1g4G0vbbRYt9As=:True,Scripts/XLibrary/xstr.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACl+pID9o9HXb0iGHBu7PjPgs=:True,Scripts/XLibrary/xtop.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACfM+C1U+iM2Y/d1eu8oOZzAs=:True,Scripts/XLibrary/xvisibility.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC1IjMKBeO1K0n5BTWXLY2Ggs=:True,Scripts/XLibrary/xwidth.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACWPlalG3n0NVihupWsSIFjgs=:True,Scripts/XLibrary/xzindex.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACXrGop/2KKhtolMde9TItqAs=:True,Scripts/XLibrary/xtimer.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACjoLGx3V8kLPp/kGMUFd5zAs=:True,Scripts/XLibrary/xopacity.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC2hrACyxdlKTq99pnXKOQogs=:True,Scripts/XLibrary/xanimation.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC/8CAB5hSx3j7LXPhEADGcgs=:True,Scripts/XLibrary/xanimation.opacity.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACQhkwnH4KJwx7BAwn2tNPGQs=:True,Scripts/XLibrary/xhasclass.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC3QkRVdcEZg3Od6PzS+WVgws=:True,Scripts/XLibrary/xaddclass.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACeDgZD2hvkge39u9EgDuhrgs=:True,Scripts/XLibrary/xremoveclass.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACmniPThPTKBzs/BSGX6o9Cws=:True,Scripts/XLibrary/xstyle.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACs6x4Qjo9Af0CAArh55hysQs=:True,Scripts/XLibrary/xzindex.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACXrGop/2KKhtolMde9TItqAs=:True,Scripts/Common.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACzLXKtFPKxzBQcIhZtywT/As=:True,Scripts/Fade.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACxMtDg9lpjj7QwwXeT9JbVAs=:True,Scripts/DynamicPositioning.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC4KTeGL+tEn759tHur0R6YQs=:True,Scripts/FitToWindow.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACQ6zqXvOSuS+AwJNCF2FPYws=:True,Scripts/DateTimePicker.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACITIl+NIZKzObN4bTXbCczAs=:True,Scripts/InnerPopup.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACEyIv47qoSMQ1Sk38iElQTws=:True,Scripts/TrackMouse.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACNRui0w6dMwILYQbUZGA/Cws=:True,Scripts/Tooltip.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACADwvX6kPp3AYdILtQX84LQs=:True,Scripts/StickyNote.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC4iHbZU71j1QQDUlS+j26bQs=:True,Scripts/ErrorPanel.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACoOL6OnE8lEOHDRhkK6WpbAs=:True,Scripts/FloorplanGeneral.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAAC0gyTFGsNO1RXbfZxCT+Asws=:True,Scripts/JQuery/superfish.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACjIBwumqRG65wR/KeOD2jNAs=:True,Scripts/JQuery/hoverIntent.js:AAEAAAD/////AQAAAAAAAAAPAQAAABAAAAACGidTHGjfkeyJGgdbCDLC6As=:True</HASH>*/function xAddEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e)))return;eT=eT.toLowerCase();if(e.addEventListener)e.addEventListener(eT,eL,cap||false);else  if(e.attachEvent)e.attachEvent('on'+eT,eL);else  {var o=e['on'+eT];e['on'+eT]=typeof o=='function' ? function(v){o(v);eL(v);} : eL;}}function xBackground(e,c,i){if(!(e=xGetElementById(e))) return '';var bg='';if(e.style) {if(xStr(c)) {e.style.backgroundColor=c;}if(xStr(i)) {e.style.backgroundImage=(i!='')? 'url('+i+')' : null;}bg=e.style.backgroundColor;}return bg;}function xCamelize(cssPropStr){var i, c, a = cssPropStr.split('-');var s = a[0];for (i=1; i<a.length; ++i) {c = a[i].charAt(0);s += a[i].replace(c, c.toUpperCase());}return s;}function xClientHeight(){var v=0,d=document,w=window;if((!d.compatMode || d.compatMode == 'CSS1Compat') && !w.opera && d.documentElement && d.documentElement.clientHeight){v=d.documentElement.clientHeight;}else  if(d.body && d.body.clientHeight){v=d.body.clientHeight;}else  if(xDef(w.innerWidth,w.innerHeight,d.width)) {v=w.innerHeight;if(d.width>w.innerWidth) v-=16;}return v;}function xClientWidth(){var v=0,d=document,w=window;if((!d.compatMode || d.compatMode == 'CSS1Compat') && !w.opera && d.documentElement && d.documentElement.clientWidth){v=d.documentElement.clientWidth;}else  if(d.body && d.body.clientWidth){v=d.body.clientWidth;}else  if(xDef(w.innerWidth,w.innerHeight,d.height)) {v=w.innerWidth;if(d.height>w.innerHeight) v-=16;}return v;}function xClip(e,t,r,b,l){if(!(e=xGetElementById(e))) return;if(e.style) {if (xNum(l)) e.style.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)';else  e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)';}}function xColor(e,s){if(!(e=xGetElementById(e))) return '';var c='';if(e.style && xDef(e.style.color)) {if(xStr(s)) e.style.color=s;c=e.style.color;}return c;}function xDef(){for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}return true;}function xDisplay(e,s){if ((e=xGetElementById(e)) && e.style && xDef(e.style.display)) {if (xStr(s)) {try { e.style.display = s; }catch (ex) { e.style.display = ''; } }                                      return e.style.display;}return null;}function xEvent(evt) {var e = evt || window.event;if (!e) return;this.type = e.type;this.target = e.target || e.srcElement;this.relatedTarget = e.relatedTarget;if (xDef(e.pageX)) { this.pageX = e.pageX; this.pageY = e.pageY; }else  if (xDef(e.clientX)) { this.pageX = e.clientX + xScrollLeft(); this.pageY = e.clientY + xScrollTop(); }if (xDef(e.offsetX)) { this.offsetX = e.offsetX; this.offsetY = e.offsetY; }else  if (xDef(e.layerX)) { this.offsetX = e.layerX; this.offsetY = e.layerY; }else  { this.offsetX = this.pageX - xPageX(this.target); this.offsetY = this.pageY - xPageY(this.target); }this.keyCode = e.keyCode || e.which || 0;this.shiftKey = e.shiftKey; this.ctrlKey = e.ctrlKey; this.altKey = e.altKey;if (typeof e.type == 'string') {if (e.type.indexOf('click') != -1) {this.button = 0;}else  if (e.type.indexOf('mouse') != -1) {this.button = e.button;}}}function xGetComputedStyle(e, p, i){if(!(e=xGetElementById(e))) return null;var s, v = 'undefined', dv = document.defaultView;if(dv && dv.getComputedStyle){s = dv.getComputedStyle(e,'');if (s) v = s.getPropertyValue(p);}else  if(e.currentStyle) {v = e.currentStyle[xCamelize(p)];}else  return null;return i ? (parseInt(v) || 0) : v;}function xGetElementById(e){if(typeof(e)=='string') {if(document.getElementById) e=document.getElementById(e);else  if(document.all) e=document.all[e];else  e=null;}return e;}function xGetElementsByAttribute(sTag, sAtt, sRE, fn){var a, list, found = new Array(), re = new RegExp(sRE, 'i');list = xGetElementsByTagName(sTag);for (var i = 0; i < list.length; ++i) {a = list[i].getAttribute(sAtt);if (!a) {a = list[i][sAtt];}if (typeof(a)=='string' && a.search(re) != -1) {found[found.length] = list[i];if (fn) fn(list[i]);}}return found;}function xGetElementsByTagName(t,p){var list = null;t = t || '*';p = p || document;if (typeof p.getElementsByTagName != 'undefined') { list = p.getElementsByTagName(t);if (t=='*' && (!list || !list.length)) list = p.all; }else  { if (t=='*') list = p.all;else  if (p.all && p.all.tags) list = p.all.tags(t);}return list || new Array();}function xHasPoint(e,x,y,t,r,b,l){if (!xNum(t)){t=r=b=l=0;}else  if (!xNum(r)){r=b=l=t;}else  if (!xNum(b)){l=r; b=t;}var eX = xPageX(e), eY = xPageY(e);return (x >= eX + l && x <= eX + xWidth(e) - r &&y >= eY + t && y <= eY + xHeight(e) - b );}function xHeight(e,h){if(!(e=xGetElementById(e))) return 0;if (xNum(h)) {if (h<0) h = 0;else  h=Math.round(h);}else  h=-1;var css=xDef(e.style);if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') {h = xClientHeight();}else  if(css && xDef(e.offsetHeight) && xStr(e.style.height)) {if(h>=0) {var pt=0,pb=0,bt=0,bb=0;if (document.compatMode=='CSS1Compat') {var gcs = xGetComputedStyle;pt=gcs(e,'padding-top',1);if (pt !== null) {pb=gcs(e,'padding-bottom',1);bt=gcs(e,'border-top-width',1);bb=gcs(e,'border-bottom-width',1);}else  if(xDef(e.offsetHeight,e.style.height)){e.style.height=h+'px';pt=e.offsetHeight-h;}}h-=(pt+pb+bt+bb);if(isNaN(h)||h<0) return;else  e.style.height=h+'px';}h=e.offsetHeight;}else  if(css && xDef(e.style.pixelHeight)) {if(h>=0) e.style.pixelHeight=h;h=e.style.pixelHeight;}return h;}function xHide(e){return xVisibility(e,0);}function xLeft(e, iX){if(!(e=xGetElementById(e))) return 0;var css=xDef(e.style);if (css && xStr(e.style.left)) {if(xNum(iX)) e.style.left=iX+'px';else  {iX=parseInt(e.style.left);if(isNaN(iX)) iX=xGetComputedStyle(e,'left',1);if(isNaN(iX)) iX=0;}}else  if(css && xDef(e.style.pixelLeft)) {if(xNum(iX)) e.style.pixelLeft=iX;else  iX=e.style.pixelLeft;}return iX;}function xMoveTo(e,x,y){xLeft(e,x);xTop(e,y);}function xNum(){for(var i=0; i<arguments.length; ++i){if(isNaN(arguments[i]) || typeof(arguments[i])!='number') return false;}return true;}function xOffsetLeft(e){if (!(e=xGetElementById(e))) return 0;if (xDef(e.offsetLeft)) return e.offsetLeft;else  return 0;}function xOffsetTop(e){if (!(e=xGetElementById(e))) return 0;if (xDef(e.offsetTop)) return e.offsetTop;else  return 0;}function xPageX(e){var x = 0;e = xGetElementById(e);while (e) {if (xDef(e.offsetLeft)) x += e.offsetLeft;e = xDef(e.offsetParent) ? e.offsetParent : null;}return x;}function xPageY(e){var y = 0;e = xGetElementById(e);while (e) {if (xDef(e.offsetTop)) y += e.offsetTop;e = xDef(e.offsetParent) ? e.offsetParent : null;}return y;}function xParent(e, bNode){if (!(e=xGetElementById(e))) return null;var p=null;if (!bNode && xDef(e.offsetParent)) p=e.offsetParent;else  if (xDef(e.parentNode)) p=e.parentNode;else  if (xDef(e.parentElement)) p=e.parentElement;return p;}function xRemoveEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e)))return;eT=eT.toLowerCase();if(e.removeEventListener)e.removeEventListener(eT,eL,cap||false);else  if(e.detachEvent)e.detachEvent('on'+eT,eL);else  e['on'+eT]=null;}function xResizeTo(e,w,h){xWidth(e,w);xHeight(e,h);}function xScrollLeft(e, bWin){var offset=0;if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') {var w = window;if (bWin && e) w = e;if(w.document.documentElement && w.document.documentElement.scrollLeft) offset=w.document.documentElement.scrollLeft;else  if(w.document.body && xDef(w.document.body.scrollLeft)) offset=w.document.body.scrollLeft;}else  {e = xGetElementById(e);if (e && xNum(e.scrollLeft)) offset = e.scrollLeft;}return offset;}function xScrollTop(e, bWin){var offset=0;if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') {var w = window;if (bWin && e) w = e;if(w.document.documentElement && w.document.documentElement.scrollTop) offset=w.document.documentElement.scrollTop;else  if(w.document.body && xDef(w.document.body.scrollTop)) offset=w.document.body.scrollTop;}else  {e = xGetElementById(e);if (e && xNum(e.scrollTop)) offset = e.scrollTop;}return offset;}function xShow(e) {return xVisibility(e,1);}function xSlideTo(e, x, y, uTime){if (!(e=xGetElementById(e))) return;if (!e.timeout) e.timeout = 25;e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false;e.yA = e.yTarget - xTop(e); e.xA = e.xTarget - xLeft(e); if (e.slideLinear) e.B = 1/e.slideTime;else  e.B = Math.PI / (2 * e.slideTime); e.yD = xTop(e); e.xD = xLeft(e); var d = new Date(); e.C = d.getTime();if (!e.moving) _xSlideTo(e);}function _xSlideTo(e){if (!(e=xGetElementById(e))) return;var now, s, t, newY, newX;now = new Date();t = now.getTime() - e.C;if (e.stop) { e.moving = false; }else  if (t < e.slideTime) {setTimeout("_xSlideTo('"+e.id+"')", e.timeout);s = e.B * t;if (!e.slideLinear) s = Math.sin(s);newX = Math.round(e.xA * s + e.xD);newY = Math.round(e.yA * s + e.yD);xMoveTo(e, newX, newY);e.moving = true;}else  {xMoveTo(e, e.xTarget, e.yTarget);e.moving = false;if (e.onslideend) e.onslideend();}}function xStr(s){for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])!='string') return false;}return true;}function xTop(e, iY){if(!(e=xGetElementById(e))) return 0;var css=xDef(e.style);if(css && xStr(e.style.top)) {if(xNum(iY)) e.style.top=iY+'px';else  {iY=parseInt(e.style.top);if(isNaN(iY)) iY=xGetComputedStyle(e,'top',1);if(isNaN(iY)) iY=0;}}else  if(css && xDef(e.style.pixelTop)) {if(xNum(iY)) e.style.pixelTop=iY;else  iY=e.style.pixelTop;}return iY;}function xVisibility(e, bShow){if(!(e=xGetElementById(e))) return null;if(e.style && xDef(e.style.visibility)) {if (xDef(bShow)) e.style.visibility = bShow ? 'visible' : 'hidden';return e.style.visibility;}return null;}function xWidth(e,w){if(!(e=xGetElementById(e))) return 0;if (xNum(w)) {if (w<0) w = 0;else  w=Math.round(w);}else  w=-1;var css=xDef(e.style);if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') {w = xClientWidth();}else  if(css && xDef(e.offsetWidth) && xStr(e.style.width)) {if(w>=0) {var pl=0,pr=0,bl=0,br=0;if (document.compatMode=='CSS1Compat') {var gcs = xGetComputedStyle;pl=gcs(e,'padding-left',1);if (pl !== null) {pr=gcs(e,'padding-right',1);bl=gcs(e,'border-left-width',1);br=gcs(e,'border-right-width',1);}else  if(xDef(e.offsetWidth,e.style.width)){e.style.width=w+'px';pl=e.offsetWidth-w;}}w-=(pl+pr+bl+br);if(isNaN(w)||w<0) return;else  e.style.width=w+'px';}w=e.offsetWidth;}else  if(css && xDef(e.style.pixelWidth)) {if(w>=0) e.style.pixelWidth=w;w=e.style.pixelWidth;}return w;}function xZIndex(e,uZ){if(!(e=xGetElementById(e))) return 0;if(e.style && xDef(e.style.zIndex)) {if(xNum(uZ)) e.style.zIndex=uZ;uZ=parseInt(e.style.zIndex);}return uZ;}function xTimerMgr(){this.tmr = null;this.timers = new Array();}xTimerMgr.prototype.set = function(type, obj, sMethod, uTime, data) {return (this.timers[this.timers.length] = new xTimerObj(type, obj, sMethod, uTime, data));};xTimerMgr.prototype.run = function(){var i, t, d = new Date(), now = d.getTime();for (i = 0; i < this.timers.length; ++i) {t = this.timers[i];if (t && t.running) {t.elapsed = now - t.time0;if (t.elapsed >= t.preset) { t.obj[t.mthd](t); if (t.type.charAt(0) == 'i') { t.time0 = now; }else  { t.stop(); }}}}};xTimerMgr.prototype.tick = function(t) {if (this.tmr) clearInterval(this.tmr);this.tmr = setInterval('xTimer.run()', t);};function xTimerObj(type, obj, mthd, preset, data){this.data = data;this.type = type; this.obj = obj;this.mthd = mthd; this.preset = preset;this.reset();} xTimerObj.prototype.stop = function() { this.running = false; };xTimerObj.prototype.start = function() { this.running = true; }; xTimerObj.prototype.reset = function(){var d = new Date();this.time0 = d.getTime();this.elapsed = 0;this.running = true;};var xTimer = new xTimerMgr(); xTimer.tmr = setInterval('xTimer.run()', 25);function xOpacity(e, o){var set = xDef(o);if(!(e=xGetElementById(e))) return 2; if (xStr(e.style.opacity)) { if (set) e.style.opacity = o + '';else  o = parseFloat(e.style.opacity);}else  if (xStr(e.style.filter)) { if (set) e.style.filter = 'alpha(opacity=' + (100 * o) + ')';else  if (e.filters && e.filters.alpha) { o = e.filters.alpha.opacity / 100; }}else  if (xStr(e.style.MozOpacity)) { if (set) e.style.MozOpacity = o + '';else  o = parseFloat(e.style.MozOpacity);}else  if (xStr(e.style.KhtmlOpacity)) { if (set) e.style.KhtmlOpacity = o + '';else  o = parseFloat(e.style.KhtmlOpacity);}return isNaN(o) ? 1 : o; }function xAnimation(r){this.res = r||10;}xAnimation.prototype.init = function(e,t,or,ot,oe,a,b){var i = this;i.e = xGetElementById(e);i.t = t;i.or=or; i.ot=ot; i.oe=oe;i.a = a||0;i.v = xAnimation.vf[i.a];i.qc = 1 + (b||0);i.fq = 1/i.t;if (i.a) {i.fq *= i.qc * Math.PI;if (i.a == 1 || i.a == 2) { i.fq /= 2; }}else  { i.qc = 1; }i.xd=i.x2-i.x1; i.yd=i.y2-i.y1; i.zd=i.z2-i.z1;};xAnimation.prototype.run = function(r){var i = this;if (!r) i.t1 = new Date().getTime();if (!i.tmr) i.tmr = setInterval(function() {i.et = new Date().getTime() - i.t1;if (i.et < i.t) {i.f = i.v(i.et*i.fq);i.x=i.xd*i.f+i.x1; i.y=i.yd*i.f+i.y1; i.z=i.zd*i.f+i.z1;i.or(i);}else  {clearInterval(i.tmr); i.tmr = null;if (i.qc%2) {i.x=i.x2; i.y=i.y2; i.z=i.z2;}else  {i.x=i.x1; i.y=i.y1; i.z=i.z1;}i.ot(i);var rep = false;if (typeof i.oe == 'function') rep = i.oe(i);else  if (typeof i.oe == 'string') rep = eval(i.oe);if (rep) i.resume(1);}}, i.res);};xAnimation.vf = [function(r){return r;},function(r){return Math.abs(Math.sin(r));},function(r){return 1-Math.abs(Math.cos(r));},function(r){return (1-Math.cos(r))/2;}];xAnimation.prototype.pause = function(){clearInterval(this.tmr);this.tmr = null;};xAnimation.prototype.resume = function(fs){if (typeof this.tmr != 'undefined' && !this.tmr) {this.t1 = new Date().getTime();if (!fs) {this.t1 -= this.et;}this.run(!fs);}};xAnimation.prototype.opacity = function(e,o,t,a,b,oe){var i = this;i.x1 = xOpacity(e); i.x2 = o; i.init(e,t,h,h,oe,a,b);i.run();function h(i) {xOpacity(i.e, i.x);} };function xHasClass(e, c){e = xGetElementById(e);if (!e || e.className=='') return false;var re = new RegExp("(^|\\s)"+c+"(\\s|$)");return re.test(e.className);}function xAddClass(e, c){if ((e=xGetElementById(e))!=null) {var s = '';if (e.className.length && e.className.charAt(e.className.length - 1) != ' ') {s = ' ';}if (!xHasClass(e, c)) {e.className += s + c;return true;}}return false;}function xRemoveClass(e, c){if(!(e=xGetElementById(e))) return false;e.className = e.className.replace(new RegExp("(^|\\s)"+c+"(\\s|$)",'g'),function(str, p1, p2) { return (p1 == ' ' && p2 == ' ') ? ' ' : ''; });return true;}function xStyle(sProp, sVal){var i, e;for (i = 2; i < arguments.length; ++i) {e = xGetElementById(arguments[i]);if (e.style) {try { e.style[sProp] = sVal; }catch (err) { e.style[sProp] = ''; } }}}function xZIndex(e,uZ){if(!(e=xGetElementById(e))) return 0;if(e.style && xDef(e.style.zIndex)) {if(xNum(uZ)) e.style.zIndex=uZ;uZ=parseInt(e.style.zIndex);}return uZ;}function DoNothing() {}function IE() {if (navigator.appName == 'Microsoft Internet Explorer')return true;else return false;}function IE6() {if (navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.indexOf('MSIE 6.') > 0)return true;else return false;}function IE7() {if (navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.indexOf('MSIE 7.') > 0)return true;else return false;}function IE8() {if (navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.indexOf('MSIE 8.') > 0)return true;else return false;}function el(e) {if (typeof (e) == 'string') {if (document.getElementById) e = document.getElementById(e);else  if (document.all) e = document.all[e];else  e = null;}return e;};function xGetElementById(e) {return el(e);};function xAddLoadEvent(func){var oldonload = window.onload;if (typeof window.onload != 'function'){window.onload = func;}else {window.onload = function(){if (oldonload){oldonload();}func();}}}function QueryString(ji) {hu = window.location.search.substring(1);gy = hu.split("&");for (i = 0; i < gy.length; i++) {ft = gy[i].split("=");if (ft[0] == ji) {return ft[1];}}}function disable_text_selection(e){return false;}function enable_text_selection(){return true;}function LargePopupWindow(page){var popup = window.open(page,"popup","height=700,width=500,resize=1,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1");popup.focus();}function RecordOutboundLink(link, intExhibitorID, strInfo) {OutboundLinkService.RecordOutboundLink(intExhibitorID, link.href, strInfo);window.open(link.href);}function RecordEventRSVPClick(link, intCalendarEventID) {OutboundLinkService.RecordEventRSVPClick(intCalendarEventID);if (link.href != '') {window.open(link.href);}}function findPosX(obj){return xPageX(obj);}function findPosY(obj){return xPageY(obj);}String.prototype.beginsWith = function(t, i) {if (i == false) {return(t == this.substring(0, t.length));} else  {return (t.toLowerCase()== this.substring(0, t.length).toLowerCase());}};String.prototype.endsWith = function(t, i) {if (i == false) {return (t== this.substring(this.length - t.length));} else  {return(t.toLowerCase() == this.substring(this.length -t.length).toLowerCase());}};function NumberOnlyValidation(target) {var e = event || evt; var charCode = e.which || e.keyCode;if (charCode > 31 && (charCode < 48 || charCode > 57))return false;return true;}var strOldStatusText;function SetStatusBar(strStatus, intTimeout) {strOldStatusText = window.status;window.status = strStatus;}function RestoreStatusBar() {window.status = strOldStatusText;}var strDebugDataTime;var strDebugServerTime;var strDebugTransmissionStart;var strDebugTransmissionTime;var strDebugTotalTime;function debugShowTimeReport(DataTime, DataRequests, ServerTime, TransmissionStart, TotalTime) {strDebugDataTime = DataTime;strDebugServerTime = ServerTime;strDebugTransmissionStart = TransmissionStart;strDebugTotalTime = TotalTime;strDebugTransmissionTime = debugGetTransmissionTime();if (window.status.beginsWith('Time Debug'))debugClearStatus();window.status = window.status + 'Time Debug       Data:' + strDebugDataTime + ' ms  (' + DataRequests + ' queries)      Server:' + strDebugServerTime + ' ms    Trans:' + strDebugTransmissionTime + ' ms    Total:' + strDebugTotalTime + ' ms    ';}function debugShowInStatus(DebugText) {window.status = window.status + DebugText + '     ';}function debugClearStatus() {window.status = '';}function debugWriteTransmissionTime() {strDebugTransmissionStart = el('debugTransmissionStart').value;strDebugTotalTime = el('debugTotalServerTime').value;el('debugTransmissionTime').innerHTML = debugGetTransmissionTime();el('debugTotalTime').innerHTML = strDebugTotalTime;}function debugGetTransmissionTime() {try {var startTimeString = strDebugTransmissionStart;var startTimeArray = startTimeString.split(':');var startTime = new Date();startTime.setMinutes(startTimeArray[0], startTimeArray[1], startTimeArray[2]);var totalServerTimeString = strDebugTotalTime;var totalServerTimeArray = totalServerTimeString.split(':');var totalServerTime = new Date(0);totalServerTime.setMinutes(totalServerTimeArray[0], totalServerTimeArray[1], totalServerTimeArray[2]);var endTime = new Date();var timespan = new Date(endTime - startTime);var totalTime = new Date(timespan.getTime() + totalServerTime.getTime());strDebugTotalTime = totalTime.getTime();strDebugTransmissionTime = timespan.getTime();return timespan.getTime();}catch (e) { }}function xVisibility(e, bShow) {if (!(e = xGetElementById(e))) return null;if (e.style && xDef(e.style.visibility)) {if (xDef(bShow)) e.style.visibility = bShow ? 'visible' : 'hidden';return e.style.visibility;}return null;};function xShow(e) { return xVisibility(e, 1); };function xHide(e) { return xVisibility(e, 0); };function xDef() {for (var i = 0; i < arguments.length; ++i) { if (typeof (arguments[i]) == 'undefined') return false; }return true;};function xNum() {for (var i = 0; i < arguments.length; ++i) { if (isNaN(arguments[i]) || typeof (arguments[i]) != 'number') return false; }return true;};function xPageY(e) {var y = 0;e = xGetElementById(e);while (e) {if (xDef(e.offsetTop)) y += e.offsetTop;e = xDef(e.offsetParent) ? e.offsetParent : null;}return y;};function xPageX(e) {var x = 0;e = xGetElementById(e);while (e) {if (xDef(e.offsetLeft)) x += e.offsetLeft;e = xDef(e.offsetParent) ? e.offsetParent : null;}return x;};function xWidth(e, i) {if (i == undefined)return $(e).width();return $(e).width(i);};function xHeight(e, i) {if (i == undefined)return $(e).height();return $(e).height(i);};function StartFade(intZIndex){if(window.fade_counter == null)window.fade_counter = 0;xZIndex(xGetElementById('divFade'),intZIndex);if(window.fade_counter == 0){PositionFade();xAddEventListener(window, 'resize', PositionFade, false);xAddEventListener(window, 'scroll', PositionFade, false);xShow(xGetElementById('divFade'));}window.fade_counter++;}function EndFade(){window.fade_counter--;if(window.fade_counter == 0){xHide(xGetElementById('divFade'));xRemoveEventListener(window, 'resize', PositionFade, false);xRemoveEventListener(window, 'scroll', PositionFade, false);}}function PositionFade(){xMoveTo(xGetElementById('divFade'),0,xScrollTop());xWidth(xGetElementById('divFade'),xClientWidth());xHeight(xGetElementById('divFade'),xClientHeight());}function xPositionOn(obj,anchor,orientation,offsetX,offsetY) {var obj = $(obj);var pos = obj.position();var offset = obj.offset();if(!offsetX) offsetX = 0;if(!offsetY) offsetY = 0;if(orientation == "bottom_left" || orientation == "") {obj.css({ 'left': xPageX(anchor) + offsetX + 'px', 'top': xPageY(anchor) + xHeight(anchor) + offsetY + 'px' });}else  if(orientation == "top_left") {obj.css({ 'left': xPageX(anchor) + offsetX + 'px', 'top': xPageY(anchor) + offsetY + 'px' });}else  if(orientation == "top_right") {obj.css({ 'left': xPageX(anchor) + xWidth(anchor) + offsetX + 'px', 'top': xPageY(anchor) + offsetY + 'px' });}else  if(orientation == "bottom_right") {obj.css({ 'left': xPageX(anchor) + xWidth(anchor) + offsetX + 'px', 'top': xPageY(anchor) + xHeight(anchor) + offsetY + 'px' });}}function FitToWindow(){var objLeftMargin = xGetElementById('LeftMargin');var objRightMargin = xGetElementById('RightMargin');var intContentWidth = 990;var intNewMargin = ((xClientWidth() - intContentWidth) / 2) - 2;xWidth(objLeftMargin, intNewMargin);xWidth(objRightMargin, intNewMargin);}var winCal;var dtToday=new Date();var docCal;var MonthName=["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"];var WeekDayName=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var exDateTime;var cnTop="200";var cnLeft="500";var WindowTitle ="DateTime Picker";var WeekChar=2;var CellWidth=20;var DateSeparator="-";var TimeMode=24;var ShowLongMonth=true;var ShowMonthYear=true;var MonthYearColor="#CC0033";var WeekHeadColor="#AAAAAA";var SundayColor="#6699FF";var SaturdayColor="#CCCCFF";var WeekDayColor="#FFFFFF";var FontColor="blue";var TodayColor="#FFFF33";var SelDateColor="#FFFF99";var YrSelColor="#CC0033";var ThemeBg="";function NewCal(strCalName,pCtrl,rCtrl,pFormat,pShowTime,pTimeMode){objCal=new Calendar(strCalName,dtToday,rCtrl,pCtrl);if ((pShowTime!=null) && (pShowTime)){objCal.ShowTime=true;if ((pTimeMode!=null) &&((pTimeMode=='12')||(pTimeMode=='24'))){TimeMode=pTimeMode;}}if (pCtrl!=null)objCal.Ctrl=pCtrl;if (pFormat!=null)objCal.Format=pFormat.toUpperCase();exDateTime=document.getElementById(pCtrl).value;if (exDateTime!=""){var Sp1;var Sp2;var tSp1;var tSp1;var strMonth;var strDate;var strYear;var intMonth;var YearPattern;var strHour;var strMinute;var strSecond;Sp1=exDateTime.indexOf(DateSeparator,0);Sp2=exDateTime.indexOf(DateSeparator,(parseInt(Sp1)+1));if ((objCal.Format.toUpperCase()=="DDMMYYYY") || (objCal.Format.toUpperCase()=="DDMMMYYYY")){strMonth=exDateTime.substring(Sp1+1,Sp2);strDate=exDateTime.substring(0,Sp1);}else  if ((objCal.Format.toUpperCase()=="MMDDYYYY") || (objCal.Format.toUpperCase()=="MMMDDYYYY")){strMonth=exDateTime.substring(0,Sp1);strDate=exDateTime.substring(Sp1+1,Sp2);}if (isNaN(strMonth))intMonth=objCal.GetMonthIndex(strMonth);else intMonth=parseInt(strMonth,10)-1;if ((parseInt(intMonth,10)>=0) && (parseInt(intMonth,10)<12))objCal.Month=intMonth;if ((parseInt(strDate,10)<=objCal.GetMonDays()) && (parseInt(strDate,10)>=1))objCal.Date=strDate;strYear=exDateTime.substring(Sp2+1,Sp2+5);YearPattern=/^\d{4}$/;if (YearPattern.test(strYear))objCal.Year=parseInt(strYear,10);if (objCal.ShowTime==true){if(exDateTime.indexOf(":",0) > -1){tSp1=exDateTime.indexOf(":",0);tSp2=exDateTime.indexOf(":",(parseInt(tSp1)+1));strHour=exDateTime.substring(tSp1,(tSp1)-2);objCal.SetHour(strHour);strMinute=exDateTime.substring(tSp1+1,tSp2);objCal.SetMinute(strMinute);strSecond=exDateTime.substring(tSp2+1,tSp2+3);objCal.SetSecond(strSecond);}else {objCal.SetHour(0);objCal.SetMinute(0);objCal.SetSecond(0);}}}RenderCal(objCal);return objCal;}function RenderCal(objCal){var vCalHeader;var vCalData;var vCalTime;var i;var j;var SelectStr;var vDayCount=0;var vFirstDay;objCal.docCal.innerHTML = "";vHTML = "";vCalHeader = "";vCalData = "";vCalTime = "";vCalHeader="<table border=0 cellpadding=1 cellspacing=0 width='100%' align=\"center\" valign=\"top\">\n";vCalHeader+="<tr>\n<td colspan='7'><table border=0 width='100%' cellpadding=0 cellspacing=0><tr><td align='left'>\n";vCalHeader+="<select name=\"MonthSelector\" class=\"\" onChange=\"javascript:" + objCal.Name + ".SwitchMth(this.selectedIndex);RenderCal(" + objCal.Name + ");window.document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();\">\n";for (i=0;i<12;i++){if (i==objCal.Month)SelectStr="Selected";else SelectStr="";vCalHeader+="<option "+SelectStr+" value >"+MonthName[i]+"\n";}vCalHeader+="</select></td>";vCalHeader+="\n<td align='right'>&nbsp;<a href=\"javascript:" + objCal.Name + ".DecYear();RenderCal(" + objCal.Name + ");document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();void(0);\" class=\"txt_calendar_year_buttons\"><</a><font face=\"Verdana\" color=\""+YrSelColor+"\" size=2><b>&nbsp;"+objCal.Year+"&nbsp;</b></font><a href=\"javascript:" + objCal.Name + ".IncYear();RenderCal(" + objCal.Name + ");document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();void(0);\"  class=\"txt_calendar_year_buttons\">></a></td></tr></table></td>\n";vCalHeader+="</tr>";if (ShowMonthYear)vCalHeader+="<tr><td colspan='7'><font face='Verdana' size='2' align='center' color='"+MonthYearColor+"'><b>"+objCal.GetMonthName(ShowLongMonth)+" "+objCal.Year+"</b></font></td></tr>\n";vCalHeader+="<tr bgcolor="+WeekHeadColor+">";for (i=0;i<7;i++){vCalHeader+="<td align='center'><font face='Verdana' size='2'>"+WeekDayName[i].substr(0,WeekChar)+"</font></td>";}vCalHeader+="</tr>";vHTML += vCalHeader;CalDate=new Date(objCal.Year,objCal.Month);CalDate.setDate(1);vFirstDay=CalDate.getDay();vCalData="<tr>";for (i=0;i<vFirstDay;i++){vCalData=vCalData+GenCell(objCal);vDayCount=vDayCount+1;}for (j=1;j<=objCal.GetMonDays();j++){var strCell;vDayCount=vDayCount+1;if ((j==dtToday.getDate())&&(objCal.Month==dtToday.getMonth())&&(objCal.Year==dtToday.getFullYear()))strCell=GenCell(objCal,j,true,TodayColor);else {if (j==objCal.Date){strCell=GenCell(objCal,j,true,SelDateColor);}else {if (vDayCount%7==0)strCell=GenCell(objCal,j,false,SaturdayColor);else  if ((vDayCount+6)%7==0)strCell=GenCell(objCal,j,false,SundayColor);else strCell=GenCell(objCal,j,null,WeekDayColor);}}vCalData=vCalData+strCell;if((vDayCount%7==0)&&(j<objCal.GetMonDays())){vCalData=vCalData+"</tr>\n<tr>";}}vHTML += vCalData;if (objCal.ShowTime){var showHour;showHour=objCal.getShowHour();vCalTime="<tr>\n<td colspan='7' align='left'>";vCalTime+="<input type='text' name='hour' maxlength=2 class=\"frm_calendar_time\" size=1 value="+showHour+" onchange=\"javascript:" + objCal.Name + ".SetHour(this.value);document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();\">";vCalTime+=" : ";vCalTime+="<input type='text' name='minute' maxlength=2 class=\"frm_calendar_time\" size=1 value="+objCal.Minutes+" onchange=\"javascript:" + objCal.Name + ".SetMinute(this.value);document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();\">";vCalTime+=" : ";vCalTime+="<input type='text' name='second' maxlength=2 class=\"frm_calendar_time\" size=1 value="+objCal.Seconds+" onchange=\"javascript:" + objCal.Name + ".SetSecond(this.value);document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();\">";if (TimeMode==12){var SelectAm =(parseInt(objCal.Hours,10)<12)? "Selected":"";var SelectPm =(parseInt(objCal.Hours,10)>=12)? "Selected":"";vCalTime+="&nbsp;<select name=\"ampm\" class=\"frm_calendar_am_pm\" onchange=\"javascript:" + objCal.Name + ".SetAmPm(this.options[this.selectedIndex].value);document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();\">";vCalTime+="<option "+SelectAm+" value=\"AM\">AM</option>";vCalTime+="<option "+SelectPm+" value=\"PM\">PM</option>";vCalTime+="</select>";}vCalTime+="\n</td></tr>"; vHTML += vCalTime;}vHTML += "\n</table>";objCal.docCal.innerHTML = vHTML;}function GenCell(objCal,pValue,pHighLight,pColor){var PValue;var PCellStr;var vColor;var vHLstr1;var vHlstr2;var vTimeStr;if (pValue==null)PValue="";else PValue=pValue;if (pColor!=null)vColor="bgcolor=\""+pColor+"\"";else vColor="";if ((pHighLight!=null)&&(pHighLight)){vHLstr1="color='red'><b>";vHLstr2="</b>";}else {vHLstr1=">";vHLstr2="";}if (objCal.ShowTime){vTimeStr="document.getElementById('"+objCal.Ctrl+"').value+=' '+"+"" + objCal.Name + ".getShowHour()"+"+':'+"+"" + objCal.Name + ".Minutes"+"+':'+"+"" + objCal.Name + ".Seconds";if (TimeMode==12)vTimeStr+="+' '+objCal.AMorPM";}else vTimeStr="";if (PValue=="")PCellStr="<td "+vColor+" width="+CellWidth+" align='center' class='black_outline'>&nbsp;</td>";else PCellStr="<td "+vColor+" width="+CellWidth+" align='center' class='black_outline'><font face='verdana' size='2'"+vHLstr1+"<a href=\"javascript:" + objCal.Name + ".SetDay(" + PValue + ");document.getElementById('"+objCal.Ctrl+"').value=" + objCal.Name + ".Post();RenderCal(" + objCal.Name + ");window." + objCal.inner_popup_reference + ".ip_hidepopup();void(0);\" class=\"txt_calendar_numbers\">"+PValue+"</a>"+vHLstr2+"</font></td>";return PCellStr;}function Calendar(sName,pDate,rCtrl,pCtrl){this.pCtrl = pCtrl;this.docCal = document.getElementById(rCtrl);this.Name = sName;this.Date=pDate.getDate();this.Month=pDate.getMonth();this.Year=pDate.getFullYear();this.Hours=pDate.getHours();this.inner_popup_reference = rCtrl.replace('_ip_div_td','');if (pDate.getMinutes()<10)this.Minutes="0"+pDate.getMinutes();else this.Minutes=pDate.getMinutes();if (pDate.getSeconds()<10)this.Seconds="0"+pDate.getSeconds();else this.Seconds=pDate.getSeconds();this.MyWindow=winCal;this.Format="ddMMyyyy";this.Separator=DateSeparator;this.ShowTime=false;if (pDate.getHours()<12)this.AMorPM="AM";else this.AMorPM="PM";}function GetMonthIndex(shortMonthName){for (i=0;i<12;i++){if (MonthName[i].substring(0,3).toUpperCase()==shortMonthName.toUpperCase()){return i;}}}Calendar.prototype.GetMonthIndex=GetMonthIndex;function SetDay(dValue){this.Date = dValue;}Calendar.prototype.SetDay=SetDay;function IncYear(){this.Year++;}Calendar.prototype.IncYear=IncYear;function DecYear(){this.Year--;}Calendar.prototype.DecYear=DecYear;function SwitchMth(intMth){this.Month=intMth;}Calendar.prototype.SwitchMth=SwitchMth;function Post(){result = this.FormatDate(this.Date);if(objCal.ShowTime){result += ' ' + this.getShowHour() + ':' + this.Minutes + ':' + this.Seconds;if (TimeMode==12)result+= ' ' + this.AMorPM;}return(result);}Calendar.prototype.Post=Post;function SetHour(intHour){var MaxHour;var MinHour;if (TimeMode==24){MaxHour=23;MinHour=0;}else  if (TimeMode==12){MaxHour=12;MinHour=1;}else alert("TimeMode can only be 12 or 24");if (parseInt(intHour,10)>=MinHour){if ((TimeMode==12) && (this.AMorPM=="PM")){if (parseInt(intHour,10)==12)this.Hours=12;else this.Hours=parseInt(intHour,10)+12;}else  if ((TimeMode==12) && (this.AMorPM=="AM")){if (intHour==12)intHour-=12;this.Hours=parseInt(intHour,10);}else  if (TimeMode==24){this.Hours=parseInt(intHour,10);}}}Calendar.prototype.SetHour=SetHour;function SetMinute(intMin){var MinExp=new RegExp("^\\d\\d$");if (MinExp.test(intMin) && (intMin<60))this.Minutes=intMin;}Calendar.prototype.SetMinute=SetMinute;function SetSecond(intSec){var SecExp=new RegExp("^\\d\\d$");if (SecExp.test(intSec) && (intSec<60))this.Seconds=intSec;}Calendar.prototype.SetSecond=SetSecond;function SetAmPm(pvalue){this.AMorPM=pvalue;if (pvalue=="PM"){this.Hours=(parseInt(this.Hours,10))+12;if (this.Hours==24)this.Hours=12;}else  if (pvalue=="AM")this.Hours-=12;}Calendar.prototype.SetAmPm=SetAmPm;function getShowHour(){var finalHour;if (TimeMode==12){if (parseInt(this.Hours,10)==0){this.AMorPM="AM";finalHour=parseInt(this.Hours,10)+12;}else  if (parseInt(this.Hours,10)==12){this.AMorPM="PM";finalHour=12;}else  if (this.Hours>12){this.AMorPM="PM";if ((this.Hours-12)<10)finalHour="0"+((parseInt(this.Hours,10))-12);else finalHour=parseInt(this.Hours,10)-12;}else {this.AMorPM="AM";if (this.Hours<10)finalHour="0"+parseInt(this.Hours,10);else finalHour=this.Hours;}}else  if (TimeMode==24){if (this.Hours<10)finalHour="0"+parseInt(this.Hours,10);else finalHour=this.Hours;}return finalHour;}Calendar.prototype.getShowHour=getShowHour;function GetMonthName(IsLong){var Month=MonthName[this.Month];if (IsLong)return Month;else return Month.substr(0,3);}Calendar.prototype.GetMonthName=GetMonthName;function GetMonDays(){var DaysInMonth=[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];if (this.IsLeapYear()){DaysInMonth[1]=29;}return DaysInMonth[this.Month];}Calendar.prototype.GetMonDays=GetMonDays;function IsLeapYear(){if ((this.Year%4)==0){if ((this.Year%100==0) && (this.Year%400)!=0){return false;}else {return true;}}else {return false;}}Calendar.prototype.IsLeapYear=IsLeapYear;function FormatDate(pDate){if (this.Format.toUpperCase()=="DDMMYYYY")return (pDate+DateSeparator+(this.Month+1)+DateSeparator+this.Year);else  if (this.Format.toUpperCase()=="DDMMMYYYY")return (pDate+DateSeparator+this.GetMonthName(false)+DateSeparator+this.Year);else  if (this.Format.toUpperCase()=="MMDDYYYY")return ((this.Month+1)+DateSeparator+pDate+DateSeparator+this.Year);else  if (this.Format.toUpperCase()=="MMMDDYYYY")return (this.GetMonthName(false)+DateSeparator+pDate+DateSeparator+this.Year);}Calendar.prototype.FormatDate=FormatDate;function SetDate(value){if(value != null){xGetElementById(this.pCtrl).value = value;}exDateTime=xGetElementById(this.pCtrl).value;if (exDateTime!=""){var Sp1;var Sp2;var tSp1;var tSp1;var strMonth;var strDate;var strYear;var intMonth;var YearPattern;var strHour;var strMinute;var strSecond;Sp1=exDateTime.indexOf(DateSeparator,0);Sp2=exDateTime.indexOf(DateSeparator,(parseInt(Sp1)+1));if ((this.Format.toUpperCase()=="DDMMYYYY") || (this.Format.toUpperCase()=="DDMMMYYYY")){strMonth=exDateTime.substring(Sp1+1,Sp2);strDate=exDateTime.substring(0,Sp1);}else  if ((this.Format.toUpperCase()=="MMDDYYYY") || (this.Format.toUpperCase()=="MMMDDYYYY")){strMonth=exDateTime.substring(0,Sp1);strDate=exDateTime.substring(Sp1+1,Sp2);}if (isNaN(strMonth))intMonth=this.GetMonthIndex(strMonth);else intMonth=parseInt(strMonth,10)-1;if ((parseInt(intMonth,10)>=0) && (parseInt(intMonth,10)<12))this.Month=intMonth;if ((parseInt(strDate,10)<=this.GetMonDays()) && (parseInt(strDate,10)>=1))this.Date=strDate;strYear=exDateTime.substring(Sp2+1,Sp2+5);YearPattern=/^\d{4}$/;if (YearPattern.test(strYear))this.Year=parseInt(strYear,10);if (this.ShowTime==true){if(exDateTime.indexOf(":",0) > -1){tSp1=exDateTime.indexOf(":",0);tSp2=exDateTime.indexOf(":",(parseInt(tSp1)+1));strHour=exDateTime.substring(tSp1,(tSp1)-2);this.SetHour(strHour);strMinute=exDateTime.substring(tSp1+1,tSp2);this.SetMinute(strMinute);strSecond=exDateTime.substring(tSp2+1,tSp2+3);this.SetSecond(strSecond);}else {this.SetHour(0);this.SetMinute(0);this.SetSecond(0);}}}RenderCal(this);}Calendar.prototype.SetDate=SetDate;function ip_winOnClick(e){var ip_obj;for(inc=0; inc<window.ip_obj_array.length; inc++){ip_obj = window.ip_obj_array[inc];if(ip_obj.hide_onclickoutside == true && ip_obj.mouseout == true && ip_obj.trigger_obj != e.srcElement)ip_obj.ip_hidepopup();}}function ip_getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset;}function ip_iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;}function ip_clearbrowseredge(obj, whichedge, ip_div_obj){var edgeoffset=0;if (whichedge=="rightedge"){var windowedge=ie4 && !window.opera? ip_iecompattest().scrollLeft+ip_iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15;ip_div_obj.contentmeasure=ip_div_obj.offsetWidth;if (windowedge-ip_div_obj.x < ip_div_obj.contentmeasure)edgeoffset=ip_div_obj.contentmeasure-obj.offsetWidth;}else {var topedge=ie4 && !window.opera? ip_iecompattest().scrollTop : window.pageYOffset;var windowedge=ie4 && !window.opera? ip_iecompattest().scrollTop+ip_iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18;ip_div_obj.contentmeasure=ip_div_obj.offsetHeight;if (windowedge-ip_div_obj.y < ip_div_obj.contentmeasure){ edgeoffset=ip_div_obj.contentmeasure+obj.offsetHeight;if ((ip_div_obj.y-topedge)<ip_div_obj.contentmeasure) edgeoffset=ip_div_obj.y+obj.offsetHeight-topedge;}}return edgeoffset;}function show_inner_popup(sName,obj, e, popup_div, timout_delay,positioning,pos_x,pos_y,opacity,hide_onclickoutside){var ip_obj;var ip_div_obj;var ip_div_td;ip_obj = eval('window.' + sName + ';');if (!ip_obj){ip_obj = new inner_popup(sName);ip_obj.ip_disappeardelay = timout_delay;if(!opacity)ip_obj.opacity = 100;else ip_obj.opacity = opacity;ip_obj.ip_div_obj = xGetElementById(popup_div);ip_obj.ip_div_td = xGetElementById(popup_div + "_td");ip_obj.positioning = positioning;ip_obj.hide_onclickoutside = hide_onclickoutside;ip_obj.init(obj,pos_x,pos_y);eval('window.' + ip_obj.name + ' = this;');}else {if(obj) ip_obj.init(obj,pos_x,pos_y);ip_obj.ip_show();ip_obj.hide_onclickoutside = hide_onclickoutside;}return ip_obj;}function ip_contains_ns6(a, b){while (b.parentNode){if ((b = b.parentNode) == a){return true;}}return false;}function ip_onDrag(){ip_obj = window.ip_drag_obj;if(ip_obj){if(ip_obj.ip_drag_mode){if(ip_obj.positioning == "float"){ip_obj.topMargin = (mouseY - ip_obj.ip_drag_offset_y) - xScrollTop();xMoveTo(ip_obj.ip_div_obj,mouseX - ip_obj.ip_drag_offset_x,mouseY - ip_obj.ip_drag_offset_y);}else {xMoveTo(ip_obj.ip_div_obj,mouseX - ip_obj.ip_drag_offset_x,mouseY - ip_obj.ip_drag_offset_y);}}}}function ip_winOnResize(){var ip_obj;for(inc=0; inc<window.ip_obj_array.length; inc++){ip_obj = window.ip_obj_array[inc];if(ip_obj.leftMargin < 0)xMoveTo(ip_obj.ip_div_obj,xWidth(document) - xWidth(ip_obj.ip_div_obj) - Math.abs(ip_obj.leftMargin) + 1, ip_obj.topMargin);else xMoveTo(ip_obj.ip_div_obj,ip_obj.leftMargin, ip_obj.topMargin);}ip_winOnScroll(); }function ip_winOnScroll(e){var ip_obj;for(inc=0; inc<window.ip_obj_array.length; inc++){ip_obj = window.ip_obj_array[inc];if(ip_obj.positioning == 'float'){xSlideTo(ip_obj.ip_div_obj, xLeft(ip_obj.ip_div_obj), xScrollTop() + ip_obj.topMargin, ip_obj.slideTime);}}}function ip_hidepopup(ip_obj){ip_obj.mouseout = false;xHide(ip_obj.ip_div_obj);}var ie4=document.all;var ns6=document.getElementById&&!document.all;function inner_popup(sName){this.name = sName;this.ip_disappeardelay=450;this.slideTime=700;this.topMargin=0;this.leftMargin=0;this.positioning='';this.ip_drag_offset_x = 0;this.ip_drag_offset_y = 0;this.ip_drag_mode = false;this.opacity = 100;this.ip_div_obj = null;this.ip_div_td = null;this.hide_onclickoutside = false;this.mouseout = false;this.trigger_obj = null;function init(obj,pos_x,pos_y){this.trigger_obj = obj;this.mouseout = true;if (window.ip_obj_array){window.ip_obj_array.push(this);}else {window.ip_obj_array = new Array();window.ip_obj_array.push(this);}if(this.ip_div_td.style.opacity) this.ip_div_td.style.opacity = this.opacity/100;if(this.ip_div_td.style.MozOpacity) this.ip_div_td.style.MozOpacity=this.opacity+'%';if(this.ip_div_td.filters) this.ip_div_td.filters[0].opacity=this.opacity;if (ie4||ns6){xShow(this.ip_div_obj);if(this.positioning == "bottom_left" || this.positioning == ""){xMoveTo(this.ip_div_obj,findPosX(obj),findPosY(obj) + xHeight(obj));}else  if(this.positioning == "top_left"){xMoveTo(this.ip_div_obj,findPosX(obj),findPosY(obj));}else  if(this.positioning == "top_right"){xMoveTo(this.ip_div_obj,findPosX(obj) + xWidth(obj),findPosY(obj));}else  if(this.positioning == "bottom_right"){xMoveTo(this.ip_div_obj,findPosX(obj) + xWidth(obj),findPosY(obj) + xHeight(obj));}else  if(this.positioning == "absolute"){this.ip_div_obj.x= pos_x;this.ip_div_obj.y= pos_y;this.ip_div_obj.style.left=this.ip_div_obj.x +"px";this.ip_div_obj.style.top=this.ip_div_obj.y +"px";}else  if(this.positioning == "float"){if(!pos_y)this.topMargin = 0;else this.topMargin = pos_y;if(!pos_x)this.leftMargin = 0;else this.leftMargin = pos_x;ip_winOnResize(); xAddEventListener(window, 'resize', ip_winOnResize, false);xAddEventListener(window, 'scroll', ip_winOnScroll, false);}}xAddEventListener(document, 'click', ip_winOnClick, false);}inner_popup.prototype.init=init;function ip_show(){xShow(this.ip_div_obj);}inner_popup.prototype.ip_show=ip_show;function ip_startDrag(){this.ip_drag_offset_x = mouseX - xLeft(this.ip_div_obj);this.ip_drag_offset_y = mouseY - xTop(this.ip_div_obj);this.ip_drag_mode = true;window.ip_drag_obj = this;xAddEventListener(document, 'mousemove', ip_onDrag, true);}inner_popup.prototype.ip_startDrag=ip_startDrag;function ip_stopDrag(){this.ip_drag_mode = false;window.ip_drag_obj = null;xRemoveEventListener(document, 'mousemove', ip_onDrag, false);}inner_popup.prototype.ip_stopDrag=ip_stopDrag;function ip_dynamichide(e){if (ie4&&!this.ip_div_obj.contains(e.toElement))ip_delayhidepopup();else  if (ns6&&e.currentTarget!= e.relatedTarget&& !ip_contains_ns6(e.currentTarget, e.relatedTarget))ip_delayhidepopup();}inner_popup.prototype.ip_winOnScroll=ip_winOnScroll;function ip_hidepopup(){this.mouseout = false;this.hide_onclickoutside = false;xHide(this.ip_div_obj);}inner_popup.prototype.ip_hidepopup=ip_hidepopup;function ip_mouseout(val){this.mouseout = val;}inner_popup.prototype.ip_mouseout=ip_mouseout;function ip_delayhidepopup(){if (ie4||ns6)delayhide=setTimeout(this.name + ".ip_hidepopup()",this.ip_disappeardelay);}inner_popup.prototype.ip_delayhidepopup=ip_delayhidepopup;function ip_clearhidepopup(){if (typeof delayhide!="undefined")clearTimeout(delayhide);}inner_popup.prototype.ip_clearhidepopup=ip_clearhidepopup;}var mouseX, mouseY;var IE = document.all?true:false;if (!IE) document.captureEvents(Event.MOUSEMOVE);var SecondaryMouseMoveEvent;function trackMouse(e) {try{if (IE) { mouseX = event.clientX + xScrollLeft();mouseY = event.clientY + xScrollTop();} else  {  mouseX = e.pageX;mouseY = e.pageY;}}catch(e){}if (mouseX < 0){mouseX = 0;}if (mouseY < 0){mouseY = 0;}try{if (tipOn)positionTip(null);}catch(e){}if(SecondaryMouseMoveEvent)SecondaryMouseMoveEvent();}function initTrackMouse(){document.onmousemove = trackMouse;}xAddLoadEvent(initTrackMouse);var offX= 15;var offY= 10;var tooltip;var t1,t2;var tipOn = false;var tmr_show_tooltip;var tooltip_timer_event_bin;document.write('<div><div id="tipDiv" class="ToolTip" style="position:absolute;z-index:1001;"></div></div>');initTip();function initTip() {tooltip = el('tipDiv');var tipOpacity = 92;try{if(tooltip.style.opacity) tooltip.style.opacity = tipOpacity/100;if(tooltip.style.MozOpacity) tooltip.style.MozOpacity=tipOpacity+'%';if(tooltip.filters) tooltip.filters[0].opacity=tipOpacity;}catch(e) {}}xAddLoadEvent(initTip);function delay_show_tooltip(cmd,delay){tmr_show_tooltip=setTimeout(cmd,delay)}function clear_show_tooltip_timer(){if (typeof tmr_show_tooltip!="undefined")clearTimeout(tmr_show_tooltip)}function doTooltip(anchor,message,cssstyle,show_delay,PositionOn) {if (!xDef(cssstyle))cssstyle = 'ToolTipBackground';if(show_delay > 0){tooltip_timer_event_bin = anchor;delay_show_tooltip("doTooltip(tooltip_timer_event_bin,'" + message + "','" + cssstyle + "',0)",show_delay);return;}if (!tooltip) return;if (t1) clearTimeout(t1);if (t2) clearTimeout(t2);if(!anchor)tipOn = true;var tip = '<table class="' + cssstyle + '" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td align="left"><div class="' + cssstyle + '">' + message + '</div></td></tr></table>';if (message.indexOf('<table') >= 0){xWidth(tooltip,0);}else  if (message.indexOf('<br') >= 0){message = message.replace('<br>','<br/>');var lines = message.split('<br/>');var maxlen = 0;for(var i = 0; i<lines.length; i++){if(lines[i].length > maxlen)maxlen = lines[i].length;}xWidth(tooltip,(maxlen * 7) + 15);}else {xWidth(tooltip,(message.length * 6) + 15);}tooltip.innerHTML = tip;positionTip(anchor,PositionOn);t1=setTimeout("xShow(tooltip);",100);}function positionTip(anchor,PositionOn) {if (anchor) {if(!PositionOn)PositionOn = "bottom_right";xPositionOn(tooltip,anchor,PositionOn);}else  {var tpWd = xWidth(tooltip);var tpHt = xHeight(tooltip);var winWd = xClientWidth()  + xScrollLeft();var winHt = xClientHeight() + xScrollTop();if ((mouseX+offX+tpWd)>winWd && mouseX >= tpWd)xLeft(tooltip,mouseX-(tpWd+offX));else  xLeft(tooltip,mouseX+offX);if ((mouseY+offY+tpHt)>winHt)xTop(tooltip,winHt-(tpHt+offY));else xTop(tooltip,mouseY+offY);}}function hideTip() {if (!tooltip) return;t2=setTimeout("xHide(tooltip);",100);tipOn = false;clear_show_tooltip_timer();}var offX= 15;var offY= 10;var stickynote;var t1,t2;var StickyOn = false;var tmr_show_stickynote;var stickynote_timer_event_bin;document.write('<div><div id="StickyDiv" class="StickyNote"></div></div>');function initSticky(StickyName) {var StickyDiv = el('StickyDiv');if(el(StickyName + 'StickyDiv') == undefined){StickyDiv.innerHTML = StickyDiv.innerHTML + '<div id="' + StickyName + 'StickyDiv" class="StickyNote"></div>';stickynote = el(StickyName + 'StickyDiv');var StickyOpacity = 92;try{if(stickynote.style.opacity) stickynote.style.opacity = StickyOpacity/100;if(stickynote.style.MozOpacity) stickynote.style.MozOpacity=StickyOpacity+'%';if(stickynote.filters) stickynote.filters[0].opacity=StickyOpacity;}catch(e) {}}else {stickynote = el(StickyName + 'StickyDiv');}}function delay_show_stickynote(cmd,delay){tmr_show_stickynote=setTimeout(cmd,delay)}function clear_show_stickynote_timer(){if (typeof tmr_show_stickynote!="undefined")clearTimeout(tmr_show_stickynote)}function doStickyNote(name,message,anchor,cssstyle,show_delay,PositionOn){initSticky(name);if(show_delay > 0){stickynote_timer_event_bin = anchor;delay_show_stickynote("dostickynote(stickynote_timer_event_bin,'" + message + "','" + cssstyle + "',0)",show_delay);return;}if (!stickynote) return;if (t1) clearTimeout(t1);if (t2) clearTimeout(t2);if(!anchor)StickyOn = true;var Sticky = '<table class="' + cssstyle + '" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td align="left"><div class="' + cssstyle + '">' + message + '</div></td></tr></table>';if (message.indexOf('<table') >= 0){$(stickynote).width(0);}else  if (message.indexOf('<br') >= 0){var lines = message.split('<br>');var maxlen = 0;for(var i = 0; i<lines.length; i++){if(lines[i].length > maxlen)maxlen = lines[i].length;}$(stickynote).width((maxlen * 7) + 15);}else  {$(stickynote).width((message.length * 7) + 15);}stickynote.innerHTML = Sticky;positionSticky(anchor,PositionOn);$(stickynote).show();}function positionSticky(anchor,PositionOn) {if (anchor) {if(!PositionOn)PositionOn = "bottom_right";xPositionOn(stickynote,anchor,PositionOn);}else  {var tpWd = xWidth(stickynote);var tpHt = xHeight(stickynote);var winWd = xClientWidth()  + xScrollLeft();var winHt = xClientHeight() + xScrollTop();if ((mouseX+offX+tpWd)>winWd && mouseX >= tpWd)xLeft(stickynote,mouseX-(tpWd+offX));else  xLeft(stickynote,mouseX+offX);if ((mouseY+offY+tpHt)>winHt)xTop(stickynote,winHt-(tpHt+offY));else xTop(stickynote,mouseY+offY);}}function hideStickyNote(name) {initSticky(name);if (!stickynote) return;t2=setTimeout("$(stickynote).hide();",100);StickyOn = false;clear_show_stickynote_timer();}var objStickyNoteFadeOutTimeout;function delayHideStickyNote(name, delay){objStickyNoteFadeOutTimeout = setTimeout('fadeStickyNote("' + name + '",null);',delay);}var objStickyNoteAnimation;function fadeStickyNote(name, delay) {initSticky(name);if (!stickynote) return;if($(stickynote).css('opacity') == 1){if(delay != null && delay > 0){delayHideStickyNote(name, delay);}else  {$(stickynote).fadeOut(1500);}}}var intErrorCount = 0;var intViewCount = 0;var aryErrorQueue = new Array();function ShowErrorPanel(strMessage){intErrorCount++;if(intErrorCount == 1){PositionErrorPanel();el('divErrorMessage').innerHTML = strMessage;xShow(el('divErrorPanel'));StartFade(9); }else {aryErrorQueue[intErrorCount] = strMessage;}}function AcceptError(){intViewCount++;if(intErrorCount <= 1){xHide(el('divErrorPanel'));EndFade();intViewCount = 0;}else {el('divErrorMessage').innerHTML = aryErrorQueue[intViewCount + 1];}intErrorCount--;}function PositionErrorPanel(strMessage){xTop(el('divErrorPanel'),(xClientHeight() / 2) - (xHeight(el('divErrorPanel')) /2));xLeft(el('divErrorPanel'),(xClientWidth() / 2) - (xWidth(el('divErrorPanel')) /2));}xAddLoadEvent(PositionErrorPanel);var FloorplanID;var ShowDateID;function InitFloorplan(intFloorplanID, intShowDateID, strBackgroundColor){FloorplanID = intFloorplanID;ShowDateID = intShowDateID;if(el('txtBackgroundColor'))el('txtBackgroundColor').value = strBackgroundColor;RefreshFloorplanImage();}function RefreshFloorplanImage(){if(ShowDateID)el('imgStage').src = '/Images/Floorplan/Render/Render_' + FloorplanID + '_' + ShowDateID + '.jpg?' + (new Date()).getTime();else el('imgStage').src = '/Images/Floorplan/Render/Render_' + FloorplanID + '.jpg?' + (new Date()).getTime();}function ShowBoothInfo(strBoothNumber){window.status = strBoothNumber;};(function($){$.fn.superfish = function(op){var sf = $.fn.superfish,c = sf.c,$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),over = function(){var $$ = $(this), menu = getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},out = function(){var $$ = $(this), menu = getMenu($$), o = sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}},o.delay);},getMenu = function($menu){var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op = sf.o[menu.serial];return menu;},addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };return this.each(function() {var s = this.serial = sf.o.length;var o = $.extend({},sf.defaults,op);o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s] = sf.op = o;$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {if (o.autoArrows) addArrow( $('>a:first-child',this) );}).not('.'+c.bcClass).hideSuperfishUl();var $a = $('a',this);$a.each(function(i){var $li = $a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function() {var menuClasses = [c.menuClass];if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf = $.fn.superfish;sf.o = [];sf.op = {};sf.IE7fix = function(){var o = sf.op;if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)this.toggleClass(sf.c.shadowClass+'-off');};sf.c = {bcClass     : 'sf-breadcrumb',menuClass   : 'sf-js-enabled',anchorClass : 'sf-with-ul',arrowClass  : 'sf-sub-indicator',shadowClass : 'sf-shadow'};sf.defaults = {hoverClass: 'sfHover',pathClass: 'overideThisToUse',pathLevels: 1,delay: 800,animation: {opacity:'show'},speed: 'normal',autoArrows: true,dropShadows : true,disableHI: false,onInit: function(){}, onBeforeShow: function(){},onShow: function(){},onHide: function(){}};$.fn.extend({hideSuperfishUl : function(){var o = sf.op,not = (o.retainPath===true) ? o.$path : '';o.retainPath = false;var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this;},showSuperfishUl : function(){var o = sf.op,sh = sf.c.shadowClass+'-off',$ul = this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });return this;}});})(jQuery);(function($){$.fn.hoverIntent = function(f,g) {var cfg = {sensitivity: 7,interval: 100,timeout: 0};cfg = $.extend(cfg, g ? { over: f, out: g } : f );var cX, cY, pX, pY;var track = function(ev) {cX = ev.pageX;cY = ev.pageY;};var compare = function(ev,ob) {ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {$(ob).unbind("mousemove",track);ob.hoverIntent_s = 1;return cfg.over.apply(ob,[ev]);} else  {pX = cX; pY = cY;ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );}};var delay = function(ev,ob) {ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s = 0;return cfg.out.apply(ob,[ev]);};var handleHover = function(e) {var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }if ( p == this ) { return false; }var ev = jQuery.extend({},e);var ob = this;if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }if (e.type == "mouseover") {pX = ev.pageX; pY = ev.pageY;$(ob).bind("mousemove",track);if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}} else  {$(ob).unbind("mousemove",track);if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
