window.onload = function() {
	setLinks();
}
function setLinks() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  if (links.length == 0) return false;
  for (var i = 0; i < links.length; i++) {
    var relation = links[i].getAttribute("rel");
    if (relation == "external") {
      links[i].onclick = function() {
        return !window.open(this.href);
      }
    }     
  }
}

$(function(){
		   /*
			//add this to site js from here 
					var nav_ul_width = 0;
					$('#nav>ul>li').each(function(){
						nav_ul_width += $(this).outerWidth();
					});
					$("ul#ticker").liScroll({maskWidth: nav_ul_width, travelocity:0.02});
			// to here
			*/
		});