<!--

// home page animation
var slideShowSpeed1 = 4000;
var crossFadeDuration1 = 5;
var Pic1 = new Array();

Pic1[0] = 'graphics/d1.jpg'
Pic1[1] = 'graphics/d2.jpg'
Pic1[2] = 'graphics/d3.jpg'
Pic1[3] = 'graphics/d4.jpg'
Pic1[4] = 'graphics/d5.jpg'

var t1;
var j1 = 0;
var p1 = Pic1.length;
var preLoad1 = new Array();
for (m = 0; m < p1; m++) {
preLoad1[m] = new Image();
preLoad1[m].src = Pic1[m];
}
function runSlideS1() {
if (document.all) {
document.images.SlideS1.style.filter="blendTrans(duration=crossFadeDuration1)";
document.images.SlideS1.style.filter="blendTrans(duration=crossFadeDuration1)";
document.images.SlideS1.filters.blendTrans.Apply();
}
document.images.SlideS1.src = preLoad1[j1].src;
if (document.all) {
document.images.SlideS1.filters.blendTrans.Play();
}
j1 = j1 + 1;
if (j1 > (p1 - 1)) j1 = 0;
t1 = setTimeout('runSlideS1()', slideShowSpeed1);
}


// auto centering popup script
var win = null;
function PopWindow(MyPage,MyName,w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes,status=yes,menubar=yes'
win = window.open(MyPage,MyName,settings)
if(win.window.focus){win.window.focus();}
}

// credits popup
var win = null;
function Credits(MyPage,MyName,w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no,status=no,menubar=no'
win = window.open(MyPage,MyName,settings)
if(win.window.focus){win.window.focus();}
}

// CheckEmail
function CheckEmail(form) {
    Ctrl = form.Email;
    if (Ctrl.value == "" || Ctrl.value.indexOf ('@', 0) == -1) {
    return (false);
    } else
        return (true);
} 

function CheckSenderEmail(form) {
    Ctrl = form.SenderEmail;
    if (Ctrl.value == "" || Ctrl.value.indexOf ('@', 0) == -1) {
    return (false);
    } else
        return (true);
} 

function CheckRecipientEmail(form) {
    Ctrl = form.RecipientEmail;
    if (Ctrl.value == "" || Ctrl.value.indexOf ('@', 0) == -1) {
    return (false);
    } else
        return (true);
} 


//-->

