var item;
var tour_array = new Array(
//Åõ¾îÁÂÃø¹è³Ê ¹è¿­

"http://img.golf.sbs.co.kr/www/golf_main/tour/__icsFiles/thumbnail/2011/11/07/mode_castle.jpg,,Ä³½½·º½º °ñÇÁÃàÁ¦,,Áß±¹ Ã»µµ Æ¯°¡,,649,000¿ø ~,,http://tour.golf.sbs.co.kr/html/front/tour_frm_mode.jsp?frmURL=http://sbsgolf.modetour.co.kr/golf/golf_sub_t8.aspx?mloc=0403"
,

"http://img.golf.sbs.co.kr/www/golf_main/tour/__icsFiles/thumbnail/2011/11/07/seyang_kedoin.jpg,,ÀÏº» ¿ÂÃµ °ñÇÁ Æ¯°¡,,ÄÉµµÀÎ °ñÇÁ ¸®Á¶Æ®,,980,000¿ø ~,,http://tour.golf.sbs.co.kr/html/front/tour_goods_view.jsp?gds_cd=100810"
,

"http://img.golf.sbs.co.kr/www/golf_main/tour/__icsFiles/thumbnail/2011/12/13/hana_boa.jpg,,Àü¼¼±â °Ü¿ï°ñÇÁ,,ÁÂ¼®°ÆÁ¤¾øÀÌ,,599,000¿ø ~,,http://tour.golf.sbs.co.kr/html/front/tour_frm_mode.jsp?frmURL=http://c25499s001.travelmanager.co.kr/app/wsv/homepage/promotion/autopromo/ap-20000.asp?promo_code=P06041"


);

function show_tour(n) {
	item = n.split(",,");
	document.write("<td>");
	document.write("	<table border='0' cellpadding='0' cellspacing='0'>");
	document.write("		<tr>");
	document.write("			<td><a href='"+item[4]+"'><img src='"+item[0]+"' border='0' width='132' height='75'></a></tD>");
	document.write("		</tr>");
	document.write("		<tr height='10'>");
	document.write("			<tD></td>");
	document.write("		</tr>");
	document.write("		<tr>");
	document.write("			<td><a href='"+item[4]+"' class='m_scoreGrayB'>"+item[1]+"</a><br>");
	document.write("				<a href='"+item[4]+"' class='m_scoreGray'>"+item[2]+"<br>");
	document.write("				<B>"+item[3]+"</B></a></td>");
	document.write("		</tr>");
	document.write("	</table>");
	document.write("</td>");
	document.write("<td width='50%'></td>");
}

// ¹è³Ê Ç¥½ÃÇÏ±â
function display_tour(n, col) {
	for(var i=0;i<n.length;i++) {
		show_tour(n[i]);
		if(i%col==(col-1)) document.write("	<td width='7'></td>");
	}
}

// ¹è³Ê¼¯±â
function tour_Shuffle(n, count){
	// ¹è³Ê µÚ¼¯¾î¼­, box ¹è¿­¿¡ ³Ö±â
	var box = new Array();
	var idx = 0;
	var len = n.length;
	// ¹è³Êµ¥ÀÌÅÍº¸´Ù Ç¥½Ã°¹¼ö°¡ ¸¹À» °æ¿ì ÃÖ´ë°ªÀ¸·Î ÇÑÁ¤
	if(count>len) count=len;
	// ¹è³Ê µÚ¼¯±â
	for(var i=0; i<count; i++) {
		idx = Math.floor(Math.random()*(len-i));
		box[i] = n[idx];
		for(var j=idx; j<len-1-i; j++){
			n[j] = n[j+1];
		}
	}
	display_tour(box, 1);
}

document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");
document.write("	<tr>");
document.write("		<td colspan='7'><a href='http://tour.sbsgolf.com/' onfocus='blur();'><img src='http://img.golf.sbs.co.kr/www/front/new_main2/bo_title_8.gif' border='0' alt='°ñÇÁÅõ¾î' vspace='5'></a></tD>");
document.write("	</tr>");
document.write("	<tr height='1'>");
document.write("		<td bgcolor='#e5e5e5' colspan='7'></td>");
document.write("	</tr>");
document.write("	<tr height='10'>");
document.write("		<td colspan='7'></td>");
document.write("	</tr>");
document.write("	<tr valign='top'>");
tour_Shuffle(tour_array, 3);
document.write("	</tR>");
document.write("	<tr height='7'>");
document.write("		<td colspan='7'></td>");
document.write("	</tr>");
document.write("</table>");
