/*
 * Copyright © 2006-2011 J. Damon & Co.
 * All Rights Reserved Worldwide. 
 * Version 1.04
 */
if(!p)var p=page;var f=p.b=p.body;f.g=f.get;f.h=f.height;f.w=f.width;f.rs=f.resize=function(a){var b=p.b,c=b.resize,d=p.e,e=p.o,h=p.s;p.time();var g=b.w(),b=b.h();(a=e(a).tB())||(a=g!=e(c._w).tI()||b!=e(c._h).tI());if(a)c._w=g,c._h=b,g=p.w(),a=p.l(),d(p.b.g()).sD(),h.rs(),a+=h.w(),g-=h.w(),p.h.rs(g,a),p.f.rs(g,a),p.c.rs(g,a),d("working").h()};window.onresize=p.b.rs;f=p.c=p.content=function(){return p.c};f.g=function(){return p.g("content")};
f.rs=function(a,b){var c=p.e,d=c.newInstance(p.h.g()),e=c.newInstance(p.c.g()),d=d.y()+0,c=c(p.f.g()).t()-d-0;e.xs()&&(e.x(a,b),e.y(c,d),e.s(),e.sD(),p.ts.rs())};page.createElement=function(a){var b=document,c=null;if(typeof a=="string")try{b.createElement&&(c=b.createElement(a))}catch(d){page.isDevelopment()&&alert("page.createElement\n"+d)}return c};f=p.e=p.element;
page.element.add=function(a){var b=this._toObject();if(b==null)b=document.body;typeof a=="string"?page.jquery.installed()?$(b).append(a):b.innerHTML+=a:typeof a=="object"&&b.appendChild&&a.tagName&&b.appendChild(a)};
f.center=function(a,b){(!p.o||!p.o.tI)&&p.object.redefine();var c=p.o,d=this._toObject(),e,h=parseInt,g,b=c(b).tI(0);d!=null&&(e=p.g(a),e==null&&(e=this(d).getParent(),e!=null&&e.tagName.toLowerCase()=="form"&&(e=this(e).getParent())),e!=null&&(this(e).hidden()&&this(e).show(),this(d).hidden()&&this(d).show(),g=this(e).width(),e=this(e).height(),e=(e-this(d).height())/2,g=(g-this(d).width())/2,e-=b,g-=23,b=c(0).tI(0),e<b&&(e=b),b=c(b/2).tI(),this(d).top(h(e+b)),g<0&&(g=0),this(d).left(h(g))))};
f=p.faqs=function(){return p.faqs};f.INDEX=5;f.show=function(a){p.tabs.select(p.faqs.INDEX);alert(a)};f=p.f=p.footer=function(){return p.f};f.g=function(){return p.g("footer")};f.rs=function(a,b){var c=p.e,d=p.eb,e=p.f,h=p.b.h(),g=p.o(e.height).tI(36),i=h-g,e=c(e.g());a-=d.w();g-=d.h();e.xs()&&(h<300&&(i+=10,g-=10),e.x(a,b),e.y(g,i),e.s(),e.sD())};
page.form.disable=function(a,b){var c=this._toObject(),d,e=page.input,h=page.select;typeof a!=typeof!0&&(a=!1);if(typeof b==typeof!0&&!b)setTimeout("page.form.disable("+a+",true)",1E3);else for(var g=1;g<=3;g++){d=e.TAG_NAME;g==2?d=h.TAG_NAME:g==3&&(d="textarea");var i=c==null?document:c,j=i.getElementsByTagName(d);if(j!=null)for(var k=0;k<j.length;k++)if(i=j[k],i!=null)if(g==1){if(d=i.type,d=="button"||d=="submit"||d=="reset")i.disabled=!0}else if(all)i.disabled=!0}};
page.form.uri=function(a,b){var c=page,d=c.element;if(typeof a=="string"&&(c=c.createElement(c.form.TAG_NAME),c!=null)){typeof b==typeof!0&&b&&(b="_blank");d().add(c);c.action=a;if(typeof b=="string")c.target=b;c.submit();d(c).remove()}};p.g=p.getId;f=p.h=p.header=function(){return p.h};f.g=function(){return p.g("header")};f.rs=function(a,b){var c=p.eb,d=p.h,e=p.o(d.height).tI(70),d=p.e(d.g());a-=c.w();e-=c.h();d.xs()&&(d.x(a,b),d.y(e,0),d.s(),d.sD())};
p.l=function(){var a=(p.b.w()-p.w())/2;return p.o(a).tI(0,800)};f=p.r=function(){return p.r};f.w=function(){return screen.width};f=p.s=p.sidebar=function(){return p.h};f.e=function(){return p.e(p.s.g())};f.g=function(){return p.g("sidebar")};f.iL=function(){return p.o(p.s.left).tB(!0)};f.l=function(a){var b=p.s.e();b.xs()&&(a=b.l());return p.o(a).tI(0)};f.r=function(a){var b=p.s.e(),a=p.o(a).tI(0);b.xs()&&(a=b.l()+b.x()+1);return a};
f.rs=function(a){var b=p.eb,c=p.s,d=p.o,a=d(c.width).tI(15),e=d(c.minWidth).tI(0),h=d(p.r.w()/3).tI(),g=d(c.padTop).tI(0)+d(c.padBottom).tI(0),i=p.l(),a=p.w()*(a/100),j=p.b.h(),c=c.e(),h=d(c.maxWidth).tI(h),a=d(a).tI(e,h);a-=b.w();j-=b.h()+g;c.xs()&&(c.x(a,i),c.y(j,0),c.s(),c.sD())};f.w=function(a){var b=p.s.e();b.xs()&&!b.hn()&&(a=b.x(!0));return p.o(a).tI(0)};f=p.t=p.tab=function(a){p.t.index=a;return p.t};
f.id=function(){var a=p.o,b="overview,features,login,register,tabs-5,about,example,demo".split(","),c=a(p.t.index).tI(),d="tab-"+c;p.e(d).xs()||(d=null,a(b).iA()&&(c--,c>=0&&c<b.length&&(d=b[c])));return a(d).tS(!0)};f.g=function(){return p.g(p.t.id())};f.t=f.toggle=function(){var a=p.e,b=p.t.id(),c;c=b+"-more";b+="-less";a(c).hn()?(a(b).h(),a(c).s()):(a(c).h(),a(b).s())};f=p.ts=p.tabs;f.g=function(){return p.g("tabs")};
f.load=function(){p.setBrowser(!0);var a=p.brw,b=p.load,c=p.t,d=p.ts;p.width=80;p.minWidth=740;p.s.padTop=155;p.h.height=a.iE()?58:70;p.load(!0);c.index=p.o(c.index).tI(1);c.current=c.index;d().init();d.select(c.index);p.b.rs(!0);typeof b.after==typeof this&&b.after(!0)};f.onSelect=function(a,b){var c=p.tab,d=c.login,e=c.register,h=p.o(b.index).tI()+1,g=null;c.current=h;if(h!=c.index){if(h==d.INDEX)g=d.URI;else if(h==e.INDEX)g=e.URI;g!=null&&p.form.uri(g)}return g==null};f.onShow=function(){p.b.rs(!0)};
f.rs=function(){var a=p.brw,b=p.e,c=p.o,d=p.t,e=p.ts,h=b(p.c.g()).y(),g=c(d.minScroll).tI(120),i=c(d.current).tI(1),a=a.iE(),c=c(d.fontSize).tI(16),a=a?1:10,d=d(i).id();b(d).xs()&&(a+=80,a-=c>14?c>16?2:7:11,b(d).y(h-a),h=h>g,b(d).sO(h),h&&b(d).sO(!h,!0),b("form."+i).center(e.g(),46))};p.w=function(){var a=p.o,b=p.b.w(),c=a(p.width).tI(100),d=a(p.minWidth).tI(640),e=a(p.maxWidth).tI(p.r.w());c+=b<1280?b<1024?b<800?b<640?20:15:10:5:0;c=a(c).tI(0,100);b=a(b*(c/100)).tI();return a(b).tI(d,e)};f=p.t;
f.faqs=function(){return p.t.faqs};f.login=function(){return p.t.login};f.register=function(){return p.t.register};f=p.o.toUndefined();
