var MouseOverCol = "#DD0000";
var MouseOverColRed = "#FF0000";
var MouseNotOverCol = "#000000";

if (parent.location.href == self.location.href) {window.location.href = 'http://www.neo-fx.com';}


function MenuColorChange(obj,NewColor)
{
obj.style.color = NewColor;
}

function WriteCopyright()
{
var cont = '&nbsp;NEO f/x. All Rights Reserved.&nbsp;'
+ 'All brands, products, and images referenced within this site are copyright their respective owners.'
+ '</body></html>'
document.write('<p class="copyrightarea">TM &amp; © 2003&nbsp;-&nbsp;')
current = new Date();
document.write(current.getFullYear())
document.write(cont);

browser=navigator.appName;
screensize=screen.width; 

if ((browser != "Microsoft Internet Explorer") || (screensize < "850")) {document.write('<br>NEO f/x recommends Microsoft IE6+ running 1024x768 resolution or greater for the best viewing experience of this web site.');}

document.write('</p>');

}


function DrawButtons(Exclude,loc)
{

document.write ('<hr><div align="right"><table><tr><td class="buttons"');


if (Exclude == "1") {document.write ('><font color="#EEEEEE">HOME</font>');}
else {document.write ('OnMouseOut="cell_rollout(this)" OnMouseOver="cell_rollover(this, \'nmsw_Button1\')" onclick="javascript:window.location=\'' + loc + 'mainpage.php\';">HOME')}

document.write ('</td><td class="buttons"');


if (Exclude == "2") {document.write ('><font color="#EEEEEE">CLIENTS</font>');}
else {document.write ('OnMouseOut="cell_rollout(this)" OnMouseOver="cell_rollover(this, \'nmsw_Button1\')" onclick="javascript:window.location=\'' + loc + 'clients/clientvideo.cgi\';">CLIENTS')}

document.write ('</td><td class="buttons"');


if (Exclude == "3") {document.write ('><font color="#EEEEEE">TOTAL MEDIA</font>');}
else {document.write ('OnMouseOut="cell_rollout(this)" OnMouseOver="cell_rollover(this, \'nmsw_Button1\')" onclick="javascript:window.location=\'' + loc + 'totalmedia/\';">TOTAL MEDIA')}

document.write ('</td><td class="buttons"');


if (Exclude == "4") {document.write ('><font color="#EEEEEE">RECRUITING</font>');}
else {document.write ('OnMouseOut="cell_rollout(this)" OnMouseOver="cell_rollover(this, \'nmsw_Button1\')" onclick="javascript:window.location=\'' + loc + 'recruiting/\';">RECRUITING')}

document.write ('</td><td class="buttons"');


if (Exclude == "5") {document.write ('><font color="#EEEEEE">COMPANY INFO</font>');}
else {document.write ('OnMouseOut="cell_rollout(this)" OnMouseOver="cell_rollover(this, \'nmsw_Button1\')" onclick="javascript:window.location=\'' + loc + 'companyinfo/\';">COMPANY INFO')}


document.write ('</td></tr></table></div><hr>');
}


function DrawSidebar(Exclude,span)
{

document.write ('<tr><td class="sidebar260"' + span +'>');
document.write ('<p><font style="font-size:10pt; color:#ffffff;"><b><u>NEO f/x COMPANY INFO</u></b></font></p>');

if (Exclude == "1") {document.write ('<p><b><font color="#EEEEEE">ABOUT NEO f/x</font></b></p>');}
else {document.write ('<p><b><a href="/companyinfo/" onmouseover="MenuColorChange(this,MouseOverCol)" onmouseout="MenuColorChange(this,MouseNotOverCol)">ABOUT NEO f/x</a></b></p>');}

if (Exclude == "2") {document.write ('<p><b><font color="#EEEEEE">HOW WE DO IT</font></b></p>');}                          
else {document.write ('<p><b><a href="how.html" onmouseover="MenuColorChange(this,MouseOverCol)" onmouseout="MenuColorChange(this,MouseNotOverCol)">HOW WE DO IT</a></b></p>');}

if (Exclude == "6") {document.write ('<p><b><font color="#EEEEEE">MERCHANDISE</font></b></p>');}
else {document.write ('<p><b><a href="merchandise.html" onmouseover="MenuColorChange(this,MouseOverCol)" onmouseout="MenuColorChange(this,MouseNotOverCol)">MERCHANDISE</a></b></p>');}

if (Exclude == "3") {document.write ('<p><b><font color="#EEEEEE">PRESS RELEASES</font></b></p>');}
else {document.write ('<p><b><a href="press.cgi" onmouseover="MenuColorChange(this,MouseOverCol)" onmouseout="MenuColorChange(this,MouseNotOverCol)">PRESS RELEASES</a></b></p>');}


if (Exclude == "4") {document.write ('<p><b><font color="#EEEEEE">THE TEAM</font></b></p>');}
else {document.write ('<p><b><a href="team.html" onmouseover="MenuColorChange(this,MouseOverCol)" onmouseout="MenuColorChange(this,MouseNotOverCol)">THE TEAM</a></b></p>');}

if (Exclude == "5") {document.write ('<p><b><font color="#EEEEEE">WORK RÉSUMÉ</font></b></p>');}
else {document.write ('<p><b><a href="resume.html" onmouseover="MenuColorChange(this,MouseOverCol)" onmouseout="MenuColorChange(this,MouseNotOverCol)">WORK RÉSUMÉ</a></b></p>');}

document.write ('</td></tr>');

}

function cell_rollover(cell, classname) {
  if (document.all || document.getElementById) {
    cell.classBackup = cell.className;
    cell.className   = classname;
  }
}

function cell_rollout(cell)
{
  if (document.all || document.getElementById) {
    cell.className   = cell.classBackup;
  }
}

function preload_img()
{ 
  var img_list = preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}


function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function testPW (form, Ctrl) {
	if (Ctrl.value == "") {
		validatePrompt (Ctrl, "Please provide your password in the space provided")
		return (false);
	} else
		return (true);
}

function testUN (form, Ctrl){
	if (Ctrl.value == "") {
		validatePrompt (Ctrl, "Please provide your user name in the space provided")
		return (false);
	} else
		return (true);
}


function runSubmit (form)  {
	if (!testUN(form, form.username)) return;
	if (!testPW(form, form.password)) return;
        form.submit();
        form.reset();
        showLogin();  
	return;
}

function validatePrompt (Ctrl, ErrStr) {
	alert (ErrStr)
	Ctrl.focus();
	return;
}


