// JavaScript Document
function changeText (contentType)
{
	//alert("test function "+contentType);
	var c = []; //content
	var headingText = "";
	if (contentType=="Payroll")
	{
		headingText = "Payroll";
		c.push("<p>Profit Builders, Inc handles all aspects of your payroll needs. Our clients no longer have to worry about accurate payroll withholdings, garnishment withholding, and all the tax filing and reporting. Our service ensures employees receive their paychecks on time, all the time.</p><br />");
		c.push("<p>");
		c.push("<ul>");
		c.push("<li>Payroll Services include:</li><br />");
		c.push("</ul>");
		c.push("<div class='services_list'>Time and attendance polling from POS systems</div><br />");
		c.push("<div class='services_list'>401k withholding and remittance</div><br />");
		c.push("<div class='services_list'>Weekly, bi-weekly and semi-monthly processing is available</div><br />");
		c.push("<div class='services_list'>Employee maintenance: new hires, rate changes, terminations, address changes, etc.</div><br />");
		c.push("<div class='services_list'>Direct Deposit</div><br />");
		c.push("<div class='services_list'>Processing and remittance of garnishments</div><br />");
		c.push("<div class='services_list'>State new hire reporting</div><br />");
		c.push("<div class='services_list'>Benefits and other related deductions</div><br />");
		c.push("<div class='services_list'>Federal, state, and local tax deposits</div><br />");
		c.push("<div class='services_list'>Year end W-2 Processing</div><br />");		
		c.push("</p>");
	}
	else if (contentType=="AR")	
	{								
		headingText = "Accounts Receivable";
		c.push("<p id='AR_text'>Our fully integrated Accounts Receivable module will help you manage your house accounts/delayed payments. From the initial guest check transaction to the final collection, you will have all the reporting and support to highlight each customer's receivable balance. By invoicing quickly, posting payments timely, sending statements and providing aging reports, Profit Builders, Inc. will help you increase cash flow and minimize uncollectible accounts.</p>");
		c.push("<br />");
		c.push("<ul>");
		c.push("<li>Accounts Receivable Services include:</li><br />");
		c.push("</ul>");
		c.push("<div class='services_list'>Invoice processing and distribution</div><br />");
		c.push("<div class='services_list'>Statement processing and distribution</div><br />");
		c.push("<div class='services_list'>Aging reports</div><br />");
		c.push("<div class='services_list'>Receipt and posting of receivable collections</div><br />");		
	}   
	else if (contentType=="AP")	
	{								
		headingText = "Accounts Payable";
		c.push("<p>Profit Builders, Inc. processes the payment of vendor invoices according to vendor terms and consistent with each client's processing direction. Also specializing in the restaurant industry, we have experience with many of the major food suppliers. Our technology can support electronic data interfaces (EDI) with these food vendors which can reduce paper and also reduce manual processes. Our clients conduct final reviews prior to invoices being paid through an easy to use remote access capability. Key reports such as a check registers are available online.</p>");
		c.push("<br />");
		c.push("<ul>");
		c.push("<li>Accounts Payable Services include:</li><br />");
		c.push("</ul>");
		c.push("<div class='services_list'>Manual and electronic invoice payments</div><br />");
		c.push("<div class='services_list'>Payment of sales, payroll, real estate and property taxes</div><br />");
		c.push("<div class='services_list'>New vendor setup and vendor history</div><br />");
		c.push("<div class='services_list'>Duplicate invoice validation</div><br />");
		c.push("<div class='services_list'>Garnishment payments</div><br />");
		c.push("<div class='services_list'>Annual 1099 reporting</div><br />");		
	}  
	else if (contentType=="Reporting")	
	{								
		headingText = "Financial Reporting";
		c.push("<p>Profit Builders, Inc is committed to working closely with our clients. Not only will you receive timely and accurate financial statements, but we work together to assist in analyzing your results and helping you build your profitability! As a small business owner/entrepreneur, Profit Builders, Inc. provides the accounting knowledge and expertise to give you a competitive edge with your competition. We are always available to answer any questions you might have as you deal with your day to day business challenges and decisions.</p><br />");
		c.push("<ul>");
		c.push("<li>Financial Reporting Services include:</li><br />");
		c.push("</ul>");
		c.push("<div class='services_list'>P&L, Balance Sheet and Cash Flow Statements</div><br />");
		c.push("<div class='services_list'>Account Reconciliations</div><br />");
		c.push("<div class='services_list'>Budget Variance Reporting</div><br />");
		c.push("<div class='services_list'>Trend Analysis</div><br />");
		c.push("<div class='services_list'>Ad hoc reporting and analysis</div><br />");
		c.push("<div class='services_list'>Integrated Bank Reconciliations</div><br />");
		c.push("<div class='services_list'>GAAP and tax reporting consultation</div><br />");
		c.push("<div class='services_list'>Custom financial reporting</div><br />");			
	}  
	else if (contentType=="Consulting")	
	{								
		headingText = "Consulting";
		c.push("<p>Profit Builders Inc has assisted both the small business owner and large entrepreneur during the past 18 years.  We are consistently educating and training both the client and their staff on interpreting the financials and cash management reports within their organization.  The unlimited access our customers have with the Profit Builders staff enables them to absorb the results of their daily, weekly and monthly outcomes and make successful decisions based on that reporting.  Our fixed monthly fee gives each of our clients the invitation to contact us at any time to discuss their financial picture and financial future.  We truly are the partner they need to discuss business objectives as well as past results.<br /><br /> One of the most rewarding aspects of what we do each day comes when we see the successful results our customers achieve within their respective businesses.   Whether you have 2 employees or 2000 employees, we want to guide you through the decisions of day to day accounting functions and actively encourage your business decisions.</p><br />");}    
	
	document.getElementById('services_text').innerHTML = c.join("");
	document.getElementById('serv_header').innerHTML = headingText;     	
	
}

