/** (C) CompuGroup Medical Deutschland AG */

globals={debug:false,context:'./',path:'../res/',isLoaded:false};Object.prototype.clone=function(deep){var o=new this.constructor();for(var p in this)if(!deep)o[p]=this[p];else if(this[p]==null)o[p]=null;else if(typeof this[p]=='object')o[p]=this[p].clone(deep);else o[p]=this[p];return o;}
if(!Array.prototype.push)Array.prototype.push=function(){var i;for(i=0;i<arguments.length;i++)this[this.length]=arguments[i];return this.length;}
if(!Array.prototype.pop)Array.prototype.pop=function(){var ret=this[this.length - 1];this.length--;return ret;}
Array.prototype.contains=function(e){for(var i=0;i<this.length;i++)if(this[i]==e)return true;return false;};function defined(){for(var i=0;i<arguments.length;++i)if(typeof arguments[i]=='undefined')return false;return true;};function isString(){for(var i=0;i<arguments.length;++i)if(typeof(arguments[i])!='string')return false;return true;};function isNumeric(){for(var i=0;i<arguments.length;++i)if(typeof arguments[i]!='number')return false;return true;}
globals.include=new Array();function include(){for(var i=0;i<arguments.length;i++){var f=arguments[i];if(f.indexOf('/')!=0)f=globals.path+"script/"+f;if(f.substr(f.length - 3)!='.js')f+='.js';if(globals.include.contains(f))continue;globals.include.push(f);document.write('<scr'+'ipt type="text/javascript" src="'+f+'"><\/scr'+'ipt>');}}
globals.includeCSS=new Array();function includeCSS(){for(var i=0;i<arguments.length;i++){var f=arguments[i];if(f.indexOf('/')==-1)f=globals.path+"style/"+f;else if(f.indexOf('/')==0)f=globals.path+f.substring(1);if(f.substr(f.length - 4)!='.css')f+='.css';if(globals.includeCSS.contains(f))continue;document.write('<link rel="stylesheet" type="text/css" href="'+f+'"/>');globals.includeCSS[globals.includeCSS.length]=f;}};function wait(c,f,m,t){var i=500;m=m||30000;t=t||0;t+=i;var reQuote=new RegExp("'","g");if(!eval(c)&&t<m)setTimeout("wait('"+c.replace(reQuote,"\\'")+"','"+f.replace(reQuote,"\\'")+"',"+m+","+t+")",i);else eval(f);};function inherit(c,b){c=eval(c);b=eval(b);var p=c.prototype=new b();p.inherit=function(){this.baseConstructor=b;this.baseConstructor();}
return p;};function returnTrue(){return true};function returnFalse(){return false};function Sequence(t,p){var type=t&&t!='num';var prefix=p||"";var last;var incrementAlpha=function(v){var p=v.length-1;var c=v.charCodeAt(p);if(c<122)v=v.substr(0,p)+String.fromCharCode(c+1);else if(!p)v='aa';else v=incrementAlpha(v.substr(0,p))+'a';return v;}
this.next=function(){last=type?incrementAlpha(last):last+1;return this.last();}
this.last=function(){return(type&&last.charCodeAt(0)==96||!last)?null:prefix+last;}
this.reset=function(){last=(type?String.fromCharCode(96):0);}
this.set=function(v){last=v;}
this.reset();}
ua=new Object();ua.agent=navigator.userAgent.toLowerCase();if(window.opera)ua.opera=true;else if(document.all&&ua.agent.indexOf('msie')!=-1)
ua.ie=true;else if(ua.agent.indexOf('khtml')!=-1)
ua.khtml=true;else if(ua.agent.indexOf('gecko')!=-1)
ua.gecko=true;if(ua.ie&&ua.agent.indexOf('msie 6')!=-1)
ua.ie6=true;globals.init=new Array();function init(){globals.isLoaded=true;for(i=0;i<globals.init.length;i++)eval(globals.init[i]);}
onload=init;
