var sm_sel = -1; var sm_stats = 0; var sm_m = new Array(); var sm_pfx = "m"; var sm_url = "http://daylightdies.com/images/"; var sm_tclass = "ddbox"; var sm_col = "#351F14"; var sm_colh = "#5D1E17"; var sm_t; var sm_p = -1; var sm_c = new Array(-1,-1); var ns4 = false; function sm_init() { for (var mnum=0; mnum'; str += ''; for (var i=0; i'; str += '
'; document.write( str ); } if (sm_sel>=0) sm_m[sm_sel][0][2].src = sm_url+sm_m[sm_sel][0][0]+"off.gif"; if (!sm_stats) { sm_m[0][0][2].src = sm_url+sm_m[0][0][0]+"off.gif"; sm_m[0][0][3].src = sm_url+sm_m[0][0][0]+"off.gif"; } } function sm_in(n, m) { if (m) sm_out(); else { sm_clear(); for (var i=0;i=0) { sm_c[1]=m; document.getElementById( "smrow"+sm_c[0]+"-"+sm_c[1] ).style.background = sm_colh; } } function sm_out() { if (sm_c[0]>=0 && sm_c[1]>=0) { document.getElementById( "smrow"+sm_c[0]+"-"+sm_c[1] ).style.background = sm_col; sm_c[1]=-1; } if (sm_c[0]>=0) sm_p=sm_c[0]; sm_c[0]=-1; clearTimeout(sm_t); sm_t = setTimeout("sm_clear()", 200); } function sm_click(n, sub) { if (sub>=0) document.location = sm_m[n][sub+1][1]; else if (sm_m[n][0][1]!="") document.location = sm_m[n][0][1]; else return; sm_out(); } function sm_clear() { if (sm_c[0]==-1 && sm_p>=0) { document.getElementById(sm_pfx+sm_p).src = sm_m[sm_p][0][2].src; document.getElementById("smmenu"+sm_p).style.visibility = "hidden"; } } function sm_loc(img) { if (ns4) return new Array(img.x, img.y); var x = img.offsetLeft; var y = img.offsetTop; var el = img.offsetParent; while (el != null) { x += el.offsetLeft; y += el.offsetTop; el = el.offsetParent; } return new Array(x, y, img.width); }