public void createPromotionTab(JPanel tab)
	{
        promoteLayout customLayout = new promoteLayout();
        
        //setup all the promotion components
        
        tab.setFont(new Font("Helvetica", Font.PLAIN, 12));
        tab.setLayout(customLayout);
	   
        new JLabel("Flyers will be posted around your neighborhood");
        new JLabel("for 5 days in a cost of $50.00");
        
        JButton flyerButton = new JButton("Buy Flyers for $50.00");
        flyerButton.setFont(new Font("Tahoma", Font.BOLD, 12));
        tab.add(flyerButton);
        
        new JLabel("Coupons will be given to customers ");
        new JLabel("after each purchase for 5 days in a cost of $80.00");
        
        JButton couponButton = new JButton("Buy Coupons for $80.00");
        couponButton.setFont(new Font("Tahoma", Font.BOLD, 12));
        tab.add(couponButton);
        
        new JLabel("Your store's advertisements will appear ");
        new JLabel("in popular magazines for 5 days in a cost of $300.00");

        JButton adButton = new JButton("Buy Magazine Ads for $300.00");
        adButton.setFont(new Font("Tahoma", Font.BOLD, 12));
        tab.add(adButton);
        
        new JLabel("Your store will appear in TV commercials");
        new JLabel("for 5 days in a cost of $500.00");
        
        JButton comButton = new JButton("Buy TV Commercials for $500.00");
        comButton.setFont(new Font("Tahoma", Font.BOLD, 12));
        tab.add(comButton);
        
        JLabel pageTitle = new JLabel("Choose from the following promotion " +
        	"plans to increase the popularity of your store."); 
        JLabel pageTitle2 = new JLabel("Roll over each purchase plan for a description.");
        tab.add(pageTitle);
        tab.add(pageTitle2);
        
        desc1 = new JLabel("");
        desc2 = new JLabel("");
        
        new JLabel("");
        
        tab.add(desc1);
        tab.add(desc2);
        
        //Flyer button purchase
        flyerButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                
                if (money < 200)
                {
                	//if not enough money to purchase flyers, do
                    //not subtract funds and issue an error message
                    JOptionPane.showMessageDialog(drinkDialog,
                        "This Promotion Plan Requires a Fund Surplus of at least $200",
                        "Promotion Plan Purchase Failed",
                        JOptionPane.ERROR_MESSAGE);
                        return;
                }
                money -= 50;
                expenses[sindex] += 50;
                moneyfield.setText(df.format(money));
                    
                JOptionPane.showMessageDialog(drinkDialog,
                        "Thank you for buying the flyers promotion plan.",
                        "Promotion Plan Purchased",
                        JOptionPane.PLAIN_MESSAGE);    
                            
                min_cus = min_cus * 1.2f;
                max_cus = max_cus * 1.2f;
                diff_cus = max_cus - min_cus;
                flyer_flag = d + 5;    
                
                try
				{
			            doc.insertString(doc.getLength(), "Flyer Promotion Period Has Started.\n", events.getStyle("Black"));
					sp_events.getVerticalScrollBar().getModel().setValue(
					sp_events.getVerticalScrollBar().getModel().getMaximum());
				}
				catch (BadLocationException exc)
				{
					System.out.println("Bad Loc Exc");
				}
            }
        });
        
        flyerButton.addMouseListener(new MouseListener()
	    {
	    	public void mouseEntered(MouseEvent e)
	    	{
	    		desc1.setText("Flyers will be posted around your neighborhood");
	    		desc2.setText("for 5 days for a cost of $50.00");
	    	}    	
	    	public void mouseExited(MouseEvent e)
	    	{
	    		desc1.setText("");
	    		desc2.setText("");
	    	}
	    	public void mouseClicked(MouseEvent e)
	    	{
	    	}
	    	public void mousePressed(MouseEvent e)
	    	{
	    	}
	    	public void mouseReleased(MouseEvent e)
	    	{
	    	}

	    });
        
        //Coupon button purchase
        couponButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                
                if (money < 500)
                {
                    //if not enough money to purchase coupons, do
                    //not subtract funds and issue an error message
                    JOptionPane.showMessageDialog(drinkDialog,
                        "This Promotion Plan Requires a Fund Surplus of at least $500",
                        "Promotion Plan Purchase Failed",
                        JOptionPane.ERROR_MESSAGE);
                        return;
                }
                money -= 80;
                expenses[sindex] += 80;
                moneyfield.setText(df.format(money));
                    
                JOptionPane.showMessageDialog(drinkDialog,
                        "Thank you for buying the coupon promotion plan.",
                        "Promotion Plan Purchased",
                        JOptionPane.PLAIN_MESSAGE);    
                            
                min_cus = min_cus * 1.5f;
                max_cus = max_cus * 1.5f;
                diff_cus = max_cus - min_cus;
                coupon_flag = d + 5; 
                
                try
				{
			            doc.insertString(doc.getLength(), "Coupon Promotion Period Has Started.\n", events.getStyle("Black"));
					sp_events.getVerticalScrollBar().getModel().setValue(
					sp_events.getVerticalScrollBar().getModel().getMaximum());
				}
				catch (BadLocationException exc)
				{
					System.out.println("Bad Loc Exc");
				}   
            }
        });
        
        couponButton.addMouseListener(new MouseListener()
	    {
	    	public void mouseEntered(MouseEvent e)
	    	{
	    		desc1.setText("Coupons will be given to customers");
	    		desc2.setText("after each purchase for 5 days for a cost of $80.00");
	    	}    	
	    	public void mouseExited(MouseEvent e)
	    	{
	    		desc1.setText("");
	    		desc2.setText("");
	    	}
	    	public void mouseClicked(MouseEvent e)
	    	{
	    	}
	    	public void mousePressed(MouseEvent e)
	    	{
	    	}
	    	public void mouseReleased(MouseEvent e)
	    	{
	    	}

	    });
        
        //magazine ad button purchase
        adButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                
                if (money < 1000)
                {
                    //if not enough money to purchase ads, do
                    //not subtract funds and issue an error message
                    JOptionPane.showMessageDialog(drinkDialog,
                        "This Promotion Plan Requires a Fund Surplus of at least $1000",
                        "Promotion Plan Purchase Failed",
                        JOptionPane.ERROR_MESSAGE);
                        return;
                }
                money -= 300;
                expenses[sindex] += 300;
                moneyfield.setText(df.format(money));
                    
                 JOptionPane.showMessageDialog(drinkDialog,
                        "Thank you for buying the magazine promotion plan.",
                        "Promotion Plan Purchased",
                        JOptionPane.PLAIN_MESSAGE);
                            
                min_cus = min_cus * 1.75f;
                max_cus = max_cus * 1.75f;
                diff_cus = max_cus - min_cus;
                magazine_flag = d + 5;
                
                try
				{
			            doc.insertString(doc.getLength(), "Magazine Promotion Period Has Started.\n", events.getStyle("Black"));
					sp_events.getVerticalScrollBar().getModel().setValue(
					sp_events.getVerticalScrollBar().getModel().getMaximum());
				}
				catch (BadLocationException exc)
				{
					System.out.println("Bad Loc Exc");
				}
            }
        });
        
        adButton.addMouseListener(new MouseListener()
	    {
	    	public void mouseEntered(MouseEvent e)
	    	{
	    		desc1.setText("Your store's advertisements will appear");
	    		desc2.setText("in popular magazines for 5 days for a cost of $300.00");
	    	}    	
	    	public void mouseExited(MouseEvent e)
	    	{
	    		desc1.setText("");
	    		desc2.setText("");
	    	}
	    	public void mouseClicked(MouseEvent e)
	    	{
	    	}
	    	public void mousePressed(MouseEvent e)
	    	{
	    	}
	    	public void mouseReleased(MouseEvent e)
	    	{
	    	}

	    });
        
        //TV commercial button purchase
        comButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                
                if (money < 1500)
                {
                    //if not enough money to purchase commercial, do
                    //not subtract funds and issue an error message
                    JOptionPane.showMessageDialog(drinkDialog,
                        "This Promotion Plan Requires a Fund Surplus of at least $1500",
                        "Promotion Plan Purchase Failed",
                        JOptionPane.ERROR_MESSAGE);
                        return;
                }
                money -= 500;
                expenses[sindex] += 500;
                moneyfield.setText(df.format(money));
                    
                JOptionPane.showMessageDialog(drinkDialog,
                        "Thank you for buying the TV commercial promotion plan.",
                        "Promotion Plan Purchased",
                        JOptionPane.PLAIN_MESSAGE);    
                            
                min_cus = min_cus * 2;
                max_cus = max_cus * 2;
                diff_cus = max_cus - min_cus;
                tv_flag = d + 5;
                
                try
				{
			            doc.insertString(doc.getLength(), "Television Promotion Period Has Started.\n", events.getStyle("Black"));
					sp_events.getVerticalScrollBar().getModel().setValue(
					sp_events.getVerticalScrollBar().getModel().getMaximum());
				}
				catch (BadLocationException exc)
				{
					System.out.println("Bad Loc Exc");
				} 
            }
        });
        
        comButton.addMouseListener(new MouseListener()
	    {
	    	public void mouseEntered(MouseEvent e)
	    	{
	    		desc1.setText("Your store will appear in a TV commercial");
	    		desc2.setText("for 5 days for a cost of $500.00");
	    	}    	
	    	public void mouseExited(MouseEvent e)
	    	{
	    		desc1.setText("");
	    		desc2.setText("");
	    	}
	    	public void mouseClicked(MouseEvent e)
	    	{
	    	}
	    	public void mousePressed(MouseEvent e)
	    	{
	    	}
	    	public void mouseReleased(MouseEvent e)
	    	{
	    	}

	    });
	}