//
//	(c) 2011 SoftIB, SIA (all rights reserved)
//
var sCol1 = 'rgb(0,0,0)'; var sCol2 = 'rgb(255,0,0)';
var nSelPage = 0;
var oHttp = oT = null;
var aGL = new Array();
var oImg = oImgOv = null; var nImgMax = 9; var nImgIndx = 0; var nImgTot = 0; var nImgType = 0;
//
var oOver = oTOver = null;
//
var oSubM = null; var lSubHide = true;
//
function SIB_ButtonState (nMode, cID, cCN)
	{
	if ($(cID).className.substr(2, 1) == 'S' || $(cID).className.substr(2, 1) == 'E') return true; var cB = cID.substr(0, cID.length - 2);
	if (nMode == 1) { $(cB + '_L').className = cCN + 'LO'; $(cB + '_C').className = cCN + 'CO'; $(cB + '_R').className = cCN + 'RO'; }
	else if (nMode == 2) { $(cB + '_L').className = cCN + 'LD'; $(cB + '_C').className = cCN + 'CD'; $(cB + '_R').className = cCN + 'RD'; }
	else { $(cB + '_L').className = cCN + 'LN'; $(cB + '_C').className = cCN + 'CN'; $(cB + '_R').className = cCN + 'RN'; }
	}
//
function SIB_GetButText (cName, cCmdT, cN, cS, cID, cOutProc, cOnProc, nSMode)
	{
	if (!nSMode) var nSMode = 0;
	var cT1 = "SIB_ButtonState(1, this.id, '" + cN + "');" + cOnProc;
	var cT2 = "SIB_ButtonState(2, this.id, '" + cN + "');";
	var cT3 = "SIB_ButtonState(0, this.id, '" + cN + "');" + cOutProc;
	var cT4 = "if (this.className.substr(2, 1) != 'S' && this.className.substr(2, 1) != 'E') " + cCmdT;
	var cT12 = "SIB_ButtonState(1, this.id, '" + cN + "');";
	var cT5 = ' onmouseover="' + cT1 + '" onmousedown="' + cT2 + '" onmouseup="' + cT12 + '" onmouseout="' + cT3 + '" onclick="' + cT4 + '"';
	var cAns = ''; if (nSMode == 0) cAns += '<table><tr>';
	cAns += '<td id="' + cID + '_L" class="' + cN + 'L' + cS + '"' + cT5 + ' nowrap></td><td id="' + cID + '_C" class="' + cN + 'C' + cS + '"' + cT5 + ' nowrap>' + cName + '</td><td id="' + cID + '_R" class="' + cN + 'R' + cS + '"' + cT5 + ' nowrap></td>';
	if (nSMode == 0) cAns += '</tr></table>'; return cAns;
	}
//
function SIB_GetWButText (cCmdT, cN, cS, cID, cTxt)
	{
	if (!cTxt) var cTxt = '';
	if (!cID) var cID = '';
	var cT1 = "if (this.className.substr(4, 1) != 'E' && this.className.substr(4, 1) != 'S') this.className = this.className.substr(0, 4) + 'O';";
	var cT2 = "if (this.className.substr(4, 1) != 'E' && this.className.substr(4, 1) != 'S') this.className = this.className.substr(0, 4) + 'D';";
	var cT3 = "if (this.className.substr(4, 1) != 'E' && this.className.substr(4, 1) != 'S') this.className = this.className.substr(0, 4) + 'N';";
	var cT4 = "if (this.className.substr(4, 1) != 'E' && this.className.substr(4, 1) != 'S') " + cCmdT;
	var cT5 = ' onmouseover="' + cT1 + '" onmousedown="' + cT2 + '" onmouseup="' + cT1 + '" onmouseout="' + cT3 + '" onclick="' + cT4 + '"';
	var cIDT = ''; if (cID != '') cIDT = ' id="' + cID + '"';
	return '<table><tr><td' + cIDT + ' class="' + cN + cS + '"' + cT5 + ' nowrap>' + cTxt + '</td></tr></table>';
	}
//
function SIB_MenuButtonState (nMode, cID, cCN)
	{
	if ($(cID).className.substr($(cID).className.length - 1, 1) == 'S') return true;
	if (nMode == 1) $(cID).className = cCN + 'O';
	else if (nMode == 2) $(cID).className = cCN + 'D';
	else $(cID).className = cCN + 'N';
	}
