<!--


counterBool = new Boolean(20);
var xmlDoc;

function myCounter(PageID,Type,counterNum,countOnce)
{

    if(Type.toLowerCase() == "submit")
    {
        antisLoad();
    }
        
    if(countOnce == "true")
    {
        if(undefined != counterBool[counterNum])
        {
            return;
        }
    }
    document.counter.PageID.value = PageID;
    document.counter.Type.value = Type;

    pausecomp(500);

    counterBool[counterNum] = false;
    if(Type.toLowerCase() == "load")
    {
        checkCookie();
    	//if(PageID.substring(0,7) == "company" || PageID == "edit-my-listing.htm" || PageID == "add-company.htm" || PageID == "place-an-advert.htm")
        //{
          //  setAntis()
        //}
    }

    document.counter.submit();
    return true;
}

function SendEmail(Company_ID)
{
    window.open("/aspx/emailsuppliers.aspx?CompanyID=" + Company_ID, "ShowEmail", "resizable=yes,scrollbars=yes,height=700,width=550,top=100");
}

function Share(Company_ID)
{
    window.open("/aspx/share.aspx?CompanyID=" + Company_ID, "ShareInfo", "resizable=yes,scrollbars=yes,height=700,width=550,top=100");
}

function SendSMS(Company_ID) {
    window.open("/aspx/SMS.aspx?CompanyID=" + Company_ID, "SendSMS", "resizable=yes,scrollbars=yes,height=700,width=550,top=100");
}

function antisLoad() 
{
    if (typeof window.ActiveXObject != 'undefined' ) 
    {
        xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
        xmlDoc.onreadystatechange = process ;
    }
    else 
    {
        xmlDoc = new XMLHttpRequest();
        xmlDoc.onload = process ;
    }
    myDate = new Date();
    url = "../aspx/antis.aspx?type=en";
    xmlDoc.open( "post", url, true );
    xmlDoc.send( null );
}

function pausecomp(millis) 
{
    date = new Date();
    var curDate = null;

    do 
    { 
        var curDate = new Date(); 
    }while(curDate-date < millis);
} 

function getObjInnerText(obj)
{ 
    if (document.all) 
    { // IE; 
        return obj.innerText; 
    } 
    else
    { 
        return obj.textContent; 
    } 
} 

//function setAntis(passValue)
//{ 
    //alert("setAntis");
  //  document.getElementById("antisNum").value = newNum;
    //document.getElementById("antis").src=myImage.src;
    //antis.src = antis.src;
//} 

function generateGuid()
{
	var result, i, j;
	result = '';
	for(j=0; j<32; j++)
	{
		if( j == 8 || j == 12|| j == 16|| j == 20)
			result = result + '-';

	i = Math.floor(Math.random()*16).toString(16).toUpperCase();
		result = result + i;
	}
	return result
} 

function getCookie(c_name)
{
	if (document.cookie.length>0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1)
		{ 
			c_start=c_start + c_name.length+1; 
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) 
				c_end=document.cookie.length;
			
			return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return "";
}

function setCookie(c_name,value)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + 18250);
	document.cookie=c_name + "=" + generateGuid() + ";expires=" + exdate.toGMTString();
//	alert(exdate);
}

function checkCookie()
{
	userID = getCookie('BMUserID');
	if (userID == null || userID =="")
	{
		setCookie('BMUserID',365*50);
	//	alert("New");
	}
//	else
//	//	alert(userID);
}

function process() 
{
    if ( xmlDoc.readyState != 4 )
    {
         return ;
    }
    else
    {
        var reply = xmlDoc.responseText;
        reply = reply.slice(reply.search("TextBox1") + 29);
        reply = reply.substring(0,reply.search(" id=") -1);
        document.getElementById("textfieldantis").value = reply;
    }
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function validate_form(){
	if(document.frm1.txtname.value ==""){
		alert("Please enter name..");
		document.frm1.txtname.focus();
		document.frm1.txtname.select();
		return false;
		}
	if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frm1.txtEmail.value)) == false)
	{
			alert("Please enter your email address....")
			document.frm1.txtEmail.focus();
			document.frm1.txtEmail.select();
			return false;
	}
	if(document.frm1.txtcomname.value ==""){
		alert("Please enter your company name..");
		document.frm1.txtcomname.focus();
		document.frm1.txtcomname.select();
		return false;
		}
		
	
		
	if(document.frm1.txtPhone.value == "")
	{
		alert("Please enter your phone number ....");
		document.frm1.txtPhone.focus();
		return false;
	}
	else if(document.frm1.txtPhone.value != "")
	{
		var valid = "0123456789-, "
		var ok = "yes";
		var temp;
		for (var i=0; i<document.frm1.txtPhone.value.length; i++) {
		temp = "" + document.frm1.txtPhone.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
			alert("Invalid entry!  Only Numbers,spaces, -,and comma  are accepted!");
			document.frm1.txtPhone.focus();
			return false;
		}
	}
}

