function init() {
	YAHOO.util.Dom.addClass(document.body, "yui-skin-sam");
	
	var settings = {
		width: "520px", 
		fixedcenter: true, 
		close: true, 
		draggable: false, 
		zindex:99,
		modal: true,
		visible: false };

	document.getElementById("refer").style.display = '';
	var referPopup = new YAHOO.widget.Panel("refer", settings);
	referPopup.render(document.body);
	YAHOO.util.Event.addListener("showRefer", "click", referPopup.show, referPopup, true);

	document.getElementById("resold").style.display = '';
	var resoldPopup = new YAHOO.widget.Panel("resold", settings);
	resoldPopup.render(document.body);
	YAHOO.util.Event.addListener("showResold", "click", resoldPopup.show, resoldPopup, true);

	document.getElementById("mail").style.display = '';
	var mailPopup = new YAHOO.widget.Panel("mail", settings);
	mailPopup.render(document.body);
	YAHOO.util.Event.addListener("showMail", "click", mailPopup.show, mailPopup, true);

	document.getElementById("affiliate").style.display = '';
	var affiliatePopup = new YAHOO.widget.Panel("affiliate", settings);
	affiliatePopup.render(document.body);
	YAHOO.util.Event.addListener("showAffiliate", "click", affiliatePopup.show, affiliatePopup, true);

}
YAHOO.util.Event.onContentReady("hsds", init);

