// script to set homepage...
// started by Scott Bassett, <sbassett@daily-journal.com>, 2003

// Internet Explorer 5+
if (document.all){

  ie_str = "this.style.behavior='url(#default#homepage)';setHomePage('http://www.daily-journal.com')"

  my_href = "javascript:void(0)"

}

// Netscape 6
else if (document.getElementById){
  
  str = "Drag the small icon next to the web address in your location bar\\n"+
        "(make sure the location bar says http://www.daily-journal.com)\\n"+
        "to your Home button to make Daily-Journal.com your Home Page"

  my_href = "javascript:void(0)"
  ie_str = "NO"
   
  }

// Netscape 4-
else if (document.layers){

  str = "Make Daily-Journal.com your home page:\\n\\n"+
        " 1) Make sure you are at http://www.daily-journal.com\\n"+
        " 2) Go to Edit -> Preferences and choose \\'Navigator\\' from the list on the left\\n"+
        " 3) Click on the \\'Use Current Page\\' button at the right"

  my_href = "javascript:void(0)"
  ie_str = "NO"

}

// Other browser
else {

  str = "Make Daily-Journal.com your home page:\\n"+
        "You are currently using a browser for which we do not have a valid specification\\n"+
        "Please check your 'browser preferences' section or contact your vendor."

  my_href = "#"
  ie_str="NO"

}

// print it
if(ie_str == "NO")
  document.write("<a class=\"navlinks\" href=\""+my_href+"\" onClick=\"alert('"+str+"')\">")
else
  document.write("<a class=\"navlinks\" href=\""+my_href+"\" onClick=\""+ie_str+"\">")
