////get element/elemens by id
function $$(element)
{
	if (arguments.length > 1) {
		for (var i = 0, elements = [], length = arguments.length; i < length; i++) {
			elements.push($$(arguments[i]));
		}
		return elements;
	}
	if (typeof element == 'string') {
		element = document.getElementById(element);
	}
	return element;
}

//event handlers
$Event = function()
{
	this._handlers = []; 
};
 
$Event.prototype.add = function(handler)
{
	  this._handlers.push(handler);
};
 
$Event.prototype.remove = function(handler)
{		   
	  var i;
	  for(i = 0; i < this._handlers.length; i++)
	  {
			var h = this._handlers[i];
			if(h.constructor == handler.constructor) {
				break;
			}
	  }
 
	if(i < this._handlers.length) {
		this._handlers.splice(i, 1);
	}
};
 
$Event.prototype.Invoke = function()
{
	for (var i = 0; i < this._handlers.length; ++i) {
		this._handlers[i]();
	}
}; 

$Event.prototype.Invoke = function(param1)
{
	for (var i = 0; i < this._handlers.length; ++i) {
		this._handlers[i](param1);
	}
};

//window object
var $$Window = {};
$$Window.OnLoad = new $Event();

$$Window.Load=function()
{
	$$Window.OnLoad.Invoke();
};

window.onload=$$Window.Load;

//binding functions
Function.prototype.bind=function(o)
{
	if(!window.__objs) {
		window.__objs = [];
		window.__funcs = [];
	}

	var objId = o.__oid;
	if(!objId) {
		__objs[objId = o.__oid = __objs.length] = o;
	}

	var me = this;
	var funcId = me.__fid;
	if(!funcId) {
		__funcs[funcId = me.__fid = __funcs.length] = me;
	}

	if(!o.__closures) {
		o.__closures = [];
	}

	var closure = o.__closures[funcId];
	if(closure) {
		return closure;
	}

	o = null;
	me = null;

	return (__objs[objId].__closures[funcId] = function() {
		return __funcs[funcId].apply(__objs[objId], arguments); 
	});
};

//AJAX supporting
$Ajx = function()
{
	this.READY_STATE_UNINITIALIZED=0;
	this.READY_STATE_LOADING=1;
	this.READY_STATE_LOADED=2;
	this.READY_STATE_INTERACTIVE=3;
	this.READY_STATE_COMPLETE=4;
	
	if($Ajx.UseHandler) {
		this.url=$Ajx.ServerPath+"AjxHandler.ashx?";
	} else {
		this.url=$Ajx.ServerPath+"?useajax=true&";
	}
		
	this.contentType="application/x-www-form-urlencoded";
	this.method="POST";
	this.onerror=this.defaultError;
	this.req=null;
	this.onload=null;
	this.data=null;
	this.log='';
	
	
};

$Ajx.Error = new $Event();

$Ajx.ServerPath = "";
$Ajx.UseHandler = true;

$Ajx.prototype.defaultError=function(error)
{
   $Ajx.Error.Invoke(error);
};

$Ajx.prototype.onReadyState=function()
{
  var executed=false;  
  try
  {	 
	  if (this.req.readyState==this.READY_STATE_COMPLETE)
	  {	  
		executed=true;
		if (this.req.status==200 || this.req.status===0)
		{
			if(this.onload)
			{
				var resp;
				if(this.req.responseText) {
					resp=this.req.responseText;
				} else {
					resp=this.req.ResponseText; 
				}
				
				this.onload(this.ProcessResponseResult(resp));	
			}		
		}
		else
		{		  
		  this.onerror('Unknown error');
		}
	  }
  }
  catch(e){}
  finally
  {
	if(executed&&this.onload) {
		this.release();
	}
  }
};

$Ajx.prototype.release=function()
{
	delete this.req.onreadystatechange;
	delete this.req;
	delete this.onload;
	delete this.onerror;
	delete this.data;
	
};

$Ajx.prototype.Update=function(url)
{
	this.url=url;
	this.Invoke();	
};

$Ajx.prototype.createRequestInstance=function()
{
	this.req = null;
	
	if(window.XMLHttpRequest) {
		this.req =new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try{
			this.req=new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e) {
			try {
				this.req=new ActiveXObject('Microsoft.XMLHTTP');
			} catch (e1) {
				try {
					this.req=new ActiveXObject('Msxml2.XMLHTTP.4.0');
				} catch (e2) {}
			}
		}
	}	
	if(!this.req) {
		if(!parent.frames.hiddenFrame) {
			window.location.replace(this.url+"useFrames=true&href='"+window.location.href+"'"); 
		} else {
			this.req=new $Ajx.XmlHttpFrameRequest();
		}
	}
};