//
function SIB_DataChange (cForm)
	{
	if (!cForm) var cForm = 'data';
	$(cForm).action = 'inc/sesdata.php'; $(cForm).submit();
	return true;
	}
//
function SIB_OverOn ()
	{
	oOver = document.createElement('div'); oOver.className = 'Over'; oOver.style.opacity = 0.75; if (typeof oOver.innerText != 'undefined') oOver.style.filter = 'alpha(opacity = 75)';
	var aPS = SIB_PageSize(); oOver.style.width = aPS[0]; oOver.style.height = aPS[1];
	$('body').appendChild(oOver);
	window.onresize = SIB_OverResize;
	return true;
	}
//
function SIB_OverOff ()
	{
	$('body').removeChild(oOver);
	oOver = null; window.onresize = null;
	return true;
	}
//
function SIB_OverResize ()
	{
	if (!oOver) return true;
	oTOver = setTimeout('SIB_OverResize2()', 250);
	}
//
function SIB_OverResize2 ()
	{
	clearTimeout(oTOver); var aPS = SIB_PageSize(); oOver.style.width = aPS[0]; oOver.style.height = aPS[1]; return true;
	}
//
function SIB_ShowGMap (cCoord, nW, nH, cParms)
	{
	var cUrl = 'http://maps.google.com/maps/api/staticmap?size=' + nW + 'x' + nH + '&markers=' + cParms + '%7C' + cCoord + '&zoom=14&sensor=false';
	return '<img src="' + cUrl + '" width="' + nW + '" height="' + nH + '" alt="Google map">';
	}
//
function SIB_SubMenuOn (cData)
	{
	if (oSubM) SIB_SubMenuOff2();
	lSubHide = false;
	var cT = '<table>'; var aEl = cData.split('|'); var aD = aEl[aEl.length - 1].split('^');
	for (var N = 0; N < aEl.length - 1; N++)
		{
		var aE = aEl[N].split('^'); var cS = 'N'; if (aD[2] == aE[1]) cS = 'S';
		cT += '<tr>' + SIB_GetButText(aE[0], 'window.open(\'' + aD[0] + aE[1] + '/\', \'_self\');', 'B', cS, 'Ms' + (N + 1), 'SIB_SubMenuOff();', 'lSubHide = false;', 1) + '</td></tr>';
		}
	cT += '</table>';
	oSubM = document.createElement('div'); oSubM.className = 'Abs';
	var aPos = SIB_GetObjectPos($(aD[1] + '_L')); oSubM.style.left = aPos[0] + 'px'; oSubM.style.top = (aPos[1] + 36) + 'px';
	oSubM.innerHTML = cT; $('body').appendChild(oSubM);
	return true;
	}
//
function SIB_SubMenuOff ()
	{
	if (!oSubM) return true;
	lSubHide = true;
	oT = setTimeout('SIB_SubMenuOff2()', 100);
	}
//
function SIB_SubMenuOff2 ()
	{
	clearTimeout(oT);
	if (!oSubM) return true;
	if (lSubHide == false) return true;
	$('body').removeChild(oSubM); oSubM = null; oT = null;
	return true;
	}
//
function SIB_ConvText (cStr, cB1, cB2)
	{
	var cTxt = ''; var lSet = false;
	for (var N = 0; N < cStr.length; N++)
		{
		var cAns = cStr.substr(N, 1);
		if (cAns == cB2) cAns = ''; else if (cAns == cB1) { if (lSet == false) { cAns = '@'; lSet = true; } else cAns = '.'; }
		cTxt = cTxt + cAns;
		}
	return '<a href="' + 'ma' + 'ilto:' + cTxt + '">' + cTxt + '</a>';
	}
//
function SIB_WindowSize()
	{
	var nW = nH = 0;
	if (typeof(window.innerWidth) == 'number')
		{
		nW = window.innerWidth;
		nH = window.innerHeight;
		}
	else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
		{
		nW = document.documentElement.clientWidth;
		nH = document.documentElement.clientHeight;
		}
	else if (document.body && (document.body.clientWidth || document.body.clientHeight))
		{
		nW = document.body.clientWidth;
		nH = document.body.clientHeight;
		}
	return [nW, nH];
	}
//
function SIB_GetObjectPos (oObj)
	{
	var nCX = nCY = 0;
	if (oObj.offsetParent)
		{
		do { nCX += oObj.offsetLeft; nCY += oObj.offsetTop; }
		while (oObj = oObj.offsetParent);
		}
	return [nCX, nCY];
	}
