/********************************************/
/*   using: Handcode Toolkit v1.0           */
/*   Copyright 2004 Incus Web Works         */
/********************************************/


//build and locate template
_build('border', 'xZero', 'yZero', 800, 567, 'all', 'border: 1px solid #000000;', '<img src="images/spacer.gif" width=1>'); 
_build('top', 'xZero+1', 'yZero+1', 800, 72, 'all', 'background-color: #ececec', '<img src="images/spacer.gif" width=1>'); 
_build('left', 'xZero+1', 'yZero+73', 156, 410, 'all', 'background-color: #ececec', '<img src="images/spacer.gif" width=1>'); 
_build('bottom', 'xZero+1', 'yZero+483', 800, 85, 'all', 'background-color: #ececec', '<img src="images/spacer.gif" width=1>'); 
_build('logo', 'xCenter-91', 'yZero+523', '', '', 'all', 'background-color: #ececec', '<a href="index.php"><img src="images/logo.gif" width=182 border=0></a>'); 

//locate page components
_locate('largePictureBox', 'xZero+157', 'yZero+73', 644, 410);
_locate('smallPictureBox', 'xZero+1', 'yZero+1', 156, 52);
_locate('textBox', 'xZero+176', 'yZero+92', 605, 371);
//_locate('editBox', 'xZero+679', 'yZero+520', 120, '');
_locate('productTextBox', 'xZero+544', 'yZero+73', 242, 380);
_locate('productPictureBox', 'xZero+157', 'yZero+73', 387, 450);
_locate('linkBox', 'xZero+17', 'yZero+210', 170, 380);
_locate('move', 'xZero+170', 'yZero+485', 620, 20);
_locate('hitCounter', 'xZero+1', 'yZero+573', 800, 20);

//menu mouseover functions
function _BOver(ID, Over)	 {  _getSty(ID).color='#ffffff'; _getSty(ID).backgroundColor='#a2a2a2';  }
function _BOut(ID, Out)      {  _getSty(ID).color='#000000'; _getSty(ID).backgroundColor='#cbcbcb';  }
function _B2Over(ID, Over)	 {  _getSty(ID).color='#ffffff'; _getSty(ID).backgroundColor='#a2bfa2';  }
function _B2Out(ID, Out)     {  _getSty(ID).color='#000000'; _getSty(ID).backgroundColor='#cbd8cb';  }
function _SMOver(ID, Over)   {    }
function _SMOut(ID, Out)  {    }
function _SOver(ID)  {  _getSty(ID).color='#000000';  }
function _SOut(ID)  {  _getSty(ID).color='#bbbbbb';  }

//build main menu
_D('Button0', 'all'); _B('home', 'home.html', ''); _C();
_D('Button1', 'all'); _B('products', 'productLine.php', ''); _C();
_D('Button2', 'all'); _B('news', 'newsProducts.php', ''); _C();
_D('Button3', 'all'); _B('services', 'services.html', ''); _C();
_D('Button4', 'all'); _B('contact', 'contact.html', ''); _C();
//_D('Button4', 'all'); _B('contact', 'contact.php', ''); _C();

//*build page-based sub-menus*
//contact.html
_D('ContactButton1', 'all'); _B2('schaerer mayfield usa', 'contact.php', ''); _C();
_D('ContactButton2', 'all'); _B2('sales representatives', 'contactSales.php', ''); _C();
_D('ContactButton3', 'all'); _B2('general information', 'contactGeneral.html', ''); _C();

//news.html
_D('NewsButton1', 'all'); _B2('new products', 'newsProducts.php', ''); _C();
_D('NewsButton2', 'all'); _B2('events &amp;<br>announcements', 'newsEvents.php', ''); _C();
_D('NewsButton3', 'all'); _B2('training schedules', 'newsSchedule.php', ''); _C();

//serivces.html
_D('ServicesButton1', 'all'); _B2('educational programs', 'servicesEducational.html', ''); _C();
_D('ServicesButton2', 'all'); _B2('technical service<br>contract program', 'servicesTechnical.html', ''); _C();

//products
_locate('linkBox2', 'xZero+1', 'yZero+73', 170, 139);
_locate('linkBox3', 'xZero+158', 'yZero+483', 410, 30);

//locate main menu
xMenuOffest = 157;
buttonW = 129;
yMenu = 52;
menuW = 627;
_locate('Button0', 'xZero+xMenuOffest', 'yZero+yMenu', '', '');
_locate('Button1', 'xZero+xMenuOffest+buttonW', 'yZero+yMenu', '', '');
_locate('Button2', 'xZero+xMenuOffest+2*buttonW', 'yZero+yMenu', '', '');
_locate('Button3', 'xZero+xMenuOffest+3*buttonW', 'yZero+yMenu', '', '');
_locate('Button4', 'xZero+xMenuOffest+4*buttonW', 'yZero+yMenu', '', '');

//function activates "layout assistance" tool for development
//initDev();

