window.openDemo = window.openDemo || function() { var windowOptions = 'toolbar=0,location=0,directories=0,scrollbars=0,status=0,menubar=0,width=600,height=477'; window.open('http://www.babylon.com/systems/pages/demo.html', 'demo', windowOptions); if (!windowOptions.opener) { windowOptions.opener = self; } } function download(theFile, Lang, urchin, post_download) { // links to download PHP by type if (typeof post_download == "undefined") var post_download = 'http://www.babylon.com/systems/affiliates/landing/download.php'; return downloadurchin(theFile, Lang, urchin, post_download); } function downloadurchin(theFile, Lang, urchin, post_download) { // links to download PHP by type //post_download += '?id=55555'; //post_download += '&lang=' + (Lang || ''); window.open(theFile, 'Download', 'scrollbars=no,status=no,width=1,height=1'); document.location.href = post_download; } function purchase(theFile, urchin) { // links to download PHP by type document.location.href = theFile; } function stopPropagation(e) { e = e || window.event; if (e.stopPropagation) { e.stopPropagation(); } else { e.cancelBubble = true; } } function _openMenu(id) { var el = document.getElementById('tree-item-' + id); if (!el) { return; } var child = el.getElementsByTagName('ul')[0], navigation = document.getElementById('navigation'); if (child) { child.style.display = 'block'; } if (el.className != 'section-header') { el.className = 'uberlink'; } el.style.display = 'list-item'; el = el.parentNode; while (el) { if (el == navigation) break; el.style.display = (el.tagName.toLowerCase() == 'li' && el.className != 'section-header') ? 'list-item' : 'block'; el = el.parentNode; } } function CountWebAd(WebAd) { ajaxRequest(WebAd); } // Calls "count.aspx" using xmlhttp function ajaxRequest(WebAd) { try { var sUrl = "http://www.babylon.com/dltracker.php?id=" + WebAd; var oRequest = new createXMLHttpRequest(); oRequest.open("GET", sUrl, false); oRequest.onreadystatechange = function(){}; oRequest.send(null); } catch (e) {} } // Returns a cross-browser XmlHttp object function createXMLHttpRequest() { try { return new XMLHttpRequest(); }catch(e){} var aTypes = new Array('Microsoft.XMLHTTP','MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP'); for (var i = 0; i < aTypes.length; i++) { try { return new ActiveXObject(aTypes[i]); }catch(e){} } return false; }