function validate_form1(){

	if(document.form1.txtname.value == ""){
		alert("please enter name .....");
		document.form1.txtname.focus();
		document.form1.txtname.select();
		return false;
	}
	if(document.form1.txtcompany.value == ""){
		alert("please enter company name .....");
		document.form1.txtcompany.focus();
		document.form1.txtcompany.select();
		return false;
	}
	if(document.form1.txtpostcode.value == ""){
		alert("please enter postcode .....");
		document.form1.txtpostcode.focus();
		document.form1.txtpostcode.select();
		return false;
	}
    if(document.form1.txtPhone.value == "")
	{
		alert("Please enter your phone number ....");
		document.form1.txtPhone.focus();
		return false;
	}
	else if(document.form1.txtPhone.value != "")
	{
		var valid = "0123456789-, "
		var ok = "yes";
		var temp;
		for (var i=0; i<document.form1.txtPhone.value.length; i++) {
		temp = "" + document.form1.txtPhone.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
			alert("Invalid entry!  Only Numbers, -,and comma  are accepted!");
			document.form1.txtPhone.focus();
			return false;
				
		}
				
				
	}
    
    if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.txtEmail.value)) == false)
	{
			alert("Please enter your email address....")
			document.form1.txtEmail.focus();
			document.form1.txtEmail.select();
			return false;
	}
    
    if(document.form1.txtcomments.value == ""){
		alert("please enter comments .....");
		document.form1.txtcomments.focus();
		document.form1.txtcomments.select();
		return false;
	}
	antisLoad()
    	
}

function validate_companyEmail(){
    //alert("hi");

	if(document.form1.name.value == ""){
		alert("please enter name .....");
		document.form1.name.focus();
		document.form1.name.select();
		return;
	}
	if(document.form1.company.value == ""){
		alert("please enter company name .....");
		document.form1.company.focus();
		document.form1.company.select();
		return;
	}
    if(document.form1.phone.value == "")
	{
		alert("Please enter your phone number ....");
		document.form1.phone.focus();
		return;
	}
	else
	{
		var valid = "0123456789-, "
		var ok = "yes";
		var temp;
		for (var i=0; i<document.form1.phone.value.length; i++) {
		temp = "" + document.form1.phone.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
			alert("Invalid entry!  Only Numbers, -,and comma  are accepted!");
			document.form1.phone.focus();
			return;
		}
	}
    
    if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.email.value)) == false)
	{
			alert("Please enter your email address....")
			document.form1.email.focus();
			document.form1.email.select();
			return;
	}
    
    if(document.form1.message.value == ""){
		alert("please enter comments .....");
		document.form1.message.focus();
		document.form1.message.select();
		return;
	}

    pausecomp(2000);
    
    document.form1.submit();
}

function validate_form2(){
	if(document.form2.txtname.value == ""){
		alert("please enter name .....");
		document.form2.txtname.focus();
		document.form2.txtname.select();
		return false;
	}
	if(document.form2.txtcompany.value == ""){
		alert("please enter company name .....");
		document.form2.txtcompany.focus();
		document.form2.txtcompany.select();
		return false;
	}
	if(document.form2.txtpostcode.value == ""){
		alert("please enter postcode .....");
		document.form2.txtpostcode.focus();
		document.form2.txtpostcode.select();
		return false;
	}
if(document.form2.txtPhone.value == "")
	{
		alert("Please enter your phone number ....");
		document.form2.txtPhone.focus();
		return false;
	}
	else if(document.form2.txtPhone.value != "")
	{
		var valid = "0123456789-, "
		var ok = "yes";
		var temp;
		for (var i=0; i<document.form2.txtPhone.value.length; i++) {
		temp = "" + document.form2.txtPhone.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
			alert("Invalid entry!  Only Numbers, -,and comma  are accepted!");
			document.form2.txtPhone.focus();
			return false;
				
		}
				
				
	}
 if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form2.txtEmail.value)) == false)
	{
			alert("Please enter your email address....")
			document.form2.txtEmail.focus();
			document.form2.txtEmail.select();
			return false;
	}
if(document.form2.txtcomments.value == ""){
		alert("please enter comments .....");
		document.form2.txtcomments.focus();
		document.form2.txtcomments.select();
		return false;
	}
	
}


