<!--
//*****************************************************************************************************
// This is a trade secret proprietary work of Ty A. Huynh, D/B/A MainstreamMedia.
// All contents of this script file, the source code, HTML, and all associated web files
// including (but not limited to) image files, and Java applets are
// Copyright (c) 2001-2007 MainstreamMedia, All Rights Reserved.
// Reproduction of any material associated with MainstreamMedia, its websites, or supporting structures
// in part or whole is strictly prohibited.
// Unauthorized use, duplication, or distribution of materials by any means whatsoever is prohibited.
//*****************************************************************************************************
var E_AT = "@";
var DOMAIN = "MotoCore.Net";
var ROOTPATH = "/";
var gs_agent = navigator.userAgent.toLowerCase();
var gb_ie = gs_agent.indexOf("msie") != -1 && gs_agent.indexOf("opera") == -1 && gs_agent.indexOf("webtv") == -1; 
var gb_gecko = gs_agent.indexOf("gecko") != -1; // Mozilla,Gecko,Firefox
var gb_safari = gs_agent.indexOf("safari") != -1;
var gb_konqueror = gs_agent.indexOf("konqueror") != -1;
var gb_rte = document.getElementById && document.designMode && !gb_safari && !gb_konqueror;
var gi_base_w = 955;
var gi_base_h = 600;
var gi_w = gi_base_w;
var gi_h = gi_base_h;
var gi_dx = 0; // Difference betw/actual and base width
var gi_dy = 0; // Difference betw/actual and base height
var gdt_now = new Date();
var gdt_last = null;
var gi_curr_transo = 0;
var gi_last_transo = 0;
var gb_intrans = false;
var gb_looptrans = true;
var gb_playtrans = false;
var gi_fade_interval = 700; // milliseconds
var gi_slideinterval = 6000; // milliseconds
var guo_trans = null;
var guo_intrans = null;
var gs_transo = null;
function PreloadImages() {
  if (document.images) {
    var imgFiles = PreloadImages.arguments;
    if (document.preloadArray == null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    var exists = 0;

    with (document)
    for (var j=0; j < imgFiles.length; j++) {
      exists = 0;
      if (imgFiles[j].charAt(0) != "#"){
        for (var k=0; k < i; k++){
          if (preloadArray[k].src.indexOf( imgFiles[j] ) >= 0){
            exists = 1;
            break;
        }}
        if (exists == 0){
          preloadArray[i] = new Image;
          preloadArray[i++].src = imgFiles[j];
}}}}}
function getObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=getObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function getDoc(as_fr) {
	if (as_fr == "top") {
		if (top.opener) return top.opener.top.document; else return top.document;
	} else if (as_fr == "parent") {
		if (parent) return parent.document;
	}
	var ldoc_x;
	if (window.frames[as_fr] == null) {
		var luo_x = getObj(as_fr);
		if (luo_x == null)
			return null;
		ldoc_x = luo_x.contentDocument;
	} else {
		ldoc_x = window.frames[as_fr].document;
	}
	return ldoc_x;
}
function getWin(as_fr) {
	if (as_fr == "top") {
		if (top.opener) return top.opener.top; else return top;
	} else if (as_fr == "parent") {
		if (parent) return parent;
	}
	var lwin_x;
	if (window.frames[as_fr] == null) {
		var luo_x = getObj(as_fr);
		if (luo_x == null)
			return null;
		lwin_x = luo_x.contentWindow;
	} else
		lwin_x = window.frames[as_fr].window;
	return lwin_x;
}
function getOffsetTop(auo_x) {
	var li_top = auo_x.offsetTop; var luo_op = auo_x.offsetParent;
	while(luo_op != document.body) { li_top += luo_op.offsetTop; luo_op = luo_op.offsetParent; }
	return li_top;
}
function getOffsetLeft(auo_x) {
	var li_left = auo_x.offsetLeft; var luo_op = auo_x.offsetParent;
	while(luo_op != document.body) { li_left += luo_op.offsetLeft; luo_op = luo_op.offsetParent; }
	return li_left;
}
function runScript(as_fr, as_scr) {
	if (as_fr == "top") {
		if (window.topopener!=null) {try {window.topopener.eval(as_scr);} catch(err) {alert("Error executing opener.topopener{"+as_scr+"}\n\n"+err.toString()+"\n\nTry closing browser and coming back.");}}
		else if (top.opener!=null) {try {top.opener.top.eval(as_scr);} catch(err) {alert("Error executing top.opener{"+as_scr+"}\n\n"+err.toString()+"\n\nTry closing browser and coming back.");}} 
		else {try {top.eval(as_scr);} catch(err) {alert("Error executing top{"+as_scr+"}\n\n"+err.toString()+"\n\nTry closing browser and coming back.");}}
	} else {
		var lwin_x = getWin(as_fr);
		if (lwin_x == null) {alert("No window for '"+as_fr+"' runScript()"); return false;}
		try { lwin_x.eval(as_scr); } catch(err) {alert("Error executing {"+as_scr+"}\n\n"+err.toString());}
	}
	return true;
}
function showObj(as_n, ab_v) {
	var luo_x = getObj(as_n);
	if (luo_x == null) return;
	if (luo_x.style) luo_x.style.visibility = ab_v ? "visible" : "hidden";
	else luo_x.visibility = ab_v ? "show" : "hide";
}
function show(auo_x, ab_v) {
	if (auo_x == null) return;
	if (auo_x.style) auo_x.style.visibility = ab_v ? "visible" : "hidden";
	else auo_x.visibility = ab_v ? "show" : "hide";
}
function getObjT(as_obj) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return 0;}
	if (luo_x.style) return parseInt(luo_x.style.top);
	else return parseInt(luo_x.top);
}
function getT(auo_x) {
	if (auo_x == null) return 0;
	if (auo_x.style) return parseInt(auo_x.style.top);
	else return parseInt(auo_x.top);
}
function getL(auo_x) {
	if (auo_x == null) return 0;
	if (auo_x.style) return parseInt(auo_x.style.left);
	else return parseInt(auo_x.left);
}
function getZ(auo_x) {
	if (auo_x == null) return 0;
	if (auo_x.style) return parseInt(auo_x.style.zIndex);
	else return parseInt(auo_x.zIndex);
}
function getW(auo_x) {
	if (auo_x == null) return 0;
	return auo_x.clientWidth;
}
function getObjH(as_obj) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return 0;}
	return luo_x.clientHeight;
}
function getH(auo_x) {
	if (auo_x == null) return 0;
	return auo_x.clientHeight;
}
function setObjX(as_obj, ai_x) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return;}
	if (ai_x == null) return;
	
	if (luo_x.style) luo_x.style.left = ai_x;
	else luo_x.left = ai_x;
}
function setX(auo_o, ai_x) {
	if (auo_o == null || ai_x == null) return;
	if (auo_o.style) auo_o.style.left = ai_x;
	else auo_o.left = ai_x;
}
function setObjY(as_obj, ai_y) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return;}
	if (ai_y == null) return;
	
	if (luo_x.style) luo_x.style.top = ai_y;
	else luo_x.top = ai_y;
}
function setY(auo_o, ai_y) {
	if (auo_o == null || ai_y == null) return;	
	if (auo_o.style) auo_o.style.top = ai_y;
	else auo_o.top = ai_y;
}
function setObjZ(as_obj, ai_z) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return;}
	if (ai_z == null) return;
	
	if (luo_x.style) luo_x.style.zIndex = ai_z;
	else luo_x.zIndex = ai_z;
}
function setZ(auo_o, ai_z) {
	if (auo_o == null || ai_z == null) return;
	if (auo_o.style) auo_o.style.zIndex = ai_z;
	else auo_o.zIndex = ai_z;
}
function setObjW(as_obj, ai_w) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return;}
	if (ai_w == null) return;
	
	if (luo_x.style) luo_x.style.width = ai_w;
	else luo_x.width = ai_w;
}
function setW(auo_o, ai_w) {
	if (auo_o == null || ai_w == null) return;
	if (auo_o.style) auo_o.style.width = ai_w;
	else auo_o.width = ai_w;
}
function setObjH(as_obj, ai_w) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return;}
	if (ai_w == null) return;
	
	if (luo_x.style) luo_x.style.height = ai_w;
	else luo_x.height = ai_w;
}

