//  Force https requirement.
if (document.location.protocol != 'https:') 
{ 
//  window.location= 'https://' + location.host +     location.pathname + location.search; 
// if (document.location.protocol != "https:") { document.location.href = "https://elextek.com" + document.location.pathname; }; 
} 

//  Called from body onload to attach to all links.
function ElexInit()
{
	ElexFindAllLinks(document);
}

//  Finds all the links in the document and attaches new functions.
function ElexFindAllLinks(d)
{
	var i ;
	for(i=0 ; i<d.links.length ; i++)
	{
		var lnk = d.links[i];
		//  Save the old onMouseOver handler.
		lnk.savedover = lnk.onmouseover;
		lnk.onmouseover = new ElexOnAssocObj(i);
		//  Save the old onMouseOut handler.
		lnk.savedout = lnk.onmouseout;
		lnk.onmouseout = new ElexOutAssocObj(i);
	}

	if (document.layers)
	{
		for(i=0 ; i<d.layers.length ; i++)
		{
			//  Recurse on nested layers.
			findAllLinks(d.layers[i].document);
		}
	}

}
function ElexOnAssocObj(n){
    return (function(e){
        e = e||window.event;
        return ElexOn(n);
    });
}
function ElexOutAssocObj(n){
    return (function(e){
	e = e||window.event;
	return ElexOut(n);
    });
}
var bHoverOld = '';
function ElexOn(i)
{
	var obj=document.links[i];
	if (obj && obj.savedover)
	{
		obj.savedover();
		if (bHover && (bHover != ''))
		{	
			window.status=bHover;
			bHoverOld = bHover;
		}
		else if (bHoverOld && (bHoverOld != ''))
			window.status=bHoverOld;
	}
	else
	{
		window.status='More details....';
	}
	return true;
}
function ElexOut(i)
{
	var obj=document.links[i];
	if (obj && obj.savedout)
		return obj.savedout();
	window.status='';
	return true;
}

