﻿// JScript File

// MSIE displays the corners differently to, say, Firefox
// so they have to be repositioned using -ve margin offsets!?
function MoveCorners()
{
    if (varBrowser != 'MSIE')
    {
        tlc.style.marginLeft = '0px';
        trc.style.marginRight = '0px';
        blc.style.marginLeft = '0px';
        brc.style.marginRight = '0px';
    }
}

function ButtonDo(sButton,sButtonExt) {
//sButtonSrc="gfx/btn"+sButton+sButtonExt+".gif";
sButtonSrc="gfx/btn"+sButton+sButtonExt+".jpg";
if (sButton=="Home") {Home.src=sButtonSrc;}
if (sButton=="Contact") {Contact.src=sButtonSrc;}
if (sButton=="About") {About.src=sButtonSrc;}
if (sButton=="Portfolio") {Portfolio.src=sButtonSrc;}
if (sButton=="Links") {Links.src=sButtonSrc;}
}
//function ButtonOver(sButton) {
//ButtonDo(sButton, '2mo2');
//}
//function ButtonMove(sButton) {
//ButtonDo(sButton, '2mo');
//}
function ButtonDown(sButton) {
//ButtonDo(sButton, '2md');
ButtonDo(sButton, '_down');
}
function ButtonUp(sButton) {
ButtonDo(sButton, '_up');
}
//function ButtonOut(sButton) {
//ButtonDo(sButton, '2');
//}
