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_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_nbGroup(event, grpName) { //v6.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])? args[i+1] : img.MM_up);
      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") {
    nbArr = document[grpName];
    if (nbArr)
      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])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var oWin = window.open(theURL,winName,features);
  if (! oWin) {
     var str = "You have popup windows blocked in your browser\n";
	 str += "which is often done to block unwanted advertisement.\n";
	 str += "This site uses these popup windows for ease of navigation\n";
	 str += "and not for advertisement.\n";
	 str += "Therefore please allow popup windows for this site\n";
	 str += "to view the content behind the 'More...' links.\n\n"
	 str += "In the Google toolbar this is done by clicking on the pop-blocker button;\n";
	 str += "and in Firefox you can add this site to the allowed sites under \n";
	 str += "Tools -> Options -> Web Features.\n";
	 str += "For other 'Ad-Blockers' please see it's documentation.\n\n\n";
	 str += "Thank you!";
	 alert (str); 
     }
  else {
	 oWin.focus();
     }
  return false;
}

function MM_openBrWindowA(theURL,winName) {
	return MM_openBrWindow(theURL,winName,'scrollbars=yes,resizable=yes,width=790,height=600');
}

// make the actions on the buttons a bit shorter
function b11() {MM_nbGroup('down','group1','home',       '/images/ButtonsDown_01.gif',1);}
function b21() {MM_nbGroup('down','group1','feedback',   '/images/ButtonsDown_02.gif',1);}
function b31() {MM_nbGroup('down','group1','contact',    '/images/ButtonsDown_03.gif',1);}
function b41() {MM_nbGroup('down','group1','about',      '/images/ButtonsDown_04.gif',1);}
function b51() {MM_nbGroup('down','group1','services',   '/images/ButtonsDown_05.gif',1);}
function b61() {MM_nbGroup('down','group1','articles',   '/images/ButtonsDown_06.gif',1);}
function b71() {MM_nbGroup('down','group1','allforms',   '/images/ButtonsDown_07.gif',1);}
function b81() {MM_nbGroup('down','group1','gallery',    '/images/ButtonsDown_08.gif',1);}
function b91() {MM_nbGroup('down','group1','newsletter', '/images/ButtonsDown_09.gif',1);}

function b12() {MM_nbGroup('over','home',       '/images/ButtonsSelect_01.gif','/images/ButtonsDone_01.gif',1);}
function b22() {MM_nbGroup('over','feedback',   '/images/ButtonsSelect_02.gif','/images/ButtonsDone_02.gif',1);}
function b32() {MM_nbGroup('over','contact',    '/images/ButtonsSelect_03.gif','/images/ButtonsDone_03.gif',1);}
function b42() {MM_nbGroup('over','about',      '/images/ButtonsSelect_04.gif','/images/ButtonsDone_04.gif',1);}
function b52() {MM_nbGroup('over','services',   '/images/ButtonsSelect_05.gif','/images/ButtonsDone_05.gif',1);}
function b62() {MM_nbGroup('over','articles',   '/images/ButtonsSelect_06.gif','/images/ButtonsDone_06.gif',1);}
function b72() {MM_nbGroup('over','allforms',   '/images/ButtonsSelect_07.gif','/images/ButtonsDone_07.gif',1);}
function b82() {MM_nbGroup('over','gallery',    '/images/ButtonsSelect_08.gif','/images/ButtonsDone_08.gif',1);}
function b92() {MM_nbGroup('over','newsletter', '/images/ButtonsSelect_09.gif','/images/ButtonsDone_09.gif',1);}

function b03() {MM_nbGroup('out');}

function SayThankyou() {
  document.open('thankyou.php','thankyou','toolbar=yes,scrollbars=yes,resizable=yes,width=640,height=600');
}
