<!-- This will hide the javascript from browsers which do not support it.

/**
****************************************************************************

                       imageHL ( defunct )

 This function is called by the mouse over event for the images in the
 top navigator ( home, about agrarian, our services, scope of works, news 
 and contact us ). Parameters are the name of the image to be displayed
 and the image number in relation to its position on the page.

****************************************************************************
*/

var nImage=null;
function imageHL(newImage, imageNum) 
  {
    var startNum = 0 + imageNum
    nImage = "images/top_nav/" + newImage + "text.jpg";
    document.images[startNum].src = nImage;
  }

/**
****************************************************************************

                       loadImages ( defunct)

 This function pre loads the images for the rollovers.   

****************************************************************************
*/

function loadImages() {

    wHome = new Image();
    wHome.src = "images/top_nav/white_home_text.jpg";
    yHome = new Image();
    yHome.src = "images/top_nav/yellow_home_text.jpg";
    wAbout = new Image();
    wAbout.src = "images/top_nav/white_about_agrarian_text.jpg";
    rAbout = new Image();
    rAbout.src = "images/top_nav/red_about_agrarian_text.jpg";
    wServices = new Image();
    wServices.src = "images/top_nav/white_our_services_text.jpg";
    pServices = new Image();
    pServices.src = "images/top_nav/purple_our_services_text.jpg";
    wWorks = new Image();
    wWorks.src = "images/top_nav/white_scope_of_works_text.jpg";
    bWorks = new Image();
    bWorks.src = "images/top_nav/blue_scope_of_works_text.jpg";
    wNews = new Image();
    wNews.src = "images/top_nav/white_news_text.jpg";
    gNews = new Image();
    gNews.src = "images/top_nav/grey_news_text.jpg";
    wContact = new Image();
    wContact.src = "images/top_nav/white_contact_us_text.jpg";
    gContact = new Image();
    gContact.src = "images/top_nav/green_contact_us_text.jpg";     
}
/**
****************************************************************************

                       updateIframes 

 This function updates both iframes at the same time.   

****************************************************************************
*/

function updateIframes( nav, view )
{
  
  parent.document.frames[0].location = nav
  parent.document.frames[1].location = view 
  //parent.document.location="#TOP"

}

/*
****************************************************************************

                       openDoc 

 This function opens the documents displayed in the view in a new browser 
 window without any of the furniture.
   

****************************************************************************
**/
function openDoc( docUrl, docType ) {
  // Declare variables
  var windowHeight;
  var windowWidth;
  windowHeight='500' ;
  windowWidth='700' ;
  windowLeft='left='+window.left+300;
  windowTop='100';
  var newWindow=window.open( '','','dependent=no,toolbar=no,menubar=no,location=no,directories=no,modal=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+windowWidth+',height='+windowHeight+'');
  var windowInfo='<HTML><HEAD><TITLE>Loading</TITLE></HEAD><BODY>Document loading, please wait....</BODY></HTML>' ;
  newWindow.document.write(windowInfo);
  // Load the document and set the focus to the new window
  newWindow.location.href=docUrl;
  newWindow.focus()
}
// end hiding javascript -->
