// JavaScript Document var day = new Date(); var id = ''+day.getFullYear()+day.getDate()+''; var ie4 = document.all; var ie5 = document.all && document.getElementById; var ns4 = document.layers; var ns6 = document.getElementById && !document.all; var auWritten=false; function noFrameAu() { try { if (top.location.hostname){ throw "ok"; } else { throw "accesser"; } } catch(er) { if (er=="ok") {yfrau = (top.location.href.indexOf(id)>0) ? true : false;} else {yfrau=true;} } return yfrau; } function writeAu() { cnt=''; document.write("
\"Yahoo!
\"Yahoo!
"+cnt+"
"); auPos('y_gc_div_adcntr'); auPos('y_gc_div_au1'); auPos('y_gc_div_mast'); } function minimizeAu(divId) { if (ns4) { document.layers[divId].visibility = "hide"; } else if (ns6 || ie5) { document.getElementById(divId).style.visibility = "hidden"; } else if (ns6) { document.all[divId].style.visibility = "hidden"; } } function maximizeAu(divId) { if (ns4) { document.layers[divId].visibility = "show"; } else if (ns6 || ie5) { document.getElementById(divId).style.visibility = "visible"; } else if (ns6) { document.all[divId].style.visibility = "visible"; } } function closeAu(divId) { minimizeAu('y_gc_div_au1'); minimizeAu('y_gc_div_mast'); if (ie4) { document.all[divId].style.visibility = "hidden"; } else if (ns4) { document.layers[divId].visibility = "hide"; } else if (ns6) { document.getElementById(divId).style.visibility = "hidden"; } } function mmAction(divId) { if (ie4) { auVis = (document.all[divId].style.visibility == "visible") ? true : false; } else if(ns4) { auVis = (document.layers[divId].visibility == "show") ? true : false; } else { auVis = (document.getElementById(divId).style.visibility == "visible") ? true : false; } if (auVis){minimizeAu(divId);} else {maximizeAu(divId);} } function auPos(divId) { posL = findX()-197; if (ns4) { posL='1'; document.layers[divId].visibility = "show"; document.layers[divId].left = posL; } else if (ie5 || ns6) { document.getElementById(divId).style.visibility = "visible"; document.getElementById(divId).style.left = posL; } else if (ie4) { document.all[divId].style.visibility = "visible"; document.all[divId].style.left = posL; } } function isFrameset() { var numFr=0; numFr=frames.length; numFr=numFr-document.getElementsByTagName("iframe").length; isFr=(numFr>0) ? true : false; return isFr; } function divAu() { if (noFrameAu()) { if (!isFrameset()) { if (inFrame()) { if (checkFrame()) { writeAu(); auWritten=true; rlPg(true); } } else { writeAu(); auWritten=true; rlPg(true); } } } } function inFrame() { inFr=(parent.frames.length != 0) ? true : false; return inFr; } function findX() { var x=0; if (self.innerWidth){x = self.innerWidth;} // ns else if (document.documentElement && document.documentElement.clientHeight){x = document.documentElement.clientWidth;} // ie6 strict else if (document.body){x = document.body.clientWidth;} // other ie return x; } function findY() { var y=0; if (self.innerHeight){y=self.innerHeight;} // ns else if (document.documentElement && document.documentElement.clientHeight){y = document.documentElement.clientHeight;} // ie6 strict else if (document.body){y = document.body.clientHeight;} // other ie return y; } function checkFrame() { chFr=(findX() > 400 && findY() > 300) ? true : false; return chFr; } divAu(); function rlPg(init) { if (init==true) { document.pgW = findX(); onresize=rlPg; } else if (window.innerWidth!=document.pgW || document.body.offsetWidth!=document.pgW) { auPos('y_gc_div_adcntr'); auPos('y_gc_div_au1'); auPos('y_gc_div_mast'); } } if (auWritten){ setTimeout ("minimizeAu('y_gc_div_au1')", 30000); }