var nn if (window.navigator.appName.indexOf('etscape') >= 1) { nn = 1 } function init() { winresize() } function winresize() { if (nn==1) { document.getElementById('contentTable').style.height = window.innerHeight-122 } else { document.getElementById('contentTable').height = window.document.body.clientHeight-122 } } rsm_scroll_act = false rsm_speed = 250 rsm_can_scroll_up = false rsm_can_scroll_dn = false function rsm_start_scroll (dir) { rsm_scroll_act = true if (dir == "dn") rsm_scroll_dn() if (dir == "up") rsm_scroll_up() return } function rsm_stop_scroll () { rsm_scroll_act = false return } function rsm_scroll_dn () { var visible_cnt = 0; var tref = document.all['rsmtable']; var scroll_pos = 0; for(i=0;i1) { tref.rows(i).style.display = ""; tref.rows(prev_i).style.display = ""; break } if (tref.rows(i).style.display=="") visible_cnt++ } if (rsm_can_scroll_dn==true) rsm_move_scrollbar(scroll_pos); if (rsm_scroll_act == true) setTimeout('rsm_scroll_dn()', rsm_speed) rsm_check_state() return } function rsm_scroll_up () { var visible_cnt = 0; var tref = document.all['rsmtable']; for(i=tref.rows.length-2;i>=0;i-=2) { var next_i = i+1 var prev_i = i-1 if (tref.rows(i).style.display == "" && visible_cnt==0) { if (rsm_can_scroll_up==true) { scroll_pos = 100 * (i-20) / (tref.rows.length-20); tref.rows(i).style.display = "none"; tref.rows(prev_i).style.display = "none"; visible_cnt++ } } if (tref.rows(i).style.display == "none" && visible_cnt>1) { tref.rows(i).style.display = ""; tref.rows(next_i).style.display = ""; break } if (tref.rows(i).style.display=="") visible_cnt++ } if (rsm_can_scroll_up==true) rsm_move_scrollbar(scroll_pos); if (rsm_scroll_act == true) setTimeout('rsm_scroll_up()', rsm_speed) rsm_check_state() return } function rsm_move_scrollbar(d) { var sa_height = document.all.rsm_scroll_area.clientHeight-30 var sb_pos = sa_height*d/100; document.all["rsm_bar"].style.top = sb_pos; } function rsm_init() { var maxw=0 var tref = document.all['rsmtable']; for (i=0;i maxw) { maxw = tref.rows(i).clientWidth } } tref.width = maxw+10 rsm_check_state() } function rsm_check_state() { var tref = document.all['rsmtable']; if (tref.rows(tref.rows.length-2).style.display == "none") { rsm_can_scroll_dn = true //document.images['rsm_scroll_dn_arrow'].src="images/rsm_scroll_dn.gif" } else { rsm_can_scroll_dn = false //document.images['rsm_scroll_dn_arrow'].src="images/rsm_scroll_dn_na.gif" } if (tref.rows(0).style.display == "none") { rsm_can_scroll_up = true //document.images['rsm_scroll_up_arrow'].src="images/rsm_scroll_up.gif" } else { rsm_can_scroll_up = false //document.images['rsm_scroll_up_arrow'].src="images/rsm_scroll_up_na.gif" } } _last_y = 0 function rsm_bar_drag() { ev = event if (_last_y != 0) { if (_last_y+20 < ev.clientY) { rsm_scroll_dn() _last_y = ev.clientY } if (_last_y-20 > ev.clientY) { rsm_scroll_up() _last_y = ev.clientY } } else { _last_y = ev.clientY } } function rsm_start_drag() { var oData = window.event.dataTransfer; oData.effectAllowed = "move"; } function rsm_cancel_drag_default() { event.returnValue = false } function rsm_drag_enter() { var oData = window.event.dataTransfer rsm_cancel_drag_default() oData.dropEffect = 'move' }