// JavaScript Document
function loadData(whichModel)
{

if (whichModel == 'autoGen')
     {
     showIt = document.getElementById('headline');

	 showIt.style.color = 'black';    
	 showIt.style.size = 32;
     showIt.style.fontFamily = 'Tahoma';
     showIt.style.fontWeight = 'bold';
    
     showIt.innerHTML = "This is your cap table";
     showIt = document.getElementById('subHeadline');
     
     string= '';
     string = 'You have '+ founders + ' founders. You need $' + comma(moneyNeeded*1000) + '. Liquidity will be achieved with ' + liquidity + '. The exit expectation is $' + comma(exitValue*1000) + '.';

     
     showIt.innerHTML = string;

     stockClassArray = [0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 2, 2, 2, 0, 0];
     seriesArray =     [0, 0, 6, 1, 6, 1, 1, 1, 1, 1, 2, 2, 3, 6, 6];    
     investorArray =   [0, 0, 1, 2, 2, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6];
     priceArray =      [0, 0, 0, 0, 0, .06, .06, .06, .06, .06, .52, .52, 2.32, 85.18, 85.18];
     sharesArray =     [38490304, 38490304, 14758800, 7118782, 0, 1600000, 1600000, 1600000, 1600000, 1842000, 23893800, 23893800, 6479000, 5462917, 14142135];
     optionsArray =     [0, 0, 0, 0, 105557498, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     shareholderArray =['founder', 'founder', 'Eric Schmidt', 'Other Employees', 'ESOP @ IPO', 'Bechtolsheim', 'Cheriton', 'Bezos', 'Shiriam', 'Stanford University', 'Kleiner Perkins', 'Sequoia', 'Many Investors', 'IPO Selling Shareholders', 'IPO Shares'];

     maxLines = 14;
     }
     
if (whichModel == 'google')
     {
     showIt = document.getElementById('headline');

	 showIt.style.color = 'black';    
	 showIt.style.size = 32;
     showIt.style.fontFamily = 'Tahoma';
     showIt.style.fontWeight = 'bold';
    
     showIt.innerHTML = "Google's Cap Table at the IPO - August 94";
     showIt = document.getElementById('subHeadline');
     showIt.innerHTML = 'The IPO made billionaires of Sergey Brin and Larry Page.<br/> $100k Angel investments were worth $136,000,000 at the IPO!';

     stockClassArray = [0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 2, 2, 2, 0, 0];
     seriesArray =     [0, 0, 6, 1, 6, 1, 1, 1, 1, 1, 2, 2, 3, 6, 6];    
     investorArray =   [0, 0, 1, 2, 2, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6];
     priceArray =      [0, 0, 0, 0, 0, .06, .06, .06, .06, .06, .52, .52, 2.32, 85.18, 85.18];
     sharesArray =     [38490304, 38490304, 14758800, 7118782, 0, 1600000, 1600000, 1600000, 1600000, 1842000, 23893800, 23893800, 6479000, 5462917, 14142135];
     optionsArray =     [0, 0, 0, 0, 105557498, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     shareholderArray =['Larry Page', 'Sergey Brin', 'Eric Schmidt', 'Other Employees', 'ESOP @ IPO', 'Bechtolsheim', 'Cheriton', 'Bezos', 'Shiriam', 'Stanford University', 'Kleiner Perkins', 'Sequoia', 'Many Investors', 'IPO Selling Shareholders', 'IPO Shares'];

     maxLines = 14;
     }
     
if (whichModel == 'quickOut')
     {
     showIt = document.getElementById('headline');

	 showIt.style.color = 'black';    
	 showIt.style.size = 32;
     showIt.style.fontFamily = 'Tahoma';
     showIt.style.fontWeight = 'bold';
    
     showIt.innerHTML = "$5,000,000 Raised - Successful Quick Out";
     showIt = document.getElementById('subHeadline');
     showIt.innerHTML = 'Start the company, add management, employees, and a board.<br/> Get some angel money, venture money, grow fast, sell out!';

     stockClassArray = [0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     seriesArray =     [0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0];    
     investorArray =   [0, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     priceArray =      [0.01, 0.25, 0.25, 0.25, 1.50, 5.06, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     sharesArray =     [700000, 0, 0, 0, 333333, 888888, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     optionsArray =     [0, 200000, 70000, 30000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     shareholderArray =['Founder', 'Key Exec', 'Employees', 'Board', 'Several Angels', '2 Venture Firms', '', '', '', '', '', '', '', '', ''];

     maxLines = 5;
     }

     
if (whichModel == 'bigCap')
     {
     showIt = document.getElementById('headline');

	 showIt.style.color = 'black';    
	 showIt.style.size = 32;
     showIt.style.fontFamily = 'Tahoma';
     showIt.style.fontWeight = 'bold';
    
     showIt.innerHTML = "$50,000,000 Raised - Successful Longer Term";
     showIt = document.getElementById('subHeadline');
     showIt.innerHTML = 'Start the company, add management, employees, and a board.<br/> Get some angel money, venture money, grow fast, sell out!';
     showIt.innerHTML = 'Big money needed. Lots of development and testing needed.<br/> A few angels get lucky. All done with BIG venture money.';

     stockClassArray = [0, 0, 0, 0, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0];
     seriesArray =     [0, 0, 0, 0, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0];    
     investorArray =   [0, 1, 2, 3, 4, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0];
     priceArray =      [0, 1.25, 1.25, 1.25, 3.25, 7.50, 19.34, 0, 0, 0, 0, 0, 0, 0, 0];
     sharesArray =     [1500000, 0, 0, 0, 500000, 2170000, 1810000, 0, 0, 0, 0, 0, 0, 0, 0];
     optionsArray =     [0, 500000, 500000, 250000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     shareholderArray =['Founder', 'Key Exec', 'Employees', 'Board', 'Several Angels', '2 Venture Firms', '3 Venture Firms', '', '', '', '', '', '', '', ''];

     maxLines = 6;
     }
     
     

     
if (whichModel == 'biotech')
     {
     showIt = document.getElementById('headline');

	 showIt.style.color = 'black';    
	 showIt.style.size = 32;
     showIt.style.fontFamily = 'Tahoma';
     showIt.style.fontWeight = 'bold';
    
     showIt.innerHTML = "BioTech. Formation. Big VC Up or Down. IPO.";
     showIt = document.getElementById('subHeadline');
     showIt.innerHTML = 'Surround team. Nail influencers. Start company. Drive science.<br/> Seek partners, $ support, distribution. Raise a big round.';

     stockClassArray = [0, 0, 0, 0, 0, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0];
     seriesArray =     [0, 0, 0, 0, 0, 1, 1, 2, 3, 6, 0, 0, 0, 0, 0];    
     investorArray =   [0, 0, 0, 1, 3, 4, 4, 5, 5, 6, 0, 0, 0, 0, 0];
     priceArray =      [0, 0, 0, 0, .05, .25, .5, 2.50, 7.00, 28.00, 0, 0, 0, 0, 0];
     sharesArray =     [10000000, 4000000, 1500000, 0, 1500000, 2000000, 3000000, 17500000, 11000000, 13350000, 0, 0, 0, 0, 0];
     optionsArray =     [0, 0, 0, 1500000, 1500000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     shareholderArray =['Founder - You!', 'Science Big Dog', 'Business Guy', 'Mgmt. & Peeps', 'Influencers', 'F&F and Angels', 'Partners', 'Big Venture $', 'Really Big VC $', 'Public Market', '', '', '', '', ''];

     maxLines = 9;
     }
     
     

     
if (whichModel == 'internet')
     {
     showIt = document.getElementById('headline');

	 showIt.style.color = 'black';    
	 showIt.style.size = 32;
     showIt.style.fontFamily = 'Tahoma';
     showIt.style.fontWeight = 'bold';
    
     showIt.innerHTML = "Internet StartUp. F&F, Angels, Venture.";
     showIt = document.getElementById('subHeadline');
     showIt.innerHTML = 'Start company, show prototype, get angels, get board,  get traffic.<br/> Get vc, add people, expose model, raise 2nd round, grow revenue!';

     stockClassArray = [0, 1, 0, 0, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0];
     seriesArray =     [0, 1, 0, 0, 2, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0];    
     investorArray =   [0, 4, 0, 0, 2, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0];
     priceArray =      [0.01, 0.75, 0.30, 0.30, 1.73, 0.50, 5.00, 5.00, 0, 0, 0, 0, 0, 0, 0];
     sharesArray =     [5000000, 600000, 0, 0, 4625000, 0, 1025000, 1025000, 0, 0, 0, 0, 0, 0, 0];
     optionsArray =     [0, 0, 100000, 250000, 0, 1000000, 0, 0, 0, 0, 0, 0, 0, 0, 0];
     shareholderArray =['Founder - You!', 'F&F and Angels', 'Influential Board', 'Business Exec.', '1st Venture Firm', 'Employee Option', '1st VC 2nd Dip', '2nd VC New!', '', '', '', '', '', '', ''];

     maxLines = 7;
     }
     
     
}    

