<!--
var isIE = true;
if (navigator.appName.indexOf("Microsoft") > -1) {
	isIE = true;
} else {
	isIE = false;
}


function GetParam(name)
{
	var start=location.search.indexOf("?"+name+"=");
	if (start<0) start=location.search.indexOf("&"+name+"=");
 	if (start<0) return '';
 	start += name.length+2;
 	var end=location.search.indexOf("&",start)-1;
 	if (end<0) end=location.search.length;
 	var result=location.search.substring(start,end);
 	var result='';
 	for(var i=start;i<=end;i++)
 	{
 		var c=location.search.charAt(i);
 		result=result+(c=='+'?' ':c);
 	}
 	//alert(unescape(result));
 	return unescape(result);
}


function NewWindow(mypage, myname, w, h, scroll,resizable) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
	win = window.open(mypage, myname, winprops)
	win.self.focus()
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function genFlash(file, width, height, id, vars) {
	var tempHtml = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'">';
	tempHtml += '<param name="movie" value="'+file+'">';
	tempHtml += '<param name="quality" value="high">';
	tempHtml += '<param name="menu" value="false">';
	tempHtml += '<param name="wmode" value="opaque">';
	tempHtml += '<param name="scale" value="noscale">';
	tempHtml += '<param name="salign" value="TL">';
	
	if (vars != null) {
		tempHtml += '<param name="flashVars" value="'+vars+'">';
		tempHtml += '<embed src="'+file+'" flashVars="'+vars+'" salign="TL" quality="high" scale="noscale" wmode="opaque" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'"></embed>';
	} else {
		tempHtml += '<embed src="'+file+'" salign="TL" quality="high" scale="noscale" wmode="opaque" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'"></embed>';
	}
	
	tempHtml += '</object>';
	
	document.write(tempHtml);
}


var popUpPage2;

function popupFlash(file, w, h, name, vars) {
 //alert(popUpPage2);
 if (popUpPage2)	popUpPage2.close();
 
 popUpPage2 = window.open('', ''+name+'', 'width='+w+',height='+h+',left=0,top=0,screenX=0,screenY=0,scrollbars=0,resizable=0');
 popUpPage2.document.open();
 popUpPage2.document.write('<html>');
 popUpPage2.document.write('<head><title>香港賽馬會</title></head>');
 popUpPage2.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
 popUpPage2.document.write('	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" id="'+name+'" name="'+name+'">');
 popUpPage2.document.write('	<param name="allowScriptAccess" value="always">');
 popUpPage2.document.write('	<param name="movie" value="'+file+'">');
 popUpPage2.document.write('	<param name="quality" value="high">');
 popUpPage2.document.write('	<param name="menu" value="false">');
	
	if (vars != null) {
 		popUpPage2.document.write('	<param name="flashVars" value="'+vars+'">');
 		popUpPage2.document.write('	<embed src="'+file+'" allowScriptAccess="always" flashVars="'+vars+'" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" id="'+name+'" name="'+name+'"></embed>');
	} else {
 		popUpPage2.document.write('	<embed src="'+file+'" allowScriptAccess="always" quality="high" scale="noscale" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" id="'+name+'" name="'+name+'"></embed>');
	}
	
 popUpPage2.document.write('	</object>');
 popUpPage2.document.write('</body>');
 popUpPage2.document.write('</html>');
 popUpPage2.document.close();
 popUpPage2.focus();
}


var btnSection = "draw";
//document.getElementById(('btn_'+btnSection)).src = '/marksix/info/ch/images/btn_'+btnSection+'_on.gif';

function btnClick(i) {
	var btn = document.getElementById(('btn_'+i));
	var btn1 = document.getElementById(('btn_'+btnSection));
	var div = document.getElementById(('div_'+i));
	var div1 = document.getElementById(('div_'+btnSection));
	
	if (btnSection != i) {
		btn1.src = '/root/marksix/info/ch/images/btn_'+btnSection+'_off.gif';
		div1.style.visibility = 'hidden';
		div.style.visibility = 'visible';
		btnSection = i;
	}
}


function btnOver(i, over) {
	var btn = document.getElementById(('btn_'+i));
	
	if (over) {
		if (btnSection != i)	btn.src = '/root/marksix/info/ch/images/btn_'+i+'_on.gif';
	} else {
		if (btnSection != i)	btn.src = '/root/marksix/info/ch/images/btn_'+i+'_off.gif';
	}
}