$Ajx.prototype.ProcessResponseResult=function(response)
{
		var expr='Exception;';		
		if(response && response.length >= expr.length && response.substring(0,expr.length) == expr)
		{
		  $Ajx.Reload();
		  return null;
		}
		
		expr='Error;';		
		if(response && response.length >= expr.length && response.substring(0,expr.length) == expr)
		{
		  response = response.substring(expr.length, response.length);
		  throw "Server exception: "+response;
		}
		
		expr ='JSON;';
		if(response && response.length >= expr.length && response.substring(0,expr.length) == expr)
		{
			response = response.substring(expr.length, response.length);
			eval("response = "+ response);
		}		
		
		return response;
};

$Ajx.prototype.Invoke=function()
{
    
	var isAsync=this.onload!==null;
	
	try
	{			  
		this.createRequestInstance();
		if(!this.req) 
		{
			return;
		}		
//		var thiz=this;
		this.req.onreadystatechange=this.onReadyState.bind(this);
		
	  try
	   {	 
		   this.req.open(this.method,this.url,isAsync);		   
	   }
	   catch(e)
	   {		

			var s=window.location.href.split("/");
			var s1=this.url.split("/");
						
			if(s[2]!=s1[2])
			{			    
				this.url=s[0]+"//"+s[2]+"/"+this.url.substr((s1[0]+"//"+s1[2]).length+1);				
				this.req.onreadystatechange=this.onReadyState.bind(this);
				this.req.open(this.method,this.url,isAsync);
			} 
	   }
	  
	   this.req.setRequestHeader('Connection', 'close');
//	   http_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
	  
	  if (this.contentType)
	  {
		this.req.setRequestHeader('Content-Type', this.contentType);
	  }
	  this.req.send(this.data);
  
	  if(!isAsync)
	  {
		var resp;
		if(this.req.responseText) {
			resp=this.req.responseText;
		} else {
			resp=this.req.ResponseText; 
		}
		
		return this.ProcessResponseResult(resp);		
	  }
	}
	catch (err)
	{
		var message;
		if(err.message) {
			message = err.message;
		} else {
			message = err;
		}
		
		this.onerror(message);	  
	}
	finally
	{
	 if(!isAsync)
	  {	   
		this.release();		
	  }
	}
};

$Ajx.ExecuteHandler=function(handlerName,parameters)
{
	if($Ajx.UseHandler) {
		return $Ajx.ServerPath+"AjxHandler.ashx?handlerName="+handlerName+"&"+parameters;
	} else {
		return $Ajx.ServerPath+"?useajax=true&handlerName="+handlerName+"&"+parameters;		
	}
};

$Ajx.prototype.Execute=function()
{ 
   return this.execute(arguments);
};

$Ajx.Execute=function()
{
	var ajx=new $Ajx(); 
	return ajx.execute(arguments);	
};

$Ajx.Test=function()
{
	var ajx=new $Ajx();
	ajx.createRequestInstance();
	if(!ajx.req) 
	{
		return false;
	}
	
	return true;
};

$Ajx.Reload=function()
{
	window.location.replace(window.location.href);
};

$Ajx.prototype.execute=function(args)
{
   
	var i=args.length;
	
	if(i<1) {
		return;
	}
		
	var arg0=args[0];
	var j=1;   
	
	if(typeof(arg0)=='function')
	{
		if(i<2) {
			return;
		}
			
		this.onload=arg0;
		arg0=args[1];
		j=2;
	}
	
	this.url+="methodName="+arg0;		
	for(;j<i;j++)
	{
		var arg = this.serialize(args[j]);		
			
		if(!this.data)
		{
			this.data=arg+".;args";
		}
		else
		{				
			this.data+=arg+".;args";
		}			
		
	}
	
	return this.Invoke();
};