//
function SIB_PageSize ()
	{
	var nW = nH = xS = yS = wW = wH = 0;
	if (window.innerHeight && window.scrollMaxY)
		{	
		xS = window.innerWidth + window.scrollMaxX;
		yS = window.innerHeight + window.scrollMaxY;
		}
	else if (document.body.scrollHeight > document.body.offsetHeight)
		{
		xS = document.body.scrollWidth;
		yS = document.body.scrollHeight;
		}
	else
		{
		xS = document.body.offsetWidth;
		yS = document.body.offsetHeight;
		}
	if (self.innerHeight)
		{
		if (document.documentElement.clientWidth) wW = document.documentElement.clientWidth; 
		else wW = self.innerWidth;
		wH = self.innerHeight;
		}
	else if (document.documentElement && document.documentElement.clientHeight)
		{
		wW = document.documentElement.clientWidth;
		wH = document.documentElement.clientHeight;
		}
	else if (document.body)
		{
		wW = document.body.clientWidth;
		wH = document.body.clientHeight;
		}	
	if (yS < wH) nH = wH; else nH = yS;
	if (xS < wW) nW = wW; else nW = xS;
	return [nW, nH];
	}
//
function SIB_ShowFlash (cID, cFile, nX, nY)
	{
	if (oOver) return true;
	var lFlash = false;
	try { var oF = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); if (oF) lFlash = true; } catch(e) {}
	try { var oF = (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash']) ? navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin : 0; if(oF) lFlash = true; } catch(e) { if (navigator.mimeTypes ['application/x-shockwave-flash'] != undefined) lFlash = true; }
	if (lFlash == true)
		{
		var cT = '<!--[if !IE]> --><object type="application/x-shockwave-flash" data="' + cFile + '" width="' + nX + '" height="' + nY + '"><!-- <![endif]-->';
		cT += '<!--[if IE]><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
		cT += 'width="' + nX + '" height="' + nY + '"><param name="movie" value="' + cFile + '" /><param name="loop" value="true" /><param name="menu" value="false" /></object><!-- <![endif]-->';
		$(cID).innerHTML = cT;
		}
	}
//
function SIB_FormTest (cCode, cData, cAlert)
	{
	var lErr = false; var aEl = cData.split('|'); var cT = '';
	for (var N = 0; N < aEl.length; N++)
		{
		aE = aEl[N].split('^'); var cNm = cCode + '_' + aE[2]; var oObj = $(cNm);
		if (aE[1] == 'Y')
			{
			if ((oObj.value == '') || (oObj.value == 0 && aE[0] == 'N')) { $('T_' + cNm).style.color = 'rgb(255,0,0)'; lErr = true; if (cT == '') cT = cNm; }
			else $('T_' + cNm).style.color = 'rgb(0,0,0)';
			}
		}
	if (lErr == true) { $('FormErr').innerHTML = '<p class="Sep8"></p>' + cAlert; $(cT).focus(); return false; }
	$('FormErr').innerHTML = ''; SIB_DataChange();
	return true;
	}
//
function SIB_SwitchPage (cHref)
	{
	window.open($('BaseHref').href + cHref, '_self'); return true;
	}
//
function $ (cID) { return document.getElementById(cID); }
//
function SIB_OpenGL (cID)
	{
	var cT = $(cID).abbr; var cD = $(cID).axis;
	nImgIndx = 0; var aT = cT.split('^'); aGL = cD.split('|'); var aF = aGL[0].split('^'); nImgTot = aGL.length;
	var cAT = '<table style="width: 100%; height: 100%;"><tr style="height: 14px;"><td></td></tr><tr style="height: 100%;"><td><table style="width: 100%; height: 100%;"><tr><td style="width: 4px;" nowrap></td><td style="width: 100%; vertical-align: middle;"><b>' + aT[2] + '</b></td><td style="width: 8px;" nowrap></td><td style="vertical-align: middle;">' + SIB_GetWButText("SIB_CloseGL();", 'ICls', 'N', 'CloseGL') + '</td><td style="width: 4px;" nowrap></td></tr></table></td></tr></table>';
	var cAC = '<table><tr><td><img id="GLimgprv" style="display: none;" src="" width="1" height="1" alt="*"><img id="GLimgnxt" style="display: none;" src="" width="1" height="1" alt="*"><img id="GLimg" style="position: relative;" src="inc/getpct.php?img=' + aT[0] + '^' + aF[0] + '^' + aT[1] + '" width="320" height="240" alt=""></td></tr></table>';
	var cAB = '<table style="width: 100%; height: 100%;"><tr style="height: 100%;"><td><table style="width: 100%; height: 100%;"><tr><td style="vertical-align: middle;"><table><tr><td style="width: 4px;" nowrap></td>';
	if (nImgType == 0)
		{
		cAB += '<td id="ImgCount" style="vertical-align: middle;"><b>1/' + nImgTot + '</b></td>';
		}
	else
		{
		var cCT = 'S';
		for (var N = 0; N < nImgTot; N++)
			{
			cAB += '<td style="vertical-align: middle;">' + SIB_GetWButText("SIB_SwitchGL('" + cT + "', 6, " + (N + 1) + ");", 'INum', cCT, 'NumB' + (N + 1), (N + 1)) + '</td>';
			cCT = 'N'; if (N < nImgTot && N < nImgMax - 1) cAB += '<td style="width: 4px;" nowrap></td>'; else break;
			}
		}
	var cEnPrv = cEnNxt = 'E'; if (nImgTot > 1) cEnNxt = 'N';
	cAB += '<td style="width: 8px;" nowrap></td><td id="GLimgdesc" style="width: 100%; line-height: 100%; text-align: center; vertical-align: middle;">' + aF[3] + '</td><td style="width: 8px;" nowrap></td>';
	cAB += '<td style="vertical-align: middle;">' + SIB_GetWButText("SIB_SwitchGL('" + cT + "', 1);", 'IBeg', cEnPrv, 'GLbeg') + '</td><td style="width: 4px;" nowrap></td>';
	cAB += '<td style="vertical-align: middle;">' + SIB_GetWButText("SIB_SwitchGL('" + cT + "', 2);", 'IPrv', cEnPrv, 'GLprv') + '</td><td style="width: 4px;" nowrap></td>';
	cAB += '<td style="vertical-align: middle;">' + SIB_GetWButText("SIB_SwitchGL('" + cT + "', 3);", 'IPly', cEnNxt, 'GLply') + '</td><td style="width: 4px;" nowrap></td>';
	cAB += '<td style="vertical-align: middle;">' + SIB_GetWButText("SIB_SwitchGL('" + cT + "', 4);", 'INxt', cEnNxt, 'GLnxt') + '</td><td style="width: 4px;" nowrap></td>';
	cAB += '<td style="vertical-align: middle;">' + SIB_GetWButText("SIB_SwitchGL('" + cT + "', 5);", 'IEnd', cEnNxt, 'GLend') + '</td>';
	cAB += '<td style="width: 4px;" nowrap></td></tr></table></td></tr></table></td></tr><tr style="height: 14px;"><td></td></tr></table>';
	//
	var cAns = '<table><tr><td class="Win1" nowrap></td><td class="Win2" nowrap>';
	cAns += cAT + '</td><td class="Win3" nowrap></td></tr><tr><td class="Win8" nowrap></td><td class="Win9" nowrap>';
	cAns += cAC + '</td><td class="Win4" nowrap></td></tr><tr><td class="Win72" nowrap></td><td class="Win62" nowrap>';
	cAns += cAB + '</td><td class="Win52" nowrap></td></tr></table>';
	//
	$('Flash').innerHTML = ''; SIB_OverOn(); oImg = document.createElement('div'); oImg.className = 'Abs';
	oImg.innerHTML = cAns; $('body').appendChild(oImg); SIB_SizeGL(parseInt(aF[1]), parseInt(aF[2]), oImg); SIB_SetGL(cT);
	}
//
function SIB_CloseGL ()
	{
	$('body').removeChild(oImg); oImg = null; $('body').removeChild(oImgOv); oImgOv = null; if (oT) clearInterval(oT); oT = null; SIB_OverOff(); SIB_ShowFlash('Flash', 'inc/mda/flash.swf', 192, 156);
	}
//
function SIB_SizeGL (nIW, nIH, oImg)
	{
	var aWS = SIB_WindowSize(); var nRz = 1.0000;
	var nWidth = $('Base').clientWidth - (16 + 2 * 22); if (nWidth < 600) nWidth = 600;
	var nHeight = parseInt(aWS[1]) - (48 + 2 * 44);  if (nHeight < 600) nHeight = 600;
	if (nIW > nWidth)
		{
		nRz = nWidth / nIW; nIW = parseInt(nIW * nRz); nIH = parseInt(nIH * nRz);
		}
	if (nIH > nHeight)
		{
		nRz = nHeight / nIH; nIW = parseInt(nIW * nRz); nIH = parseInt(nIH * nRz);
		}
	$('GLimg').width = nIW; $('GLimg').height = nIH;
	var nW = (aWS[0] - oImg.clientWidth) / 2 - 8; if (nW < 24) nW = 24;
	if (typeof window.pageYOffset != 'undefined') var nA = window.pageYOffset; else var nA = document.body.scrollTop;
	var nH = (aWS[1] - oImg.clientHeight) / 2 + nA;
	if (nH < 24 + nA) nH = nA + 24;
	oImg.style.left = nW + 'px'; oImg.style.top = nH + 'px';
	return true;
	}
//
function SIB_SwitchGL (cT, nMode, nNum)
	{
	if (!nNum) var nNum = 0;
	if (!nMode) var nMode = 0;
	if (nMode != 7 && nMode != 3) { clearInterval(oT); oT= null; $('GLply').className = 'IPlyN'; }
	var aT = cT.split('^');
	if (nMode == 1)
		{
		if (nImgIndx > 0)
			{
			nImgIndx = 0;
			var aF = aGL[nImgIndx].split('^');
			$('GLimg').src = 'inc/getpct.php?img=' + aT[0] + '^' + aF[0] + '^' + aT[1];
			}
		}
	else if (nMode == 2)
		{
		if (nImgIndx > 0)
			{
			$('GLimg').src = $('GLimgprv').src;
			nImgIndx--;
			}
		}
	else if (nMode == 3)
		{
		if ($('GLply').className.substr(0, 4) == 'IPly')
			{
			$('GLply').className = 'IStpN';
			oT = setInterval('SIB_SwitchGL(\'' + cT + '\', 7)', 3000);
			}
		else
			{
			$('GLply').className = 'IPlyN';
			clearInterval(oT); oT = null;
			}
		}
	else if (nMode == 4)
		{
		if (nImgIndx < nImgTot - 1)
			{
			$('GLimg').src = $('GLimgnxt').src;
			nImgIndx++;
			}
		}
	else if (nMode == 5)
		{
		if (nImgIndx < nImgTot - 1)
			{
			nImgIndx = nImgTot - 1;
			var aF = aGL[nImgIndx].split('^');
			$('GLimg').src = 'inc/getpct.php?img=' + aT[0] + '^' + aF[0] + '^' + aT[1];
			}
		}
	else if (nMode == 6)
		{
		nImgIndx = parseInt($('NumB' + nNum).innerHTML) - 1;
		var aF = aGL[nImgIndx].split('^');
		$('GLimg').src = 'inc/getpct.php?img=' + aT[0] + '^' + aF[0] + '^' + aT[1];
		}
	else if (nMode == 7)
		{
		if (nImgIndx < nImgTot - 1)
			{
			$('GLimg').src = $('GLimgnxt').src;
			nImgIndx++;
			}
		if (nImgIndx == nImgTot - 1) SIB_SwitchGL(cT, 3);
		}
	var aF = aGL[nImgIndx].split('^');
	$('GLimgdesc').innerHTML = aF[3]; SIB_SizeGL(parseInt(aF[1]), parseInt(aF[2]), oImg); SIB_SetGL(cT, nNum);
	return true;
	}
//
function SIB_SetGL (cT, nNum)
	{
	if (!nNum) var nNum = 0;
	if (!oImgOv)
		{
		oImgOv = document.createElement('div'); oImgOv.className = 'Abs';
		var cAns = '<table style="width: 100%; height: 100%;"><tr><td style="width: 30%; vertical-align: middle; padding: 16px; cursor: pointer;" onmouseover="SIB_OverGL(\'' + cT + '\', 1, 1);" onmouseout="SIB_OverGL(\'' + cT + '\', 1, 2);" onclick="SIB_OverGL(\'' + cT + '\', 1, 3);"><div align="left"><table><tr><td id="GLover1" class="GLover1F"></td></tr></table></div></td><td style="width: 40%; vertical-align: middle; padding: 16px; cursor: pointer;" onmouseover="SIB_OverGL(\'' + cT + '\', 2, 1);" onmouseout="SIB_OverGL(\'' + cT + '\', 2, 2);" onclick="SIB_OverGL(\'' + cT + '\', 2, 3);"><div align="center"><table><tr><td id="GLover2" class="GLover2F"></td></tr></table></div></td><td style="width: 30%; vertical-align: middle; padding: 16px; cursor: pointer;" onmouseover="SIB_OverGL(\'' + cT + '\', 3, 1);" onmouseout="SIB_OverGL(\'' + cT + '\', 3, 2);" onclick="SIB_OverGL(\'' + cT + '\', 3, 3);"><div align="right"><table><tr><td id="GLover3" class="GLover3F"></td></tr></table></div></td></tr></table>';
		oImgOv.innerHTML = cAns; $('body').appendChild(oImgOv);
		}
	var aC = SIB_GetObjectPos($('GLimg'));
	oImgOv.style.left = aC[0] + 'px'; oImgOv.style.top = aC[1] + 'px';
	oImgOv.style.width = $('GLimg').clientWidth; oImgOv.style.height = $('GLimg').clientHeight;
	var aT = cT.split('^');
	if (nImgIndx < nImgTot - 1)
		{
		var aF = aGL[nImgIndx + 1].split('^');
		$('GLimgnxt').src = 'inc/getpct.php?img=' + aT[0] + '^' + aF[0] + '^' + aT[1];
		$('GLply').className = $('GLply').className.substr(0, 4) + 'N'; $('GLnxt').className = 'INxtN'; $('GLend').className = 'IEndN';
		}
	else
		{
		$('GLply').className = 'IPlyE'; $('GLnxt').className = 'INxtE'; $('GLend').className = 'IEndE'; $('GLover2').className = 'GLover2F'; $('GLover3').className = 'GLover3F';
		}
	if (nImgIndx > 0)
		{
		var aF = aGL[nImgIndx - 1].split('^');
		$('GLimgprv').src = 'inc/getpct.php?img=' + aT[0] + '^' + aF[0] + '^' + aT[1];
		$('GLprv').className = 'IprvN'; $('GLbeg').className = 'IBegN';
		}
	else
		{
		$('GLprv').className = 'IprvE'; $('GLbeg').className = 'IBegE'; $('GLover1').className = 'GLover1F';
		}
	if (nImgType == 0)
		{
		$('ImgCount').innerHTML = '<b>' + (nImgIndx + 1) + '/' + nImgTot + '</b>';
		}
	else
		{
		var nC = 1; var nM = nImgMax; if (nImgMax > nImgTot) nM = nImgTot;
		var nBP = (nImgIndx + 1) - parseInt(nM / 2);
		if (nBP < 1 || nImgMax > nImgTot) nBP = 1;
		if (nImgTot > nImgMax && nBP > (nImgTot + 1 - nImgMax)) nBP = nImgTot + 1 - nImgMax;
		for (var N = nBP; N < nBP + nM; N++)
			{
			if (N == nImgIndx + 1) $('NumB' + nC).className = 'INumS'; else $('NumB' + nC).className = 'INumN';
			$('NumB' + nC).innerHTML = N; nC++;
			}
		}
	return true;
	}
//
function SIB_OverGL (cT, nBut, nMode)
	{
	if (nBut == 1)
		{
		if ($('GLprv').className.substr(4, 1) == 'N' && !oT)
			{
			if (nMode == 1) $('GLover1').className = 'GLover1N';
			else if (nMode == 2) $('GLover1').className = 'GLover1F';
			else SIB_SwitchGL(cT, 2);
			}
		}
	else if (nBut == 2)
		{
		if ($('GLply').className == 'IPlyN')
			{
			if (nMode == 1) $('GLover2').className = 'GLover2N';
			else if (nMode == 2) $('GLover2').className = 'GLover2F';
			else
				{
				$('GLover2').className = 'GLover4N';
				SIB_SwitchGL(cT, 3);
				}
			}
		else if ($('GLply').className == 'IStpN')
			{
			if (nMode == 1) $('GLover2').className = 'GLover4N';
			else if (nMode == 2) $('GLover2').className = 'GLover4F';
			else
				{
				$('GLover2').className = 'GLover2N';
				SIB_SwitchGL(cT, 3);
				}
			}
		}
	else if (nBut == 3)
		{
		if ($('GLnxt').className.substr(4, 1) == 'N' && !oT)
			{
			if (nMode == 1) $('GLover3').className = 'GLover3N';
			else if (nMode == 2) $('GLover3').className = 'GLover3F';
			else SIB_SwitchGL(cT, 4);
			}
		}
	}
//

