/********************************
* WASABI MAIN-JS                *
* ----------------------------- *
* CR: DKone 19.06.2009 20:12:38 *
********************************/



/*************************
*  PROTOTYPE EXTENSIONS  *
*************************/
Prototype.Browser.IE6=Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5))==6;
Prototype.Browser.IE7=Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5))==7;
Prototype.Browser.IE8=Prototype.Browser.IE && !Prototype.Browser.IE6 && !Prototype.Browser.IE7;

String.prototype.removeLastChar=function() {//remove last char from string
	return (this.length==0?'':this.substring(0,this.length-1));
};
String.prototype.trim=function() {//remove leading and ending whitespaces
	return(this.replace(/^\s+/,'').replace(/\s+$/,''));
};
Array.prototype.exists=function(value) {//check if value exists in array
	for(var i=0;i<this.length;i++) {if(this[i]==value) {return true;}}
	return false;
};
Array.prototype.random=function() {//get random array value
	return this[Math.floor((Math.random()*this.length))];
};




/****************************
*  WASABI CONTAINER OBJECT  *
****************************/
var wasabi=new Object;
wasabi.JSeffect=1;

