/*
Copyright (C) 2008 ZZEE TOOLS Corp. All rights reserved.
This code may not be copied by any means or used in third party websites or software products.
*/

function ZZEEUI(){this.version='1.1.2';}ZZEEUI.prototype={ie:0,iframe:0,id:function(x){return document.getElementById(x);},el:function(t,p,c,s,b){var e=document.createElement(t);if(!e){return false;}if(c){e.className=c;}if(s){e.setAttribute('style',s);e.style.cssText=s;}if(b){return p.insertBefore(e,b);}return p.appendChild(e);},text:function(p,t){var e=document.createTextNode(t);if(!e){return e;}return p.appendChild(e);},remChild:function(e){if(e.firstChild){e.removeChild(e.firstChild);}},remChildren:function(e){while(e.firstChild){e.removeChild(e.firstChild);}},centerCoords:function(w,h){var r={},b=document.body;r.x=b.scrollLeft+(b.scrollWidth-w)/2;if(r.x<0){r.x=0;}r.y=b.scrollTop+(b.scrollHeight-h)/2;if(r.y<0){r.y=0;}return r;},showPopup:function(e){e.style.display='block';e.style.position='absolute';var r=this.centerCoords(e.offsetWidth,e.offsetHeight);e.style.left=r.x+'px';e.style.top=r.y+'px';},closePopup:function(e){e.style.display='none';},getStyle:function(e,p){if(e.currentStyle){return e.currentStyle[p];}var v,d=e.ownerDocument;if(d){v=d.defaultView;if(v){if(v.getComputedStyle){return v.getComputedStyle(e,'')[p];}}}return 0;},getOffset:function(e,p){var x=e[p];for(var n=e.offsetParent;n;n=n.offsetParent){x+=n[p];}return x;},getRelOffset:function(e,p){var s,n,x=e[p];for(n=e.offsetParent;n;n=n.offsetParent){s=this.getStyle(n,'position');if(s.toLowerCase()!='static'){return x;}x+=n[p];}return x;},bind:function(c,m){return(function(e){return c[m](e);});},cancelEv:function(e){var ev=e||window.event;if(ev){if(ev.stopPropagation){ev.stopPropagation();}ev.cancelBubble=true;if(window.event&&ev.keyCode){ev.keyCode=0;ev.returnValue=false;}}},_parseFloat:function(x){var c,i,j='',l=x.length;for(i=0;i<l;i++){c=x.charCodeAt(i);if(((c>=48)&&(c<=57))||(c==45)||(c==46)){j+=x.charAt(i);}}return parseFloat(j);},_parseInt:function(x){var c,i,j='',l=x.length;for(i=0;i<l;i++){c=x.charCodeAt(i);if(c==46){break;}if(((c>=48)&&(c<=57))||(c==45)){j+=x.charAt(i);}}return parseInt(j,10);},format:function(x,d,s){x=parseFloat(x);x=x.toFixed(d);var c,i,y='',l=x.length,r='',k;if(d){for(i=0;i<l;i++){c=x.charAt(i);if(c=='.'){k=i+1;break;}y+=c;}}else{y=x;}l=y.length;for(i=l-1;i>=0;i--){c=y.charAt(i);if((!((l-1-i)%3))&&(i!=(l-1))){r=s+r;}r=c+r;}return d?(r+'.'+x.substr(k)):r;}};function ZZEENS(){this.version='1.0.0';}ZZEENS.prototype={update:function(s){if(s.zzi){s.innerText=this[s.zzi];}}};
