window.onload = init;

function init() {

     browserBoomkark("bookmark");
  
}

function browserBoomkark(id) {

    var link = document.getElementById(id);

        switch (BrowserDetect.browser) {

	        case 'Explorer': // supports making page default homepage
	
		        link.innerHTML = 'Bookmark this website';
		
		        link.style.cursor = 'pointer';
		
		        link.onclick = function () {
	
			       /* 
                                code for setting page as homepage
                                this.style.behavior='url(#default#homepage)';
			        this.setHomePage('http://www.ezhealthinsuranceca.com');*/
window.external.AddFavorite('http://www.ezhealthinsuranceca.com','Health Insurance, Medical Insurance, Individual Health Insurance Quotes');
	            }
	
	            break;

	        case 'Firefox': // only supports making page a favorite
	
		        link.innerHTML = 'Bookmark this website';
		
		        link.style.cursor = 'pointer';
	
		        link.onclick = function () {
	
			    window.sidebar.addPanel('Health Insurance, Medical Insurance, Individual Health Insurance Quotes', 'http://www.ezhealthinsuranceca.com', "");
	        }
	
	        break;

	        default:

		    // nothing is displayed for other browsers (empty span)
        }
}