$Ajx.prototype.serialize=function(obj)
{
	var arg;
	if(obj === null) {
		arg = ".;null";
	} else if(obj instanceof Date) {
		arg = obj.getYear()+","+obj.getMonth()+","+obj.getDate()+","+obj.getHours()+","+
			obj.getMinutes()+","+obj.getSeconds()+","+obj.getMilliseconds();
	} else if(obj instanceof Array) {
		arg = ".;array[";
		
		for(var k=0; k< obj.length ; ++k) {
			if(k > 0) {
				arg += ",";
			}
			arg += this.serialize(obj[k]);
		}
		
		arg += "]";
	} else if(obj instanceof Object) {
		arg = ".;class[";
		
		for(var prop in obj) {
			if(typeof obj[prop] !='function') {
				arg += prop + ":" + this.serialize(obj[prop]) + ".;prop";				
			}
		}
		
		arg += "]";
	} else  {
		arg = obj;
	}
	
	return arg;
};

$Ajx.XmlHttpFrameRequest=function()
{
	this.url = null;
	this.method = null;
	this.onreadystatechange = null;
	this.isAxync = false;
	this.headers=[];
	this.data = null;
};

$Ajx.XmlHttpFrameRequest.prototype.open=function(method,url,isAsync)
{
	this.url=url;
	this.method=method;
	this.isAxync=isAsync;
};

$Ajx.XmlHttpFrameRequest.prototype.setRequestHeader=function(name,value)
{
		for(var i=0; i<this.headers.length; i++) 
		{
			if(this.headers[i].name == name)
			{
				this.headers[i].value = value;
				return;
			}
		}
		this.headers.push({"name":name,"value":value});
};

$Ajx.XmlHttpFrameRequest.prototype.send=function(data)
{
	this.data=data;
	return this.trySend();
};

$Ajx.XmlHttpFrameRequest.prototype.trySend=function()
{ 
	  if(!this.isAxync)
	  {
//			alert("Synchronous call is not supported.");
//			return;
	  }
	  
//	if(!this.isAxync)
//	{
//		while($Ajx.XmlHttpFrameRequest.waiting)
//		{
//		 pause(1000);
//		}
//	}
//	else
	if($Ajx.XmlHttpFrameRequest.waiting)
	{
		setTimeout(this.trySend.bind(this), 100);
		return;
	} 
	
	$Ajx.XmlHttpFrameRequest.waiting=true;	
	
	 var frame=parent.frames.hiddenFrame; 
	 
	var doc = frame.document;   
   
	var form = doc.createElement('form'); 	
	
	doc.body.appendChild(form);
		
	form.setAttribute("action", this.url);
	form.setAttribute("method", this.method);		
	
	for(var i=0; i<this.headers.length; i++)
	{
		switch(this.headers[i].name.toLowerCase()) 
		{
//			case "content-length":
//			case "accept-encoding":
//				break;
//			case "content-type":
//				form.setAttribute("enctype", this.headers[i].value);
//				break;
//			default:
//				this.addInput(doc, form, this.headers[i].name, this.headers[i].value);
		}
	}
	
	
	var element=doc.createElement("input");
	element.setAttribute("type", 'hidden');
	element.setAttribute("name", 'data');
	element.setAttribute("value", this.data);
	form.appendChild(element);	
	
	form.submit();
	
//	if(!this.isAxync)
//	{
//		while(doc.readyState != "complete")
//		{
//		}
//		
//		$Ajx.XmlHttpFrameRequest.waiting=false;
//		return doc.body.innerText;
//	}
//	else
	 
	 $Ajx.thiz=this;
	 window.setTimeout('$Ajx.thiz.readystatechanged()', 1);
};

$Ajx.XmlHttpFrameRequest.prototype.readystatechanged=function()
{	
	var doc = parent.frames.hiddenFrame.document;	
	if(doc.readyState == "complete")
	{		 
		this.status = 200;
		this.readyState = 4;
		this.responseText = doc.body.innerHTML;				
		if(this.onreadystatechange) {
			this.onreadystatechange();
		}
		$Ajx.XmlHttpFrameRequest.waiting=false;
		return;
	}	
	window.setTimeout('$Ajx.thiz.readystatechanged()', 100);	
};

function querySt(ji) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i=0;i<gy.length;i++) 
    {
        ft = gy[i].split("=");
        if (ft[0] == ji) 
        {
            return ft[1];
        }
    }
}

function InitChatButton()
{   
	if(!window.ChatButtonIndex) 
		window.ChatButtonIndex=0;
	
	
	eval("window.ChatButton"+ChatButtonIndex+"=new  ChatButton();");
	eval("var tmp=window.ChatButton"+ChatButtonIndex+";");  
	tmp.index=ChatButtonIndex;
	ChatButtonIndex=ChatButtonIndex+1;   
	
	return tmp; 
	  
}

