$(function(){$('a[href][rel*=external]').each(function(i){this.target = "_blank";});});

function fetch_data(id, counter){
	if (typeof jQuery != 'undefined') {
		$.get("/includes/counters.php", { counter: counter },
  			function(data){
  				//alert("Data Loaded: " + data);
		    	$("#"+id+" .counter span").html(data);
	    		timerID = setTimeout("fetch_data('"+id+"', '"+counter+"')", 30000);
		  });
	} else {
		return false;
	}
};

function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("primary-navigation");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
  				}
  				node.onmouseout=function() {
  					this.className=this.className.replace(" over", "");
   				}
   			}
  		}
 	}
}

function customer_logo(){
	//$("ul.customer_logo").append('<li><a href="/news/customers_ee_finance.php#fdic"><img src="_media/images/customer_logo/fdic.gif" alt="FDIC Logo" width="200" height="31"/></a></li>');
	$("ul.customer_logo").append('<li><a href="/news/customers_ep.php#indep"><img src="_media/images/customer_logo/blue_cross.gif" alt="blue_cross" width="200" height="38"/></a></li>');
	$("ul.customer_logo").append('<li><a href="/news/customers_ee_finance.php#mi"><img src="_media/images/customer_logo/m_and_i.gif" alt="m_and_i" width="200" height="38"/></a></li>');
	$("ul.customer_logo").append('<li><a href="/pdf/RWJ_Hospital_Case_Study.pdf"><img src="_media/images/customer_logo/RWJ_logo.gif" alt="RWJ" width="200" height="38"/></a></li>');
}

function systrust(){
	$("#systrust").append('<a href="https://cert.webtrust.org/zixcorp.html" rel="external"><img src="_media/images/privacy_logo/systrust-prescribing.gif" alt="systrust" width="120" height="51" /></a>');
}
