var lucky_num = Math.floor(Math.random()*5);
var now_url = document.location. href;
var now_img;

var site_img = new Array();
var site_url = new Array();
var site_vendorid = new Array();

site_img[1] = "http://www.mufree.com/event/20080219/images/ico.gif";
site_img[2] = "http://www.mufree.com/event/20080219/images/ico.gif";
site_img[3] = "http://www.mufree.com/event/20080219/images/ico.gif";
site_img[4] = "http://www.mufree.com/event/20080219/images/ico.gif";
site_img[5] = "http://www.mufree.com/event/20080219/images/ico.gif";

site_url[1] = "http://itemmall.okcashbag.com";
site_url[2] = "http://kinomate.okcashbag.com";
site_url[3] = "http://spicus.okcashbag.com";
site_url[4] = "http://dotori.okcashbag.com";
site_url[5] = "http://gamedown.okcashbag.com";

site_vendorid[1] = "famz";
site_vendorid[2] = "kinomate";
site_vendorid[3] = "spicus";
site_vendorid[4] = "cyworld";
site_vendorid[5] = "nextep";

function cshop_visit(sUrl){
	document.all.cshop_event_iframe.src = sUrl;
}
/*
for(i=1; i<site_url.length; i++){
	
	if(now_url.lastIndexOf(site_url[i]) >= 0) {
		now_img = "http://dcmp.okcashbag.com:8080/images/event/20080303/"+site_vendorid[i]+"_on.gif";
		go_url = "http://itemmall.okcashbag.com/event/20080304/cshop_visit_log.jsp?vendorid="+site_vendorid[i]+"&cpurl="+getReturnURL(now_url);
		
		document.write("\
			<div id='event_click_point' style='position:absolute;left:717px;top:446;z-index:200;visibility:show;'>\
			<table border='0' cellpadding='0' cellspacing='0'>\
				<tr>\
					<td><img src='"+now_img+"' width='92' height='80' border='0' onclick=\"javascript:cshop_visit(go_url);\" style=Cursor:hand></td>\
				</tr>\
			</table>\
			</div>\
		");
	}
}

document.write("\
	<iframe name='cshop_event_iframe' width='0' height='0' frameborder='0'></iframe>\
");*/     
