/*
**  include file: ping2.js -- replaces ping.js for files that appear in modal boxes (iframes)
**
**  (these pages do not include the main navigation, so do not require most of ping.js)
*/

$(document).ready(function() {
						   
		$(".green-box").corner('3px');

	//Generic button hover function -  
	//    img class name must match base file name
	//    outer anchor tag must have one of the following classes:
	//          gbtn - for a GIF button
	//          jbtn - for a JPG button
	//          pbtn - for a PNG button
		$(".jbtn").hover(
			function () {$(this).find("img").each(function() { this.src = '/images/'+$(this).attr("id")+'-over.jpg' });}, 
			function () {$(this).find("img").each(function() { this.src = '/images/'+$(this).attr("id")+'.jpg' });}
		);
		$(".gbtn").hover(
			function () {$(this).find("img").each(function() { this.src = '/images/'+$(this).attr("id")+'-over.gif' });}, 
			function () {$(this).find("img").each(function() { this.src = '/images/'+$(this).attr("id")+'.gif' });}
		);
		$(".pbtn").hover(
			function () {$(this).find("img").each(function() { this.src = '/images/'+$(this).attr("id")+'-over.png' });}, 
			function () {$(this).find("img").each(function() { this.src = '/images/'+$(this).attr("id")+'.png' });}
		);
		
	//CSS Button hovers
	$(".button").hover(
      function () {$(this).css("background-color", "#00a0b2");}, 
      function () {$(this).css("background-color", "#008998");
    });
	
	/**Close popup class (if not using submit function below)
	$(".modalCloseLink").click(parent.$.fn.colorbox.close(); return false;}); 
	**/

}) // end document.ready

function login_submit() {
	// Add submit code for Login form
	
	//This closes the modal box from inside iframe
	parent.$.fn.colorbox.close();
};
function register_submit() {
	// Add submit code for Registration form
	
	//This closes the modal box from inside iframe
	parent.$.fn.colorbox.close();
};
function contact_submit() {
	// Add submit code for Registration form
	
	//This closes the modal box from inside iframe
	parent.$.fn.colorbox.close();
};
function email_submit() {
	// Add submit code for Registration form
	
	//This closes the modal box from inside iframe
	parent.$.fn.colorbox.close();
};


