
function menu_button(button_name,idx,htm_where) {
button_start=100;
button_width=139;
button_height=25;
document.write('<div id="Layer' + eval(idx * 3 + 0 ) + '" style="position:absolute; left:10px; top:' + (button_start + (button_height * idx)) + 
				'px; width:' + button_width + 'px; height:' + button_height + 'px; z-index:' + eval(idx * 3 + 1 ) + '; visibility: visible;"> ');
document.write('	<img src="images/button_off.gif" border=0 width=' + button_width + ' height=' + button_height + '></a> ');
document.write('	</div> ');
document.write('<div id="Layer' + eval(idx * 3 + 1 ) + '" style="position:absolute; left:10px; top:' + (button_start + (button_height * idx)) + 
				'px; width:' + button_width + 'px; height:' + button_height + 'px; z-index:' + eval(idx * 3 + 2 ) + '; visibility: hidden;">  ');
document.write('    <img src="images/button_on.gif" border=0 width=' + button_width + ' height=' + button_height + '></a>  ');
document.write('    </div> ');
document.write('<div id="Layer' + eval(idx * 3 + 2 ) + '" style="position:absolute; left:0px; top:' + (button_start + (button_height * idx)) + 
				'px; width:' + button_width + 'px; height:23px; text-align=center; z-index:' + eval(idx * 3 + 3 ) + '; visibility: visible;"> '); 
document.write('    <a class="ccsSidebar" href="' + htm_where + '" target="_top" ');    
document.write('	onMouseover="document.getElementById(\'Layer' + eval(idx * 3 + 1 ) + '\').style.visibility=\'visible\';" ');
document.write('    onMouseout="document.getElementById(\'Layer' + eval(idx * 3 + 1 ) + '\').style.visibility=\'hidden\';" ');
document.write('    >' + button_name + '</a> '); 
document.write('	</div> ');
}

function top() {
document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
document.write('  <tr>  ');
document.write('    <td colspan="2" height="65"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   ');
document.write('		codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"   ');
document.write('		width="156" height="65" align="center"> ');
document.write('        <param name="movie" value="images/ccs_flash.swf"> ');
document.write('        <param name="quality" value="high"> ');
document.write('        <embed src="images/ccs_flash.swf" width="156" height="65"  quality="high"   ');
document.write('		pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>  ');
document.write('      </object> </td> ');
document.write('    <td class="ccsTitle" style="text-align: center;">Compatible Computer Services</td> ');
document.write('  </tr> ');
document.write('  <tr>  ');
document.write('    <td valign="top">&nbsp;  ');
			menu_button("Home","0","index.htm") ;
			menu_button("Sales & Service","1","salesservice.htm") ;
			menu_button("Restaurant POS","2","restaurant.htm") ;
			menu_button("Restaurant ROI","3","restaurant_roi.htm") ;
			menu_button("Retail POS","4","retail.htm") ;
			menu_button("Retail ROI","5","retail_roi.htm") ;
			menu_button("Our POS Products","6","products.htm") ;
			menu_button("Software Design","7","softdev.htm") ;
			menu_button("Downloads","8","download.php") ;
			menu_button("About Us","9","aboutus.htm") ;
			menu_button("Find Us","10","contact.htm") ;
document.write('    </td> ');	
document.write('    <td colspan="2">');	
}

function bottom() {
document.write('	  <table width="100%" border="0" cellpadding="0" cellspacing="0" >');
document.write('        <tr> ');
document.write('          <td valign="top" align="left" colspan="2" height="198"> <div style="text-align: center;">  ');
document.write('              <p  class="ccsblacks" style=" border-top-style: solid; ">Unit 20,  ');
document.write('                1000 Windmill Road, Dartmouth, NS B3B 1L7<br> ');
document.write('                <span class="ccsblacks" >(902) 420-1212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ');
document.write('                &nbsp;&nbsp;<a href="mailto:webmaster@ccshalifax.com"><font color="#0092DA">webmaster@ccshalifax.com</font></a></span></p> ');
document.write('            </div></td> ');
document.write('        </tr> ');
document.write('      </table> ');
document.write('</td></tr>');
document.write('<tr>');    // set menu width, etc with these 3 td's
document.write('  <td width=150></td>');
document.write('  <td width=16></td>');
document.write('  <td></td>');
document.write('</tr></table>');
}	

var rollOverArr=new Array();
function setrollover(OverImgSrc,pageImageName)
{
if (! document.images)return;
if (pageImageName == null)
    pageImageName = document.images[document.images.length-1].name;
rollOverArr[pageImageName]=new Object;
rollOverArr[pageImageName].overImg = new Image;
rollOverArr[pageImageName].overImg.src=OverImgSrc;
}

function rollover(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
if (! rollOverArr[pageImageName].outImg)
    {
    rollOverArr[pageImageName].outImg = new Image;
    rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;
    }
document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;
}

function rollout(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;
}