var urlAddress = "/";
 var pageName = ":: Businessmagnet Directory ::";
 function addToFavorites()
 {
 var agt=navigator.userAgent.toLowerCase();
 if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
	window.external.AddFavorite(urlAddress,pageName)
} else {
  var msg = "Don't forget to bookmark us!";
  if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
  hght = window.screen.height;
  var is_opera = (agt.indexOf("opera") != -1);
  var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
  var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
  var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
  var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
  if (is_opera && !is_opera2 && !is_opera3 && !is_opera4){
	height = 130;
	}else{
	 height = 60;
	 }
   testwindow= window.open ("addfav.htm", "mywindow","status=1,scrollbars=No,width=385,height="+height+",toolbar=no,directories=no,status=no,menubar=no,resizable=no");
		testwindow.moveTo(300,(hght/2)-50);
}
 }

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}
// End -->
<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function validate_form1(){
	if(document.form1.txtname.value == ""){
		alert("please enter name .....");
		document.form1.txtname.focus();
		document.form1.txtname.select();
		return false;
	}
	if(document.form1.txtcompany.value == ""){
		alert("please enter company name .....");
		document.form1.txtcompany.focus();
		document.form1.txtcompany.select();
		return false;
	}
	if(document.form1.txtpostcode.value == ""){
		alert("please enter postcode .....");
		document.form1.txtpostcode.focus();
		document.form1.txtpostcode.select();
		return false;
	}
if(document.form1.txtPhone.value == "")
	{
		alert("Please enter your phone number ....");
		document.form1.txtPhone.focus();
		return false;
	}
	else if(document.form1.txtPhone.value != "")
	{
		var valid = "0123456789-, "
		var ok = "yes";
		var temp;
		for (var i=0; i<document.form1.txtPhone.value.length; i++) {
		temp = "" + document.form1.txtPhone.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
			alert("Invalid entry!  Only Numbers, -,and comma  are accepted!");
			document.form1.txtPhone.focus();
			return false;
				
		}
				
				
	}
 if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.txtEmail.value)) == false)
	{
			alert("Please enter your email address....")
			document.form1.txtEmail.focus();
			document.form1.txtEmail.select();
			return false;
	}
if(document.form1.txtcomments.value == ""){
		alert("please enter comments .....");
		document.form1.txtcomments.focus();
		document.form1.txtcomments.select();
		return false;
	}
	
}


function validate_form2(){
	if(document.form2.txtname.value == ""){
		alert("please enter name .....");
		document.form2.txtname.focus();
		document.form2.txtname.select();
		return false;
	}
	if(document.form2.txtcompany.value == ""){
		alert("please enter company name .....");
		document.form2.txtcompany.focus();
		document.form2.txtcompany.select();
		return false;
	}
	if(document.form2.txtpostcode.value == ""){
		alert("please enter postcode .....");
		document.form2.txtpostcode.focus();
		document.form2.txtpostcode.select();
		return false;
	}
if(document.form2.txtPhone.value == "")
	{
		alert("Please enter your phone number ....");
		document.form2.txtPhone.focus();
		return false;
	}
	else if(document.form2.txtPhone.value != "")
	{
		var valid = "0123456789-, "
		var ok = "yes";
		var temp;
		for (var i=0; i<document.form2.txtPhone.value.length; i++) {
		temp = "" + document.form2.txtPhone.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
			alert("Invalid entry!  Only Numbers, -,and comma  are accepted!");
			document.form2.txtPhone.focus();
			return false;
				
		}
				
				
	}
 if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form2.txtEmail.value)) == false)
	{
			alert("Please enter your email address....")
			document.form2.txtEmail.focus();
			document.form2.txtEmail.select();
			return false;
	}
if(document.form2.txtcomments.value == ""){
		alert("please enter comments .....");
		document.form2.txtcomments.focus();
		document.form2.txtcomments.select();
		return false;
	}
	
}


var urlAddress = "/";
 var pageName = ":: Businessmagnet Directory ::";
 function addToFavorites()
 {
 var agt=navigator.userAgent.toLowerCase();
 if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
	window.external.AddFavorite(urlAddress,pageName)
} else {
  var msg = "Don't forget to bookmark us!";
  if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
  hght = window.screen.height;
  var is_opera = (agt.indexOf("opera") != -1);
  var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
  var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
  var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
  var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
  if (is_opera && !is_opera2 && !is_opera3 && !is_opera4){
	height = 130;
	}else{
	 height = 60;
	 }
   testwindow= window.open ("addfav.htm", "mywindow","status=1,scrollbars=No,width=385,height="+height+",toolbar=no,directories=no,status=no,menubar=no,resizable=no");
		testwindow.moveTo(300,(hght/2)-50);
}
 }
//-->

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/enhancedlisting.htm">Learn About The Enhanced Listing</a>'
menu1[1]='<a href="/enhancedlistingplus.htm">Learn About The Enhanced Listing Plus</a>'
menu1[2]='<a href="/magnetlink.htm">Learn About Magnet Links</a>'
menu1[3]='<a href="/flashbanner.htm">Learn About Flash Banners</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://cnn.com">CNN</a>'
menu2[1]='<a href="http://msnbc.com">MSNBC</a>'
menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=500  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function trackclick(companyid) {
    if(document.images){ 
        var randomnumber=Math.floor(Math.random()*1000001);
        (new Image()).src="/aspx/trackClicks.aspx?PageID="+companyid+"&RND="+randomnumber;
    } 
    return true;
}


if (hidemenu_onclick=="yes")
document.onclick=hidemenu


