function JAK_1_4(){this.GetElementById=function(){var L=[];try{for(var a=0;a<arguments.length;a++){var r=null;if(this.TypeOf(arguments[a])=='string'){if(document.getElementById){r=document.getElementById(arguments[a]);}else if(this.TypeOf(r)=='null'&&document[arguments[a]]){r=document[arguments[a]];}else if(this.TypeOf(r)=='null'&&document.all[arguments[a]]){r=document.all[arguments[a]];}else{}}else if(this.TypeOf(arguments[a])=='object'){r=arguments[a];}else{}
L[a]=r;}}catch(E){}
if(L.length>1){return L;}else{return L[0];}}
this.GetElementByClass=function(){var aElementsWithClass=[];try{var c=(this.TypeOf(arguments[0])=='string')?arguments[0].replace(/\-/g,"\\-"):'*';var t=(this.TypeOf(arguments[1])=='string')?arguments[1]:'*';var e=(this.TypeOf(arguments[2])=='object')?arguments[2]:document;var oElement;var aElements=(t=='*'&&e.all)?e.all:e.getElementsByTagName(t);var oRegExp=new RegExp("(^|\\s)"+c+"(\\s|$)");for(var a=0;a<aElements.length;a++){oElement=aElements[a];if(c=='*'||oRegExp.test(oElement.className)){aElementsWithClass.push(oElement);}}}catch(E){}
return aElementsWithClass;}
this.HTMLSet=function(){try{var o=arguments[0];var v=arguments[1];var m=(this.TypeOf(arguments[2])=='string')?arguments[2].toLowerCase():"";if(this.TypeOf(o)=='object'&&this.TypeOf(v)=='string'&&this.TypeOf(o.innerHTML)=='string'){if(m=="append"){o.innerHTML=o.innerHTML+v;}else if(m=="prepend"){o.innerHTML=v+o.innerHTML;}else{o.innerHTML=v;}}}catch(E){}}
this.HTMLGet=function(){var r=null;try{var o=arguments[0];if(this.TypeOf(o)=='object'&&this.TypeOf(o.innerHTML)=='string'){r=o.innerHTML;}}catch(E){}
return r;}
this.ClassGet=function(){var r=null;try{var o=arguments[0];if(this.TypeOf(o)=='object'&&this.TypeOf(o.className)=='string'){r=o.className;}}catch(E){}
return r;}
this.ClassAdd=function(){try{var o=arguments[0];var c=arguments[1];if(this.TypeOf(o)=='object'&&this.TypeOf(c)=='string'&&this.TypeOf(o.className)=='string'){var s=this.ClassGet(o);if(s!=""){o.className+=" "+c;}else{o.className=c;}}}catch(E){}}
this.ClassRemove=function(){try{var o=arguments[0];var c=arguments[1];if(this.TypeOf(o)=='object'&&this.TypeOf(c)=='string'&&this.TypeOf(o.className)=='string'){var s=this.ClassGet(o);if(s!=""){var LN=[];var LC=s.split(" ");var LR=c.split(" ");for(var a=0;a<=LC.length;a++){var FC=true;for(var b=0;b<=LR.length;b++){if(LC[a]==LR[b]){FC=false;break;}}
if(FC){LN[LN.length]=LC[a];}}
o.className=LN.join(" ");}}}catch(E){}}
this.StyleGet=function(){var r=null;try{var o=arguments[0];var s=arguments[1];if(this.TypeOf(o)=='object'&&this.TypeOf(s)=='string'){if(this.TypeOf(o.style)=='string'){r=o.style[s];}else if(document.all&&document.all[o.id].currentStyle){r=document.all[o.id].currentStyle[s];}else if(window.getComputedStyle){r=window.getComputedStyle(o,null).getPropertyValue(s);}else{}}}catch(E){}
return r;}
this.StyleSet=function(){try{var o=arguments[0];var L=arguments[1];if(this.TypeOf(o)=='object'&&this.TypeOf(o.style)=='object'&&this.TypeOf(L)=='object'){for(var s in L){if(this.TypeOf(L[s])=='string'){o.style[s]=L[s];}}}}catch(E){}}
this.StyleRemove=function(){try{var o=arguments[0];var L=arguments[1];if(this.TypeOf(o)=='object'&&this.TypeOf(o.style)=='object'&&this.TypeOf(L)=='array'){for(var a=0;a<L.length;a++){if(this.TypeOf(L[a])=='string'){o.style[L[a]]='';}}}}catch(E){}}
this.EventListenerAdd=function(){try{var o=(this.TypeOf(arguments[0])!='object')?document:arguments[0];var t=arguments[1];var f=arguments[2];var c=(this.TypeOf(arguments[3])=='boolean')?arguments[3]:false;if(this.TypeOf(t)=='string'&&(this.TypeOf(f)=='function'||(this.TypeOf(f)=='string'&&window[f]))){if(o.addEventListener){o.addEventListener(t,f,c);}else if(o.attachEvent){o.attachEvent('on'+t,f);}else if(o[('on'+t)]){o[('on'+t)]=f;}else{}}}catch(E){}}
this.EventListenerRemove=function(){try{var o=(this.TypeOf(arguments[0])!='object')?document:arguments[0];var t=arguments[1];var f=arguments[2];var c=(this.TypeOf(arguments[3])=='boolean')?arguments[3]:false;if(this.TypeOf(t)=='string'&&(this.TypeOf(f)=='function'||(this.TypeOf(f)=='string'&&window[f]))){if(o.removeEventListener){o.removeEventListener(t,f,c);}else if(o.detachEvent){o.detachEvent("on"+t,f);}else if(o[('on'+t)]){o[('on'+t)]=null;}else{}}}catch(E){}}
this.ObjectPartsGet=function(){var properties=[];var functions=[];try{var o=arguments[0];if(this.TypeOf(o)=='object'){for(var name in o){if(o[name]instanceof Function){functions.push(name);}else{properties.push(name);}}}}catch(E){}
return{Properties:properties,Functions:functions};}
this.ArrayContains=function(){var f=false;var I=[];try{var P=(this.TypeOf(arguments[0])=='regex')?arguments[0]:undefined;var S=(this.TypeOf(arguments[1])=='boolean')?arguments[1]:false;var L=(this.TypeOf(arguments[2])=='array')?arguments[2]:[];if(this.TypeOf(P)!='undefined'&&L.length>-1){for(var a=0;a<L.length;a++){if(L[a]!=null&&L[a]!=undefined){if(P.test(L[a])){f=true;I[I.length]=a;if(S){break;}}}}}}catch(E){}
return{Contains:f,Indices:I};}
this.TypeOf=function(){var v='undefined';try{if(arguments[0]!=v){var o=arguments[0];var t=typeof o;if(o&&o.test){v='regex';}else if(t=='object'){if(o){if(typeof o.length=='number'&&!(o.propertyIsEnumerable('length'))&&typeof o.splice=='function'){v='array';}else{if(o==null){v='null';}else{v='object';}}}else{v='null';}}else{v=t;}}}catch(E){}
return v;}
this.ModuleLoad=function(){var r=false;try{var m=arguments[0];var g=(this.TypeOf(arguments[1])=='boolean')?arguments[1]:true;if(this.TypeOf(m)=='string'){if(!window[m]){this.DOMLoad(m+'.js',g);}
if(window[m]){var I=new window[m](this);if(this.TypeOf(I)=='object'&&this.TypeOf(I.Version)=='number'){if(this.TypeOf(this.Modules[m])=='undefined'){this.Modules[m]=new function(){};this.Modules[m].Name=m;this.Modules[m].Version=v;this.Modules[m].Instance=I;}
r=true;}}}}catch(E){}
return r;}
this.DOMLoad=function(){try{var v=arguments[0];var g=(this.TypeOf(arguments[1])=='boolean')?arguments[1]:true;var t=(this.TypeOf(arguments[2])=='string')?arguments[2]:'';if(document.getElementsByTagName&&document.createElement){var o=document.getElementsByTagName("head")[0];var n=null;var i=v.lastIndexOf('.');if(i>0&&t==''){t=v.substring(i+1).toLowerCase();}
v=(g)?this.URI.Base+this.URI.JS+v:v;if(t=='js'){n=document.createElement('script');n.type='text/javascript';n.src=v;}else{n=document.createElement('link');n.type='text/css';n.rel='stylesheet';n.media='screen';n.href=v;}
o.appendChild(n);}}catch(E){}}
this.Observe=function(){var n=(this.TypeOf(arguments[0])=='string')?arguments[0]:"";var e=(this.TypeOf(arguments[1])=='string'&&window[arguments[1]])?arguments[1]:"";var c=(this.TypeOf(arguments[2])=='string'&&window[arguments[2]])?arguments[2]:"";var t=(this.TypeOf(arguments[3])=='number'&&arguments[3]>1)?arguments[3]:60000;var d=(this.TypeOf(arguments[4])=='number'&&arguments[4]>1)?arguments[4]:100;var b=(this.TypeOf(arguments[5])=='boolean')?arguments[5]:false;if(n!=""&&e!=""&&c!=""){if(b){window.clearTimeout(this.Process[n].Instance);var N=new Date();if((N.getTime()-this.Process[n].StartTime.getTime())>this.Process[n].TimeOut){window[c]();}else{this.Process[n].Increment++;this.Process[n].Instance=window.setTimeout(function(){if(window[e]()){window[c]();}else{window[this].Observe(n,e,c,t,d,true);}},d);}}else{this.Process[n]=function(){};this.Process[n].Name=n;this.Process[n].Delay=d;this.Process[n].TimeOut=t;this.Process[n].Increment=1;this.Process[n].StartTime=new Date();this.Process[n].Instance=window.setTimeout(function(){if(window[e]()){window[c]();}else{window[this].Observe(n,e,c,t,d,true);}},d);}}}
if(!this.Loaded){this.Version=1.4;this.Modules=function(){};this.Process=function(){};this.Instance=this;this.URI=function(){};this.URI.Base='';this.URI.JS='';this.URI.CSS='';this.URI.IMG='';this.Loaded=true;}}
