// the <a link has to have the following format
// <a href="#" style="behavior:url(#default#homepage);" onclick=makeMeHomePage// (this);">...</a>
// the behavior:url is a style rule required for the setHomePage() to work
// see http://www.bme.ie/resource/js/jsapp_sethomepage_en.htm
// Who knows why. That's just the way it is.


function makeMeHomePage(me){

if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)){
 window.external.AddFavorite (window.location,document.title);
 }
  else {
  var msg = "please bookmark us! press";
  if(navigator.appName == "Netscape") msg += " (CTRL-D)";
  alert(msg);
 }

if(window.external){
me.setHomePage(location.href);
}

 return false;
}


//Click logo push the home page unless its not IE

function makeMeHomePageOnly(me){
 if(window.external){
   me.setHomePage(location.href);
 }
 else {
   var msg = "Sorry not IE user. Please click (CTRL-D) to add us";
   alert(msg);
 }
return false;
}
