<?php
include_once( 'php/cms2/CMS2.inc.php' );

class
ProductSideBox extends Sidebox
{
    function
title()
    {
        return
'Software <img src="images/spacer.gif" width="1" height="15">';
    }
    
    function
output()
    {
    
?>
    
    <!-- Image Maps-->
<map name="AHP_Map" onmouseover="RolloverOn('ahp');"  
onmouseout="RolloverOff('ahp');">
            <area shape="circle" alt="Buy Audio Hijack Pro" title="Buy Audio Hijack Pro" coords="10,67,8" href="/store/?SentBy=Frontpage">
            <area shape="circle" alt="Download Audio Hijack Pro" coords="10,45,8" href="/audiohijackpro/download.php?SentBy=Frontpage">
            <area shape="circle" alt="Get more information on Audio Hijack Pro" coords="10,23,8" href="/audiohijackpro/?SentBy=Frontpage">
            <area shape="rect" alt="Get more information on Audio Hijack Pro" coords="0,0,162,144" href="/audiohijackpro/">
    </map>
    
    <map name="AF_Map" onmouseover="RolloverOn('af');"  
onmouseout="RolloverOff('af');">
        <area shape="circle" alt="Buy Airfoil" coords="10,67,8" href="/store/?SentBy=Frontpage">
        <area shape="circle" alt="Download Airfoil" coords="10,45,8" href="/airfoil/download.php?SentBy=Frontpage">
        <area shape="circle" alt="Get more information on Airfoil" coords="10,23,8" href="/airfoil/?SentBy=Frontpage">
        <area shape="rect" alt="Get more information on Airfoil" coords="0,0,162,144" href="/airfoil/">
    </map>    

    <map name="FS_Map" onmouseover="RolloverOn('fs');"  
onmouseout="RolloverOff('fs');">
        <area shape="circle" alt="Buy Fission" coords="10,67,8" href="/store/?SentBy=Frontpage">
        <area shape="circle" alt="Download Fission" coords="10,45,8" href="/fission/download.php?SentBy=Frontpage">
        <area shape="circle" alt="Get more information on Fission" coords="10,23,8" href="/fission/?SentBy=Frontpage">
        <area shape="rect" alt="Get more information on Fission" coords="0,0,162,144" href="/fission/">
    </map>

    <map name="NC_Map" onmouseover="RolloverOn('nc');"  
onmouseout="RolloverOff('nc');">
        <area shape="circle" alt="Buy Nicecast" coords="10,67,8" href="/store/?SentBy=Frontpage">
        <area shape="circle" alt="Download Nicecast" coords="10,45,8" href="/nicecast/download.php?SentBy=Frontpage">
        <area shape="circle" alt="Get more information on Nicecast" coords="10,23,8" href="/nicecast/?SentBy=Frontpage">
        <area shape="rect" alt="Get more information on Nicecast" coords="0,0,162,144" href="/nicecast/">
    </map>

    <map name="FR_Map" onmouseover="RolloverOn('fr');"  
onmouseout="RolloverOff('fr');">
        <area shape="circle" alt="Get more information on Freebies" coords="10,23,8" href="/freebies/?SentBy=Frontpage">
        <area shape="rect" alt="Get more information on our Freebies" coords="0,0,162,144" href="/freebies/">
    </map>

    <map name="MERCH_Map" onmouseover="RolloverOn('merch');"  
onmouseout="RolloverOff('merch');">
        <area shape="circle" alt="Buy Rogue Amoeba merchandise" coords="10,67,8" href="https://www.rogueamoeba.com/store/merchandise/?SentBy=Frontpage">
        <area shape="circle" alt="Get more information on Rogue Amoeba merchandise" coords="10,23,8" href="/merchandise/?SentBy=Frontpage">
        <area shape="rect" alt="Get more information on Merchadise" coords="0,0,162,144" href="/merchandise/">
    </map>

<!-- End Image Maps-->

<div align="center">
<!--<div style="width:750px; height: 400px; background-image: url(/images/indeximages/bezel.png);">-->
    <table cellspacing="0" cellpadding="0" border="0">
        
        <!-- 1st row -->
        <tr align="center" valign="bottom"><td>

        <table align="center" cellspacing="0" cellpadding="5" width="100%" border="0"><tr>

            <td align="center" valign="bottom">
                    <img id="fs" src="/images/indeximages/fs_off.png" usemap="#FS_Map" border="0" width="162" height="144" alt="Fission">
                    <br><b>Fission</b> <small>v1.5.1</small>
                    <br><div align="center"><small>Fast, Lossless Audio Editing</small></div>
            </td>    

            <td align="center" valign="bottom">
                <img id="af" src="/images/indeximages/af_off.png" usemap="#AF_Map" border="0" width="162" height="144" alt="Airfoil">
                <br><b>Airfoil</b> <a href="/airfoil/mac/"><img src="/images/osx20.png" align="bottom" border="0" height="21" width="24" alt="Mac OS X Logo"></a> <a href="/airfoil/windows/"><img src="/images/win20.png" align="bottom" border="0" height="21" width="24" alt="Windows Logo"></a>
                <br><div align="center"><small>Send Any Audio To AirPort Express</small></div>                
             </td>    
    
              <td align="center" valign="bottom">    
                <img id="ahp" src="/images/indeximages/ahp_off.png" usemap="#AHP_Map" border="0" width="162" height="144" alt="Audio Hijack Pro">
                <br><b>Audio Hijack Pro</b> <small>v2.7.3</small>
                <br><div align="center"><small>Powerful Recording Of Any Audio</small></div>
            </td>
        </tr></table>

        </td></tr>

        <!-- 2nd row -->
        <tr align="center" valign="top"><td>

        <table align="center" cellspacing="0" cellpadding="5" border="0"><tr>
            <td align="center" valign="bottom">
                    <img id="nc" src="/images/indeximages/nc_off.png" usemap="#NC_Map" border="0" width="162" height="144" alt="Nicecast">
                    <br><b>Nicecast</b> <small>v1.8.6</small>
                    <br><div align="center"><small>Your Own Net Radio Station</small></div>
            </td>    

             <!--
             <td align="center" valign="bottom">
                <img id="ah" src="/images/indeximages/ah_off.png" usemap="#AH_Map" border="0" width="162" height="144" alt="Audio Hijack">
                <br><b>Audio Hijack</b> <small>v2.2.5</small>
                <br><div align="center"><small>Simple Audio Recording</small></div>
            </td>
            -->        
    
            <td align="center" valign="bottom">
                <img id="fr" src="/images/indeximages/fr_off.png" usemap="#FR_Map" border="0" width="162" height="144" alt="Freebies">
                <br><b>Freebies</b>
                <br><div align="center"><small>Free tools to use and enjoy</small></div>
            </td>
    
            <td align="center" valign="bottom">
                <img id="merch" src="/images/indeximages/merch_off.png" usemap="#MERCH_Map" border="0" width="162" height="144" alt="Merchandise">
                <br><b>Merchandise</b>
                <br><div align="center"><small>T-Shirts &amp; Plush Toys</small></div>
            </td>
        </tr></table>

        </td></tr>

    </table>
<!-- </div>    -->
</div>

    <?
    
}
}

