function dounique() { var date = new Date() ; return date.getTime() ; }
var chat_width = 450 ;
var chat_height = 360 ;
var url = escape( location.toString() ) ;
var unique = dounique() ;
var ChatCallUrl = "http://vvschatnl.metation.net/phplive/image.php?l=admin&x=1&deptid=1&page="+url+"&unique="+unique+"&refer=&text=" ;

function launch_support_1() {
	var request_url_1 = "http://vvschatnl.metation.net/phplive/request.php?l=admin&x=1&deptid=1&page="+url ;
	newwin = window.open( request_url_1, unique, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width='+chat_width+',height='+chat_height+'' ) ;
	newwin.focus() ;
}

function UpdateChatElement() {
	obj = document.getElementById('Toplevel_Rightbar_Chat');
	obj.style.visibility = 'visible';
	obj.innerHTML = "<a onclick=\"launch_support_1()\" onmouseout=\"window.status=''; return true;\" onmouseover=\"window.status='Klik her for live chat support'; return true;\" href=\"JavaScript:void(0)\"><img src="+ChatCallUrl+" style=\"display:none\" onLoad=\"this.style.display='block'\"></a>";
}




var url = document.location + '';
var bgn = url.substr(0, 7);

if(bgn.toLowerCase() == 'http://') {
	if (window.addEventListener)
		window.addEventListener('load', UpdateChatElement, false)
	else if (window.attachEvent)
		window.attachEvent('onload', UpdateChatElement)
	else if (document.getElementById)
		window.onload = UpdateChatElement
}
