function showthumb(text1,text2,style){
	var x = event.x+document.body.scrollLeft; 
	var y = event.y+document.body.scrollTop+5;
	var style
	if (y < 0)
		y = y + 170;
	if(x > 200)
		x = x - 305;
	if(x < 0)
		x = x + 30 ;
	
	if(text1=="fulture")
	{
		text1 = "ประกาศ";
		text2 = "สำหรับผู้ที่ได้รับ Serial จาก Future Gamer <br> เปิดให้ลงทะเบียนวันที่ 13 ก.ค. 49 นี้";
		style=" style='position:absolute; top:0; left:0; width:300; height:160;  border:solid black 2px; font:normal 10pt; tahoma;  filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#F34307, EndColorStr=#FFFFFF); padding:10px;'";
	}else
	if(text1=="comp")
	{
		text1 = "ประกาศ";
		text2 = "ระบบ Register ขัดข้องบางประการ";
		 style="style='position: absolute; top:0; left:0; width:300; height:160; border:2px solid black; font:normal 10pt tahoma;  filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#bee305, EndColorStr=#FFFFFF); padding:10px'";
	}

	if(style ==  "Red")
		style = "style='position: absolute; top:0; left:0; width:300; height:160; border:2px solid black; font:normal 10pt tahoma;  filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#F34307, EndColorStr=#FFFFFF); padding:10px'";



	showLogoDiv.style.left = x;
	showLogoDiv.style.top = y;
	showLogoDiv.style.visibility =  "visible";

	txt = '<DIV ><div  '+style+' >';
	txt = txt + '<b>'+text1+'</b>';
    txt = txt + '<hr size=1 style="border:1px solid black; ">'+text2+'</div></div>';


	document.all["showLogoDiv"].innerHTML = txt;

}


function hidethumb(){
	showLogoDiv.style.visibility='hidden';
}

function random_imglink_sftour(){
var myimages=new Array()

for(var i=0;i<23;i++)
myimages[i]="http://sf.gg.in.th/Images/community/activity/sftour/random/sftour_random_"+i+".JPG" ;

var ry=Math.floor(Math.random()*myimages.length)
document.write('<img src="'+myimages[ry]+'" border=0  >')
}

function random_SFCafeCup(){
var myimages=new Array()

for(var i=0;i<11;i++)
myimages[i]="http://sf.gg.in.th/Images/community/activity/SFCC_Cafe_2007/random/SFCC_Cafe_"+i+".JPG" ;

var ry=Math.floor(Math.random()*myimages.length)
document.write('<img src="'+myimages[ry]+'" border=0  >')
}


/*function random_imglink_cafeupc(){
var cafeupcnat=new Array()
var mypic=new Array()
var mytext=new Array()
var title_01
var title_02
var title_03

title_01="<table width=266 height=181 border=0 cellpadding=0 cellspacing=0><tr><td><img src=http://sf.gg.in.th/cafe/upc/image/C1.gif width=266 height=32></td> </tr><tr> <td><table width=266 border=0 cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td width=14><img src=http://sf.gg.in.th/cafe/upc/image/C2.gif width=14 height=115></td><td width=81>"
title_02="</td><td width=8>&nbsp;</td><td width=149 valign=top><table width=149 height=110 border=0 cellpadding=0 cellspacing=0> <tr><td height=20 valign=top>"
title_03="</td></tr><tr><td valign=top class=textw>"
title_04="</td></tr> </table></td><td width=17><img src=http://sf.gg.in.th/cafe/upc/image/C3.gif width=17 height=115></td></tr></table></td></tr><tr><td><img src=http://sf.gg.in.th/cafe/upc/image/C4.gif width=266 height=35></td></tr></table>"


cafeupcnat[0]="<a href=http://sf.gg.in.th/cafe/upc/sfcafebeyond.html target=_blank><img src=http://sf.gg.in.th/cafe/upc/image/beyond.jpg border=0></a>"
cafeupcnat[1]="<a href=http://sf.gg.in.th/cafe/upc/sfcafedjung.html target=_blank><img src=http://sf.gg.in.th/cafe/upc/image/k_djung.jpg border=0></a>"
cafeupcnat[2]="<a href=http://sf.gg.in.th/cafe/upc/sfcafemagnet.html target=_blank><img src=http://sf.gg.in.th/cafe/upc/image/magnet.jpg border=0></a>"
cafeupcnat[3]="<a href=http://sf.gg.in.th/cafe/upc/sfcafewarp.html target=_blank><img src=http://sf.gg.in.th/cafe/upc/image/warp.jpg border=0></a>"


mypic[0]="<img src=http://sf.gg.in.th/cafe/upc/image/name_beyond.gif >"
mypic[1]="<img src=http://sf.gg.in.th/cafe/upc/image/name_djung.gif >"
mypic[2]="<img src=http://sf.gg.in.th/cafe/upc/image/name_magnet.gif >"
mypic[3]="<img src=http://sf.gg.in.th/cafe/upc/image/name_warp.gif >"



mytext[0]="<a href=http://sf.gg.in.th/cafe/upc/sfcafebeyond.html target=_blank class=w>เกม SF เป็นเกมที่มีระบบเรียบง่าย มีความสมจริง และเล่นได้สนุก ผลทดสอบไม่ปรากฏปัญหาความล่าช้าส่งข้อมูลของเกมผ่านอินเทอร์เน็ต...</a>"
mytext[1]="<a href=http://sf.gg.in.th/cafe/upc/sfcafedjung.html target=_blank class=w>การทดสอบก็ผ่านไปได้ด้วยดี ไม่มีผู้เล่นเครื่องใดหลุดหรือเกิดบั๊กขึ้น และจากการตรวจสอบโดยละเอียดก็พบว่าค่า Ping ของผู้เล่นในร้านไม่สม่ำเสมอ มีค่า Ping ตั้งแต่ระดับปกติจนถึงระดับ 202 ตลอดในการทดสอบ </a>"
mytext[2]="<a href=http://sf.gg.in.th/cafe/upc/sfcafemagnet.html target=_blank class=w>ผลที่ได้พบว่าการเล่นเกมมีการลื่นไหลที่ดีมาก และมีค่า ping สูงในบางช่วงแล้วลดลงจนปกติอย่างรวดเร็วตลอดการเล่น แต่ไม่ส่งผลต่อระบบโดยรวม... </a>"
mytext[3]="<a href=http://sf.gg.in.th/cafe/upc/sfcafewarp.html target=_blank class=w>เกมสามารถให้ความลื่นไหลได้อย่างดีเยี่ยม ค่า Ping ในการรับส่งข้อมูลขณะเล่นเกมมีอัตราเฉลี่ยปกติที่ 16 - 48 โดยไม่มีอาการสวิงขึ้นลง...</a>"



var ry1=Math.floor(Math.random()*cafeupcnat.length)
document.write(title_01+cafeupcnat[ry1]+title_02+mypic[ry1]+title_03+mytext[ry1]+title_04);
}*/