function setH(auo_o, ai_w) {
	if (auo_o == null || ai_w == null) return;
	if (auo_o.style) auo_o.style.height = ai_w;
	else auo_o.height = ai_w;
}
function setObjOpacity(as_obj, ai_opacity) {
	var luo_x = getObj(as_obj);
	if (luo_x == null) {alert("NULL OBJECT '"+as_obj+"'"); return;}
	if (!luo_x.style) {alert("'"+(luo_x.id ? luo_x.id : luo_x.name)+"' style undefined"); return; }
	var luo_s = luo_x.style; 
	luo_s.display = "block";
	luo_s.opacity = (ai_opacity / 100);
	luo_s.MozOpacity = (ai_opacity / 100);
	luo_s.KhtmlOpacity = (ai_opacity / 100);
	luo_s.filter = "alpha(opacity=" + ai_opacity + ")";
}
function setOpacity(auo_o, ai_opacity) {
	if (auo_o == null) return;
	if (!auo_o.style) {alert("'"+(auo_o.id ? auo_o.id : auo_o.name)+"' style undefined"); return; }
	var luo_s = auo_o.style; 
	luo_s.display = "block";
	luo_s.opacity = (ai_opacity / 100);
	luo_s.MozOpacity = (ai_opacity / 100);
	luo_s.KhtmlOpacity = (ai_opacity / 100);
	luo_s.filter = "alpha(opacity=" + ai_opacity + ")";
}
function raiseButton(auo_x) {
	var luo_e = window.event.srcElement; className = luo_e.className;
	if (className == 'rteimg' || className == 'rteimglowered') { luo_e.className = 'rteimgraised'; }
}
function normalButton(auo_x) {
	var luo_e = window.event.srcElement; className = luo_e.className;
	if (className == 'rteimgraised' || className == 'rteimglowered') { luo_e.className = 'rteimg'; }
}
function lowerButton(auo_x) {
	var luo_e = window.event.srcElement; className = luo_e.className;
	if (className == 'rteimg' || className == 'rteimgraised') { luo_e.className = 'rteimglowered'; }
}
var gi_curr_menu = -1;
function getQS() {
	var ls_url = "";
	if (location.href) ls_url += location.href;
	else if (document.url) ls_url += document.url;
	else return ls_url;
	var li_i = ls_url.indexOf("?");
	if (li_i < 0) return "";
	else return ls_url.substring(li_i + 1);}
