// this function is called from 'body' tag. It needs to be updated
// manually if the design is updated
function my_preloadImages() {
	MM_preloadImages('../temp_images/template_r2_c2_f2.gif',
									 '../temp_images/template_r2_c2_f4.gif',
									 '../temp_images/template_r2_c2_f3.gif',
									 '../temp_images/template_r2_c4_f2.gif',
									 '../temp_images/template_r2_c4_f4.gif',
									 '../temp_images/template_r2_c4_f3.gif',
									 '../temp_images/template_r2_c6_f2.gif',
									 '../temp_images/template_r2_c6_f4.gif',
									 '../temp_images/template_r2_c6_f3.gif',
									 '../temp_images/template_r2_c9_f2.gif',
									 '../temp_images/template_r2_c9_f4.gif',
									 '../temp_images/template_r2_c9_f3.gif',
									 '../temp_images/template_r2_c11_f2.gif',
									 '../temp_images/template_r2_c11_f4.gif',
									 '../temp_images/template_r2_c11_f3.gif',
									 '../temp_images/template_r2_c13_f2.gif',
									 '../temp_images/template_r2_c13_f4.gif',
									 '../temp_images/template_r2_c13_f3.gif',
									 '../temp_images/bid_on_f3.gif',
									 '../temp_images/bid_on_f2.gif',
									 '../temp_images/wtch_list_f2.gif',
									 '../temp_images/wtch_list_f3.gif'
					);
}

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_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

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 fwLoadMenus(session) {
  var session_1 = "?" + session;
  var session_2 = "&" + session;
  var hostname = "www.gradedstamps.com";
  
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#6699cc","#ffffff","#ffffff");
  fw_menu_0.addMenuItem("welcome           ","location='http://" + hostname + "/index.php" + session_1 + "'");
  fw_menu_0.addMenuItem("about us","location='http://" + hostname + "/welcome/index.php" + session_1 + "'");
  fw_menu_0.addMenuItem("show schedule","location='http://" + hostname + "/welcome/shows.php" + session_1 + "'");
  fw_menu_0.addMenuItem("links","location='http://" + hostname + "/welcome/links.php" + session_1 + "'");
  fw_menu_0.addMenuItem("site map","location='http://" + hostname + "/welcome/map.php" + session_1 + "'");
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#6699cc","#ffffff","#ffffff");
  fw_menu_1.addMenuItem("auction home    ","location='http://" + hostname + "/auction/index.php" + session_1 + "'");
  fw_menu_1.addMenuItem("search","location='http://" + hostname + "/auction/search.php" + session_1 + "'");
  fw_menu_1.addMenuItem("your bids","location='http://" + hostname + "/auction/search.php?task=showbids" + session_2 + "'");
  fw_menu_1.addMenuItem("your watch list","location='http://" + hostname + "/auction/search.php?task=showwatch" + session_2 + "'");
  fw_menu_1.addMenuItem("terms & conditions","location='http://" + hostname + "/auction/terms.php" + session_1 + "'");
  fw_menu_1.addMenuItem("how to . . .","location='http://" + hostname + "/auction/howto.php" + session_1 + "'");
   fw_menu_1.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#6699cc","#ffffff","#ffffff");
  fw_menu_2.addMenuItem("gallery home    ","location='http://" + hostname + "/gallery/index.php" + session_1 + "'");
  fw_menu_2.addMenuItem("search","location='http://" + hostname + "/gallery/search.php" + session_1 + "'");
  fw_menu_2.addMenuItem("your cart","location='http://" + hostname + "/gallery/search.php?task=showcart" + session_2 + "'");
  fw_menu_2.addMenuItem("terms & conditions","location='http://" + hostname + "/gallery/terms.php" + session_1 + "'");
  fw_menu_2.addMenuItem("how to . . .","location='http://" + hostname + "/gallery/howto.php" + session_1 + "'");
   fw_menu_2.hideOnMouseOut=true;
  window.fw_menu_3 = new Menu("root",160,17,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#6699cc","#ffffff","#ffffff");
  fw_menu_3.addMenuItem("login/register    ","location='https://" + hostname + "/account/index.php" + session_1 + "'");
  fw_menu_3.addMenuItem("edit your account","location='https://" + hostname + "/account/data.php" + session_1 + "'");
  fw_menu_3.addMenuItem("edit your want list","location='https://" + hostname + "/account/want.php" + session_1 + "'");
  fw_menu_3.addMenuItem("change your password","location='https://" + hostname + "/account/password.php" + session_1 + "'");
  fw_menu_3.addMenuItem("terms & conditions","location='http://" + hostname + "/account/terms.php" + session_1 + "'");
  fw_menu_3.addMenuItem("how to . . .","location='http://" + hostname + "/account/howto.php" + session_1 + "'");
   fw_menu_3.hideOnMouseOut=true;
  window.fw_menu_4 = new Menu("root",170,17,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#6699cc","#ffffff","#ffffff");
  fw_menu_4.addMenuItem("third party grading    ","location='http://" + hostname + "/services/grading.php" + session_1 + "'");
  fw_menu_4.addMenuItem("sell your stamps    ","location='http://" + hostname + "/services/index.php" + session_1 + "'");
  fw_menu_4.addMenuItem("appraisals","location='http://" + hostname + "/services/appraisals.php" + session_1 + "'");
  fw_menu_4.addMenuItem("send your want list","location='http://" + hostname + "/account/want.php" + session_1 + "'");
  fw_menu_4.addMenuItem("our sales history","location='http://" + hostname + "/services/sales.php" + session_1 + "'");
  fw_menu_4.addMenuItem("subscribe to newsletter","location='http://" + hostname + "/services/subscribe.php" + session_1 + "'");
  fw_menu_4.addMenuItem("unsubscribe from newsletter","location='http://" + hostname + "/services/unsubscribe.php" + session_1 + "'");
   fw_menu_4.hideOnMouseOut=true;
  window.fw_menu_5 = new Menu("root",112,17,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#6699cc","#ffffff","#ffffff");
  fw_menu_5.addMenuItem("contact us        ","location='http://" + hostname + "/contact/index.php" + session_1 + "'");
   fw_menu_5.hideOnMouseOut=true;

  fw_menu_5.writeMenus();
} // fwLoadMenus()