var target;

function initsize(i) { 
	var tmp = window.location.href.substr(7) ;
	SERVER_NAME = tmp.substr(0, tmp.indexOf("/")) ;
	domainName = SERVER_NAME.substr(SERVER_NAME.indexOf(".")+1) ;
	//if (isIE) document.domain = domainName;
	document.domain = domainName;
	
	target = i;
	updateSize();
}

function updateSize() {
	try
	{
		if (parent)
		{
			document.body.style.display = "block";
			window.parent.document.getElementById(target).height = document.body.scrollHeight;
			window.parent.document.getElementById(target).width = document.body.scrollWidth;
		}
	}
	catch (e) {
		setTimeout("updateSize()", 500);
	}
}

function initsize2(i) { 
	var tmp = window.location.href.substr(7) ;
	SERVER_NAME = tmp.substr(0, tmp.indexOf("/")) ;
	domainName = SERVER_NAME.substr(SERVER_NAME.indexOf(".")+1) ;
	//if (isIE) document.domain = domainName;
	document.domain = domainName;
	
	target = i;
	updateSize2();
}

function updateSize2() {
	try
	{
		if (parent)
		{
			document.body.style.display = "block";
			window.parent.document.getElementById(target).height = document.body.scrollHeight;
			//window.parent.document.getElementById(target).width = document.body.scrollWidth;
		}
	}
	catch (e) {
		setTimeout("updateSize2()", 500);
	}
}


var crazyAdvFile = null;

function genSubMenu(sect, array)
{
	var tempHtml = '';
	var section = eval(sect+"Sect");
	
	tempHtml += '<table border="0" cellspacing="0" cellpadding="0">';
	tempHtml += '	<tr valign="bottom">';
	
	for (var i=0; i<array.length; i++)
	{
		if (section == (i+1))
		{
			var tempClass = sect+'BtnOver';
			var tempClass1 = sect+'BotLineOver';
		}
		else
		{
			var tempClass = sect+'Btn';
			var tempClass1 = sect+'BotLine';
		}
		tempHtml += '<td class="'+tempClass1+'" id="subMenuBg_'+sect+'_'+(i+1)+'">';
		tempHtml += '<table border="0" cellspacing="0" cellpadding="0">';
		tempHtml += '	<tr>';
		
		tempHtml += '<td class="'+tempClass+'" onClick="SubMenuClick('+(i+1)+', \''+sect+'\');" onMouseOver="SubMenuOver('+(i+1)+', \''+sect+'\', 1);" onMouseOut="SubMenuOver('+(i+1)+', \''+sect+'\', 0);" id="subMenu_'+sect+'_'+(i+1)+'" nowrap>'+array[i]+'</td>';
		
		tempHtml += '	</tr>';
		tempHtml += '</table>';
		tempHtml += '</td>';
		
		if ( i >= (array.length-1) ) break;
		tempHtml += '<td width="2" class="'+sect+'BotLine"><img src="/info/include/images/spacer.gif" width="2" height="1"></td>';
	}
	
	tempHtml += '<td width="100%" class="'+sect+'BotLine"><img src="/info/include/images/spacer.gif" width="2" height="1"></td>';
	
	tempHtml += '	</tr>';
	tempHtml += '</table>';
	
	document.write(tempHtml);
}


function SubMenuOver(i, sect, over)
{
	var btn = document.getElementById('subMenu_'+sect+'_'+i);
	var bg = document.getElementById('subMenuBg_'+sect+'_'+i);
	var section = eval(sect+"Sect");
	
	if (over)
	{
		if (i != section)
		{
			btn.className = sect+'BtnOver';
			bg.className = sect+'BotLineOver';
		}
	}
	else
	{
		if (i != section)
		{
			btn.className = sect+'Btn';
			bg.className = sect+'BotLine';
		}
	}
}


function SubMenuClick(i, sect)
{
	var btn = document.getElementById('subMenu_'+sect+'_'+i);
	var bg = document.getElementById('subMenuBg_'+sect+'_'+i);
	var table = document.getElementById('div_'+i);
	var section = eval(sect+"Sect");
	var btn1 = document.getElementById('subMenu_'+sect+'_'+section);
	var bg1 = document.getElementById('subMenuBg_'+sect+'_'+section);
	var table1 = document.getElementById('div_'+section);
	
	if (i == section)	return;
	
	btn.className = sect+'BtnOver';
	btn1.className = sect+'Btn';
	
	bg.className = sect+'BotLineOver';
	bg1.className = sect+'BotLine';
	
	table.style.visibility = 'visible';
	table1.style.visibility = 'hidden';
	
	switch (sect)
	{
		case "racing":	
			racingSect = i;
			break;
		case "football":
			footballSect = i;
			break;
		case "marksix":
			marksixSect = i;
			break;
	}
}