class
NewsSidebox extends Sidebox
{
    
    function
output()
    {

        
$news = readNewsItems( 2 );

        foreach(
$news as $item )
            echo
"<p>$item</p>\n";

        echo
'<a href="company/newsArchive.php">Older News...</a>';
    }
}



class
_SimpleSidebar extends Sidebar
{
    function
outputSidebox( $box )
    {
    
?>

        <tr><td>
            <? parent::outputSidebox(  $box ); ?>
        </td></tr>
    <?        
    
}
    
    function
output()
    {
        echo
'<table border="0" cellspacing="1" cellpadding="5"  width="100%">';
        
parent::output();
        echo
'</table>';
    }
}

function
_sidebox( $boxA, $boxB=NULL, $boxC = NULL )
{
    
$bar = new _SimpleSidebar;
    if(
$boxA ) $bar->addSidebox( $boxA );
    if(
$boxB ) $bar->addSidebox( $boxB );
    if(
$boxC ) $bar->addSidebox( $boxC );
    
$bar->output();
}

class
FrontPage extends PublicPage
{
        
    function
title()
    {
        return
"Quality Audio Software For Mac OS X";
    }

    function
navigationSections()
    {
        return
array_merge( parent::navigationSections(), array('main') );
    }
    
    function
displayMetas()
    {
        echo
'<link rel="alternate" type="application/rss+xml" title="RSS" href="http://rogueamoeba.com/utm/static/Company_News/index.rss">';
    }

    function
displayJavascript()
    {
        
parent::displayJavascript();
        
?>

imageNames = ["ahp", "nc", "af", "ah", "fr", "merch", "ss", "mc", "li"];
for(i = 0; i < imageNames.length; i++)
{
     tempImage = new Image();
     tempImage.src = "/images/indeximages/" + imageNames[i] + "_on.png";
}

function RolloverOn(theid) {
     document.getElementById(theid).src = "/images/indeximages/" +  
theid + "_on.png";
}

function RolloverOff(theid) {
     document.getElementById(theid).src = "/images/indeximages/" +  
theid + "_off.png";
}
        <?
    
}
    
    function
displayBody()
    {
        
?>
        <table border="0" cellpadding="3" width="80%" align="center">
        <tr>
            <td valign="top" align="left" bgcolor="#0066cc">
                <img src="/images/indeximages/sideways_products.gif" width="25" height="150" alt="Products sidebar text">
            </td>
            <td valign="top">
            <? _sidebox( new ProductSideBox ); ?>
            <!--<div align="center"><a href="/universal"><img src="/images/ub/universal.jpg" border="0" width="76" valign="middle"></a>
            <br>
            <a href="/universal">Information on compatability with Intel-based Macs</a></div>-->
            </td>
        </tr>    

        <tr>
            <td colspan="2" valign="top">
            <hr size="1">
            </td>
        </tr>
        
        <tr>
            <td valign="top" align="left" bgcolor="#0066cc">
                <img src="/images/indeximages/sideways_news.gif" width="25" height="150" alt="News sidebar text">
            </td>        
            <td valign="top">
                <? _sidebox( new NewsSidebox ); ?>
            </td>
        </tr>

        </table>
        <?
    
}

}





$page = new FrontPage();
$page->output();

?>