function randomTestamonial ()
{


//array of testimonials
var t = [
"<p><i>\"I went to Profit Builders, Inc after having two different outsourcing providers. With Profit Builders, I know my accounting needs are taken care of so I can focus my time on running great restaurants. Sam and his team are only a quick phone call away and and they know the restaurant industry and that's important for me.  From Payroll and Accounts Payable to financial preparation and consultation, I know we're in good hands.\"</i><Br /><Br /><b>Jeffrey Rothberg<Br />Owner and Operator Napa River Grill<br> Wild Eggs of Louisville</b><Br /></p>",

"<p><i>\"Since we partnered with Profit Builders, we've opened several new restaurants.  Their technology and expertise provides the accounting support I need to continue my growth strategy.\"</i><Br /><Br /><b>Brad Pryor<br />Papa John's Franchise Owner</b><br /><br /></p>",

"<p><i>\"Profit Builders is a First Class company that dedicates themselves to helping the franchisee run their business in the most efficient way possible. They allow me to get out to my restaurants and operate my business instead of spending time in my office. Their staff is professional, knowledgeable and prompt in everything they do.\"</i><Br /><Br /><b>Scott Waters<br />Owner of 24 franchise KFC Restaurants</b><br /><br /></p>",

"<p><i>\"In the restaurant business having a great experience every time is important. Profit Builders bases what they do on that same philosophy.  I've highly recommended their services to other restaurant operators.\"</i><Br /><Br /><b>Lee Staak<br />Hardees Franchise Owner</b><br /><br /></p>",

"<p><i>\"Profit Builders is everything I would have expected and hoped for; they are a great partner. When I have another opportunity to use their services I will not hesitate in the least.\"</i><Br /><Br /><b>Michael Grisanti<br />Entrepreneur and Private Investor<br /><br />Inductee, National Restaurant News Fine Dining Hall of Fame<br />Restaurant and Institutions Ivy Award Recipient</b><br /><br /></p>",

"<p><i>\"Profit Builders has provided our business with excellent support along with reliable and dependable service.  To say they are experts in their field, is an understatement.  They not only offer excellence in service but also, trust and confidence that the work is done correctly. Profit Builders is an enormous asset to our company.  They make available to us the time and freedom for us to care for our residents.\"</i><Br /><Br /><b>Susie Engles and Jennifer Maul<br />Owners - Reflection Living Senior Care<br /></b><br /><br /></p>",

"<p><i>\"We have been with Profit Builders for 8+ years now and I have nothing but great things to say about them!!!  They provide all the payroll and payable services for us.Profit Builders is there to offer suggestions and they show you what you need to watch, or if you prefer, they can say nothing and just do your books.  We enjoy the personal touch, having a person assigned to our account so we can get to know them. We truly believe that Profit Builders top priority IS your bottom line.....\"</i><Br /><Br /><b>Carla Sheperd<br />Right at Home Franchisee<br /></b><br /><br /></p>",

"<p><i>\"We've used Profit Builders for the past three years for all of our accounting needs and have been totally satisfied with their service. Besides being accurate, timely and reliable in all functional accounting areas, the company's ability to link our raw financial data into its computer systems has afforded us the utmost in convenience.  Additionally, Profit Builders has a very good understanding of the restaurant business.  They provide us with a comprehensive accounting solution that enables us both to control costs and focus on running a successful business.\"</i><Br /><Br /><b>Don Doyle<br />Owner of 23 franchised Qdoba restaurants<br />Former president of the U.S. division for KFC<br />Former CEO of the Carl's Jr. & Rally's chains</b><br /><br /></p>"
];


var r1 = getRandomNumber();

document.getElementById('test_div1').innerHTML = t[r1];

var r2 = getRandomNumber();

document.getElementById('test_div2').innerHTML = t[r2];

var r3 = getRandomNumber();

document.getElementById('test_div3').innerHTML = t[r3];
  
  function getRandomNumber()
  {
	  var r = Math.floor(Math.random()*t.length);
	  var ctr = 0;
	  while((r == r1 || r == r2) && ctr < 100)
	  {
		r = Math.floor(Math.random()*t.length);
		ctr++;
	  }
	  //alert(t.length + " " + r + " " + r1  + " " + r2 + " " + r3 );
	  return r;
	  
  }
	
}

