var stock_promotion = [];

 
stock_promotion.push( {title:"배워봅시다! 가계부", targetBlank:"true", url:"http://finance.daum.net/event/moneybook.daum", imgUrl:"http://fn.daum-img.net/image/moneybook/event/20100122/bn_14015.gif"} );
 
stock_promotion.push( {title:"Daum증권 실시간 시세", targetBlank:"false", url:"http://stock.daum.net/quote/realapply.daum", imgUrl:"http://img-contents.daum-img.net/administration//finance/gnb/091127_02.jpg"} );
 
stock_promotion.push( {title:"가계부 오픈 이벤트", targetBlank:"true", url:"http://search.daum.net/search?nil_suggest=btn&nil_ch=&rtupcoll=&w=tot&m=&f=&lpp=&q=@%B4%D9%C0%BD%B0%A1%B0%E8%BA%CE", imgUrl:"http://fn.daum-img.net/image/moneybook/event/20100120/145_15.jpg"} );

try {
	if(stock_promotion.length > 0) {
		var itemMin = 0;
		var itemMax = stock_promotion.length - 1 ;
		var itemGet = Math.floor(Math.random() * (itemMax - itemMin + 1) + itemMin);
		var tmp_stock_promotion = "<a href='@url' target='@targetBlank' title='@title' ><img src='@imgUrl' alt='@title'></a>";
		tmp_stock_promotion = tmp_stock_promotion.replace(/@title/g, stock_promotion[itemGet].title);
		tmp_stock_promotion = tmp_stock_promotion.replace(/@targetBlank/g, stock_promotion[itemGet].targetBlank == "true" ? "_blank" : "" );
		tmp_stock_promotion = tmp_stock_promotion.replace(/@url/, stock_promotion[itemGet].url);
		tmp_stock_promotion = tmp_stock_promotion.replace(/@imgUrl/g, stock_promotion[itemGet].imgUrl);

		document.write(tmp_stock_promotion);
	}
}catch(e){}