function openRow(row, btn, picPath, isOpen) {
	if (iconHit)	return;
	
	var row1 = document.getElementById(row);
	if (btn)	var btn1 = document.getElementById(btn);
	
	if (!(row)) return;
	
	if (!row1.clicked) {
		if (btn)	btn1.src = picPath + 'btn_close.gif';
		row1.style.display = (isIE)?'block':'table';
		row1.clicked = true;
	} else {
		if (!isOpen) {
			if (btn)	btn1.src = picPath + 'btn_open.gif';
			row1.style.display = 'none';
			row1.clicked = false;
		}
	}
}


var iconHit = false;

function closeRow(row, btn, picPath, isOpen) {
	if (iconHit)	return;
	
	var row1 = document.getElementById(row);
	if (btn)	var btn1 = document.getElementById(btn);
	
	if (!(row)) return;
	
	if (!row1.clicked) {
		if (btn)	btn1.src = picPath + 'btn_open.gif';
		row1.style.display = 'none';
		row1.clicked = true;
	} else {
		if (!isOpen) {
			if (btn)	btn1.src = picPath + 'btn_close.gif';
			row1.style.display = (isIE)?'block':'table-row-group';
			row1.clicked = false;
		}
	}
}


function genLuckyOcb()
{
	var tempHtml = '';
	
	tempHtml += '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">';
	tempHtml += '	<tr>';
	tempHtml += '		<td width="6%" align="center" class="tableContentHeadHft" nowrap><img src="../images/spacer.gif" width="20" height="1"></td>';
	tempHtml += '		<td width="12%" align="center" class="tableContentHeadHft">場外<br>投注處</td>';
	tempHtml += '		<td width="10%" align="center" class="tableContentHeadHft">94-<br>01年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">02年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">03年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">04年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">05年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">06年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">07年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">08年</td>';
	tempHtml += '		<td align="center" class="tableContentHeadHft">09年</td>';	
	tempHtml += '		<td align="center" class="tableContentHeadHft" style="padding:0px 3px 0px 0px;">總計</td>';
	tempHtml += '	</tr>';
	
	for (var i=0; i<ocbArray.length; i++)
	{
		if (i%2 == 0)	tempClass = "tableContent2Hft";	else	tempClass = "tableContent1Hft";
		var tempNum = 0;
		
		tempHtml += '<tbody onMouseOver="mapPointOver('+i+', 1);" onMouseOut="mapPointOver('+i+', 0);" style="cursor:pointer;" style="padding-top:1px;">';
		tempHtml += '<tr>';
		tempHtml += '<td align="center" class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'" style="border-right:none;" nowrap>'+(i+1)+'</td>';
//		tempHtml += '<td class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+ocbArray[i].name+'('+ocbArray[i].locId+')</td>';
		tempHtml += '<td class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+ocbArray[i].name+'</td>';
		
		var totalNum = 0;
		
		for (var j=0; j<ocbArray[i].num.length; j++)
		{
			if (ocbArray[i].num[j] == '')
			{
				var num = '-';
			}
			else
			{
				var num = ocbArray[i].num[j] + '';
				totalNum += Number(ocbArray[i].num[j]);
			}
			tempHtml += '<td align="center" class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+num+'</td>';
		}
			
		tempHtml += '<td align="center" class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+totalNum+'次</td>';
		
		tempHtml += '</tr>';
		tempHtml += '</tbody>';
		
		//OCB Address starts
		tempHtml += '<tbody>';
		tempHtml += '<tr>';
		tempHtml += '<td colspan="11">';
		tempHtml += '<div style="postion:absolute; overflow:hidden; height:1px;" id="mapDetail_'+i+'">';
		
		tempHtml += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
		tempHtml += '<tr>';
		tempHtml += '<td class="'+tempClass+'" style="padding:1px 0px 0px 18px;" id="mapDetailTxt_'+i+'">地址﹕'+ocbArray[i].address+'</td>';
		tempHtml += '</tr>';
		tempHtml += '</table>';
		
		tempHtml += '</div>';
		tempHtml += '</td>';
		tempHtml += '</tr>';
		tempHtml += '</tbody>';
		//OCB Address ends
	}
	
	tempHtml += '</table>';
	
	document.getElementById('ocbTable').innerHTML = tempHtml;
	
	genOcbMap();
}


