//external links opens in new window document.onclick = function(e) { var target = e ? e.target : window.event.srcElement; while (target && !/^(a|body)$/i.test(target.nodeName)) { target = target.parentNode; } if (target && target.getAttribute('rel') && target.rel == 'external') { var external = window.open(target.href); return external.closed; } } //show and hide var ids=new Array('ac','dg','hk','lo','ps','tz'); function switchid(id){ hideallids(); showdiv(id); } function hideallids(){ //loop through the array and hide each element by id for (var i=0;i