ie=false;
	 if(navigator.userAgent.indexOf('MSIE')!=-1)
		ie=true;
	if(ie)
		var addthis_config = {ui_offset_top: -68,ui_offset_left: 106,ui_cobrand: "HR SolutionPoint"};
	 else
		var addthis_config = {ui_offset_top:-34,ui_offset_left: 106,ui_cobrand: "HR SolutionPoint"};

		var addthis_share = {
email_template: "the_Template" /*can change this according to CI */
}
		
function clear(){
	document.getElementById('follow_window').style.display=document.getElementById('contact_window').style.display='none';
}
function initClose(win){
		win.style.zIndex=999999;
		t=setTimeout(function(){hideWindow(win);},200);
}
function setClose(targ){
		win=document.getElementById(targ+'_window');
		initClose(win);
}
function hideWindow(targ){
		targ.style.display='none';
}	
function openWindow(targ){
		win=document.getElementById(targ+'_window');
		win.style.zIndex=1000001;
		win.style.display='block';
		win.onmouseover=function(){if(t)clearTimeout(t);}
		win.onmouseout=function(){initClose(win);}
		if(t)clearTimeout(t);
}	
function init(){
		var leftCol=document.getElementById('left_column');
		var a=leftCol.getElementsByTagName('a');
		for(i=0;i<a.length;i++){
			if(a[i].className=='opener'){
				a[i].onmouseover=function(){clear();openWindow(this.id);}
				a[i].onmouseout=function(){setClose(this.id);}
			}
		}
}
	
function addEvent(elm, evType, fn, useCapture){  //cross-browser event handling
	if(elm.addEventListener){//firefox, safari, chrome, opera
		elm.addEventListener(evType, fn, useCapture);
		return true;
	}else if(elm.attachEvent){//ie
			
		var r = elm.attachEvent('on' + evType, fn);
		return r;
	}else{
		elm['on' + evType] = fn;
	}
}
addEvent(window, 'load', init, false);

