
 var debugMode =new Boolean(true);



/**
 * Toolfunction to print out some messages
 *
 */
 function println(msg){
	 if (debugMode) alert(msg);
 }//--> end println



/**
 * Toolfunction to get the current width
 *
 * @return width :Number;
 */ 
 function getWindowWidth () {
	 if (window.innerWidth) {
		 return window.innerWidth;
	 }//--> end if 
	 else if (document.documentElement && document.documentElement.clientHeight) {
		 return document.documentElement.clientWidth;
	 }//--> end else if
	 else if(document.body){
		 return document.body.clientWidth;
	 }//--> end else if
	 else {
		 return 0;
	 }//--> end if
 }//--> end function()



/**
 * Toolfunction to get the current windowheight
 *
 * @return height :Number;
 */
 function getWindowHeight () {
	 if (self.innerHeight) {
		 return window.innerHeight;
	 }//--> end if
	 else if (document.documentElement && document.documentElement.clientHeight) {
		 return document.documentElement.clientHeight;
	 }//--> end else if
	 else if(document.body){
		 return document.body.clientHeight;
	 }//-->end else if
	 else {
		 return 0;
	 }//--> end else
 }//--> end function()
