function openPopup(oTitle,oContent) {
    var x = window.open('','windowName','left=300,top=250,width=250,height=150,resizable=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0');
    if( !x ) { return true; }
    x.document.open();
    x.document.write('<html><head><title>'+oTitle+'</title></head><body onload="window.focus();" onblur="window.close();" style="overflow: hidden;padding: 10px;font-family: Verdana, Sans-serif; font-size: 16px; font-weight: bold; background-color: #4179F4;color: white;">'+oContent+'</body></html>');
    x.document.close();
}



function AddToFaves(){
    var is_4up = parseInt(navigator.appVersion);
    var ua = navigator.userAgent;
    var thePage = location.href;
    var is_ie  = ((ua.toLowerCase().indexOf("msie")!=-1) && !(ua.indexOf('Opera') != -1) && !(ua.indexOf('Netscape') != -1));
    var is_Net8 = (ua.indexOf('Netscape/8') != -1);
    var is_mac = ua.toLowerCase().indexOf("mac")!=-1;
    var isOpera = (ua.indexOf('Opera') != -1);
    var isSafari = (ua.indexOf('Safari') != -1);
    var isKonqueror = (ua.indexOf('Konqueror') != -1);
    var isGecko = (ua.indexOf('Gecko') != -1 && ua.indexOf('Safari') == -1);
    var hotKey = "";
    if (thePage.lastIndexOf('#')!=-1) { thePage = thePage.substring(0,thePage.lastIndexOf('#')); }
    if (is_ie && is_4up && !is_mac) {
        window.external.AddFavorite(thePage,document.title);
    }
	else if (window.sidebar){
    window.sidebar.addPanel('Logler - Free Game Downloads','http://www.logler.com',"");
	}
    else if (is_Net8) {
        alert('Press CTRL-D to bookmark this page.');
    }
    else {
        if (isOpera) {hotKey = "Press <br><br>CTRL-T<br><br>to bookmark this page.<br>"}
        else if (isGecko) {hotKey = "Press <br><br>CTRL-D<br><br>to bookmark this page.<br>"} // Added in place of the sidebar script above
        else if (isSafari) {hotKey = "Press <br><br>Cmd-D<br><br>to bookmark this page.<br>"}
        else if (isKonqueror) {hotKey = "Press <br><br>CTRL-B<br><br>to bookmark this page.<br>"}
        else {hotKey = ""}
        openPopup(' ',hotKey);
    }
}