function genLuckyOcb2()
{
	for (var i=0; i<ocbArray.length; i++)
	{
		var totalNum = 0;
		
		for (var j=0; j<ocbArray[i].num.length; j++)
		{
			if (ocbArray[i].num[j] != '')
			{
				totalNum += Number(ocbArray[i].num[j]);
			}
		}
		
		ocbArray[i].totalNum = totalNum;
	}
	
	ocbArray.sort(
		function sortNumber(a, b)
		{
			return b.totalNum - a.totalNum;
		}
	);
	
	var tempHtml = '';
	
	tempHtml += '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">';
	tempHtml += '	<tr>';
	tempHtml += '		<td width="4%" align="center" class="tableContentHeadHft" nowrap><img src="../images/spacer.gif" width="20" height="1"></td>';
	tempHtml += '		<td width="8%" class="tableContentHeadHft">場外<br>投注處</td>';
	tempHtml += '		<td class="tableContentHeadHft">地址</td>';
	tempHtml += '		<td width="6%" align="center" class="tableContentHeadHft">1994-2003</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2004</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2005</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2006</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2007</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2008</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2009</td>';
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2010</td>';	
	tempHtml += '		<td width="5%" align="center" class="tableContentHeadHft">2011</td>';
	tempHtml += '		<td width="7%" align="center" class="tableContentHeadHft" style=" font-weight:bold;">總計</td>';
	tempHtml += '	</tr>';
	
	for (var i=0; i<ocbArray.length; i++)
	{
		if (i%2 == 0)	tempClass = "tableContent2Hft";	else	tempClass = "tableContent1Hft";
		var tempNum = 0;
		
		tempHtml += '<tbody onMouseOver="mapPointOver('+i+', 1);" onMouseOut="mapPointOver('+i+', 0);" style="cursor:default;">';
		tempHtml += '<tr valign="top">';
		tempHtml += '<td align="center" class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'" style="border-right:none;" nowrap>'+(i+1)+'</td>';
//		tempHtml += '<td class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+ocbArray[i].name+'('+ocbArray[i].locId+')</td>';
		tempHtml += '<td class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+ocbArray[i].name+'</td>';
		tempHtml += '<td class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+ocbArray[i].address+'</td>';
		
		for (var j=0; j<ocbArray[i].num.length; j++)
		{
			if (ocbArray[i].num[j] == '')
			{
				var num = '-';
			}
			else
			{
				var num = ocbArray[i].num[j] + '';
			}
			tempHtml += '<td align="center" class="'+tempClass+'" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+num+'</td>';
		}
			
		tempHtml += '<td align="center" class="'+tempClass+'" style="font-weight:bold;" id="'+ocbArray[i].locId+'_'+(tempNum++)+'">'+ocbArray[i].totalNum+'次</td>';
		
		tempHtml += '</tr>';
		tempHtml += '</tbody>';
	}
	
	tempHtml += '</table>';
	
	document.getElementById('ocbTable').innerHTML = tempHtml;
	
	genOcbMap();
}


function genOcbMap()
{
	var tempHtml = '';
	
	for (var i=0; i<ocbArray.length; i++)
	{
		tempHtml += '<div style="position:absolute; left:'+ocbArray[i].x+'px; top:'+ocbArray[i].y+'px;">';
		tempHtml += '<table border="0" cellspacing="0" cellpadding="0" onMouseOver="mapPointOver('+i+', 1);" onMouseOut="mapPointOver('+i+', 0);" onClick="" style="cursor:default;">';
		
		/*if (i < 3)
		{
			var c = 'black';
			var style = 'color:#990000; font-weight:bold;';
		}
		else
		{*/
			var c = 'black';
			var style = '';
		//}
		
		if (ocbArray[i].dirMode == "1")
		{
			tempHtml += '<tr valign="top">';
			tempHtml += '<td style="padding:5px 3px 0px 3px;" id="mapPointBg_'+i+'"><img src="../images/mark6/map_point_on.gif" id="mapPoint_'+i+'"></td>';
			tempHtml += '<td class="'+c+'" id="mapTxt_'+i+'" style="padding:2px 0px 0px 2px;'+style+'" nowrap>'+ocbArray[i].name+' ('+ocbArray[i].totalNum+'次)</td>';
			tempHtml += '</tr>';
		}
		else
		{
			tempHtml += '<tr valign="top">';
			tempHtml += '<td class="'+c+'" id="mapTxt_'+i+'" style="padding:2px 0px 0px 2px;'+style+'" nowrap> ('+ocbArray[i].totalNum+'次) '+ocbArray[i].name+'</td>';
			tempHtml += '<td style="padding:5px 3px 0px 3px;" id="mapPointBg_'+i+'"><img src="../images/mark6/map_point_on.gif" id="mapPoint_'+i+'"></td>';
			tempHtml += '</tr>';
		}
		
		tempHtml += '</table>';
		tempHtml += '</div>';
	}
	
	document.getElementById('ocbMap').innerHTML = tempHtml;
}

