/****************************************************************************************
* By: Peter C. Y. Leung                                                                 *
* For: CryptoMail.org                                                                   *
* Date: November 23, 2004                                                               *
* Version: 0.9                                                                          *
* Site: http://www.dynamicspectra.com/cryptomail                                        *
* Desciption: Javascript to create mouse over and out event images, and place message   *
*             status bar.                                                               *
* Copyright 2000-2004 CryptoMail.org, San Francisco, California, U.S.A.                 *
****************************************************************************************/
if (document.images) {
	// Pre-load images
	var button_up = new Array();
	var manual_up = new Array();

	button_up["sign_up"] = new loadImage(115, 26, "images/navigators/signup2.gif", "images/navigators/signup1.gif", "Click here to sign up a CrytoMail account.");
	button_up["login"] = new loadImage(115, 23, "images/navigators/login2.gif", "images/navigators/login1.gif", "Click here to login your CrytoMail account.");
	button_up["change_passphrase"] = new loadImage(185, 23, "images/navigators/changepassphrase2.gif", "images/navigators/changepassphrase1.gif", "Click here to change passphrase of your CryptoMail account.");
	button_up["download"] = new loadImage(115, 23, "images/navigators/download2.gif", "images/navigators/download1.gif", "Click here to download CrytoMail Email System.");

	button_up["about_cryptomail"] = new loadImage(110, 30, "images/navigators/topnavabout2.gif", "images/navigators/topnavabout1.gif", "Click here back to About CryptoMail.");
	button_up["getting_started"] = new loadImage(97, 30, "images/navigators/topnavgetting2.gif", "images/navigators/topnavgetting1.gif", "Click here back to Getting Started.");
	button_up["documentation"] = new loadImage(97, 30, "images/navigators/topnavdocumentation2.gif", "images/navigators/topnavdocumentation1.gif", "Click here back to Documentation");
	button_up["forum"] = new loadImage(48, 29, "images/navigators/topnavforum2.gif", "forum/images/navigators/topnavforum1.gif", "Click here back to Forum.");
	button_up["faqs"] = new loadImage(41, 29, "images/navigators/topnavfaqs2.gif", "images/navigators/topnavfaqs1.gif", "Click here back to Frequrently Asked Questions.");

}

function loadImage(width, height, over_src, out_src, status) {
	this.over = new Image(width, height);
	this.over.src = sub_dir+over_src;
	this.out = new Image(width, height);
	this.out.src = sub_dir+out_src;
	this.status = status;
}

function overReaction(reaction_name) {
	document.images[reaction_name].src = button_up[reaction_name].over.src;
	self.status = button_up[reaction_name].status;
	return(true);
}

function outReaction(reaction_name) {
	document.images[reaction_name].src = button_up[reaction_name].out.src;
	self.status = "Welcome to CryptoMail.org.";
	return(true);
}
/************************************ End of File **************************************/