//Seçilemez Sayfa Kodu Başlangıç
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")


// no text select
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
} 
//Seçilemez Sayfa Kodu Son
//Favorilere Ekleme Kodu Başlangıç
function bookmark() 
        {
            var title = 'Canlı Radyo Dinle - radyoyeri.com';
            var url = 'http://www.radyoyeri.com/';

            if (document.all)// Check if the browser is Internet Explorer
                window.external.AddFavorite(url, title);

            else if (window.sidebar) //If the given browser is Mozilla Firefox
                window.sidebar.addPanel(title, url, "");

            else if (window.opera && window.print) //If the given browser is Opera
            {
                var bookmark_element = document.createElement('a');
                bookmark_element.setAttribute('href', url);
                bookmark_element.setAttribute('title', title);
                bookmark_element.setAttribute('rel', 'sidebar');
                bookmark_element.click();
            }
        }
//Favorilere Ekleme Kodu Son
//Anasayfam Yapma Kodu Başlangıç
function setHomepage()
{
 if (document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage('http://www.radyoyeri.com');

    }
    else if (window.sidebar)
    {
    if(window.netscape)
    {
         try
   {  
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
         }  
         catch(e)  
         {  
            alert("Bu İşlemi gerçekleştiremiyoruz, tarayıcınız erişimlere kısıtlıdır.\nBu durumu düzeltmek için adres satırınıza about:config yazarak tarayıcınızın ayarlarından\nsigned.applets.codebase_principal_support olan değeri false değerinden true olarak değiştirip tekrar deneyin.");  
         }
    } 
    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
    prefs.setCharPref('browser.startup.homepage','http://www.radyoyeri.com');
 }
}
//Anasayfam Yapma Kodu Son