var timeOut;
var goSpeed = 15;

function mapPointOver(i, over)
{
	var txt = document.getElementById('mapTxt_'+i);
	var point = document.getElementById('mapPoint_'+i);
	var pointBg = document.getElementById('mapPointBg_'+i);
	var detail = document.getElementById('mapDetail_'+i);
	var detailTxt = document.getElementById('mapDetailTxt_'+i);
	
	var cols = 13;
	
	if (over == 1)
	{
//		txt.style.color = '#990000';
		txt.style.backgroundColor = '#FFF4B0';
		pointBg.style.backgroundColor = '#FFF4B0';
//		point.src = '../images/mark6/map_point_on.gif';
		
		for (var j=0; j<cols; j++)
		{
			var td = document.getElementById(ocbArray[i].locId+'_'+j);
//			td.style.color = '#990000';
			td.style.backgroundColor = '#FFF4B0';
		}
	}
	else
	{
//		txt.style.color = '';
		txt.style.backgroundColor = '';
		pointBg.style.backgroundColor = '';
//		point.src = '../images/mark6/map_point.gif';
	
		for (var j=0; j<cols; j++)
		{
			var td = document.getElementById(ocbArray[i].locId+'_'+j);
//			td.style.color = '';
			td.style.backgroundColor = '';
		}	
	}
}

function subNavMotion() {
	for (var k=0; k<11; k++) {
		if (document.getElementById('mapDetail_'+k)) {
			subNav = document.getElementById('mapDetail_'+k);
			
			if (navigator.appName.indexOf("Microsoft") > -1) {
				subNav.objH = Number(subNav.style.pixelHeight);
			} else {
				var tempH = subNav.style.height;
				tempH = Number(tempH.substring(0, (tempH.length-2)));
				subNav.objH = tempH;
			}
			
			subNav.goStep = (subNav.tempH - subNav.objH)/subNav.speed;
			
			if (!(Math.abs(subNav.objH - subNav.tempH) < 1)) {
				subNav.objH += subNav.goStep;
			} else {
				subNav.objH = subNav.tempH;
				clearTimeout(timeOut);
			}
			subNav.style.height = subNav.objH + "px";
		}
	}
	
	timeOut = setTimeout("subNavMotion()", goSpeed);
}

function popupWin(mypage) {
	NewWindow(mypage, 'popupWin', 750, 500, 1, 1);
}

function popupInfo(mypage) {
	NewWindow(mypage, 'popupWin', 770, 550, 1, 0);
}

var win;
var winPopupLink;

function popupLink(mypage) {
	//var tmp = window.location.href.substr(7) ;
	//SERVER_NAME = tmp.substr(0, tmp.indexOf("/")) ;
	//domainName = SERVER_NAME.substr(SERVER_NAME.indexOf(".")+1) ;
	if (mypage)
	{
		winPopupLink = mypage;
	}
	var winprops = '';
	try {
		if (win)
			{
				win.location = winPopupLink;
			}
		else
			{
				win = window.open(winPopupLink, 'popupPage', winprops);
			}
	}
	catch (e)
	{
		setTimeout("popupLink()", 500);
	};
	//win.document.domain = domainName;
	win.self.focus();
//	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popupLinkWithTarget(mypage, target) {
	var winprops = '';
	
	if (window.opener) {
		window.opener.location.href = mypage;
		window.opener.focus();
	} else {
		var win = window.open(mypage, target, winprops);
		win.self.focus();
	}
//	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

-->
