﻿var isShowed = false;

function setHome(ob) {
	var isIE = navigator.appVersion.indexOf('MSIE') > -1;
	if (isIE) {
		ob.style.behavior = 'url(#default#homepage)';
		ob.setHomePage(ob.href);
	}
	else {
		if (!isShowed) {
			document.getElementById("mozillaDiv").style.display = 'block';
			isShowed = true;
		}
		else {
			document.getElementById("mozillaDiv").style.display = 'none';
			isShowed = false;
		}


		//onmouseout="document.getElementById('mozillaDiv').style.display='none';"
		//window.attachEvent(function(){alert(1);}, null);
	}
} 

// All browser bookmark script 
function bookmarksite(title,url){ 
if (window.sidebar) // firefox 
    //window.sidebar.addPanel(title, url, ""); Dont use until it's fixed
	alert('Do add this to your bookmarks, press CTRL + D');
else if(window.opera && window.print){ // opera
	alert('Do add this to your bookmarks, press CTRL + D');
}  
else if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
	alert('Do add this to your bookmarks, press CTRL + D');
}
else if(navigator.userAgent.toLowerCase().indexOf('safari') > -1) {
	alert('Do add this to your bookmarks, press CTRL + D');
}
else if(document.all)// ie 
    window.external.AddFavorite(url, title); 
} 
// --></script> 
  