function ChatButton()
{
	this.isClosed=true;
	this.redirectPath='';
	this.wasRedirected=false;
	this.hasImage=false;
	this.buttonText='';
	this.buttonPath='';
	this.errorMessage='';
	this.errorShown=false;
	this.buttonClass='';
	this.buttonStyle='';
	this.buttonHoveredPath='';	
	this.index=0;
	this.departmentId=0;
}

var beratungButton;

ChatButton.prototype.Load=function() 
 {  
	if(this.errorMessage.length>0&&!this.errorShown)
	{
		alert(this.errorMessage);
		return false;
	}
	  
	//Bestimmen der Department-ID  
	var deptIdIndex = this.redirectPath.indexOf("depId=");  
	
	if (deptIdIndex > -1)
	{
	    this.departmentId = parseInt(this.redirectPath.substr(deptIdIndex + 6))
	}	  
		
	if(this.isClosed || this.departmentId == 0)
	{   	    
		document.write('<a href="' + this.redirectPath + '" target="blank">' + this.getLinkedObject() + '</a>');
	}
	else
	{			 
	   
	    //Act-Testen
	    if (this.departmentId == 1)
	    {	    
	        document.write('<div id="beratungPopupContent" style="display: block; font-family: Arial;"><div id="beratungPopup" style="border: solid 1px silver; width: 330px; height: 165px; background-color: White; position: absolute; left: 200px; top: 200px; margin-left: -165px; margin-top: -83px; display: none; z-index: 5000000;"><div style="height: 20px; width: 100%; background-color: Gray; color: White; text-align: left;"><span style="font-size: small; color: White; margin: 3px; position: absolute;"><strongstyle="color: White">Einladung zur Online-Beratung</strong> </span><span style="color: White;position: absolute; left: 315px; top: 2px;"><a href="#" onclick="hidePopup();" style="text-decoration: none;color: White; font-weight: bold; font-size: small;">X</a> </span></div><br /><div style="margin: 5px; text-align: left; font-size: 11px;"><div><strong>Einladung zur ACT! Online-Beratung</strong></div><div>Ein Mitarbeiter m&ouml;chte Sie gerne zu ACT! 11 beraten. Wenn Sie eine Beratung w&uuml;nschen,starten Sie das Gespr&auml;ch durch klicken auf Weiter. Ansonsten schlie&szlig;en Sie dieses Fenster, in diesem Fall bitten wir Sie die St&ouml;rung zu entschuldigen.</div><br /><div id="beratungPopupImage" style="display: none;"></div><div style="width: 100%; text-align: left;"><a href="#" onclick="ChatButton0.openregform()"><img src="http://www.sage.de/smb/livehelp/Images/button_weiter.gif" style="border: none 0px;" /></a><!--<img id="iButton0" style="cursor: pointer;" alt="Open chat" src="http://www.sage.de/smb/livehelp/UploadedFiles/i_id_4_chat.gif" border="0">--></div></div></div></div>');
	    
	        document.write("<a href='#' onclick='ChatButton"+this.index+".openregform()' "+this.buttonClass+this.buttonStyle+">"+this.getLinkedObject()+"</a>");
            document.getElementById("beratungPopupImage").innerHTML = "<a href='#' onclick='ChatButton"+this.index+".openregform()' "+this.buttonClass+this.buttonStyle+">"+this.getLinkedObject()+"</a>";
		    beratungButton = "iButton" + this.index;		
    		
//		    if (this.buttonPath.indexOf("sage-offline-beratung.gif") == -1)
//		    {
//		        setTimeout("startSlideIn();", 30000);			    
//		    }		    		    		    
	    }
	    
	    //Office Line
	    if (this.departmentId == 3)
	    {
	        document.write('<div id="beratungPopupContent" style="display: block; font-family: Arial;"><div id="beratungPopup" style="border: solid 1px silver; width: 330px; height: 165px; background-color: White; position: absolute; left: 200px; top: 200px; margin-left: -165px; margin-top: -83px; display: none; z-index: 5000000;"><div style="height: 20px; width: 100%; background-color: Gray; color: White; text-align: left;"><span style="font-size: small; color: White; margin: 3px; position: absolute;"><strong style="color: White">Einladung zur Online-Beratung</strong> </span><span style="color: White;position: absolute; left: 315px; top: 2px;"><a href="#" onclick="hidePopup();" style="text-decoration: none;color: White; font-weight: bold; font-size: small;">X</a> </span></div><br /><div style="margin: 5px; text-align: left; font-size: 11px;"><div><strong>Einladung zur Online-Beratung</strong></div><div>Ein Mitarbeiter m&ouml;chte Sie gerne zu unseren Produkten beraten. Wenn Sie eine Beratung w&uuml;nschen,starten Sie das Gespr&auml;ch durch klicken auf Weiter. Ansonsten schlie&szlig;en Sie dieses Fenster, in diesem Fall bitten wir Sie die St&ouml;rung zu entschuldigen.</div><br /><div id="beratungPopupImage" style="display: none;"></div><div style="width: 100%; text-align: left;"><a href="#" onclick="ChatButton0.openregform()"><img src="http://www.sage.de/smb/livehelp/Images/button_weiter.gif" style="border: none 0px;" /></a><!--<img id="iButton0" style="cursor: pointer;" alt="Open chat" src="http://www.sage.de/smb/livehelp/UploadedFiles/i_id_4_chat.gif" border="0">--></div></div></div></div>');
	    
	        if (this.buttonPath.indexOf("sage-offline-beratung.gif") == -1)
		    {
		        setTimeout("startSlideIn();", 30000);			    
		    }		    		    
	    }
	    
	    //Classic Line	    
	    if (this.departmentId == 4)
	    {
    	    document.write('<div id="beratungPopupContent" style="display: block; font-family: Arial;"><div id="beratungPopup" style="border: solid 1px silver; width: 330px; height: 165px; background-color: White; position: absolute; left: 200px; top: 200px; margin-left: -165px; margin-top: -83px; display: none; z-index: 5000000;"><div style="height: 20px; width: 100%; background-color: Gray; color: White; text-align: left;"><span style="font-size: small; color: White; margin: 3px; position: absolute;"><strong style="color: White">Einladung zur Online-Beratung</strong> </span><span style="color: White;position: absolute; left: 315px; top: 2px;"><a href="#" onclick="hidePopup();" style="text-decoration: none;color: White; font-weight: bold; font-size: small;">X</a> </span></div><br /><div style="margin: 5px; text-align: left; font-size: 11px;"><div><strong>Einladung zur Online-Beratung</strong></div><div>Ein Mitarbeiter m&ouml;chte Sie gerne zu unseren Produkten beraten. Wenn Sie eine Beratung w&uuml;nschen,starten Sie das Gespr&auml;ch durch klicken auf Weiter. Ansonsten schlie&szlig;en Sie dieses Fenster, in diesem Fall bitten wir Sie die St&ouml;rung zu entschuldigen.</div><br /><div id="beratungPopupImage" style="display: none;"></div><div style="width: 100%; text-align: left;"><a href="#" onclick="ChatButton0.openregform()"><img src="http://www.sage.de/smb/livehelp/Images/button_weiter.gif" style="border: none 0px;" /></a><!--<img id="iButton0" style="cursor: pointer;" alt="Open chat" src="http://www.sage.de/smb/livehelp/UploadedFiles/i_id_4_chat.gif" border="0">--></div></div></div></div>');
	    
	        if (this.buttonPath.indexOf("sage-offline-beratung.gif") == -1)
		    {
		        setTimeout("startSlideIn();", 30000);			    
		    }
		    
	    }	
	    
	    //Act
	    if (this.departmentId == 5)
	    {	    
	        document.write('<div id="beratungPopupContent" style="display: block; font-family: Arial;"><div id="beratungPopup" style="border: solid 1px silver; width: 330px; height: 165px; background-color: White; position: absolute; left: 200px; top: 200px; margin-left: -165px; margin-top: -83px; display: none; z-index: 5000000;"><div style="height: 20px; width: 100%; background-color: Gray; color: White; text-align: left;"><span style="font-size: small; color: White; margin: 3px; position: absolute;"><strongstyle="color: White">Einladung zur Online-Beratung</strong> </span><span style="color: White;position: absolute; left: 315px; top: 2px;"><a href="#" onclick="hidePopup();" style="text-decoration: none;color: White; font-weight: bold; font-size: small;">X</a> </span></div><br /><div style="margin: 5px; text-align: left; font-size: 11px;"><div><strong>Einladung zur ACT! Online-Beratung</strong></div><div>Ein Mitarbeiter m&ouml;chte Sie gerne zu ACT! 11 beraten. Wenn Sie eine Beratung w&uuml;nschen,starten Sie das Gespr&auml;ch durch klicken auf Weiter. Ansonsten schlie&szlig;en Sie dieses Fenster, in diesem Fall bitten wir Sie die St&ouml;rung zu entschuldigen.</div><br /><div id="beratungPopupImage" style="display: none;"></div><div style="width: 100%; text-align: left;"><a href="#" onclick="ChatButton0.openregform()"><img src="http://www.sage.de/smb/livehelp/Images/button_weiter.gif" style="border: none 0px;" /></a><!--<img id="iButton0" style="cursor: pointer;" alt="Open chat" src="http://www.sage.de/smb/livehelp/UploadedFiles/i_id_4_chat.gif" border="0">--></div></div></div></div>');
	    
	        document.write("<a href='#' onclick='ChatButton"+this.index+".openregform()' "+this.buttonClass+this.buttonStyle+">"+this.getLinkedObject()+"</a>");
            document.getElementById("beratungPopupImage").innerHTML = "<a href='#' onclick='ChatButton"+this.index+".openregform()' "+this.buttonClass+this.buttonStyle+">"+this.getLinkedObject()+"</a>";
		    beratungButton = "iButton" + this.index;		
    			    		    		    
	    }	
	} 
 }

