var DataType={};DataType.BOOLEAN=typeof true;DataType.FUNCTION="function";DataType.NUMBER=typeof 0;DataType.OBJECT=typeof {};DataType.STRING=typeof "";DataType.UNDEFINED="undefined";
String.prototype.contains=function(s) {
if(typeof s==DataType.STRING && s!=null)
{if(this.length>=s.length)
{if(this.indexOf(s)>=0)
{return true;};};};return false;};
String.prototype.endsWith=function(s) {
if(typeof s==DataType.STRING && s!=null)
{if(this.length>=s.length)
{if(this.substring((this.length-s.length),this.length)==s)
{return true;};};};return false;};
String.prototype.equals=function(s) {
if(typeof s==DataType.STRING && s!=null)
{if(this==s)
{return true;};};return false;};
String.prototype.replaceAll=function(replace,replacement)
{if(RegExp &&(typeof RegExp==typeof this.replaceAll))
{return this.replace(new RegExp(replace,"g"),replacement);};var string=this;var index;if(typeof replace==typeof "" &&
typeof replacement==typeof "")
{index=string.indexOf(replace);
while(index>=0)
{string=string.replace(replace,replacement);index=string.indexOf(replace);};};return ""+string;};
String.prototype.startsWith=function(s) {
if(typeof s==DataType.STRING && s!=null)
{if(this.length>=s.length)
{if(this.substring(0,s.length)==s)
{return true;};};};return false;};
String.prototype.trim=function() {
return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");};var page={};
page.anchor=function()
{return page.anchor;};page.anchor.TAG_NAME="a";
page.body=function()
{return page.body;};
page.body.get=function()
{return document.body;};
page.body.height=function()
{return page.element(page.body.get()).height();};
page.body.setOverflow=function(auto)
{if(typeof auto!=typeof true)
{auto=true;};var status=(auto==true) ? "auto" : "hidden";document.body.style.overflow=status;};
page.body.width=function()
{return page.element(page.body.get()).width();};
page.browser=function()
{return page.browser;};
page.browser.getVersion=function()
{return parseFloat(navigator.appVersion);};
page.browser.isExplorer=function(version)
{var browser=page.browser;var EXPLORER="Internet Explorer";if(browser._isAppName(EXPLORER) || browser._isUserAgent("MSIE"))
{var UNDEFINED;if(typeof version==typeof UNDEFINED)
{return true;}
else
{if(typeof version==typeof 0)
{if(window.XMLHttpRequest)
{if(version>=7)
{return true;};}
else
{if(version<=6)
{return true;};};}
else
{return true;};};};return false;};
page.browser.isChrome=function()
{var browser=page.browser;var CHROME="Chrome";return browser._isUserAgent(CHROME);};
page.browser.isFirefox=function()
{var browser=page.browser;var FIREFOX="Firefox";var NAVIGATOR="Navigator";return(browser._isUserAgent(FIREFOX) && !(browser._isUserAgent(NAVIGATOR)));};
page.browser.isNetscape=function()
{var browser=page.browser;var NETSCAPE="Netscape";var NAVIGATOR="Navigator";if(browser.isFirefox() || browser.isSafari())
{return false;}
return(browser._isAppName(NETSCAPE) || browser._isUserAgent(NAVIGATOR));};
page.browser.isOpera=function()
{var browser=page.browser;var OPERA="Opera";var UNDEFINED;return(typeof window.opera!=typeof UNDEFINED);};
page.browser.isSafari=function()
{var browser=page.browser;var SAFARI="Safari";if(browser.isChrome())
{return false;}
return browser._isUserAgent(SAFARI);};
page.browser._isAppName=function(name)
{if(typeof name==typeof "")
{return(navigator.appName.toLowerCase().indexOf(name.toLowerCase())>=0);};return false;};
page.browser._isUserAgent=function(agent)
{if(typeof agent==typeof "")
{return(navigator.userAgent.toLowerCase().indexOf(agent.toLowerCase())>=0);};return false;};
page.cursor=function()
{return page.cursor;};
page.cursor.showLocation=function(e)
{var object=page.event(e);if(true==false)
{var element=page.element("splash");element.show();element.top(object.getY());element.left(object.getX());}
window.status="X="+object.getX()
+ ","
+ "Y="+object.getY();};page.date={};page.date.FORMAT="mm/dd/yyyy";page.debug=false;
page.dialog=function(id)
{var UNDEFINED;if(typeof id==typeof UNDEFINED)
{id=null;}
if(id!=null)
{var dialog=page.dialog;var object=id;if(typeof id==typeof "")
{if(id.length>0)
{if(id.substring(0,1)!=page.jquery._ID)
{object=page.getId(id);};};};if(object!=null)
{object=$(object);};dialog._id=id;dialog._object=object;};return page.dialog;};
page.dialog.cancel=function()
{var dialog=page.dialog;dialog.hide();dialog.remove();};
page.dialog.close=function()
{return page.dialog.close;};
page.dialog.close.hide=function()
{page.dialog.close.show(false);};
page.dialog.close.show=function(status)
{if(page.jquery.installed())
{if(typeof status!=typeof true)
{status=true;};var element=$(".ui-dialog-titlebar-close");if(status)
{element.show();}
else
{element.hide();};};};
page.dialog._execute=function(parameters)
{var UNDEFINED;if(typeof parameters==typeof UNDEFINED)
{parameters=null;};if(parameters!=null)
{var object=page.dialog._object;if(object && object.dialog)
{object.dialog(parameters);};};};
page.dialog.get=function()
{return page.getId(this._id);};
page.dialog.getObject=function()
{var PAGE=page;var NULL=null;var element=PAGE.dialog.get();var object=NULL;if(PAGE.jquery.installed())
{if(element!=NULL)
{object=$(object);};};return object;};
page.dialog.hide=function()
{page.dialog._execute("close");};
page.dialog.init=function(parameters)
{var TRUE=true;var FALSE=false;var NULL=null;var BOOLEAN=typeof TRUE;var UNDEFINED;var type=typeof parameters;var modal=FALSE;var dialog=page.dialog;var object;if(type==BOOLEAN )
{modal=parameters;parameters=NULL;};if(type==typeof "")
{parameters=NULL;};if(type==typeof UNDEFINED)
{parameters=NULL;};if(parameters==NULL)
{parameters={};}
if(typeof parameters.autoOpen!=BOOLEAN)
{parameters.autoOpen=FALSE;}
if(typeof parameters.bgiframe!=BOOLEAN)
{parameters.bgiframe=TRUE;}
if(typeof parameters.close!=typeof this.init)
{parameters.close=dialog.onClose;}
if(typeof parameters.draggable!=BOOLEAN)
{parameters.draggable=TRUE;}
if(typeof parameters.modal!=BOOLEAN)
{parameters.modal=modal;}
if(typeof parameters.resizable!=BOOLEAN)
{parameters.resizable=FALSE;}
object=dialog._object;if(object && object.dialog)
{object.dialog(parameters);};};
page.dialog.remove=function()
{var PAGE=page;var NULL=null;var dialog=PAGE.dialog;if(!(PAGE.isDevelopment()))
{PAGE.element(dialog._id).remove();};dialog._id=NULL;dialog._object=NULL;};
page.dialog.show=function()
{var library=page;var element=library.element;if(element && element.setOverflow)
{if(library.jquery.installed())
{element($(".ui-dialog").get(0)).setOverflow();};};library.dialog._execute("open");};
page.element=function(id)
{var instance=page.element;instance._object=id;return instance;};
page.element.addEvent=function(type,method,useCapture)
{var element=this._toObject();var added=false;if(element!=null)
{if(typeof useCapture!=typeof true)
{useCapture=false;};if(element.addEventListener)
{element.addEventListener(type,method,useCapture);added=true;}
else if(element.attachEvent)
{element.attachEvent(("on"+type),method);added=true;};};return added;};
page.element.center=function()
{var child=this._toObject();var parent;var element=page.element;var parse=parseInt;var top,left,width,height;if(child!=null)
{parent=element(child).getParent();width=element(parent).width();height=element(parent).height();top=(height - element(child).height()) / 2;left=(width - element(child).width() ) / 2;if(top>0)
{element(child).top(parse(top));};if(left>0)
{element(child).left(parse(left));};};};
page.element.exists=function()
{return(this._toObject()!=null);};
page.element.get=function()
{return this._toObject();};
page.element.getContent=function()
{var element=this._toObject();if(element!=null)
{return element.innerHTML;};return "";};
page.element.getId=function()
{var element=this._toObject();if(element!=null)
{return element.id;};return null;};
page.element.getParent=function()
{var element=this._toObject();if(element!=null)
{if(element.parentNode)
{return element.parentNode;};};return null;};
page.element.height=function(height,top)
{var self=this;var element=self._toObject();var p=page;var body=document.body;var borders=false;var property;var NULL=null;if(typeof height==typeof true)
{borders=height;}
else
{if(element!=NULL)
{self.top(top);if(typeof height==typeof 0 && height>=0)
{element.style.height=height+self._PIXELS;};};};if(element==NULL)
{element=document.body;};height=-1;if(this.hidden())
{height=0;}
else
{if(element==document.body)
{if(typeof(window.innerHeight)==typeof 0)
{height=window.innerHeight;}
else if(document.documentElement &&
document.documentElement.clientHeight)
{height=document.documentElement.clientHeight;}
else if(document.body &&
document.body.clientHeight)
{height=document.body.clientHeight;};}
else
{property=element.clientHeight;if(property)
{height=property;};};if(borders)
{property=p.border;if(property)
{if(property.height)
{height+=property(element).height();};};};};return height;};
page.element.hidden=function()
{var object=this._toObject();var status=false;{if(object!=null)
{status=(object.style.display=="none");};};return status;};
page.element.hide=function()
{var object=this._toObject();if(object!=null)
{object.style.display="none";};};
page.element._left=function()
{var element=this._toObject();var left=-1;if(element==null)
{element=document.body;};return parseInt(element.style.left);};
page.element.left=function(left)
{var self=this;var element=self._toObject();var NULL=null;if(element!=NULL)
{if(typeof left==typeof 0)
{element.style.left=left+self._PIXELS;};if(page.jquery.installed())
{left=$(element).offset().left;};}
else
{left=NULL;};return(typeof left==typeof 0) ? left : -1;};
page.element.newInstance=function(element)
{
var instance=function(element) {
instance._object=element;return instance;};instance=page.newInstance(page.element,instance,["border","style"]);instance._object=element;return instance;};
page.element.onClick=function(method)
{return this.addEvent("click",method);};
page.element.onMouseOver=function(method)
{return this.addEvent("mouseover",method);};page.element._PIXELS="px";
page.element.redefine=function()
{if(!(p)) {var p=page;}
var element=p.e=p.element;element.xs=element.exists;element.g=element.get;element.y=element.height;element.hn=element.hidden;element.h=element.hide;element.l=element.left;element.nI=element.newInstance;element.PX=element._PIXELS;
element.r=element.remove;element.sO=element.setOverflow;element.s=element.show;element.t=element.top;element.x=element.width;};
page.element.remove=function()
{var element=this._toObject();if(element!=null)
{if(page.jquery.installed())
{$(element).remove();};};};
page.element.setContent=function(content)
{var element=this._toObject();var UNDEFINED;if(typeof content==typeof UNDEFINED)
{content="";};if(element!=null)
{if(typeof content==typeof "" ||
typeof content==typeof 0 )
{element.innerHTML=content;}
else if(typeof content==typeof {})
{if(element.appendChild)
{if(content.tagName)
{alert("before="+element.id+"\n"+element.innerHTML);element.innerHTML="";element.appendChild(content);alert("after="+element.innerHTML);};};};};};
page.element.setDimensions=function()
{var dimensions=false;if(typeof page.element.dimensions==typeof true)
{dimensions=page.element.dimensions;};if(dimensions==true)
{var element=page.element;if(element!=null)
{var title="Dimensions: ";title+=element.width()+" x "+element.height();if(!(isNaN(element._top())) || !(isNaN(element._left())))
{title+=" @ ";title+=element._top()+","+element._left();};element.setTitle(title);};};};
page.element.setHeight=function(height,top)
{var element=this._toObject();if(element!=null)
{if(typeof top==typeof 0)
{element.style.top=top+page.element._PIXELS;};if(typeof height==typeof 0)
{element.style.height=height+page.element._PIXELS;};};};
page.element.setOverflow=function(auto,x)
{var element=this._toObject();var status;var BOOLEAN=typeof true;if(element!=null)
{if(typeof auto!=BOOLEAN)
{auto=true;};element=element.style;status=(auto) ? "auto" : "hidden";if(typeof x==BOOLEAN)
{if(x)
{element.overflowX=status;}
else
{element.overflowY=status;};}
else
{element.overflow=status;};};};
page.element.setTitle=function(title)
{var element=this._toObject();if(element!=null)
{if(typeof title!=typeof "" &&
typeof title!=typeof 0 )
{title="";};if(title.length==0)
{var browser=page.browser;if(browser.isFirefox() || browser.isNetscape())
{title=" ";};};element.title=title;};};
page.element.setWidth=function(width,left)
{var element=this._toObject();if(element!=null)
{if(typeof left==typeof 0)
{element.style.left=left+page.element._PIXELS;};if(typeof width==typeof 0)
{element.style.width=width+page.element._PIXELS;};};};
page.element.show=function(inline)
{var object=this._toObject();if(object!=null)
{if(typeof inline!=typeof true)
{inline=false;};object.style.display=(inline==true) ? "inline" : "block";};};
page.element._toObject=function()
{var element=page.getId(this._object);if(typeof element==typeof {} && element!=null)
{if(element.tagName)
{return element;};};return null;};
page.element._top=function()
{var element=this._toObject();var top=-1;if(element==null)
{element=document.body;};return parseInt(element.style.top);};
page.element.top=function(top)
{var self=this;var element=self._toObject();var NULL=null;if(element!=NULL)
{if(typeof top==typeof 0)
{element.style.top=top+self._PIXELS;};if(page.jquery.installed())
{top=$(element).offset().top;};}
else
{top=NULL;};return(typeof top==typeof 0) ? top : -1;};
page.element.width=function(width,left)
{var self=this;var element=self._toObject();var p=page;var body=document.body;var borders=false;var property;var NULL=null;if(typeof width==typeof true)
{borders=width;}
else
{if(element!=NULL)
{self.left(left);if(typeof width==typeof 0 && width>=0)
{element.style.width=width+self._PIXELS;};};};width=-1;if(element==NULL)
{element=document.body;};if(this.hidden())
{width=0;}
else
{if(element==document.body)
{if(typeof(window.innerWidth)==typeof 0)
{width=window.innerWidth;}
else if(document.documentElement &&
document.documentElement.clientWidth)
{width=document.documentElement.clientWidth;}
else if(document.body &&
document.body.clientWidth)
{width=document.body.clientWidth;};}
else
{property=element.clientWidth;if(property)
{width=property;};};if(borders)
{property=p.border;if(property)
{if(property.width)
{width+=property(element).width();};};};};return width;};
page.event=function(e)
{var object=e;if(window.Event)
{}
else
{object=event;};page.event._object=object;return page.event;};
page.event.getButton=function()
{var object=page.event._toObject();var button=null;if(object!=null)
{if(window.Event)
{button=object.which;}
else
{button=object.button;};};return button;};
page.event.getKey=function(character)
{var object=page.event._toObject();var code=null;if(object!=null)
{if(window.Event)
{code=object.which;}
else
{code=object.keyCode;};};var name=null;
switch(code)
{case 16 : name="Shift";break;case 17 : name="Ctrl";break;case 18 : name="Alt";break;case 19 : name="Pause";break;case 37 : name="Arrow Left";break;case 38 : name="Arrow Up";break;case 39 : name="Arrow Right";break;
case 40 : name="Arrow Down";break;};if(typeof character==typeof true)
{if(character==true)
{if(code!=null)
{code=String.fromCharCode(code);};};};return code;};
page.event.getSource=function()
{var object=page.event._toObject();var element=null;if(object!=null)
{if(window.Event)
{if(object.target)
{element=object.target;};}
else
{if(object.srcElement)
{element=object.srcElement;};};};return element;};
page.event.getType=function()
{var object=page.event._toObject();var type;if(object!=null)
{type=object.type;};if(typeof type!=typeof "")
{type=null;};return type;};
page.event.getX=function(scr)
{if(typeof scr!=typeof true)
{scr=false;};var object=page.event._toObject();var position;if(object!=null)
{if(scr==true)
{position=object.screenX;}
else
{if(window.Event)
{position=object.pageX;}
else
{position=object.clientX+document.body.scrollLeft;};};};if(typeof position!=typeof 0)
{position=0;};return position;};
page.event.getY=function(scr)
{if(typeof scr!=typeof true)
{scr=false;};var object=page.event._toObject();var position;if(object!=null)
{if(scr==true)
{position=object.screenY;}
else
{if(window.Event)
{position=object.pageY;}
else
{position=object.clientY+document.body.scrollTop;};};};if(typeof position!=typeof 0)
{position=0;};return position;};
page.event._toObject=function()
{var UNDEFINED;var object=page.event._object;if(typeof object==typeof UNDEFINED)
{object=null;};return object;};
page.field=function(id)
{var field=page.field;var object=null;if(typeof id==typeof "")
{object=page.getId(id);}
else if(id && id!=null)
{if(!(id.length) ||
id.options)
{object=page.getId(id);}
else
{if(id.length &&
id.length>0)
{object=[];
for(var index=0;index<id.length;index++)
{object[index]=page.getId(id[index]);};};};};field._object=object;return page.field;};page.field._object=null;
page.field.clear=function()
{var Input=page.input;var Select=page.select;var fields=page.field._toArray();if(fields!=null && fields.length)
{
for(var index=0;index<fields.length;index++)
{var field=fields[index];if(field!=null)
{var tagName=field.tagName.toLowerCase();var value="";if(tagName==Input.TAG_NAME)
{field.value=value;}
else if(tagName==Select.TAG_NAME)
{}
else if(tagName=="textarea")
{field.value=value;};};};};};
page.field.hasEntered=function()
{var Date=page.date;var Input=page.input;var Select=page.select;var fields=page.field._toArray();if(fields!=null && fields.length)
{
for(var index=0;index<fields.length;index++)
{var field=fields[index];if(field!=null)
{var tagName=field.tagName.toLowerCase();var value=null;if(tagName==Input.TAG_NAME)
{if(field.value!=Date.FORMAT)
{value=field.value;}
else
{value="";};}
else if(tagName==Select.TAG_NAME)
{var index=field.selectedIndex;value=field.options[index].value;if(value.length==0)
{value=field.options[index].innerHTML;};};if(value!=null)
{if(value.length==0)
{return false;};};};};};return true;};
page.field.hasChanged=function()
{var Date=page.date;var Input=page.input;var Select=page.select;var fields=page.field._toArray();if(fields!=null && fields.length)
{
for(var index=0;index<fields.length;index++)
{var field=fields[index];if(field!=null)
{var tagName=field.tagName.toLowerCase();if(tagName==Input.TAG_NAME)
{if(field.value!=Date.FORMAT)
{if(field.value!=field.defaultValue)
{return true;};};}
else if(tagName==Select.TAG_NAME)
{var options=field.options;
for(var idx=0;idx<options.length;idx++)
{var option=options[idx];if(option.defaultSelected==true)
{if(field.selectedIndex!=idx)
{return true;};};};};};};};return false;};
page.field.setFocus=function()
{var Input=page.input;var Select=page.select;var fields=page.field._toArray();if(fields!=null && fields.length)
{
for(var index=0;index<fields.length;index++)
{var field=fields[index];if(field!=null)
{var tagName=field.tagName.toLowerCase();var value="";if(tagName==Input.TAG_NAME)
{if(field.value==value)
{field.focus();return true;};}
else if(tagName==Select.TAG_NAME)
{}
else if(tagName=="textarea")
{if(field.value==value)
{field.focus();return true;};};};};};return false;};
page.field._toArray=function()
{var UNDEFINED;var fields=page.field._object;if(typeof fields==typeof UNDEFINED)
{fields=null;};if(fields==null)
{fields=[];};if(!(fields.length) ||
fields.options)
{fields=[fields];};return fields;};
page.form=function(id)
{var UNDEFINED;var Form=page.form;var form=page.form;var object=null;var create=false;if(typeof id==typeof true)
{create=id;id=null;};object=page.getId(id);if(object!=null &&
object.tagName!=null)
{var tagName=object.tagName.toLowerCase();if(tagName!=Form.TAG_NAME)
{object=null;}
};if(typeof id==typeof UNDEFINED)
{if(object==null)
{if(document.forms.length>0)
{object=document.forms[0];}
else
{};};};form._object=object;return form;};page.form.TAG_NAME="form";
page.form.anchor=function()
{var Anchor=page.anchor;var UNDEFINED;var form=page.form._toObject();if(form!=null)
{var tagName=Anchor.TAG_NAME;var elements=form.getElementsByTagName(tagName);if(elements!=null)
{
for(var index=0;index<elements.length;index++)
{var element=elements[index];var method=new Function("page.form.submit(this);return false;");};};};};
page.form.get=function(defaultForm)
{var form=document.forms[0];if(page.object(form).isElement())
{return form;};return null;};
page.form.init=function(id)
{page.form.setNames();page.form.setFocus(id);};
page.form.setFocus=function(id)
{if(typeof id==typeof "")
{var field=page.getId(id);if(field!=null)
{field.focus();};};};
page.form.setNames=function()
{var form=page.form._toObject();var Input=page.input;var Select=page.select;
for(var tag=1;tag<=3;tag++)
{var tagName=Input.TAG_NAME;if(tag==2)
{tagName=Select.TAG_NAME;}
else if(tag==3)
{tagName="textarea";};var element=(form==null) ? document : form;var elements=element.getElementsByTagName(tagName);if(elements!=null)
{
for(var index=0;index<elements.length;index++)
{element=elements[index];if(element.id!=null && element.id!="")
{if(element.name==null || element.name=="")
{element.name=element.id;};};};};};};
page.form.submit=function(element)
{var Anchor=page.anchor;var UNDEFINED;var form=page.form._toObject();if(form!=null)
{if(typeof element==typeof UNDEFINED)
{element=null;};if(element!=null)
{if(element.tagName.toLowerCase()==Anchor.TAG_NAME)
{var href=element.href;if(typeof href!=typeof UNDEFINED)
{form.action=href;};element.href="";};};form.submit();};return false;};
page.form._toObject=function()
{var UNDEFINED;var form=page.form._object;if(typeof form==typeof UNDEFINED)
{form=null;};if(form==null)
{if(document.forms!=null && document.forms.length>0)
{form=document.forms[0];}
else
{form=null;};};return form;};
page.form.total=function(prefix)
{var form=page.form._object;var total=0;if(form!=null)
{var fields=form.getElementsByTagName("input");
for(var index=0;index<fields.length;index++)
{var field=fields[index];var fieldId=field.id;if(fieldId)
{if(fieldId.length>=prefix.length)
{fieldId=fieldId.substring(0,prefix.length);if(fieldId==prefix)
{if(field.value.length>0)
{var value=field.value;if(value.trim) {value=value.trim();}
var value=parseFloat(value);if(!(isNaN(value)))
{total+=value;};};};};};};};return total;};
page.getId=function(id)
{if(typeof id==typeof "")
{if(id.trim) {id=id.trim();}
if(document.getElementById)
{return document.getElementById(id);}
else if(document.all)
{return document.all[id];}
else
{if(page.debug==true)
{alert("Your browser("+navigator.appName+") is not W3C compliant.");};};}
else if(typeof id==typeof {})
{{return id;};};return null;};
page.input=function(id)
{var input=page.input;input._object=id;return input;};
page.input.get=function()
{return page.getId(page.input._object);};
page.input.getValue=function()
{var input=page.input;var instance=page.object;var element=instance(input.get()).toObject();if(element!=null)
{if(element.tagName)
{var tagName=element.tagName.toLowerCase();if(tagName==input.TAG_NAME)
{return element.value;}
else if(tagName=="textarea")
{return element.value;};};};return null;};
page.input.setValue=function(value)
{var input=page.input;var instance=page.object;var element=instance(input.get()).toObject();if(element!=null)
{if(element.tagName)
{var tagName=element.tagName.toLowerCase();value=instance(value).toString(true);if(tagName==input.TAG_NAME)
{element.value=value;}
else if(tagName=="textarea")
{element.value=value;};};};};page.input.TAG_NAME="input";
page.isDevelopment=function()
{var development=false;if(typeof page.development==typeof true)
{development=page.development;};return development;};
page.jquery=function()
{return page.jquery;};page.jquery._firstTime=true;page.jquery._ID="#";
page.jquery.getId=function(id)
{{return page.jquery._ID+id;};};
page.jquery.installed=function()
{var UNDEFINED;if(typeof jQuery!=typeof UNDEFINED)
{return true;}
else
{if(page.jquery._firstTime==true)
{alert("jQuery is required!");page.jquery._firstTime=false;};};return false;};
page.load=function(redefine)
{var p=page;var load=p.load;var body=document.body;var className=body.className;var NO_SCRIPT="no-script";var FUNCTION=typeof load;p.setBrowser(redefine);if(typeof redefine==typeof true && redefine)
{p.element.redefine();p.object.redefine();};if(typeof load.before==FUNCTION)
{load.before();};if(p.jquery.installed())
{if($(body).hasClass(NO_SCRIPT))
{$(body).removeClass(NO_SCRIPT);};}
else
{{if(className==NO_SCRIPT)
{body.className="";};};};p.form.setNames();if(p.debug.too==true)
{if(window.Event)
{document.captureEvents(Event.MOUSEMOVE);};document.onmousemove=page.cursor.showLocation;};if(typeof load.after==FUNCTION)
{load.after();};};
page.log=function()
{return page.log;};
page.log.error=function(text)
{};
page.newInstance=function(object,instance,exclude)
{var name;var index;var include;var name;var index;var include;var NULL=null;if(!(instance))
{instance=NULL;};if(object && object!=NULL)
{if(instance==NULL)
{instance={};};if(typeof exclude==typeof "")
{exclude=[exclude];};if(!(exclude) || !(exclude.length))
{exclude=[];};exclude[exclude.length]="clone";exclude[exclude.length]="nI";exclude[exclude.length]="newInstance";exclude[exclude.length]="redefine";
for(
name in object)
{{include=true;{
for(
index=0;index<exclude.length;index++)
{{if(name==exclude[index])
{include=false;break;};};};};if(include)
{instance[name]=object[name];};};};};return instance;};
page.select=function(id)
{var object=page.select;object._f=id;return object;};page.select.TAG_NAME="select";
page.setBrowser=function(redefine)
{var p=page;var browser;var UNDEFINED;if(typeof Browser!=typeof UNDEFINED)
{p.browser=Browser;};if(typeof redefine==typeof true && redefine)
{browser=p.brw=p.browser;browser.iC=browser.isChrome;browser.iE=browser.isExplorer;browser.iF=browser.isFirefox;browser.iN=browser.isNetscape;browser.iO=browser.isOpera;browser.iS=browser.isSafari;browser.tS=browser.toString;};};
page.tabs=function(element)
{var p=page;var tabs=p.tabs;{if(!(element))
{if(!(tabs._e))
{element="tabs";};};if(element)
{tabs._e=p.getId(element);tabs._p=null;};};return tabs;};
page.tabs.cookie=function()
{var p=page;var jquery=this.object();var date=new Date();var parameters=p.tabs._p;var cookieName;var cookiePath;if(typeof parameters==typeof {})
{cookieName=parameters.name;cookiePath=parameters.path;};if(typeof cookieName!=typeof "")
{cookieName="tabindex";};if(typeof cookiePath!=typeof "")
{cookiePath="/";};if(jquery!=null)
{date.setTime(date.getTime()+(15 * 60 * 1000));
jquery.tabs("option","cookie",{name : cookieName ,
expires : date ,
path : cookiePath});};};
page.tabs.init=function(parameters)
{var p=page;var tabs=this;var jquery=tabs.object();if(jquery!=null)
{tabs._p=parameters;if(typeof parameters!=typeof {})
{parameters={};};var cookie=true;if(typeof parameters.cookie==typeof true)
{cookie=parameters.cookie;};if(typeof parameters.select!=typeof this)
{parameters.select=tabs.onSelect;};if(typeof parameters.show!=typeof this)
{parameters.show=tabs.onShow;};jquery.tabs(parameters);if(cookie)
{tabs.cookie();};};};
page.tabs.object=function()
{var NULL=null;var p=page;var jquery=NULL;if(p.jquery.installed())
{jquery=$(p.getId(this._e));if(!(jquery.tabs))
{jquery=NULL;};};return jquery;};
page.tabs.select=function(number)
{if(typeof number!=typeof 0 || number<1)
{number=1;};var p=page;var jquery=this.object();if(jquery!=null)
{jquery.tabs("select",(number-1));};};
page.tabs.selected=function(cookie)
{if(typeof cookie!=typeof true)
{cookie=false;};var selected=-1;var p=page;var jquery=this.object();var option="option";if(jquery!=null)
{if(cookie)
{selected=jquery.tabs(option,"cookie");}
else
{selected=jquery.tabs(option,"selected");};selected++;};return selected;};
page.thread=function()
{return page.thread;};
page.thread.sleepToo=function(naptime)
{var sleeping=true;var now=new Date();var alarm;var startingMSeconds=now.getTime();
while(sleeping)
{alarm=new Date();alarmMSeconds=alarm.getTime();if(alarmMSeconds - startingMSeconds>naptime)
{sleeping=false;};};};
page.thread.sleep=function(millis)
{var start=new Date().getTime();var current=start;
while(current - start<millis)
{current=new Date().getTime();};alert("Slept for "+millis+" milliseconds!");};if(!(p)) {var p=page;p._c=true;}
p.object=function(object)
{var instance=page.object;instance._object=object;return instance;};p.o=p.object;
p.o.dump=function(functions)
{var instance=this;var object=instance._object;if(typeof functions!=typeof true)
{functions=true;};var prefix=arguments[1];if(typeof prefix!=typeof "")
{prefix="";};if(instance.isUndefined())
{return object;};if(object==null)
{return object;};if(typeof object!=typeof {} &&
typeof object!=typeof this.dump)
{object=page.getId(object);};var properties="";if(object!=null)
{
for(var index in object)
{var property=object[index];var display=true;{if(typeof property==typeof this)
{display=functions;};var value="";if(typeof property==typeof {} && property!=null)
{if(!(property.tagName))
{var saveObject=object;
value =
p.o(property).dump(functions,(prefix+index+"."));object=saveObject;};}
else
{if(display==true)
{var property=""+property;var position=property.indexOf("{");if(position>0)
{property=property.substring(0,position);};value=prefix+index+"="+property;};};if(value.length>0)
{if(properties.length>0)
{properties+="\n";};properties+=value;};};};};return properties;};
p.o.isArray=function()
{var object=this._object;if(typeof object==typeof [])
{if(object!=null)
{if(object instanceof Array)
{return true;};};};return false;};
p.o.isBoolean=function()
{return(typeof this._object==typeof true);};
p.o.isElement=function()
{var object=this._object;var status=false;if(typeof object==typeof {} && object!=null)
{if(object.tagName)
{status=true;};};return status;};
p.o.isEvent=function()
{var object=this._object;var status=false;if(typeof object==typeof {} && object!=null)
{if(object.target || object.srcElement)
{if(object.type)
{status=true;};};};return status;};
p.o.isFunction=function()
{return(typeof this._object==typeof this.isFunction);};
p.o.isInteger=function()
{var status=false;if(this.isNumber() ||(this.isString() && this.toNumber()!=-1))
{status=(this.toInteger()==this.toNumber());};return status;};
p.o.isNumber=function(string)
{var object=this._object;var status=false;var TRUE=true;if(typeof object==typeof 0)
{status=TRUE;}
else if(typeof object==typeof "")
{if(typeof string==typeof TRUE && string)
{object=parseInt(object,10);if(!(isNaN(object)))
{status=TRUE;};};};return status;};
p.o.isObject=function()
{var object=this._object;var status=false;if(typeof object==typeof {})
{if(object!=null)
{status=true;};};return status;};
p.o.isString=function()
{return(typeof this._object==typeof "");};
p.o.isUndefined=function()
{var UNDEFINED;return(typeof this._object==typeof UNDEFINED);};
p.o.newInstance =
function(object)
{
var instance=function(object) {
instance._object=object;return instance;};instance=page.newInstance(p.o,instance,"dump");instance._object=object;return instance;};
page.object.redefine=function()
{if(!(p)) {var p=page;}
var object=p.o=p.object;object.iA=object.isArray;object.iB=object.isBoolean;object.iE=object.isElement;object.iF=object.isFunction;object.iI=object.isInteger;object.iN=object.isNumber;object.iO=object.isObject;
object.iS=object.isString;object.iU=object.isUndefined;object.nI=object.newInstance;object.r=object.round;object.tA=object.toArray;object.tB=object.toBoolean;object.tI=object.toInteger;object.tN=object.toNumber;
object.tR=object.toRange;object.tO=object.toObject;object.tS=object.toString;object.tU=object.toUndefined;};
p.o.round =
function(places)
{var instance=this;var factor=1;var index;var value=-1;if(instance.isNumber())
{value=instance._object;instance._object=places;places=instance.toNumber();if(places>0)
{
for(
index=1;index<=places;index++)
{factor *= 10;};};instance._object=value;value=instance.toNumber();value *= factor;value=Math.round(value);value /= factor;};return value;};
p.o.toArray=function(array)
{var instance=this;var object=instance._object;if(instance.isArray())
{return object;};instance._object=array;if(instance.isArray())
{return array;};instance._object=object;if(typeof array==typeof true)
{if(typeof object==typeof true ||
typeof object==typeof 0 ||
typeof object==typeof "" ||
typeof object==typeof {})
{return [object];};return [];};return null;};
p.o.toBoolean =
function(defaultValue)
{var object=this._object;var type=typeof object;var value;var TRUE=true;var BOOLEAN=typeof TRUE;if(type==BOOLEAN)
{value=object;};if(type==typeof 0)
{object=""+object;};if(typeof object==typeof "")
{object=object.toLowerCase();if(object=="true" || object=="1")
{value=TRUE;};}
return(typeof value==BOOLEAN) ? value :
(typeof defaultValue==BOOLEAN) ? defaultValue : false;};
p.o.toInteger=function(minimum,maximum)
{return parseInt(this.toNumber(minimum,maximum),10);};
p.o.toNumber=function(minimum,maximum)
{var object=this._object;var defaultValue=minimum;var separator;var temp;if(typeof object==typeof "")
{separator=(""+(3 / 2)).substring(1,2);if(object.indexOf(separator)<0)
{object=parseInt(object,10);}
else
{object=parseFloat(object,10);};if(isNaN(object))
{object=null;};};if(typeof object==typeof true)
{
object=(object
) ? 1 : 0;};if(typeof minimum==typeof 0)
{if(typeof object==typeof 0)
{if(typeof maximum==typeof 0)
{if(minimum>maximum)
{temp=minimum;minimum=maximum;maximum=temp;};if(object<minimum ||
object>maximum)
{object=defaultValue;};};}
else
{object=defaultValue;};};return(typeof object==typeof 0) ? object : -1;};
p.o.toObject=function(defaultInstance)
{var object=this._object;if(typeof object==typeof {})
{}
else
{if(typeof defaultInstance==typeof {} )
{object=defaultInstance;}
else if(typeof defaultInstance==typeof true)
{object={};}
else
{object=null;};};return object;};
p.o.toRange =
function(minimum,maximum)
{var instance=this;var value=-1;var NUMBER=typeof 0;if(instance.isNumber())
{value=instance.toNumber();if(typeof minimum==NUMBER && value<minimum)
{value=minimum;}
else if(typeof maximum==NUMBER && value>maximum)
{value=maximum;};};return value;};
p.o.toString=function(defaultValue)
{var object=this._object;if(typeof object==typeof "" )
{}
else if(typeof object==typeof true ||
typeof object==typeof 0 ||
typeof object==typeof {} )
{if(object!=null)
{object=(""+object);};}
else
{object=null;};if(object==null)
{if(typeof defaultValue==typeof "" )
{object=defaultValue;}
else if(typeof defaultValue==typeof true && defaultValue)
{object="";};};return object;};
p.o.toUndefined=function()
{return;};

