var finance_promotion = [];

 
finance_promotion.push( {title:"배워봅시다! 가계부", targetBlank:"false", url:"http://finance.daum.net/event/moneybook.daum?nil_profile=finance_pm&nil_gnb=mb_campain", imgUrl:"http://fn.daum-img.net/image/moneybook/event/20100122/bn_14015.gif"} );
 
finance_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"} );
 
finance_promotion.push( {title:"실시간 시세 결제", targetBlank:"true", url:"http://stock.daum.net/quote/realapply.daum?nil_profile=finance_pm&nil_gnb=stocksise", imgUrl:"http://img-contents.daum-img.net/administration//finance/gnb/091127_02.jpg"} );

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

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