//popup windows to support bottom navbar

function openWin( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}

// MESSAGES

var message01, message02, message03, message04;

message01 = "Click here to know more about SunSafe.";
message02 = "SunSafe suits are made of light, quick-drying fabric that kids will love to wear all day long.  These great-looking suits also provide a guaranteed SPF/UPF rating of 50+. Remember, fry now, pay later.";
message03 = "A surprising amount and variety of local resources and community activities are available to educate parents about the need and practice of sun safety.  Some are listed inside.  Come see what is available in your area.";
message04 = "Do you know how to be SunSafe? What are the facts?  What do all the terms (e.g., SPF/UPF) and numbers really mean?  This section untangles the mystery.  Also, if you care to, have some fun with fun sun facts! There is something here for everyone.";


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


var productsmenu = new PopUpMenu(95);
var resourcesmenu = new PopUpMenu(275);
var informationmenu = new PopUpMenu(210);
var information1menu = new PopUpMenu(85);
var information3menu = new PopUpMenu(180);
var information5menu = new PopUpMenu(240);
var information7menu = new PopUpMenu(150);
var information9menu = new PopUpMenu(180);
var information13menu = new PopUpMenu(40);

productsmenu.setSizes(3, 2, 2, 0);
productsmenu.setColors("#ffffff", "#FF9900", "#000099", "#ffff00", "#cc7700", "#994400", "#cc7700", "#994400");
productsmenu.setFont("Verdana,Arial,Helvetica", "plain", "", "8pt");
//productsmenu.setImages("graphics/transparent.gif", "graphics/menu_norm.gif", "graphics/menu_high.gif", 10, 12);

resourcesmenu.copyAttributes(productsmenu);
informationmenu.copyAttributes(productsmenu);
information1menu.copyAttributes(productsmenu);
information13menu.copyAttributes(productsmenu);
information3menu.copyAttributes(productsmenu);
information5menu.copyAttributes(productsmenu);
information7menu.copyAttributes(productsmenu);
information9menu.copyAttributes(productsmenu);	

productsmenu.addItem(new PopUpMenuItem("Accessories", "/store/productsearchgrid.asp?G=1"));
productsmenu.addItem(new PopUpMenuItem("Animal Care", "/store/productsearchgrid.asp?G=2"));
productsmenu.addItem(new PopUpMenuItem("Armwear", "/store/productsearchgrid.asp?G=3"));
productsmenu.addItem(new PopUpMenuItem("Aqua Shoes", "/store/productsearchgrid.asp?G=4"));
productsmenu.addItem(new PopUpMenuItem("Cosmetics", "/store/productsearchgrid.asp?G=5"));
productsmenu.addItem(new PopUpMenuItem("Glasses", "/store/productsearchgrid.asp?G=6"));
productsmenu.addItem(new PopUpMenuItem("Headwear", "/store/productsearchgrid.asp?G=7"));
productsmenu.addItem(new PopUpMenuItem("Sun Screens", "/store/productsearchgrid.asp?G=8"));
productsmenu.addItem(new PopUpMenuItem("Swimwear", "/store/productsearchgrid.asp?G=9"));
// commented out:
// productsmenu.addItem(new PopUpMenuItem("Specials", "/store/productsearchgrid.asp?G=10"));

resourcesmenu.addItem(new PopUpMenuItem("Richard David Kann Melanoma Foundation", "/resources_richard.html"));
resourcesmenu.addItem(new PopUpMenuItem("SunWise School Program", "/resources_sunwiseschool.html"));
resourcesmenu.addItem(new PopUpMenuItem("\&quot\;Choose Your Cover\&quot\; Campaign", "/resources_choose.html"));
resourcesmenu.addItem(new PopUpMenuItem("SunWise Stampad", "/resources_sunwisestampad.html"));
resourcesmenu.addItem(new PopUpMenuItem("Pool Cool", "/resources_pool.html"));
resourcesmenu.addItem(new PopUpMenuItem("Sunguard Man", "/resources_sunguard.html"));
resourcesmenu.addItem(new PopUpMenuItem("KaBOOM!", "/resources_kaboom.html"));
resourcesmenu.addItem(new PopUpMenuItem("American Academy of Dermatology \(AAD\)", "/resources_aad.html"));
resourcesmenu.addItem(new PopUpMenuItem("The National Organization for Albinism and Hypopigmentation \(NOAH\)", "/resources_noah.html"));
resourcesmenu.addItem(new PopUpMenuItem("Lupus Foundation of America \(LFA\)", "/resources_lfa.html"));
resourcesmenu.addItem(new PopUpMenuItem("American Academy of Pediatrics \(AAP\)", "/resources_aap.html"));
resourcesmenu.addItem(new PopUpMenuItem("American Cancer Society \(ACS\)", "/resources_acs.html"));
resourcesmenu.addItem(new PopUpMenuItem("American Academy of Ophthalmology \(AAO\)", "/resources_aao.html"));

