/*
Global Utility functions:

1. setupViewAdminLinks(); = creates the button at the bottom of the page that links to the login page

2. setupSubscribeValidation(); = sets up the subscribe area with validation and binds the click event to the subscribe button

3. setupContactValidation(); = sets up the contact form with validation and binds the click event to contact button

4. setupLoginValidation(); = sets up the login page with validation and binds the click event to login button

Action functions:

1. performLogin(); =  performs an ajax call to php/perform_login.php.  It is a makeshift attempt at creating a more secure way to view the pages comments and subscribers.  Login credentials are held in the php/perform_login.php.  This is a quick work around without creating a complete php application.  No database required


2. performSubscribe(); = performs an ajax call to php/subscribe.php.  It saves the data to the php/csv/subscribers.csv file.  It can be viewed once you have passed through the login.  I did it this way to make it super simple to setup.  No database is required.


3. performSubscribe(); = performs an ajax call to php/contact_form.php.  Data gets saved from the contact form into the php/csv/contacts.csv file. It can be viewed once you have passed through the login.  I did it this way to make it super simple to setup.  No database is required.


Page functions: Each page has its own javascript file located in the js/pages directory which sets up needed elements for validation, font replacement, ui stuff... etc for the individual page.
 */

/*

'replacefont' is a global variable 

Determines whether or not you would like to have the font replaced.  

To turn it off, set it to false.
*/

var replacefont = true;

/*
var setupSuperfishMenu = function(){

   $('ul.mainmenu').superfish({

	delay: 0,

	hoverClass: 'menuhover'

   });

}
*/

/*$(document).ready(function() {
 setupSuperfishMenu();
});*/



if(replacefont){	

			 
   Cufon.replace('h1, h2, h3, #header-wrapper #toggle-controls #slideswrapper #slides #panel2 p,#header-wrapper #toggle-controls #slideswrapper #slides #panel3 p, a.buttons, #homepage-middle-wrapper #homepage-middle-content #quote p, #party-middle-wrapper #party-middle-content #quote p, #top-wrapper #top #main-menu a span, #super-content b,  #header-wrapper2 #header2 b, #categories ul li, .blog-title, .linetitle');

 Cufon.replace('#header2 a',{ hover: true });
 


}



 