document.write('	<DIV id=showLogoDiv style="Z-INDEX: 1; POSITION: absolute; left: -3px;"></DIV>	');
document.write('	<table width="266" border="0" cellspacing="0" cellpadding="0">	');

if(test == "1")
{
	

}


//SFCC
/*document.write('	<tr>	');
document.write('	<td>');
document.write('<table width="266" border="0" cellpadding="0" cellspacing="0" bgcolor="#261200">');
document.write('              <tr>');
document.write('                <td align="center"><img src="../../images/internetcafe/head_cafeevent.gif" width="266" height="32" /></td>');
document.write('              </tr>');*/
//document.write('	<tr><td height="3"></td></tr>');
/*document.write('              <tr>');
document.write('                <td align="center"><a href="http://sf.gg.in.th/event/event_detail.aspx?nid=1245&cid=2" target="_balnk"><img src="../../community/activity/images/SFCC/netcafehahi3.gif" border="0" /></a></td>');
document.write('              </tr>');*/

/*document.write('              <tr>');
document.write('                <td align="center"><A href="../../community/activity/SFCC/SFCCw07_howtoregis.aspx" target=_blank><img src="../../community/activity/images/SFCC/sf_btregis.gif" border="0" /></a></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td align="center"><A href="../../event/event_detail.aspx?nid=950&cid=2" target=_blank><img src="../../images/internetcafe/banner_5hi.jpg" border="0"/></a></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td align="center"><A href="../../files/Howto_5hi.zip" target=_blank><img src="../../images/internetcafe/bt_getitem.gif" border="0"/></a></td>');
document.write('              </tr>');*/

/*document.write('            </table>');
document.write('	</td>');
document.write('	</tr>	');
document.write('	<tr><td height="3"></td></tr>');*/

//กิจกรรมที่ผ่านมา
document.write('	<tr>	');
document.write('	<td>');
document.write('<table width="266" border="0" cellpadding="0" cellspacing="0" bgcolor="#261200">');
document.write('              <tr>');
document.write('                <td align="center"><img src="../images/internetcafe/head_lastevent.gif" width="266" height="32" /></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td align="center"><table width="260" border="0" cellspacing="0" cellpadding="0">');
document.write('                  <tr>');
document.write('                    <td><table width="262" border="0" cellpadding="0" cellspacing="1" class="textgray">');

document.write('                      <tr>');
document.write('                        <td width="30" height="24" bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../news/News_Detail_v2.aspx?cid=4&nid=1161" class="graycafe" target="_blank">ร้านเน็ตเฮฮา SF กล้าให้ ครั้งที่3</a></strong></td>');
document.write('                      </tr>');

document.write('                      <tr>');
document.write('                        <td width="30" height="24" bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../news/News_Detail_v2.aspx?cid=4&nid=1248" class="graycafe" target="_blank">ร้านเน็ตเฮฮา SF กล้าให้ ครั้งที่2</a></strong></td>');
document.write('                      </tr>');

