if (document.images) {
 ni_biography_on = new Image(); ni_biography_on.src = "img/nav-biography-on.gif";
 ni_photo_gallery_on = new Image(); ni_photo_gallery_on.src = "img/nav-photo_gallery-on.gif";
 ni_credits_on = new Image(); ni_credits_on.src = "img/nav-credits-on.gif";
 ni_press_on = new Image(); ni_press_on.src = "img/nav-press-on.gif";
 ni_charities_on = new Image(); ni_charities_on.src = "img/nav-charities-on.gif";
 ni_books_on = new Image(); ni_books_on.src = "img/nav-books-on.gif";
 ni_message_board_on = new Image(); ni_message_board_on.src = "img/nav-message_board-on.gif";
 ni_contact_on = new Image(); ni_contact_on.src = "img/nav-contact-on.gif";
 ni_demo_reel_on = new Image(); ni_demo_reel_on.src = "img/nav-demo_reel-on.gif";

 ni_biography_off = new Image(); ni_biography_off.src = "img/nav-biography.gif";
 ni_photo_gallery_off = new Image(); ni_photo_gallery_off.src = "img/nav-photo_gallery.gif";
 ni_credits_off = new Image(); ni_credits_off.src = "img/nav-credits.gif";
 ni_press_off = new Image(); ni_press_off.src = "img/nav-press.gif";
 ni_charities_off = new Image(); ni_charities_off.src = "img/nav-charities.gif";
 ni_books_off = new Image(); ni_books_off.src = "img/nav-books.gif";
 ni_message_board_off = new Image(); ni_message_board_off.src = "img/nav-message_board.gif";
 ni_contact_off = new Image(); ni_contact_off.src = "img/nav-contact.gif";
 ni_demo_reel_off = new Image(); ni_demo_reel_off.src = "img/nav-demo_reel.gif";
}

function rollOver(object) {
 document.getElementById("nb_"+object).style.backgroundColor="#5F5F5F";
 if (document.getElementById("ni_"+object)) document.getElementById("ni_"+object).src = eval("ni_"+object+"_on.src");
}

function rollOut(object) {
 document.getElementById("nb_"+object).style.backgroundColor="";
 if (document.getElementById("ni_"+object)) document.getElementById("ni_"+object).src = eval("ni_"+object+"_off.src");
}

function insertspecial(tag) {
var space=" ";
var text=prompt("Type text you wish to enter:","");
if (text != null)
        {
        var text_to_insert = space+'['+tag+']'+text+'[/'+tag+']'+space;
        insertAtCursor(document.form.message, text_to_insert);
        }
document.form.message.focus();
}

function insertAtCursor(myField, myValue) {
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
sel.text = myValue;
}
else if (myField.selectionStart || myField.selectionStart == '0') {
var startPos = myField.selectionStart;
var endPos = myField.selectionEnd;
myField.value = myField.value.substring(0, startPos)
+ myValue
+ myField.value.substring(endPos, myField.value.length);
} else {
myField.value += myValue;
}
}

function openSmiley(smurl) {
w=window.open(smurl, "smileys", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=300,height=300");
  if(!w.opener)
  {
  w.opener=self;
  }
}

function mboard_checkFields() {
d=document.form;
if (d.name.value=='') {alert('Please enter your name!'); return false;}
if (
    d.email.value!='' && (
      d.email.value.indexOf(".") == -1 ||
      d.email.value.indexOf("@") == -1
    )
) {alert('Please enter a valid e-mail address!'); return false;}
if (d.subject.value=='') {alert('Please write a subject!'); return false;}
if (d.message.value=='') {alert('Please write a message!'); return false;}
return true;
}

function insertReel() {
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="480" height="398" id="demo_reel" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="demo_reel.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#5f5f5f" /><embed src="demo_reel.swf" quality="high" bgcolor="#5f5f5f" width="480" height="398" name="demo_reel" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}