// Alternate Table Row Colors
$(document).ready(function() {
  $('table.smallTable tbody tr:odd').addClass('odd');
  $('table.smallTable tbody tr:even').addClass('even');
  $('table.smallTable2 tbody tr:odd').addClass('odd');
  $('table.smallTable2 tbody tr:even').addClass('even');
  $('table.downloadsTable tbody tr:odd').addClass('odd');
  $('table.downloadsTable tbody tr:even').addClass('even');
  $('table.downloadsTable2 tbody tr:odd').addClass('odd');
  $('table.downloadsTable2 tbody tr:even').addClass('even');
  $('table.downloadsTable3 tbody tr:odd').addClass('odd');
  $('table.downloadsTable3 tbody tr:even').addClass('even');
  $('table.sstFind tbody tr:odd').addClass('odd');
  $('table.sstFind tbody tr:even').addClass('even');
  $('table.sstHelp tbody tr:odd').addClass('odd');
  $('table.sstHelp tbody tr:even').addClass('even');
  $('table.sstHelp2 tbody tr:odd').addClass('odd');
  $('table.sstHelp2 tbody tr:even').addClass('even');
  //$('table.pcastArchive tbody tr:odd').addClass('odd');
  //$('table.pcastArchive tbody tr:even').addClass('even');
});

// Automatically forward users to Community when they're logged in
var current = window.location.href;
/*if(current.indexOf("?Sec=Support&Page=SOS") != -1)
	{
	location.replace("http://community.shelbyinc.com/Authentication.aspx?id=25ccaa90-6786-45fd-90db-488957dfd166");
	}*/
	
// Get Date for Copyright
var now = new Date();
var year= now.getYear();

// Hack for Gecko and Web-Kit Y2K  Bug
if (year >= 100 && year <= 1999)
	{ 
		year = year + 1900
	}
	else {
		year = year
	}

// Check Checkbox for ePromo
/*$(document).ready(function() {
	if(current.indexOf("Page=CommerceHome&Control=Promo.ascx") != -1) //Make sure store is using the Promo.ascx control
		{
		$('input[name=designer1:_ctl1:_ctl0:ProductListing:_ctl2:List]').attr('checked', true);
		}
});*/

if(current.indexOf('Page=CustomWorkshops1') != -1){
	$(document).ready(function() 
	{
	   // Match all link elements with href attributes within the content div
	$('#one').qtip(
        {
               content: 'Hands on experience showing how to add and maintain Member records and track attendance.' 
        });

	$('#two').qtip(
        {
               content: 'Intermediate hands on look at controlling Membership records and Attendance reports. Some tips on developing policy and procedure.'
        });

	$('#three').qtip(
        {
               content: 'Practical hands on exercises to get started creating and running Membership reports.'
        });

	$('#four').qtip(
        {
               content: 'Taking reporting to the next level by improving skills with hands on examples that use criteria and develop complex reports.'
        });

	$('#five').qtip(
        {
               content: 'Hands-on practice of the basics of General Ledger day to day operations and the skills necessary to post and report on Contributions.'
        });

	$('#six').qtip(
        {
               content: 'An intermediate hands-on day covering reports, special reporting and tracking giving in more advanced ways. Some tips on developing policy and procedure.'
        });

	$('#seven').qtip(
        {
               content: 'Basic hands-on experience financials in the day to day use for these three modules  in writing checks, posting to the ledger and reconciling with the bank.'
        });

	$('#eight').qtip(
        {
               content: 'Intermediate hands-on lessons to help take more control of these three modules. No basic info provided.'
        });

	$('#nine').qtip(
        {
               content: 'A hands-on walkthrough of the basics of General Ledger day to day operations and getting started with Payroll.'
        });

	$('#ten').qtip(
        {
               content: 'A hands-on intermediate look at Ledger functions and maximizing payroll skills.'
        });

	$('#eleven').qtip(
        {
               content: 'Hands-on exercises to learn day to day operation in using these three modules. Writing checks, running reports and reconciling.'
        });

	$('#twelve').qtip(
        {
               content: 'Learning to maximize these modules by using hands-on exercises to run better reports, control input and interface.'
        });

	$('#thirteen').qtip(
        {
               content: 'A basic hands-on look at tracking giving, vendor activity and bank activity in Shelby.'
        });

	$('#fourteen').qtip(
        {
               content: 'Using hand-on exercises to make the most of your contributions, check activity and reconciling with the bank.'
        });

	$('#fifteen').qtip(
        {
               content: 'A basic hands-on look at entering members and tracking their contributions.'
        });

	$('#sixteen').qtip(
        {
               content: 'Learning to go to the next level in Membership and Contributions using hands-on exercises. Some tips on developing policy and procedure.'
        });

	$('#seventeen').qtip(
        {
               content: 'A lecture day giving a great overview of all the primary financial reports. Covers information for General Ledger, Accounts Payable, Contributions, Accounts Receivable and Bank Reconciliation.'
        });

	$('#eighteen').qtip(
        {
               content: 'A lecture day covering great tools and tricks for managing your data and developing good practice and maintenance schedules.'
        });

	$('#nineteen').qtip(
        {
               content: 'A lecture day walking through the process of receiving, assimilating and keeping a prospective member.'
        });

	$('#twenty').qtip(
        {
               content: 'A lecture day with a great overview of basic and intermediate skills involved in building reporting in the selections and listings tool. Some discussion of other modules use of Selections and Listings.'
        });

	$('#twentyone').qtip(
        {
               content: 'A lecture day covering these two very important ways to tag records. Discussion of best use of features and when to use one over the other.'
        });

	$('#twentytwo').qtip(
        {
               content: 'A lecture day with an overview of the Servant module and a good look at the best use of profiles.'
        });

	$('#twentythree').qtip(
        {
               content: 'A hands-on day of creating and editing basic queries using the query builder. Also some help in manually editing.'
        });

	$('#twentyfour').qtip(
        {
               content: 'An overview of the reporting tool of the ShelbyQuery module with hands-on exercises showing how to highly customize the fonts, graphics, and general look of the report.'
        });

	$('#twentyfive').qtip(
        {
               content: 'Experience how to make live connections of your Shelby data to Word, Excel, Publisher, and Outlook through hands-on exercises.'
        });

	$('#twentysix').qtip(
        {
               content: 'Work through building more advance query writing skills such as: sub-queries, table aliases, and advanced use of date data.'
        });

	$('#twentyseven').qtip(
        {
               content: 'Learn how to affect your Report Designer results by using VBScripting. This allow conditional formatting as well as  prompting for criteria for anyone who runs the report.'
        });
	});
}