function startSlideIn()
{
    if (!clickedLink)
        movePopup(0);
}

function hidePopup()
	    {
			document.getElementById("beratungPopup").style.display = "none";
	    }
	    
function hidePopup2()
	    {
			document.getElementById("beratungPopup2").style.display = "none";
	    }	   
	    
        function movePopup(i)
        {
            
			document.getElementById("beratungPopup").style.display = "block";
            if (i > 100)
                return;
            document.getElementById("beratungPopup").style.left = (i / 2) + "%";
            document.getElementById("beratungPopup").style.top = (i / 4) + "%";
            setTimeout("movePopup(" + String((i + 1)) + ")", 4);
        }

var clickedLink = false;

ChatButton.prototype.openregform=function() 
{
    clickedLink = true;
    
	if(this.errorMessage.length>0)
	{
		alert(this.errorMessage);
		return false;
	}
	if(!this.isClosed)
	{
		if(this.wasRedirected)
		{
			if (this.redirectInNewWindow)
			{
				window.open(this.redirectPath, '_blank');
			}
			else
			{
				window.location.replace(this.redirectPath);
			}
		}
		else
			window.open(this.redirectPath, '_blank', 'width=600, height=450, resizable=0, scrollbars=1, toolbar=0, status=0');
	}
}

ChatButton.prototype.getLinkedObject=function() 
{
	if(this.hasImage)
	   {
	   var prop='';
	   if(!this.isClosed)
			prop=prop+" style='CURSOR:pointer'";
		
		prop=prop+" alt='"+this.buttonText+"'";
		prop=prop+" src='"+this.buttonPath+"'"; 
		
		if(this.buttonHoveredPath&&this.buttonHoveredPath.length>0) 
			  prop=prop+" onmouseover='ChatButton"+this.index+".mouseOver()' onmouseout='ChatButton"+this.index+".mouseOut()'";		 
			
		return "<img id='iButton"+this.index+"' border=0 "+prop+"/>";
	   }
	
	return  this.buttonText;	
}

ChatButton.prototype.mouseOver=function() 
{
	var button=document.getElementById('iButton'+this.index);
	button.src=this.buttonHoveredPath;
}

ChatButton.prototype.mouseOut=function() 
{
	  var button=document.getElementById('iButton'+this.index);
	button.src=this.buttonPath;
}
chatBt=InitChatButton();
chatBt.isClosed=false;
chatBt.wasRedirected=false;
chatBt.redirectInNewWindow=true;
chatBt.hasImage=true;
chatBt.redirectPath='http://www.sage.de/smb/livehelp/RegistrationForm.aspx?depId=1';
chatBt.buttonText='Leave Message';
chatBt.buttonPath='http://www.sage.de/smb/livehelp/UploadedFiles/i_id_5_091203_rueckruf_button.jpg';
chatBt.errorShown=false;
chatBt.errorMessage='';
chatBt.buttonClass="";
chatBt.buttonStyle="";
chatBt.buttonHoveredPath="";
chatBt.Load();
