function form_jump(targ,selObj,restore){
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}

function smilie(emote) {
 document.forumform.text.value += emote;
 document.forumform.text.focus();
}

/* JC Additions */

function openPhotosWin(url,theWidth,theHeight)
{
  var theTop=0;
  if(screen.availHeight>theHeight)
    theTop=(screen.availHeight-theHeight)/2;
  var theLeft=0;
  if(screen.availWidth>theWidth)
    theLeft=(screen.availWidth-theWidth)/2;
  var features='height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+',scrollbars=no,menubar=no,toolbar=no,resizable=no';
  theWin=window.open(url,'',features);
  if(window.navigator.appVersion.indexOf("Mac") != -1)
    theWin.resizeBy(0,20);
}

function divToggle(id){
	var element = document.getElementById(id); 
	if(element.style.display == "none" || !element.style.display) {
		element.style.display = "block"; 
	}else if(element.style.display == "block") { 
		element.style.display = "none"; 
	} 
}

function MM_preloadImages() { 
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


/* Top Btn Mouse Overs - START */
var timeOut=0;
var menuCount=3;

if (document.images)
{
	menuOn = new Array();
	menuOff = new Array();
	menuSel = new Array();
	
	for(i=1;i<=3;i++)
	{
		menuOn[i] = new Image();
		menuOn[i].src = "../../images/00_shell/top_btn_"+i+"_down.gif";
		menuOff[i] = new Image();
		menuOff[i].src = "../../images/00_shell/top_btn_"+i+"_up.gif";
		menuSel[i] = new Image();
		menuSel[i].src = "../../images/00_shell/top_btn_"+i+"_down.gif";
	}
}

isDOM=(document.getElementById)?true:false;
isMSIE=(document.all && document.all.item)?true:false;
isNC4=(document.layers)?true:false;

document.writeln('<style>');
if(isMSIE)
{
	document.writeln('.menu0	{display:inline-block; background: #FFFFFF url(../../images/00_shell/top_btn_line.gif) right repeat-x; padding:0px 0px 0px 0px;}');
	document.writeln('.menu1	{display:inline-block; color:#333333; background: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 11px; padding:2px 3px 3px 1px;}');
	document.writeln('.menu2	{display:inline-block; color:#58718C; background: #EBEBEB; font-family: Arial, Helvetica, sans-serif; font-size: 11px; padding:2px 3px 3px 1px; cursor: hand;}');
}
else
{
	document.writeln('.menu0	{display:inline-block; background: #FFFFFF url(../../images/00_shell/top_btn_line.gif) right repeat-x; padding:0px 0px 0px 0px;}');
	document.writeln('.menu1	{display:block; color:#333333; background: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 11px; padding:2px 3px 3px 1px;}');
	document.writeln('.menu2	{display:block; color:#58718C; background: #EBEBEB; font-family: Arial, Helvetica, sans-serif; font-size: 11px; padding:2px 3px 3px 1px;}');
}
document.writeln('</style>');

styleSwitch=".style";
layerPostfix="\"]";

if(isNC4)
{
	alert("You are using outdated version of Netscape Navigator that does not support the latest technological features. We are sorry, but our web site cannot be displayed corectly in this browser. We recommend using Internet Explorer 5.5 or higher, Netscape Navigator 6.0 or higher, Mozzila 1.0 or higher.");
	layerRef="document.layers[\"";
	styleSwitch="";
}

if(isMSIE)
{
	layerRef="document.all[\"";
}

if(isDOM)
{
	layerRef="document.getElementById(\"";
	layerPostfix="\")";
}

function hideMenu(num)
{
	divname = 'popup'+num;
	eval(layerRef+divname+layerPostfix+styleSwitch+".visibility=(isNC4?'hide':'hidden')");
	mName = "m"+num;
	if (document.images) document[mName].src = menuOff[num].src;
}

function showMenu(num)
{
	for(i=1;i<=menuCount;i++)
		if (i!=num) hideMenu(i);

	divname = 'popup'+num;
	eval(layerRef+divname+layerPostfix+styleSwitch+".visibility=(isNC4?'show':'visible')");
}

function st(s)
{
	if(!s) s='';
	window.status=s;
}

timeId = '';

function timer(num)
{
	timeId = setTimeout("hideMenu("+num+")",timeOut);
}

function cl()
{
	if(timeId) clearTimeout(timeId);
}

function che(menuId,strId,action)
{
	var divname = 'menu'+menuId+'_'+strId;
	
	cl();
	if(action==1) className = 'menu2';
	else className = 'menu1';
	
	eval(layerRef+"menu"+menuId+"_"+strId+layerPostfix+".className='"+className+"';");
}

function mOn(num)
{
	mName = "m"+num;
	if (document.images) document[mName].src = menuOn[num].src;
	cl();
	showMenu(num);
}

function mOff(num)
{
	mName = "m"+num;
	if (document.images) document[mName].src = menuSel[num].src;
	timeId = setTimeout("hideMenu("+num+")",timeOut);
}

/* Top Btn Mouse Overs - END */