// JavaScript Document
function submitForm()
{onmouseover="document.myform.send_btn.src='images/more_over.jpg';" 
onmouseout="document.myform.send_btn.src='images/more.fpg';" 
onclick="return val_form_this_page();"
}


function change1(picture) {
document.pic1.src = picture
}

function change2(picture) {
document.pic2.src = picture
}

function change3(picture) {
document.pic3.src = picture
}

function submitForm(picture) {
document.send_btn.src = picture
}

function change4(picture) {
document.pic4.src = picture
}

function change5(picture) {
document.pic5.src = picture
}

function change6(picture) {
document.pic6.src = picture
}

function change7(picture) {
document.pic7.src = picture
}

function change8(picture) {
document.pic8.src = picture
}

function change9(picture) {
document.pic9.src = picture
}

function change10(picture) {
document.pic10.src = picture
}

function change11(picture) {
document.pic11.src = picture
}

function change12(picture) {
document.pic12.src = picture
}


function change21(picture) {
document.pic21.src = picture
}

function change22(picture) {
document.pic22.src = picture
}

function change23(picture) {
document.pic23.src = picture
}


var popup = null;
var currLink;
function popupwin(foo) {
	currLink = foo;
	
   	popup = window.open('popup.html','foo', 'height=800,width=600,scrollbars=1,resizable=1,toolbar=1,location=1,status=1');
}

function popu() {
	
   	popup.document.getElementById("picarea").innerHTML = "<img alt='photo' src='" +currLink.href+ "' />";
alert(currLink.href)
}




// Open the popup window to hold the Flash movie (???.swf)

function wopen(url, name, w, h)
{
  // Fudge factors for window decoration space.
  // In my tests these work well on all platforms & browsers.
  w += 32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  // IE5 and other old browsers might allow a window that is
  // partially offscreen or wider than the screen. Fix that.
  // (Newer browsers fix this for us, but let's be thorough.)
  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height;
    wtop = 0;
   }
  var win = window.open(url,
    name,
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=no, resizable=no ');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();
}


//Check for the Flash Player version

function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}