var id = "id_YaShowcase"; if (!id) id = "div_msg_YaShowcase_js_"; var div = document.getElementById(id); if (div) { var blk = div.parentNode, xmlid = ""; while (blk && blk.tagName.toUpperCase() != "BODY") { if (blk.tagName.toUpperCase()=="DIV" && blk.id.indexOf("MsgXmlID_")==0) { xmlid = blk.id.split("_"); xmlid = xmlid[1]; break; } blk = blk.parentNode; } if (xmlid) setTimeout("YaShowcaseProc_('"+id+"', '"+xmlid+"')", 100); } var YaShowcase_ImgAy = new Array(); var YaShowcase_AAy = new Array(); var YaShowcase_Idx = 0; var YaShowcase_time = null; var YaShowcase_interval = 6000; function YaShowcaseProc_(idname, xmlid) { var div = document.getElementById(idname); var tab = document.getElementById("tableXmlID_"+xmlid); var blk = document.getElementById("MsgXmlID_"+xmlid); var emAy = blk.getElementsByTagName("img"); for (var i=0; i"+emAy[i].innerHTML+""; else html += ""+emAy[i].innerHTML+""; html = ""+html+"
"; div.innerHTML = html; document.getElementById("meMsg_MsgListBlk_"+xmlid).style.display = "none"; setTimeout("YaShowcaseProc2_('"+idname+"', '"+xmlid+"', 1)", 1000); } function YaShowcaseProc2_(idname, xmlid, n) { var tab = document.getElementById("tableXmlID_"+xmlid); tab.style.backgroundImage = "url("+YaShowcase_ImgAy[n]+")"; for (var i=0; i<=20; i++) if (em = document.getElementById("YaShowcaseTd_"+i)) em.style.backgroundColor = "#ffffff"; if (em = document.getElementById("YaShowcaseTd_"+n)) em.style.backgroundColor = "#ddcc99"; YaShowcase_Idx = n; n++; if (n >= YaShowcase_ImgAy.length) n = 1; YaShowcase_time = setTimeout("YaShowcaseProc2_('"+idname+"', '"+xmlid+"', "+n+")", YaShowcase_interval); } function YaShowcaseMOver_(idname, xmlid, n) { if (YaShowcase_time) clearTimeout(YaShowcase_time); YaShowcaseProc2_(idname, xmlid, n); } function clickYaShowcase_() { if (typeof(YaShowcase_AAy[YaShowcase_Idx])!="undefined") document.location.href = YaShowcase_AAy[YaShowcase_Idx]; }