
function $(a)
{var r=null;if(document.getElementById)
{r=document.getElementById(a);}
else if(document.all)
{r=document.all[a];}
else if(document.layers)
{r=document[a];}
return r;}
function Job(a,b,c,d,t)
{this.Jobs=null;this.JobID=0;this.Timer=null;this.Millisec=t;this.DateStart=0;this.ProgressCurrent=0;this.ProgressMax=0;this.ProgressInit=a;this.ProgressUpdate=b;this.ProgressDestroy=c;this.ProgressGranularity=d;this.ProgressUpdateLast=0;this.Lock=false;}
Job.prototype.New=function(a,b,c,d,e,f,g,h,i,j)
{var me=this;var TickStub=function()
{me.Tick.call(me);}
if(this.Jobs==null)
{this.Jobs=new Array();}
if(a==null)
{a=this.JobID;}
var p=1;var r=(c-b)+2;if(r>d)
{p=Math.ceil(r/d);}
this.Jobs.push(({ID:a,Start:b,Current:b-1,End:c,Increment:d,Init:e,Timer:f,Destroy:g,Abort:h,Context:i,Priority:j,Progress:p}));if(this.Timer==null)
{this.DateStart=new Date();this.ProgressCurrent=0;this.ProgressMax=p;this.Timer=self.setInterval(TickStub,this.Millisec);if(this.ProgressInit!=null)
{this.ProgressInit(0,this.DateStart+(p*this.Millisec));}
this.ProgressUpdateLast=0;}
else
{this.ProgressMax+=p;}
return this.JobID++;}
Job.prototype.KillTimer=function()
{if(this.Timer!=null)
{self.clearInterval(this.Timer);}
this.Timer=null;this.Jobs=null;if(this.ProgressDestroy!=null)
{this.ProgressDestroy();}}
Job.prototype.Tick=function()
{if(!this.Lock)
{this.Lock=true;try
{var z=true;if(this.Jobs!=null)
{var tg=0;var ep=-1;for(ei=0;ei!=this.Jobs.length;ei++)
{var e=this.Jobs[ei];if(e!=null)
{tg+=e.Progress;if(ep!=-1)
{if(e.Priority>this.Jobs[ep].Priority)
{ep=ei;}}
else
{ep=ei;}}}
if(tg!=this.ProgressMax-this.ProgressCurrent)
{this.ProgressMax=this.ProgressCurrent+tg;}
if(ep!=-1)
{z=false;var e=this.Jobs[ep];var i=0;var u=true;var d=true;while(i!=e.Increment)
{var s=1;if(e.Current<e.Start)
{if(e.Init!=null)
{s=e.Init.call(e.Context,e.ID);}}
else if(e.Current>=e.End)
{if(e.Destroy!=null)
{s=e.Destroy.call(e.Context,e.ID)}}
else
{if(e.Timer!=null)
{s=e.Timer.call(e.Context,e.ID,e.Current);}}
if(s==-1||(s==1&&e.Current>=e.End))
{this.Jobs[ep]=null;this.Jobs.splice(ep,1);d=false;break;}
else if(s==1)
{e.Current++;i++;}
else if(s==0)
{u=false;break;}}
if(u)
{this.ProgressCurrent++;if(d)
{e.Progress--;}}
if(this.ProgressUpdate!=null)
{var c=this.ProgressCurrent/this.ProgressMax;if(c>=this.ProgressUpdateLast+this.ProgressGranularity||c<=this.ProgressUpdateLast-this.ProgressGranularity)
{var n=new Date();this.ProgressUpdate(c,n+((n-this.DateStart)*this.ProgressMax/(this.ProgressMax-this.ProgressCurrent)));this.ProgressUpdateLast=c;}}}}
if(z)
{this.KillTimer();}}
catch(err)
{if(this.Timer!=null)
{this.KillTimer();}}
this.Lock=false;}}
Job.prototype.Abort=function(p)
{if(this.Jobs!=null)
{var i=0;while(i<this.Jobs.length)
{var e=this.Jobs[i];var k=false;if(p==null)
{k=true;}
else
{if(e!=null)
{if(e.Priority<=p)
{k=true;}}}
if(k)
{var b=false;if(i==0&&e.Current>=e.Start)
{b=true;}
if(e.Abort!=null)
{e.Abort.call(e.Context,e.ID,b);}
this.ProgressMax-=this.Jobs[i].Progress;this.Jobs[i]=null;this.Jobs.splice(i,1);i=0;}
else
{i++;}}
if(this.Jobs.length==0)
{this.KillTimer();}}
else
{this.KillTimer();}}
Job.prototype.Change=function(a,b,c,d,e,f)
{if(this.Jobs!=null)
{for(var i=0;i!=this.Jobs.length;i++)
{var v=this.Jobs[i];if(v.ID==a)
{this.ProgressMax-=v.Progress;if(b!=null)
{v.Start=b;}
if(c!=null)
{v.Current=c;}
if(d!=null)
{v.End=d;}
if(e!=null)
{v.Increment=e;}
if(f!=null)
{v.Priority=f;}
v.Progress=1;var r=(v.End-v.Current)+1;if(r>v.Increment)
{v.Progress=Math.ceil(r/v.Increment);}
this.ProgressMax+=v.Progress;break;}}}}
function Client()
{this.Browsers={Unknown:-1,Netscape:0,Mozilla:1,Explorer:2,Camino:3,Firefox:4,Konqueror:5,iCab:6,Opera:7,Safari:8,OmniWeb:9,Chrome:10};this.OSes={Unknown:-1,Windows:0,Mac:1,iPhone:2,Linux:3};this.CurrentBrowser=null;this.CurrrentVersion=null;this.CurrentOS=null;this.BrowserData=[{string:navigator.userAgent,subString:'Chrome',identity:this.Browsers.Chrome},{string:navigator.userAgent,subString:'OmniWeb',versionSearch:"OmniWeb/",identity:this.Browsers.OmniWeb},{string:navigator.vendor,subString:'Apple',identity:this.Browsers.Safari,versionSearch:'Version'},{prop:window.opera,identity:this.Browsers.Opera},{string:navigator.vendor,subString:'iCab',identity:this.Browsers.iCab},{string:navigator.vendor,subString:'KDE',identity:this.Browsers.Konqueror},{string:navigator.userAgent,subString:'Firefox',identity:this.Browsers.Firefox},{string:navigator.vendor,subString:'Camino',identity:this.Browsers.Camino},{string:navigator.userAgent,subString:'Netscape',identity:this.Browsers.Netscape},{string:navigator.userAgent,subString:'MSIE',identity:this.Browsers.Explorer,versionSearch:'MSIE'},{string:navigator.userAgent,subString:'Gecko',identity:this.Browsers.Mozilla,versionSearch:'rv'},{string:navigator.userAgent,subString:'Mozilla',identity:this.Browsers.Netscape,versionSearch:'Mozilla'}];this.OSData=[{string:navigator.platform,subString:'Win',identity:this.OSes.Windows},{string:navigator.platform,subString:'Mac',identity:this.OSes.Mac},{string:navigator.userAgent,subString:'iPhone',identity:this.OSes.iPhone},{string:navigator.platform,subString:'Linux',identity:this.OSes.Linux}];}
Client.prototype.SearchString=function(d)
{var r=null;for(var i=0;i!=d.length;i++)
{var e=d[i];var s=e.string;var p=e.prop;this.VersionSearchString=e.versionSearch||e.identity;if(s)
{if(s.indexOf(e.subString)!=-1)
{r=e.identity;break;}}
else if(p)
{r=e.identity;break;}}
return r;}
Client.prototype.SearchVersion=function(d)
{var r=null;var index=d.indexOf(this.VersionSearchString);if(index!=-1)
{r=parseFloat(d.substring(index+this.VersionSearchString.length+1));}
return r;}
Client.prototype.Browser=function()
{if(this.CurrentBrowser==null)
{this.CurrentBrowser=this.SearchString(this.DataBrowser)||this.Browser.Unknown;}
return this.CurrentBrowser;}
Client.prototype.Version=function()
{if(this.CurrentVersion==null)
{this.CurrentVersion=this.SearchVersion(navigator.userAgent)||this.SearchVersion(navigator.appVersion)||'0.0';}
return this.CurrentVersion;}
Client.prototype.OS=function()
{if(this.CurrentOS==null)
{this.CurrentOS=this.SearchString(this.DataOS)||this.OS.Unknown;}
return this.CurrentOS;}
Client.prototype.Height=function()
{var r=600;if(typeof window.innerHeight==='number')
{r=window.innerHeight;}
else if(document.documentElement)
{if(document.documentElement.clientHeight)
{r=document.documentElement.clientHeight;}}
else if(document.body)
{if(document.body.clientHeight)
{r=document.body.clientHeight;}}
return r;}
Client.prototype.Width=function()
{var r=480;if(typeof(window.innerWidth)==='number')
{r=window.innerWidth;}
else if(document.documentElement)
{if(document.documentElement.clientWidth)
{r=document.documentElement.clientWidth;}}
else if(document.body)
{if(document.body.clientWidth)
{r=document.body.clientWidth;}}
return r;}
function Lite()
{this.Event=null;this.EventID=0;this.LifeInit=null;this.LifeReady=null;this.LifeReadyCompleted=false;this.LifeUnload=null;this.Capture=null;this.CaptureID=0;this.UniqueID=0;this.EventType={Load:'load',Unload:'unload',MouseEnter:'mouseenter',MouseLeave:'mouseleave',MouseOver:'mouseover',MouseOut:'mouseout',MouseDown:'mousedown',MouseMove:'mousemove',MouseUp:'mouseup',Click:'click',Blur:'blur',KeyDown:'keydown',CloseCapture:'closecapture'};this.Client=new Client();this.Acid=BrowserIsAcid;this.IELegacy=BrowserIsIE;this.Legacy=BrowserIsLegacy;this.PreloadedImages=null;this.PreloadedImagesInterval=null;this.AnimateMillisecs=1;this.AnimateSpeed=4;this.Animates=new Job(null,null,null,null,this.AnimateMillisecs);this.AnimateType={None:0,HorizontalExpand:1,HorizontalCollapse:2};var me=this;var Load=function(){if(me.LifeInit!=null){for(var i=0;i!=me.LifeInit.length;i++){var e=me.LifeInit[i];if(typeof e.Context!=='undefined'){e.Listener.call(e.Context,e.Arg);}
else{e.Listener(e.Arg);}}
me.LifeInit=null;}
if(me.LifeReady!=null){for(var i=0;i!=me.LifeReady.length;i++){var e=me.LifeReady[i];if(typeof e.Context!=='undefined'){e.Listener.call(e.Context,e.Arg);}
else{e.Listener(e.Arg);}}
me.LifeReady=null;}
var e=$('__VIEWSTATE');if(e!=null)
{e.setAttribute('autocomplete','off');}
var e=$('__EVENTTARGET');if(e!=null)
{e.setAttribute('autocomplete','off');}
var e=$('__EVENTARGUMENT');if(e!=null)
{e.setAttribute('autocomplete','off');}
var e=$('__EVENTVALIDATION');if(e!=null)
{e.setAttribute('autocomplete','off');}
this.LifeReadyCompleted=true;}
var Unload=function()
{if(me.PreloadedImagesInterval!=null)
{self.clearInterval(me.PreloadedImagesInterval);me.PreloadedImagesInterval=null;}
if(me.LifeUnload!=null)
{for(var i=0;i!=me.LifeUnload.length;i++)
{var e=me.LifeUnload[i];if(typeof e.Context!=='undefined')
{e.Listener.call(e.Context,e.Arg);}
else
{e.Listener(e.Arg);}}
me.LifeUnload=null;}}
this.EventAdd(window,this.EventType.Load,Load);this.EventAdd(window,this.EventType.Unload,Unload);}
Lite.prototype.IsDescendant=function(p,c)
{var r=false;do
{if(c==p)
{r=true;break;}
else
{try{c=c.parentNode;}
catch(oh){c=null;}}}
while(c);return r;}
Lite.prototype.EventAddMouse=function(f){return function(e){var c=e.relatedTarget;var r=true;while(c){if(c==this){r=false;break;}
else{try{c=c.parentNode;}
catch(oh){c=null;}}}
if(r){f.call(this,e);}}}
Lite.prototype.EventAdd=function(e,t,f)
{var z=false;var r=null;var o=null;var ff=f;if(typeof e.addEventListener!=='undefined')
{if(t===this.EventType.CloseCapture)
{if(typeof e.setCapture!=='undefined')
{e.addEventListener(t,f,true);z=true;}}
else if(t===this.EventType.MouseEnter)
{ff=this.EventAddMouse(f);e.addEventListener(this.EventType.MouseOver,ff,true);z=true;}
else if(t===this.EventType.MouseLeave)
{ff=this.EventAddMouse(f);e.addEventListener(this.EventType.MouseOut,ff,true);z=true;}
else
{e.addEventListener(t,f,true);z=true;}}
else
{var s='on'+t;if(typeof e.attachEvent!=='undefined')
{var x='f'+this.EventID;e[x]=f;ff=function(a){f.call(e,a)};e.attachEvent(s,ff);z=true;}
else
{if(typeof e[s]!=='undefined')
{o=e[s];}
ff=function(a){this.EventChain.call(this,this.EventID,a);};e[s]=ff;z=true;}}
if(z)
{if(this.Event==null)
{this.Event=new Array();}
this.Event.push(({ID:this.EventID,Element:e,EventType:t,Listener:ff,Old:o}));r=this.EventID++;}
return r;}
Lite.prototype.EventChain=function(id,a)
{var r=null;if(id!=null&&this.Event!=null)
{for(var i=0;i!=this.Event.length;i++)
{var e=this.Event[i];if(e.ID==id)
{r=e.Listener.call(e.Element,a);if(r&&e.Old!=null)
{r=e.Old.call(e.Element,a);}
break;}}}
return r;}
Lite.prototype.EventRemove=function(id)
{var r=false;if(id!=null&&this.Event!=null)
{for(var i=0;i!=this.Event.length;i++)
{var e=this.Event[i];if(e.ID==id)
{try
{if(typeof e.Element.removeEventListener!=='undefined')
{if(e.EventType===this.EventType.MouseEnter)
{e.Element.removeEventListener(this.EventType.MouseOver,e.Listener,true);r=true;}
else if(e.EventType===this.EventType.MouseLeave)
{e.Element.removeEventListener(this.EventType.MouseOut,e.Listener,true);r=true;}
else
{e.Element.removeEventListener(e.EventType,e.Listener,true);r=true;}}
else
{var s='on'+e.EventType;if(typeof e.Element.detachEvent!=='undefined')
{e.Element.detachEvent(s,e.Listener);e.Element['f'+this.ID]=null;r=true;}
else
{if(e.Element[s]==e.Listener)
{e.Element[s]=e.Old;}
else
{for(var ii=0;ii!=this.Event.length;ii++)
{var ee=this.Event[ii];if(e.Element==ee.Element&&e.EventType==ee.EventType&&ee.Old==e.Listener)
{ee.Old=e.Old;}}}
r=true;}}}
catch(oh)
{}
this.Event.splice(i,1);break;}}}
return r;}
Lite.prototype.EventFire=function(id,a)
{var r=null;if(this.Event!=null)
{for(var i=0;i!=this.Event.length;i++)
{var e=this.Event[i];if(e.ID==id)
{r=e.Listener.call(e.Element,a);}}}
return r;}
Lite.prototype.Init=function(f,c,a)
{if(this.LifeReadyCompleted)
{f.call(c,a);}
else
{if(this.LifeInit==null)
{this.LifeInit=new Array();}
this.LifeInit.push({Listener:f,Context:c,Arg:a});}}
Lite.prototype.Ready=function(f,c,a)
{if(this.LifeReadyCompleted)
{f.call(c,a);}
else
{if(this.LifeReady==null)
{this.LifeReady=new Array();}
this.LifeReady.push({Listener:f,Context:c,Arg:a});}}
Lite.prototype.Destroy=function(f,c,a)
{if(this.LifeUnload==null)
{this.LifeUnload=new Array();}
this.LifeUnload.push({Listener:f,Context:c,Arg:a});}
Lite.prototype.CaptureAdd=function(e)
{var r=null;if(typeof e.setCapture!=='undefined')
{e.setCapture(true);if(this.Capture==null)
{this.Capture=new Array();}
this.Capture.push(({ID:this.CaptureID,Element:e}));r=this.CaptureID++;}
return r;}
Lite.prototype.CaptureRemove=function(id)
{var r=false;if(id!=null&&this.Capture!=null)
{for(var i=0;i!=this.Capture.length;i++)
{var e=this.Capture[i];if(e.ID==id)
{try
{e.Element.releaseCapture();}
catch(oh)
{}
this.Capture.splice(i,1);r=true;break;}}}
return r;}
Lite.prototype.TextAdd=function(a,b)
{a.appendChild(document.createTextNode(b));}
Lite.prototype.TextRemoveAll=function(a)
{while(a.childNodes.length!=0)
{a.removeChild(a.childNodes[0]);}}
Lite.prototype.UnhexHtml=function(s)
{var r='';var q;var c;for(var i=0;i<s.length;i+=4)
{q=s.substr(i,4);switch(q)
{case'000a':c='<br />';break;default:c=String.fromCharCode(parseInt(q,16));break;}
r+=c;}
return r;}
Lite.prototype.KeyCode=function()
{var r=0;if(typeof window.event!=='undefined')
{r=window.event.keyCode;}
else
{if(typeof event!=='undefined')
{if(event.keyCode!=0)
{r=event.keyCode;}
else
{r=event.which;}}}
return r;}
Lite.prototype.ClassName=function(e,c)
{var r=false;if(e!=null)
{if(e.className!=null)
{if(e.className.match(new RegExp('(\\s|^)'+c+'(\\s|$)'))!=null)
{r=true;}}}
return r;}
Lite.prototype.ClassNameAdd=function(e,c)
{if(!this.ClassName(e,c))
{e.className+=' '+c;}}
Lite.prototype.ClassNameRemove=function(e,c)
{if(this.ClassName(e,c))
{var reg=new RegExp('(\\s|^)'+c+'(\\s|$)');e.className=e.className.replace(reg,' ');}}
Lite.prototype.SessionID=function()
{var r='';hu=window.location.search.substring(1).toLowerCase();gy=hu.split('&');for(i=0;i<gy.length;i++)
{ft=gy[i].split('=');if(ft.length==2&&ft[0]=='session')
{r=ft[1];break;}}
return r;}
Lite.prototype.SessionQS=function()
{var r='';var s=this.SessionID();if(s!='')
{r='?Session='+s;}
return r;}
Lite.prototype.RoundedPanel=function(eParent,CssClass,CssOutlineB,CssBorderP,CssInlineB,CssBackgroundP,CssForeground)
{var r=null;var p=document.createElement('div');p.className=CssClass;if(this.Acid)
{for(var i=1;i!=16;i++)
{var j;if(i>8)
{j=(16-i);}
else
{j=i;}
var d=document.createElement('div');d.className=CssOutlineB+' '+CssBorderP+' r'+j;if(i==8)
{r=document.createElement('div');r.className=CssBackgroundP+' '+CssForeground+' r82';d.appendChild(r);}
else if(i>4&&i<12)
{var e=document.createElement('div');e.className=CssInlineB+' '+CssBackgroundP+' r'+j+'1';d.appendChild(e);}
p.appendChild(d);}}
else
{var d=document.createElement('div');d.className=CssOutlineB+' '+CssBorderP+' r9';var r=document.createElement('div');r.className=CssInlineB+' '+CssBackgroundP+' '+CssForeground+' r92';d.appendChild(r);p.appendChild(d);}
eParent.appendChild(p);return r;}
Lite.prototype.ACButton=function(a,b,c)
{var s=document.createElement('span');s.className='ACButton';this.EventAdd(s,this.EventType.MouseOver,new Function("window.status='"+b+"';return true;"));this.EventAdd(s,this.EventType.MouseOut,new Function("window.status=' ';"));var i=document.createElement('input');i.type='button';i.value=a;i.title=b;this.EventAdd(i,this.EventType.Click,c);s.appendChild(i);return s;}
Lite.prototype.Unique=function()
{return'_LiteUnique'+(this.UniqueID++).toString();}
Lite.prototype.AbsolutePosition=function(e)
{var l=0;var t=0;while(e.offsetParent)
{l+=e.offsetLeft;t+=e.offsetTop;e=e.offsetParent;}
l+=e.offsetLeft;t+=e.offsetTop;return{x:l,y:t};}
Lite.prototype.MouseCoord=function(ev)
{var x=0;var y=0;if(ev.pageX||ev.pageY)
{x=ev.pageX;y=ev.pageY;}
else
{x=ev.clientX+document.body.scrollLeft-document.body.clientLeft;y=ev.clientY+document.body.scrollTop-document.body.clientTop;}
return{x:x,y:y};}
Lite.prototype.MouseOffset=function(t,ev)
{if(typeof ev==='undefined')
{ev=window.event;}
if(ev==null)
{ev=window.event;}
var docPos=this.AbsolutePosition(t);var mousePos=this.MouseCoord(ev);return{x:mousePos.x-docPos.x,y:mousePos.y-docPos.y};}
Lite.prototype.Drag=function(c,t,h)
{var o=null;var me=this;var m=null;var u=null;var a=null;var b=null;var s=null;var f=null;var l=null;var ev=null;var x=null;var y=null;var MoveTimer=function()
{t.style.left=''+parseInt(x)+'px';t.style.top=''+parseInt(y)+'px';l=null;}
var Move=function(ev)
{if(typeof ev==='undefined')
{ev=window.event;}
if(ev==null)
{ev=window.event;}
var z=me.MouseCoord.call(me,ev);y=z.y-o.y;x=z.x-o.x;if(c!=null)
{if(y<s.y)
{y=s.y;}
else if(y>f.y)
{y=f.y;}
if(x<s.x)
{x=s.x;}
else if(x>f.x)
{x=f.x;}}
if(document.selection)
{document.selection.empty();}
if(ev.stopPropagation)
{ev.stopPropagation();}
else if(ev.cancelBubble)
{ev.cancelBubble=true;}
if(ev.preventDefault)
{ev.preventDefault();}
else if(ev.returnValue)
{ev.returnValue=false;}
if(l==null)
{l=self.setTimeout(MoveTimer,25);}
return false;}
var Up=function(ev)
{me.CaptureRemove.call(me,a);me.EventRemove.call(me,m);me.EventRemove.call(me,u);me.EventRemove.call(me,b);}
var Down=function(ev)
{o=me.MouseOffset.call(me,t,ev);a=me.CaptureAdd.call(me,h);if(a==null)
{m=me.EventAdd.call(me,window,me.EventType.MouseMove,Move);u=me.EventAdd.call(me,window,me.EventType.MouseUp,Up);}
else
{m=me.EventAdd.call(me,h,me.EventType.MouseMove,Move);u=me.EventAdd.call(me,h,me.EventType.MouseUp,Up);b=me.EventAdd.call(me,h,me.EventType.CloseCapture,Up);}
if(c!=null)
{s=me.AbsolutePosition(c);f={x:s.x+c.clientWidth-t.clientWidth,y:s.y+c.clientHeight-t.clientHeight};}
t.position='absolute';}
this.EventAdd(h,this.EventType.MouseDown,Down);}
Lite.prototype.EventDelay=function(a,b,c,d,e)
{var me=this;var t=0;var Show=function()
{me.ClassNameAdd(a,d);t=0;}
var Add=function()
{if(t==0&&!me.ClassName(a,d))
{t=self.setTimeout(Show,e);}}
var Remove=function()
{if(t==0)
{me.ClassNameRemove(a,d);}
else
{self.clearTimeout(t);t=0;}}
this.EventAdd(a,b,Add);this.EventAdd(a,c,Remove);}
Lite.prototype.PreloadImages=function(b)
{if(document.images)
{if(typeof b.length!=='undefined')
{if(b.length!=0)
{this.PreloadedImages=new Array();this.PreloadedImagesInterval=null;var i=0;var me=this;var t=null;var Load=function()
{if(i<b.length)
{var a=new Image();a.src=b[i];me.PreloadedImages.push(a);i++;}
else
{self.clearInterval(me.PreloadedImagesInterval);me.PreloadedImagesInterval=null;}}
var Start=function()
{me.PreloadedImagesInterval=self.setInterval(Load,25);}
this.Ready(Start,this);}}}}
Lite.prototype.ScrollIntoView=function(c,e)
{if(c!==null&&e!==null)
{var a=c.clientHeight;var b=c.scrollHeight;if(b>a)
{var t=e.offsetTop;var h=e.clientHeight;if(this.IELegacy)
{t-=h;}
else
{t-=c.offsetTop;}
if(t<c.scrollTop||t>c.scrollTop+a-h)
{var tt=t-(a/2)-(h/2);if(tt<0)
{tt=0;}
c.scrollTop=tt;}}}}
Lite.prototype.StopPropagation=function(e)
{if(typeof e==='undefined'){e=window.event;}
if(e.stopPropagation){e.stopPropagation();}
else{e.cancelBubble=true;}}
Lite.prototype.TextGet=function(e,c)
{var r='';if(!this.ClassName(e,c)){r=e.value;}
return r;}
Lite.prototype.TextSet=function(e,c,w,t)
{var r='';if(typeof t==='undefined'){t='';}
if(t===null){t='';}
if(t==''){this.ClassNameAdd(e,c);r=w;}
else{this.ClassNameRemove(e,c);r=t;}
e.value=r;return t;}
Lite.prototype.Animate=function(b,a)
{var r=0;if(typeof b==='string'){b=$(b);}
if(this.Acid)
{var data=new Object();data.Type=a;data.Element=b;data.Lite=this;var i=null;var t=null;var d=null;switch(a)
{case this.AnimateType.HorizontalExpand:i=this.AnimateInitHorizontalExpand;t=this.AnimateTimerHorizontalExpand;d=this.AnimateDestroyHorizontalExpand;data.DefaultPosition=b.style.position;data.DefaultHeight=b.style.height;data.DefaultWidth=b.style.width;b.style.position='absolute';b.style.visibility='hidden';b.style.display='block';b.style.Width=''+b.parentNode.clientWidth+'px';break;case this.AnimateType.HorizontalCollapse:i=this.AnimateInitHorizontalCollapse;t=this.AnimateTimerHorizontalCollapse;d=this.AnimateDestroyHorizontalCollapse;data.Height=b.clientHeight;data.DefaultHeight=b.style.height;break;}
r=this.Animates.New(null,1,this.AnimateSpeed-1,1,i,t,d,d,data,0);}
else
{switch(a)
{case this.AnimateType.HorizontalExpand:b.style.display='block';break;case this.AnimateType.HorizontalCollapse:b.style.display='none';break;}}
return r;}
Lite.prototype.AnimateInitHorizontalExpand=function(id)
{this.DefaultOverflow=this.Element.style.overflow;this.Height=this.Element.clientHeight;this.Element.style.height='0px';this.Element.style.position=this.DefaultPosition;this.Element.style.visibility='';this.Element.style.overflow='hidden';return 1;}
Lite.prototype.AnimateTimerHorizontalExpand=function(id,index)
{this.Element.style.height=''+Math.ceil(this.Height*index/this.Lite.AnimateSpeed)+'px';return 1;}
Lite.prototype.AnimateDestroyHorizontalExpand=function(id)
{this.Element.style.height=this.DefaultHeight;this.Element.style.width=this.DefaultWidth;this.Element.style.overflow=this.DefaultOverflow;this.Element.style.display='block';return 1;}
Lite.prototype.AnimateInitHorizontalCollapse=function(id)
{this.DefaultOverflow=this.Element.style.overflow;this.Height=this.Element.clientHeight;this.Element.style.height=''+this.Height+'px';this.Element.style.overflow='hidden';return 1;}
Lite.prototype.AnimateTimerHorizontalCollapse=function(id,index)
{this.Element.style.height=''+Math.ceil(this.Height*(this.Lite.AnimateSpeed-index)/this.Lite.AnimateSpeed)+'px';return 1;}
Lite.prototype.AnimateDestroyHorizontalCollapse=function(id)
{this.Element.style.display='none';this.Element.style.height=this.DefaultHeight;this.Element.style.overflow=this.DefaultOverflow;return 1;}
var Common=new Lite();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,json=[],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);}
json.push((arr?"":'"'+n+'":')+String(v));}
return(arr?"[":"{")+String(json)+(arr?"]":"}");}};JSON.parse=JSON.parse||function(s)
{if(s==='')
{s='""';}
eval("var p="+s+";");return p;};