function ifNav(){
//Netscape likes a refresh, but Microsoft doesn't
if (navigator.appName.indexOf("Netscape")>-1)
history.go(0) 
}


vfFeatured = new Array(2);
// vfFeatured[1] = "Mission Possible"
vfFeatured[1] = "Quit Smoking Resources"
vfFeatured[2] = "Bent on Quitting"

vfFeaturedURL = new Array(2);
// vfFeaturedURL[1] = "/health/smokefree/prevention/missionpossible/index.htm"
vfFeaturedURL[1] = "/health/smokefree/quittingsmoking/resources_quit.htm"
vfFeaturedURL[2] = "/health/smokefree/quittingsmoking/bentonquitting/index.htm"

vfFeaturedDesc = new Array(2);
// vfFeaturedDesc[1] = "Mission Possible is a student-led tobacco use prevention and cessation program for high-school youth."
vfFeaturedDesc[1] = "Want to quit smoking?  Toronto Public Health has the tips, tools and resources to help you quit for life!"
vfFeaturedDesc[2] = "Toronto’s free quit smoking group for LGBTQ smokers.  Receive help with quitting in a confidential, supportive environment."

function pop(i,m) {
  var j = Math.round(Math.random()* (i-1));
  //var n = Math.round(Math.random()* (m-1));
  document.getElementById('button_area').innerHTML= "<font face='Arial, Helvetica, sans-serif' size='2'>" + " <a href='" + vfFeaturedURL[j+1] + "'><b>" + vfFeatured[j+1] + "</b></a><br>" + vfFeaturedDesc[j+1] + "</font>";
  //document.getElementById('button_image').innerHTML="<img src='images/smoking_mianpic" + n + ".jpg' alt='Smoke-free living' width='405' height='130'>";
}