/***********************************************************************************************************************
DOCUMENT: includes/javascript.js
DEVELOPED BY: Ryan Stemkoski
COMPANY: Zipline Interactive
EMAIL: ryan@gozipline.com
PHONE: 509-321-2849
DATE: 3/26/2009
UPDATED: 3/25/2010
DESCRIPTION: This is the JavaScript required to create the extension style menu.  Requires jQuery library
NOTE: Because of a bug in jQuery with IE8 we had to add an IE stylesheet hack to get the system to work in all browsers. I hate hacks but had no choice :(.
************************************************************************************************************************/
$(document).ready(function() {
	 
	//extension BUTTON ACTION (ON CLICK DO THE FOLLOWING)
	$('.extensionButton').click(function() {

		//REMOVE THE ON CLASS FROM ALL BUTTONS
		$('.extensionButton').removeClass('on');
		  
		//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
	 	$('.extensionContent').slideUp('normal');
   
		//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
		if($(this).next().is(':hidden') == true) {
			
			//ADD THE ON CLASS TO THE BUTTON
			$(this).addClass('on');
			  
			//OPEN THE SLIDE
			$(this).next().slideDown('normal');
		 } 
		  
	 });
	  
	
	/*** REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
	
	//ADDS THE .OVER CLASS FROM THE STYLESHEET ON MOUSEOVER 
	$('.extensionButton').mouseover(function() {
		$(this).addClass('over');
		
	//ON MOUSEOUT REMOVE THE OVER CLASS
	}).mouseout(function() {
		$(this).removeClass('over');										
	});
	
	/*** END REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
	
	
	/********************************************************************************************************************
	CLOSES ALL S ON PAGE LOAD
	********************************************************************************************************************/	
	$('.extensionContent').hide();

});

