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_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_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following information is required:\n'+errors);
  document.MM_returnValue = (errors == '');
}

//////////////////////////
// Email Obfuscator
// <a href="/site_map.phtml" onMouseOver="SetHREF(this, 'kyle', 'firstnetimpressions', 'com', 'FNI - Website Inquiry')" onFocus="SetHREF(this, 'kyle', 'firstnetimpressions', 'com', 'FNI - Website Inquiry')"><script>address("kyle", "firstnetimpressions", "com");< /script></a>
//////////////////////////

function address(name, dom, tld)
{
  var addr = name + '@' + dom + '.' + tld;
  document.write(addr);
}

function SetHREF(obj, box, dom, tld, sbj)
{
  var addr = 'mailto:' + box + '@' + dom + '.' + tld;
  addr = (sbj != null) ? addr + '?subject=' + sbj : addr;
  obj.href = addr;
}


/***********************************************************
  Random Refresh - Right Photo and Accompanying Caption
***********************************************************/

G_total_sa = 0;                                 // total random elements
G_day = new Date();                             // date for seed
G_seed = G_day.getTime();                       // G_seed for random number

ae_('<img src="/images/photos/wakeboard_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/water_tour.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/nature_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/sailboat_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/around_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/kayak_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/stroll_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/sunset_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/golf_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/highway_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/feet_wet.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/links_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/pontoon_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/market_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/playground_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/wildflowers_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/buoy_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/winter_boys_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/autumnfest_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/market_baby_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/ice_fishing_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/iceboat_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/cocoa_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/moonrise_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/iceskating_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/runners_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/veggies_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/firetruck_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/firegirl_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/dahlia_girl_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/players_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/waterskiers_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/vintageboat_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/wakeboard2_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/beachdance_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/fireworks_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');
ae_('<img src="/images/photos/swimming_photo.jpg" alt="Explore White Bear" width="210" height="290"><br />');

// Create image/link object array
function ae_ (description) {
        G_total_sa++;
        sa [G_total_sa] = description;
}

// Create a random number from 1 to total number of array elements
function rand() {
RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_sa + 1,10);
        return RN;
}

// Create the image/link object array
function sa () {}

// Matches the side image with the top image
function pair() {
	if (RN == 1) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/wakeboard_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 2) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/canoe_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 3) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/nature_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 4) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/sailboat_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 5) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/around_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 6) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/kayak_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 7) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/stroll_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 8) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/dock_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 9) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/golf_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 10) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/highway_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 11) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/baby_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 12) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/links_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 13) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/pontoon_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 14) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/market_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 15) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/playground_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 16) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/wildflowers_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 17) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/buoy_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	if (RN == 18) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/winter_boys_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    	if (RN == 19) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/autumnfest_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    	if (RN == 20) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/market_baby_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 21) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/ice_fishing_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 22) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/iceboat_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 23) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/cocoa_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 24) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/moonrise_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 25) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/iceskating_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 26) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/runners_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 27) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/veggies_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 28) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/firetruck_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 29) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/firegirl_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 30) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/dahlia_girl_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 31) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/players_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 32) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/waterskiers_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 33) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/vintageboat_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 34) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/wakeboard2_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 35) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/beachdance_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 36) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/fireworks_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    if (RN == 37) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/swimming_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
    else {
      document.writeln('');
  }
}

/***********************************************************
  Random Refresh - Right Photo and Accompanying Caption
***********************************************************/

G_total_sa1 = 0;                                 // total random elements
G_day1 = new Date();                             // date for seed
G_seed1= G_day1.getTime();                       // G_seed for random number

ae1_('<img src="http://www.explorewhitebear.org/images/photos/rudys_photo.jpg" alt="Rudys Redeye Grill" width="210" height="290"><br />');
ae1_('<img src="http://www.explorewhitebear.org/images/photos/countryinn_photo.jpg" alt="The White Bear Country Inn" width="210" height="290"><br />');
ae1_('<img src="http://www.explorewhitebear.org/images/photos/wedding_photo.jpg" alt="Rudys Redeye Grill" width="210" height="290"><br />');

// Create image/link object array
function ae1_ (description) {
        G_total_sa1++;
        sa1 [G_total_sa1] = description;
}

// Create a random number from 1 to total number of array elements
function rand1() {
RN1 = parseInt(((G_seed1 - (parseInt(G_seed1/1000,10) * 1000))/10)/100*G_total_sa1 + 1,10);
        return RN1;
}

// Create the image/link object array
function sa1 () {}

// Matches the side image with the top image
function pair1() {
	if (RN1 == 1) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/rudys_blurb.gif" width="210" height="82" alt="Rudys Redeye Grill">');
    }
    	if (RN1 == 2) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/countryinn_blurb.gif" width="210" height="82" alt="The White Bear Country Inn">');
    }
    	if (RN1 == 3) {
      document.writeln('<img src="http://www.explorewhitebear.org/images/blurbs/wedding_blurb.gif" width="210" height="82" alt="Explore White Bear">');
    }
	else {
      document.writeln('');
  }
}