function jumpTo(as_url, ab_top) { if (ab_top) top.location.href = as_url; else location.href = as_url;}
function getVar(as_var,auo_d) {
	if (!auo_d) auo_d = document;
	if (!auo_d.forms || !auo_d.forms[0] || !auo_d.forms[0].elements) return null;
	return auo_d.forms[0].elements[as_var];}
function getValue(as_var,auo_d) {
	var luo_x = getVar(as_var,auo_d);
	if (luo_x) return luo_x.value;
	else return null;}
function setValue(as_var,as_val,auo_d) {
	var luo_x = getVar(as_var,auo_d);
	if (luo_x) luo_x.value = as_val;}
function setSelect(as_var,as_val,auo_d) {
	var luo_x = getVar(as_var,auo_d);
	if (luo_x == null) {
		alert("form element '"+as_var+"' does not exist!");
		return;
	} else if (luo_x.type.indexOf("select") == -1) {
		alert("form element '"+as_var+"' is type '"+luo_x.type+"', not a select!");
		return;
	}
	var li_i;
	for (li_i = luo_x.options.length - 1; li_i >= 0; li_i--) {
		if (luo_x.options[li_i].value == as_val) {
			luo_x.selectedIndex = li_i;
			return;
		}
	}
}
function getInt(as_var,auo_d) {
	var ls_v=getValue(as_var,auo_d);
	if (ls_v == null) return 0;
	var li_v = parseInt(ls_v);
	if (isNaN(li_v)) return 0;
	else return li_v;
}
function getBoolean(as_var,auo_d) {
	var ls_v=getValue(as_var,auo_d);
	if (ls_v == null) return false;
	return ls_v == "Y";
}
function setBoolean(as_var,ab_t,auo_d) {
	var luo_x = getVar(as_var,auo_d);
	if (luo_x) luo_x.value = ab_t ? "Y" : "N";}