document.write('                      <tr>');
document.write('                        <td width="30" height="24" bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../event/event_detail_v2.aspx?nid=950&cid=2" class="graycafe" target="_blank">ร้านเน็ตเฮฮา SF ห้าให้</a></strong></td>');
document.write('                      </tr>');

document.write('                      <tr>');
document.write('                        <td width="30" height="24" bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../event/event_detail_v2.aspx?nid=848&cid=2" class="graycafe" target="_blank">SF  Cafe On Tour</a></strong></td>');
document.write('                      </tr>');

document.write('                      <tr>');
document.write('                        <td bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../community/activity/SFCC/SFCC_index.aspx" class="graycafe" target="_blank">SF Cafe Cup Summer 2007</a></strong></td>');
document.write('                      </tr>');

document.write('                      <tr>');
document.write('                        <td bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../community/activity/sftour/index.aspx" class="graycafe" target="_blank">SF Troop On Tour</a></strong></td>');
document.write('                      </tr>');

document.write('                      <tr>');
document.write('                        <td bgcolor="#cccdc1"><img src="../images/internetcafe/bl_arrow.gif" width="30" height="24" /></td>');
document.write('                        <td align="left" bgcolor="#cccdc1" style="cursor:hand" onMouseOver=" this.className=\'tb_line_over\'; " onMouseOut="this.className=\'\';"><img src="../images/internetcafe/spacer.gif" width="7" height="4" /><strong> <a href="../../cafe/upc/sfcafeupc.html" class="graycafe" target="_blank">SF Lab Test</a></strong></td>');
document.write('                      </tr>');

document.write('                    </table></td>');
document.write('                  </tr>');
document.write('                  <tr>');
document.write('                  <td align="right"><img src="../images/internetcafe/bt_eventmore.gif" width="120" height="22" border="0" usemap="#Map_event" /></td>');
document.write('                  </tr>');
document.write('                </table></td>');
document.write('					<map name="Map_event" id="Map_event"><area shape="rect" coords="77,3,118,19" href=\'javascript:onClick=alert("ยังไม่มีกิจกรรมย้อนหลังค่ะ")\'/></map>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td height="5" align="center"></td>');
document.write('              </tr>');
document.write('            </table>');
document.write('	</td>');
document.write('	</tr>	');
document.write('	<tr><td height="3"></td></tr>');


//ภาพกิจกรรมจากสมาชิก
document.write('	<tr>	');
document.write('	<td>');
document.write('<table width="266" border="0" cellpadding="0" cellspacing="0" bgcolor="#261200">');
document.write('              <tr>');
document.write('                <td align="center"><img src="../images/internetcafe/head_memberpic.gif" width="266" height="32" /></td>');
//document.write('                <td align="center"><img src="../images/internetcafe/head_memberpic.gif" width="266" height="32" /></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td align="center"><a  href="../../community/activity/sftour/index.aspx" target=_blank>');
random_imglink_sftour();
document.write('                </a></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td align="right"><img src="../images/internetcafe/bt_picmore.gif" width="110" height="24" border="0" usemap="#Map_SFTour" /></td>');
document.write('              </tr>');
document.write('					<map name="Map_SFTour" id="Map_SFTour"><area shape="rect" coords="65,3,106,19" href=../../community/activity/sftour/index.aspx target=_blank /></map>');
/*document.write('              <tr>');
document.write('                <td align=""><a href="../../community/activity/SFCC/SFCCw07_choice.aspx" target="_balnk"><img src="../images/internetcafe/bt_sponsoritem.gif" border="0" /></a></td>');
document.write('              </tr>');*/
document.write('              <tr>');
document.write('                <td align=""><a href="../../community/activity/download/SFCC/SF_SFCC_Competition_Manual.zip" target="_balnk"><img src="../images/internetcafe/bt_downloadmanual.gif" border="0" /></a></td>');
document.write('              </tr>');
document.write('            </table>');
document.write('	</td>');
document.write('	</tr>	');
document.write('	<tr><td height="3"></td></tr>');
/*document.write('	<tr>	');
document.write('	<td><a  href="http://sf.gg.in.th/community/activity/sftour/index.aspx" target=_blank>	');
random_imglink_sftour();
document.write('</a></td>	');
document.write('	</tr>	');*/
//Bar sftour
/*document.write('	<tr>	');
document.write('	<td>');
document.write('<A href="http://sf.gg.in.th/community/activity/sftour/index.aspx" target=_blank><IMG    SRC="http://sf.gg.in.th/Images/community/activity/sftour/sf_ontour.gif"   BORDER=0  ALT="" ></A></td>	');
document.write('	</tr>	');
document.write('	<tr><td height="3"></td></tr>');*/

//Cafe upc
/*document.write('	<tr><td>');
random_imglink_cafeupc();
document.write('	</td></tr>');
document.write('	<tr><td height="3"></td></tr>');*/


//End
document.write('	</table>	');
