/* code written and copyrighted by iceqbe */
/* do not copy this code without my permission! */

function ad_insert()
{
  squadads = new Array
  ("43sqnraf.gif","http://www.royal-air-force.org.uk",
  "nngc1.gif","http://perso.wanadoo.fr/pascal.mechin", 
  "617sqnraf.gif","http://www.t-ahern.dircon.co.uk",
  "rof.gif","mailto:Lapwin <veninga@hscg.nl>",
  "uberfinns.gif","mailto:Grendel <jkauppin@muikku.jmp.fi>?cc=Kossu <tniiranen@netscape.net>");

  ind = Math.floor((squadads.length/2) * Math.random());
  if (squadads[2*ind+1].length>0)
  {
    if (squadads[2*ind+1].substr(0,7) == "mailto:")
    {document.write("<A HREF=\"",squadads[2*ind+1],"\"><IMG BORDER=0 HSPACE=10 ALT=\"We fly EMC! You too?\" SRC=\"../_ads/sq_",squadads[2*ind],"\"></A>");}
    else
    {document.write("<A HREF=\"",squadads[2*ind+1],"\" TARGET=\"_blank\"><IMG BORDER=0 HSPACE=10 ALT=\"We fly EMC! You too?\" SRC=\"../_ads/sq_",squadads[2*ind],"\"></A>");}
  }
  else
  {document.write("<IMG BORDER=0 HSPACE=10 ALT=\"We fly EMC! You too?\" SRC=\"../_ads/sq_",squadads[2*ind],"\">");}
}

function favmom_insert()
{
  favorites = new Array
  ("bombom1.html","True enough the con proved to be a FW, and he whizzed past without giving us a second thought.",
  "bombom2.html","The third TBF flew all the way home without elevator, with one aileron only, and landed successfully on his second try.",
  "dune1.html","I put my Thunderbolt into a nosedive. As my shaking Jug came up behind him, I really started sweating.",
  "esme1.html","I peered into the darkness ahead, looking for a target. Suddenly I spotted what I believed to be a factory complex ahead, with an AA site a couple of miles in front of it...",
  "flower1.html","... and I shot the first 262 kill that frame, man was I proud.",
  "grendl1.html","Aino waits, waits, waits and THEN pulls HARD BREAK to right, 'he can never pull enough deflection to this move' ...",
  "grendl2.html","I have NEVER, EVER seen such 'VICTORY! VICTORY! WE SURVIVED' ...",
  "grendl3.html","The RW radio filled with laughter and taunting to Neck and Neck himself kept swearing to us...",
  "grendl4.html","HIGH DOTS. SPITFIRES. A command is given: OUT; SOUTH. 110s begin a fighting retreat ...",
  "lapwin1.html","I had a ball as rookie CO, and was my most rememberal EMC-moment so far ...",
  "lemsko1.html","... when [we] found a whole Schwarm from Tangmere Wing who killed Ninja just as we started our battle. 5 min later ...",
  "randon1.html","We set off the spoof force and watched the dar... The moment of relief when the gold and red dots moved North ...",
  "seal1.html","I was on the tail of a 109 when, stupidly, I neglected to realise where his wingman was.... on my 6.",
  "tarzan1.html","... and I was hoping things would look better once we got in the air, or that the mission would be scrubbed at the last moment because of the weather. But this was not to be. The red flare went up right on schedule ...",
  "vati1.html","My first EMC COing after dozen of SLs as well... Great action, great teamwork...",
  "were1.html","I can't really describe how it feltto turn the tides."
  );

  ind = Math.floor((favorites.length/2) * Math.random());
  document.write("Favorite EMC moments: <I>&quot;",favorites[2*ind+1],"&quot;</I> <A HREF=\"../_favorites/",favorites[2*ind],"\">[Read&nbsp;more]</A>");
}

