/**
* javascripts for amplifund
* 10.16.07
*/


/** PRELOAD SCRIPT ------------------- BEGIN */

preload1 = new Image;
preload1.src = './images/index-on.gif';	
preload2 = new Image;
preload2.src = './images/services-on.gif';
preload3 = new Image;
preload3.src = './images/process-on.gif';
preload4 = new Image;
preload4.src = './images/about-on.gif';
preload5 = new Image;
preload5.src = './images/quote-on.gif';
preload6 = new Image;
preload6.src = './images/contact-on.gif';

/** PRELOAD SCRIPT --------------------- END */



/** ROLLOVER SCRIPT -------------------- BEGIN */

function on(name) {
	if (document[name])
	document[name].src = './images/' + name + '-on.gif';
}

function off(name){
	if (document[name])
	document[name].src = './images/' + name + '-off.gif';
}

/**
 * Code for calling rollover script
 * Include on webpage, is of no use here, just a reminder of what to include
 * <a href="#" onmouseover="on('name');" onmouseout="off('name');"><img src="./images/name-off.gif" width="58" height="29" border="0" name="name" alt="" /></a>
 *		 
 * 
 */

/** ROLLOVER SCRIPT -------------------------- END*/






/** EMAIL HIDER SCRIPT ----------------------------- BEGIN */
/**
 * Copyright (C) 2004, CodeHouse.com. All rights reserved.
 * CodeHouse(TM) is a registered trademark.
 *
 * THIS SOURCE CODE MAY BE USED FREELY PROVIDED THAT
 * IT IS NOT MODIFIED OR DISTRIBUTED, AND IT IS USED
 * ON A PUBLICLY ACCESSIBLE INTERNET WEB SITE.
 *
 * Script Name: E-mail Hider
 *
 * You can obtain this script at http://www.codehouse.com
 */

function email(name, domain, suffix, text)
{
   var address = name + "\u0040" + domain + "." + suffix;
   var url = "mailto:" + address;

   if( ! text )
   {
      text = address;
   }

   document.write("<a href=\"" + url + "?subject=Amplifund.com&nbsp;Visitor&nbsp;Question" + "\">" + text + "</a>");
}

/** EMAIL HIDER SCRIPT ----------------------------- END*/






/** DAUGHTER WINDOW SCRIPT ------------------------- BEGIN */

function newWindow(URL) {
	window.open(URL, "daughterwin", "width=580,height=480,top=20,left=20,resizable=yes,scrollbars=yes,toolbar=yes,location=no,always raised")
}
 
/** DAUGHTER WINDOW SCRIPT ------------------------- END */



/** CLOSE (DAUGHTER) WINDOW SCRIPT ------------------------------ BEGIN */

/**
 * This script goes directly into the <a href> tag like this:
 * <a href="javascript:self.window.close();">Close window</a>
 *
 * Having it here is a simple reminder/notation, 
 * but, alas will do nothing just sitting here.
 */
 
/** CLOSE (DAUGHTER) WINDOW SCRIPT ------------------------------ END */






/** BACK ONE PAGE SCRIPT ------------------------------ BEGIN */

/**
 * This script goes directly into the <a href> tag like this:
 * <a href="javascript:history.back(1)">back</a>
 *
 * Having it here is a simple reminder/notation, 
 * but, alas will do nothing just sitting here.
 * 
 * NOTE: FOR ACCESSIBILITY do I need a <noscript> statement?
 *		 Where on the Web page is the <noscript> statment placed?
 */
 
/** BACK ONE PAGE SCRIPT ------------------------------ END */