function initPage() {
	if (gb_ie) {
		gi_w = document.body.clientWidth;
		gi_h = document.body.clientHeight;
		if (gi_w > gi_base_w) gi_dx = gi_w - gi_base_w;
		if (gi_h > gi_base_h) gi_dy = gi_h - gi_base_h;		
	} else {
//document.title = "iWH("+window.innerWidth+","+window.innerHeight+") oWH("+document.width+","+document.height+")";
		gi_w = document.width;
		gi_h = window.innerHeight;
		if (gb_gecko) gi_h -= 15; // Firefox often does not report correct dimensions
		if (gi_w > gi_base_w) gi_dx = gi_w - gi_base_w;
		if (gi_h > gi_base_h) gi_dy = gi_h - gi_base_h;		
	}
		
	flushPage(); // This function defined per page
}
function refreshPage(as_d) {
	if (as_d == null) {
		if (document.pageform) document.pageform.submit(); // 'safe' refresh
		else document.location.reload(true); return; // 'hard' refresh might submit previous form action
	}
	var ldoc_b = getDoc(as_d);
	if (ldoc_b == null) { alert("No '"+as_d+"' document"); return;}
	if (ldoc_b.pageform) ldoc_b.pageform.submit();
	else ldoc_b.location.reload(true);
}
function showMiniB(as_fd) {
	if (as_fd == null || as_fd.length == 0) return;
	runScript("top", "doMiniB('L', '"+as_fd+"');");
}
function writeMTA(as_a, as_n, as_d) {
	if (as_a == null) as_a = "CoreMaster";
	if (as_d == null) as_d = DOMAIN;
	if (as_n == null) as_n = as_a + E_AT + as_d;
	document.write("<a href=\"mailto:");
	document.write(as_a);
	document.write(E_AT);
	document.write(as_d);
	document.write("\">");
	document.write(as_n);
	document.write("</a>");
}
function writeDoc(adoc_x, as_c, as_a, ai_pt, as_color, as_bg) {
	if (adoc_x == null) return;
	if (as_c == null) as_c = "&nbsp;";
	if (as_a == null) as_a = "left"; // alignment: left | right | center
	if (ai_pt == null) ai_pt = 7; // font point size
	if (as_color == null) as_color = "#ccccff"; // font color
	if (as_bg == null) as_bg = "#333333"; // font color
	adoc_x.writeln("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">");
	adoc_x.writeln("<html><head>");
	adoc_x.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
	adoc_x.writeln("<title>Time</title>");
	adoc_x.writeln("<style type=\"text/css\">");
	adoc_x.writeln("<!--");
	adoc_x.write(".x {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: ");
	adoc_x.write(ai_pt);
	adoc_x.writeln("pt; color: "+as_color+"}");
	adoc_x.writeln("-->");
	adoc_x.writeln("</style>");
	adoc_x.writeln("</head>");
	adoc_x.writeln("<body bgcolor=\""+as_bg+"\" text=\"#ccccff\" link=\"#0000ff\" vlink=\"#000080\" alink=\"#ff0000\"");
	adoc_x.write("leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td align=\"");
	adoc_x.write(as_a);
	adoc_x.writeln("\"><span class=\"x\">");
	adoc_x.write(as_c);
	adoc_x.writeln("</span></div></td></tr></table>");
	adoc_x.writeln("</body>");
	adoc_x.writeln("</html>");
	adoc_x.close();
}
function closeThis() {
	if (window.parent) {
		if (window.parent.opener) window.parent.opener.focus();
		window.parent.close();
		return;
	}
	if (window.opener) window.opener.focus();
	window.close();
}
function trim(as_x) {
   if (typeof as_x != "string") return as_x;
   var ls_r = as_x;
   var ls_ch = ls_r.substring(0, 1);
   while (ls_ch == " ") {
      ls_r = ls_r.substring(1, ls_r.length);
      ls_ch = ls_r.substring(0, 1);
   }
   ls_ch = ls_r.substring(ls_r.length - 1, ls_r.length);
   while (ls_ch == " ") {
      ls_r = ls_r.substring(0, ls_r.length - 1);
      ls_ch = ls_r.substring(ls_r.length - 1, ls_r.length);
   }
   while (ls_r.indexOf("  ") != -1) {
      ls_r = ls_r.substring(0, ls_r.indexOf("  ")) + ls_r.substring(ls_r.indexOf("  ") + 1, ls_r.length);
   }
   return ls_r;
}
function logout(ab_x) {
	if (!ab_x) { alert("Guest sessions do not logout.\nThank you for trying."); return;}
	if (document.logoutform) document.logoutform.submit();
}
function setTopBody(as_url) {
	runScript("top", "setBody('"+as_url+"')");
}
function doFormAction(auo_form,as_act,as_obj) {
	if (auo_form == null) auo_form = document.forms[0];
	if (as_act != null && auo_form.act != null) auo_form.act.value = as_act;
	if (as_obj != null && auo_form.obj != null) auo_form.obj.value = as_obj;
	auo_form.submit();
}
function popUpImg(as_i,ai_w,ai_h) {
	if (as_i == null || as_i == "0") return;
	var li_w = 900;
	var li_h = 720;
	if (ai_w != null) {
		if (ai_w < 430)
			li_w = 480;
		else if (ai_w <= 800)
			li_w = ai_w + 50;
	}
	if (ai_h == null) {
		if (ai_h < 300)
			li_h = 380;
		else if (ai_h <= 800)
			li_h = ai_h + 50;
	}
		
	var ls_args = "obj="+as_i;
	if (document.forms[0] && document.forms[0].curr && document.forms[0].curr.value > "")
		ls_args += "&p="+document.forms[0].curr.value;
	popUpScroll("img",ls_args,li_w,li_h,as_i);
}
function popUpRate(as_o,ai_t) {
	var ls_args = "obj="+as_o;
	if (ai_t != null) ls_args += "&type="+ai_t;
	if (document.forms[0] && document.forms[0].curr && document.forms[0].curr.value > "")
		ls_args += "&p="+document.forms[0].curr.value;
	popUpScroll("rate",ls_args,480,320);
}
function popUpUsrGrp(as_u) {
	var ls_url = "link?c=ctr";
	if (as_u != "0") ls_url += "&obj="+as_u;
	runScript("top", "setBody(\""+ls_url+"\");");
	runScript("top", "hideCT();");
}
function popUpCT(as_ct) {
	var ls_url = "link?c=ctd";
	if (as_ct != "0") ls_url += "&ctid="+as_ct+"&get=x";
	runScript("top", "setBody(\""+ls_url+"\");");
	runScript("top", "hideCT();");
}
function popUpScroll(as_c,as_args,ai_w,ai_h,as_id) {
	if (as_c == null) return;
	if (ai_w == null) ai_w = 630;
	if (ai_h == null) ai_h = 540;
	if (as_id == null) as_id = as_c;
	var ls_url = "link?c="+as_c;
	if (as_args != null) ls_url += "&"+as_args;
	var ls_opener = "width="+ai_w+",height="+ai_h+",resizable=yes,scrollbars=yes";
	var luo_w = window.open(ls_url,as_id,ls_opener);
	if (document.window != null && !luo_w.opener)
		luo_w.opener = document.window;
	luo_w.focus();
}
function toggleSel(as_id,as_sel) {
	if (as_id == null || as_id.length == 0) return;
	if (as_sel == null) as_sel = "0";
	var luo_idsel = document.pageform.idsel;
	var ls_v = luo_idsel.value;
	var ls_ids = as_id + ":" + as_sel;
	var lb_on = false;
	var luo_val;
	var li_i;
	if (ls_v != null && ls_v.length > 0) {
		luo_vals = ls_v.split(",");
		for (li_i = luo_vals.length - 1; li_i >= 0; li_i--) {
			if (luo_vals[li_i] == ls_ids) lb_on = true;
		}
	}
	var luo_sp = getObj("id"+as_id+"sel"+as_sel);
	if (luo_sp == null) alert("'id"+as_id+"sel"+as_sel + "' not defined");
	if (lb_on) {
		luo_idsel.value = "";
		for (li_i = luo_vals.length - 1; li_i >= 0; li_i--) {
			ls_v = luo_vals[li_i];
			if (ls_v != ls_ids) {
				if (luo_idsel.value.length != 0) luo_idsel.value += ",";
				luo_idsel.value += ls_v;
			}
		}
		if (luo_sp != null && luo_sp.style) luo_sp.style.background = "";
	} else {
		if (luo_idsel.value.length != 0) luo_idsel.value += ",";
		luo_idsel.value += ls_ids;
		if (luo_sp != null && luo_sp.style) luo_sp.style.background = "#ffff00";
	}
}
function noLink() {
	alert("This link is masked for security reasons.");
}
function doNextFrame() {
	if (document.top == document) { alert("At top in doNextFrame()"); return; }
	runScript("top", "loadNextFrame();");
}
function addTranso(as_o) {
	if (guo_intrans == null) {
		guo_intrans = new Array();
		gs_transo = new Array();
	}
	var li_n = guo_intrans.length;
	guo_intrans[li_n] = null;
	gs_transo[li_n] = as_o;
	return li_n;
}
function showImg(ai_n) {
	gi_last_transo = gi_curr_transo;
	if (ai_n < 0) ai_n = gs_transo.length - 1;
	else if (ai_n >= gs_transo.length) ai_n = 0;
	gi_curr_transo = ai_n;
	transitionObjOpacity(gi_last_transo, 100, 0, gi_fade_interval);
	transitionObjOpacity(gi_curr_transo, 0, 100, gi_fade_interval);
}
function transitionObjOpacity(ai_obj, ai_ostart, ai_oend, ai_interval) {
	var li_i;
	clearTransition(ai_obj);
	guo_intrans[ai_obj] = new Array();
	var li_speed = Math.round(gi_fade_interval / 100);
	var li_timer = 0;
	var li_c = 0;
	if(ai_ostart > ai_oend) {
		for(li_i = ai_ostart; li_i >= ai_oend; li_i--) {
			guo_intrans[ai_obj][li_c] = setTimeout("changeObjOpacity(" + li_i + "," + ai_obj + ")", (li_timer * li_speed));
			li_timer++;
			li_c++;
		}
	} else if(ai_ostart < ai_oend) {
		for(li_i = ai_ostart; li_i <= ai_oend; li_i++) {
			guo_intrans[ai_obj][li_c] = setTimeout("changeObjOpacity(" + li_i + "," + ai_obj + ")", (li_timer * li_speed));
			li_timer++;
		}
	}
}
function changeObjOpacity(ai_opacity, ai_obj) {
	var ls_obj = gs_transo[ai_obj];
	var luo_o = document.getElementById(ls_obj);
	if (!luo_o) {alert("'"+ls_obj+"' undefined"); return; }
	if (!luo_o.style) {alert("'"+ls_obj+"' style undefined"); return; }
	var luo_s = luo_o.style; 
	luo_s.visibility = ai_opacity == 0 ? "hidden" : "visible";
	if (ai_opacity > 30) {
		luo_s.zIndex = 1000;
	} else {
		luo_s.zIndex = 900 - ai_obj;
	}
	luo_s.display = "block";
	luo_s.opacity = (ai_opacity / 100);
	luo_s.MozOpacity = (ai_opacity / 100);
	luo_s.KhtmlOpacity = (ai_opacity / 100);
	luo_s.filter = "alpha(opacity=" + ai_opacity + ")";
}
function clearTransition(ai_obj) {
	if (guo_intrans[ai_obj] != null) {
		for (li_i = 0; li_i < guo_intrans[ai_obj].length; li_i++) {
			clearTimeout(guo_intrans[ai_obj][li_i]);
			guo_intrans[ai_obj][li_i] = null;
		}
		guo_intrans[ai_obj] = null;
	}
}
function clearAllTransitions() {
	var li_ii;
	for (li_ii = 0; li_ii < guo_intrans.length; li_ii++) { // Cancel any previous transition for object
		if (guo_intrans[li_ii] != null) {
			for (li_i = 0; li_i < guo_intrans[li_ii].length; li_i++) {
				clearTimeout(guo_intrans[li_ii][li_i]);
				guo_intrans[li_ii][li_i] = null;
			}
			guo_intrans[li_ii] = null;
		}
	}
}
function resetTrans() {guo_trans=null;}
function playSlides() {
	if (!gb_playtrans) return;
	if (!gb_looptrans && (gi_curr_transo == gs_transo.length - 1)) {stopSlides(); return;}
	showImg(gi_curr_transo + 1);
	guo_trans = setTimeout("playSlides()", gi_slideinterval);
	setTimeout("resetTrans()", gi_slideinterval + gi_fade_interval + 100);
}
function prevSlide() {
	if (gb_intrans) return;
	gb_intrans = true;
	if (guo_trans != null) {clearTimeout(guo_trans); guo_trans = null;}
	clearAllTransitions();
	changeObjOpacity(0, gi_last_transo);
	changeObjOpacity(0, gi_curr_transo);
	gi_last_transo = gi_curr_transo;
	gi_curr_transo--;
	if (gi_curr_transo < 0) gi_curr_transo = gs_transo.length - 1;
	else if (gi_curr_transo >= gs_transo.length) gi_curr_transo = 0;
	changeObjOpacity(100, gi_curr_transo);
	guo_trans = setTimeout("playSlides()", gi_slideinterval);
	setTimeout("resetTrans()", gi_slideinterval + gi_fade_interval + 100);
	gb_intrans = false;
}
function nextSlide() {
	if (gb_intrans) return;
	gb_intrans = true;
	if (guo_trans != null) {clearTimeout(guo_trans); guo_trans = null;}
	clearAllTransitions();
	changeObjOpacity(0, gi_last_transo);
	changeObjOpacity(0, gi_curr_transo);
	gi_last_transo = gi_curr_transo;
	gi_curr_transo++;
	if (gi_curr_transo < 0) gi_curr_transo = gs_transo.length - 1;
	else if (gi_curr_transo >= gs_transo.length) gi_curr_transo = 0;
	changeObjOpacity(100, gi_curr_transo);
	guo_trans = setTimeout("playSlides()", gi_slideinterval);
	setTimeout("resetTrans()", gi_slideinterval + gi_fade_interval + 100);
	gb_intrans = false;
}
function startSlides() {
	if (gb_playtrans) return;
	gb_playtrans = true;
	if (guo_trans == null)
		playSlides();
}
function stopSlides() {
	if (!gb_playtrans) return;
	gb_playtrans = false;
	clearAllTransitions();
	changeObjOpacity(0, gi_last_transo);
	changeObjOpacity(100, gi_curr_transo);
}
function autoStartSlides(ai_wait) {
	if (ai_wait == null) ai_wait = gi_slideinterval;
	gb_play = true;
	guo_trans = setTimeout("playSlides()", ai_wait);
//	setTimeout("resetTrans()", gi_slideinterval + gi_fade_interval + 100);
}
// -->
