<!--
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
var on = "_f2.gif";
var off = ".gif";
var dir = "http://tdj_apps/_intranet2/_images/nav_";
	
function hover_over(id){
	// Explorer 4
	if(ie4) {
		document.all[id].src = dir+id+on;
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6) {
		document.getElementById(id).src = dir+id+on;
	}
}

function hover_out(id){
	// Netscape 4
	if(ns4)	document.img[id].src = dir+id+off;
	// Explorer 4
	else if(ie4) document.all[id].src = dir+id+off;
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6) document.getElementById(id).src = dir+id+off;
}

function hover_gen(id,src1,src2) {
	if(ns4)	{
  	var v=(document.img[id].src==src1) ? src2 : src1;
  	document.img[id].src = dir+id+off;
    if (document.img[id].src != v) document.img[id].src = v;
    
	} else if(ie4) {
  	var v=(document.all[id].src==src1) ? src2 : src1;  
  	document.all[id].src = dir+id+off;
    if (document.all[id].src != v) document.all[id].src = v;
    
	} else if(ie5 || ns6) {
  	var v=(document.getElementById(id).src) ? src2 : src1;  
  	document.getElementById(id).src = dir+id+off;
    if (document.getElementById(id).src != v) document.getElementById(id).src = v;
  }
}

function PauseMe (obj)
{
    if( g_bPaused == true )
    {
        obj.controls.play();
        g_bPaused = false;
    }
    else
    {  
        obj.controls.pause();
        g_bPaused = true;
    }
}

function videoOn(obj) {
		PauseMe(obj);
}

function videoOff (obj) {
  obj.controls.stop();
}

function videoVisibility(obj) {
	if(ie5 || ns6) {
		var element = document.getElementById(obj);
	} else {
  	alert('Upgrade Browser');
  }

  var v_id = (element.style.display=='none') ? 'block' : 'none';
  if (element.style.display !=v_id)
  {	element.style.display = v_id;
  }
  if (v_id=='none') {
  	videoOff(obj);
  }
  if (v_id=='block') {
  	videoOn(obj);
  }
}

function blockVisibility(obj) {
	if(ie5 || ns6) {
		var element = document.getElementById(obj);
	} else alert("Upgrade Browser");

  var v = (element.style.display=='none') ? 'block' : 'none';
  if (element.style.display !=v)
  {	element.style.display = v;
  }

}

function blockVisibilityClose(obj) {
	if(ns4)	{
		var element = document.div[id];   
	}
	else if(ie4) {
		var element = document.all[id];   
	}
	else if(ie5 || ns6) {
		var element = document.getElementById(obj);
	}

  element.style.display='none';

}

function blockVisibilityOpen(obj) {
	if(ns4)	{
		var element = document.div[id];   
	}
	else if(ie4) {
		var element = document.all[id];   
	}
	else if(ie5 || ns6) {
		var element = document.getElementById(obj);
	}

  element.style.display='block';

}

function setFormAction (id,action_src) {
	if(ns4)	document.forms[id].action = action_src;

	else if(ie4) document.all[id].action = action_src;

	else if(ie5 || ns6) document.getElementById(id).action = action_src;	
  
}

function openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) {
  openBrWindow(theURL,winName,features)
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	openBrWindow(URLtoOpen, windowName, windowFeatures); 
}

function openPOPUP(url,window,w,h)
{
	openBrWindow(url,window,'scrollbars=no,resizable=no,width='+w+',height='+h);
}

function link_parent(url,flag) {
	if (url != '') window.opener.location = url;
  if (!flag) {window.close()};

}

function link_parent_target(url,flag) {
	if (window.top.opener.closed)
  {
  	//ref = window.open(url,'opener','toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1');
  	ref = window.open(url,'opener','');
  }
  else
  {
		if (url != '') window.parent.opener.location = url;
		if (!flag) {window.close()};
	}
}

function output_flash(w,h,i,c,f) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
	document.write('	WIDTH="'+w+'"');
	document.write('	HEIGHT="'+h+'"');
	document.write('	id="'+i+'">');
 	document.write('	<PARAM NAME="movie" VALUE="'+f+'" />');
	document.write('	<PARAM NAME="quality" VALUE="high" />');
	document.write('	<PARAM NAME="bgcolor" VALUE="'+c+'" />');
	document.write('	<EMBED src="'+f+'"');
	document.write('		quality="high"');
	document.write('		bgcolor="'+c+'"');
	document.write('		WIDTH="'+w+'"');
	document.write('		HEIGHT="'+h+'"');
	document.write('		NAME="'+i+'"');
	document.write('		TYPE="application/x-shockwave-flash"');
	document.write('		PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write('	</EMBED></OBJECT>');
}

  
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2||e.which==3) {(message);return false;}
  }
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}else{
	document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}

document.oncontextmenu=new Function("return false")

-->