/*
 * [karthik raajkumar 2009-03-1] 
 * this code was provided by Liveperson support. It has just been formatted for readbility
 * original code was provided in ms-word doc attached to jira issue INVT-539
 * http://scm.iedlab.com/jira/browse/INVT-539
 * The code below is the common code in all sections of the doc enclosed between 
 * "<!-- BEGIN LivePerson Monitor. -->" and "<!-- END LivePerson Monitor. -->"
 * 
 */


var lpMTagConfig = {'lpServer' : "sales.liveperson.net", 'lpNumber' : "91632676", 'lpProtocol' : window.location.protocol.match("[^:]*") }; 

function lpAddMonitorTag(src){
	if(typeof(src)=='undefined'||typeof(src)=='object'){
		src=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:'/hcp/html/mTag.js';
	}
	if(src.indexOf('http')!=0){
		src=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+src+'?site='+lpMTagConfig.lpNumber;
	}
	else{
		if(src.indexOf('site=')<0){
				if(src.indexOf('?')<0) src=src+'?';
				else src=src+'&';
				src=src+'site='+lpMTagConfig.lpNumber;
			}
	};
	var s=document.createElement('script');
	s.setAttribute('type','text/javascript');
	s.setAttribute('charset','iso-8859-1');
	s.setAttribute('src',src);
	document.getElementsByTagName('head').item(0).appendChild(s);
} 
if (window.attachEvent) window.attachEvent('onload',lpAddMonitorTag); 
else window.addEventListener("load",lpAddMonitorTag,false);