information9menu.addItem(new PopUpMenuItem("Did you know?", "/information_9_did.html"));
information9menu.addItem(new PopUpMenuItem("Astrology", "/information_9_astrology.html"));
information9menu.addItem(new PopUpMenuItem("Current Events on the Sun", "/information_9_current.html"));
information9menu.addItem(new PopUpMenuItem("Cool Links for Kids", "/information_9_cool.html"));

information7menu.addItem(new PopUpMenuItem("Ground Level Ozone", "/information_7_ground.html"));
information7menu.addItem(new PopUpMenuItem("Stratospheric Ozone", "/information_7_stratospheric.html"));
information7menu.addItem(new PopUpMenuItem("What effects Ozone layers\'s effectiveness?", "/information_7_what.html"));
information7menu.addItem(new PopUpMenuItem("The Ozone Hole", "/information_7_the.html"));

information5menu.addItem(new PopUpMenuItem("What does your skin do?", "/information_5_what.html"));
information5menu.addItem(new PopUpMenuItem("The Epidermis", "/information_5_theepidermis.html"));
information5menu.addItem(new PopUpMenuItem("The Dermis", "/information_5_thedermis.html"));
information5menu.addItem(new PopUpMenuItem("How each UVR penetrates \(A, B, C\) skin and what it does.", "/information_5_howeach.html"));
information5menu.addItem(new PopUpMenuItem("Damage and Effects", "/information_5_damage.html"));
information5menu.addItem(new PopUpMenuItem("How Skin becomes cancerous", "/information_5_howskin.html"));

information3menu.addItem(new PopUpMenuItem("Wear Sunscreen", "/information_3_wearsunscreen.html"));
information3menu.addItem(new PopUpMenuItem("Wear Protective Clothes", "/information_3_wearprotective.html"));
information3menu.addItem(new PopUpMenuItem("Stay Inside", "/information_3_stay.html"));
information3menu.addItem(new PopUpMenuItem("How to treat sunburn.", "/information_3_how.html"));
information3menu.addItem(new PopUpMenuItem("Environment is important.", "/information_3_environment.html"));

information13menu.addItem(new PopUpMenuItem("UVC", "/information_13_uvc.html"));
information13menu.addItem(new PopUpMenuItem("UVA", "/information_13_uva.html"));
information13menu.addItem(new PopUpMenuItem("UVB", "/information_13_uvb.html"));

information1menu.addItem(new PopUpMenuItem("SPF", "/information_1_spf.html"));
information1menu.addItem(new PopUpMenuItem("UPF", "/information_1_upf.html"));
information1menu.addItem(new PopUpMenuItem("EPF", "/information_1_epf.html"));
information1menu.addSubmenu(new PopUpMenuItem("UV Rays", "/information_1_uvrays.html"), information13menu);

informationmenu.addSubmenu(new PopUpMenuItem("Definition of Terms", ""), information1menu);
informationmenu.addItem(new PopUpMenuItem("Skin Cancer Facts", "/information_skin.html"));
informationmenu.addSubmenu(new PopUpMenuItem("Protect yourself from the Sun", ""), information3menu);
informationmenu.addItem(new PopUpMenuItem("The UV Index", "/information_theuv.html"));
informationmenu.addSubmenu(new PopUpMenuItem("UVR and your Skin", ""), information5menu);
informationmenu.addItem(new PopUpMenuItem("Other Medical Considerations", "/information_other.html"));
informationmenu.addSubmenu(new PopUpMenuItem("The OZONE", ""), information7menu);
informationmenu.addItem(new PopUpMenuItem("The Sun", "/information_thesun.html"));
informationmenu.addSubmenu(new PopUpMenuItem("Fun Sun Facts", ""), information9menu);

function init() {
  productsmenu.create();
  resourcesmenu.create();
  informationmenu.create();
  information1menu.create();
  information3menu.create();
  information5menu.create();
  information7menu.create();
  information9menu.create();
}



