function fav(nav,br,sr) {

if (nav=="Netscape" || nav=="Opera") { 
	document.write('<div class=izb><nobr><span>Добавить в избранное (Ctrl+D)</span>'+br+'<a href=/oops!/start_no_js.html target=_blank onclick="window.open(\'http://Wallpapers-master.ru/oops!/'+nav+'.html\',\'\',\'width=400,height=230\',\'scrollbars=no,toolbars=no,resize=no\');return false">Сделать&nbsp;стартовой</a></nobr></div>');
} else { 
	document.write('<div class=izb><nobr><a class=hand onclick="window.external.AddFavorite(\'http://Wallpapers-master.ru/\',\'Wallpapers-master.ru - Обои для рабочего стола\');">Добавить в избранное</a>'+br+'<a class=hand onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://Wallpapers-master.ru/\');">Сделать&nbsp;стартовой</a></nobr></div>');
}
}


function getBrowserInfo() {
var t,v = undefined;
if (window.opera) t = 'Opera';
else if (document.all) {
 t = 'IE';
 var nv = navigator.appVersion;
 var s = nv.indexOf('MSIE')+5;
 v = nv.substring(s,s+1);
}
else if (navigator.appName) t = 'Netscape';
return {type:t,version:v};
}

function bookmark(a){
var url = window.document.location;
var title = window.document.title;
var b = getBrowserInfo();
if (b.type == 'IE' && 7 > b.version && b.version >= 4) window.external.AddFavorite(url,title);
else if (b.type == 'Opera') {
 a.href = url;
 a.rel = "sidebar";
 a.title = url+','+title;
 return true;
}
else if (b.type == "Netscape") window.sidebar.addPanel(title,url,"");
else {window.external.AddFavorite(url,title);}
return false;
}
