

 function divHeight()
 {
 var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
 
viewportheight = viewportheight - 215;

if (viewportheight > 600)
{
    document.getElementById('rightcontent').style.height = viewportheight + 'px';
    document.getElementById('leftcontent').style.height = viewportheight + 'px';
}
   
}




function urlMenu(that) {
	theURL = that.options[that.selectedIndex].value; 

	if (theURL) {
             window.open(theURL,"Window","width=800, height=600, left=0, top=0");
	}
}

function side_menu(opt)
{
//menu image width WAS 135, now 133

document.write('<table valign=\"top\" cellSpacing=\"0\" cellPadding=\"0\" width=\"165\" style=\"background-color: #003366; margin-top: 10px;\">');
document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" alt=\"pixel\"');
document.write(' width=\"23\" >');
if (opt != 1) 
{
    document.write('<a onmouseover=\"changeImages(\'image1\', \'image1on\')\"');
    document.write(' onmouseout=\"changeImages(\'image1\', \'image1off\')\"');
    document.write(' href=\"index.php\">');
    document.write('<img alt=\"Welcome\" src=\"files/homeoff.gif\"');
    document.write('  width=\"133\" name=\"image1\"></td></tr>');
}
    else 
{
    document.write('<a href=\"index.php\">');
    document.write('<img alt=\"Welcome\" src=\"files/homeon.gif\"');
    document.write('  width=\"133\" name=\"image1\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');

if (opt != 2)
{
    document.write('<a onmouseover=\"changeImages(\'image2\', \'image2on\')\"');
    document.write(' onmouseout=\"changeImages(\'image2\', \'image2off\')\"');
    document.write(' href=\"aboutus.php\">');
    document.write('<img alt=\"About Us\" src=\"files/aboutoff.gif\"');
    document.write('  width=\"133\" name=\"image2\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"aboutus.php\">');
    document.write('<img alt=\"About Us\" src=\"files/abouton.gif\"');
    document.write('  width=\"133\" name=\"image2\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');

if (opt != 3)
{
    document.write('<a onmouseover=\"changeImages(\'image3\', \'image3on\')\"');
    document.write(' onmouseout=\"changeImages(\'image3\', \'image3off\')\"');
    document.write(' href=\"services.php\">');
    document.write('<img alt=\"Services\" src=\"files/servicesoff.gif\"');
    document.write('  width=\"133\" name=\"image3\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"services.php\">');
    document.write('<img alt=\"Services\" src=\"files/serviceson.gif\"');
    document.write('  width=\"133\" name=\"image3\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');
///
if (opt != 10)
{
    document.write('<a onmouseover=\"changeImages(\'image10\', \'image10on\')\"');
    document.write(' onmouseout=\"changeImages(\'image10\', \'image10off\')\"');
    document.write(' href=\"ifrs.php\">');
    document.write('<img alt=\"IFRS\" src=\"files/ifrsoff.gif\"');
    document.write('  width=\"133\" name=\"image10\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"ifrs.php\">');
    document.write('<img alt=\"IFRS\" src=\"files/ifrson.gif\"');
    document.write('  width=\"133\" name=\"image10\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');
///
if (opt != 4)
{
    document.write('<a onmouseover=\"changeImages(\'image4\', \'image4on\')\"');
    document.write(' onmouseout=\"changeImages(\'image4\', \'image4off\')\"');
    document.write(' href=\"publications.php\">');
    document.write('<img alt=\"Publications\" src=\"files/publicationsoff.gif\"');
    document.write(' width=\"133\" name=\"image4\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"publications.php\">');
    document.write('<img alt=\"Publications\" src=\"files/publicationson.gif\"');
    document.write(' width=\"133\" name=\"image4\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');
if (opt != 5)
{
    document.write('<a onmouseover=\"changeImages(\'image5\', \'image5on\')\"');
    document.write(' onmouseout=\"changeImages(\'image5\', \'image5off\')\"');
    document.write(' href=\"links.php\">');
    document.write('<img alt=\"Links\" src=\"files/linksoff.gif\"');
    document.write('  width=\"133\" name=\"image5\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"links.php\">');
    document.write('<img alt=\"Links\" src=\"files/linkson.gif\"');
    document.write('  width=\"133\" name=\"image5\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');

if (opt != 6)
{
    document.write('<a onmouseover=\"changeImages(\'image6\', \'image6on\')\"');
    document.write(' onmouseout=\"changeImages(\'image6\', \'image6off\')\"');
    document.write(' href=\"careers.php\">');
    document.write('<img alt=\"Careers\"');
    document.write(' src=\"files/careersoff.gif\"  width=\"133\" ');
    document.write(' name=\"image6\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"careers.php\">');
    document.write('<img alt=\"Careers\"');
    document.write(' src=\"files/careerson.gif\"  width=\"133\" ');
    document.write(' name=\"image6\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');

if (opt != 7)
{
    document.write('<a onmouseover=\"changeImages(\'image7\', \'image7on\')\"');
    document.write(' onmouseout=\"changeImages(\'image7\', \'image7off\')\"');
    document.write(' href=\"contactus.php\">');
    document.write('<img alt=\"Contact Us\" src=\"files/contactoff.gif\"');
    document.write('  width=\"133\" name=\"image7\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"contactus.php\">');
    document.write('<img alt=\"Contact Us\" src=\"files/contacton.gif\"');
    document.write('  width=\"133\" name=\"image7\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');

if (opt != 8)
{
    document.write('<a onmouseover=\"changeImages(\'image8\', \'image8on\')\"');
    document.write(' onmouseout=\"changeImages(\'image8\', \'image8off\')\"');
    document.write(' href=\"sitemap.php\">');
    document.write('<img alt=\"Sitemap\"');
    document.write(' src=\"files/sitemapoff.gif\"  width=\"133\" ');
    document.write(' name=\"image8\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"sitemap.php\">');
    document.write('<img alt=\"Sitemap\"');
    document.write(' src=\"files/sitemapon.gif\"  width=\"133\" ');
    document.write(' name=\"image8\"></a></td></tr>');
}

document.write('<tr><td>');
document.write('<img src=\"files/pixel.gif\" width=\"23\" >');

if (opt != 9)
{
    document.write('<a onmouseover=\"changeImages(\'image9\', \'image9on\')\"');
    document.write(' onmouseout=\"changeImages(\'image9\', \'image9off\')\"');
    document.write(' href=\"privacy.php\">');
    document.write('<img alt=\"Privacy\"');
    document.write(' src=\"files/privacyoff.gif\"');
    document.write('  width=\"133\" ');
    document.write(' name=\"image9\"></a></td></tr>');
}
    else
{
    document.write('<a href=\"privacy.php\">');
    document.write('<img alt=\"Privacy\"');
    document.write(' src=\"files/privacyon.gif\"');
    document.write('  width=\"133\" ');
    document.write(' name=\"image9\"></a></td></tr>');
}
document.write('<tr><td>');
document.write('</td></tr>');
document.write('</table>');
}

function sendMailTo(name, company, domain, subject)
{
locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain + "?subject=" + escape(subject);
window.location.replace(locationstring);
}

function email_message(name, company, domain)
{
document.write(' href=\"mailto:' + name + '@' + company + '.' + domain + '\">');
}


function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}


function todaysDate()
{
var mydate = new Date();

var year = mydate.getYear();
if (year < 1000)
    year+=1900;

var day = mydate.getDay();
var month = mydate.getMonth();
var daym = mydate.getDate();
var dayarray = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

var montharray = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var enddayarray=new Array("0th","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st");

document.write('<p class=\"tiny\" style=\"vertical-align: top;\">'+dayarray[day]+', '+montharray[month]+' '+enddayarray[daym]+', '+year+'</p>');
}