var sx = screen.width; var sy = screen.height; function toggleDisplay(tag, value) { var sel = document.getElementsByTagName(tag); for (var i = 0; i < sel.length; i++) sel[i].style.visibility = value; } function hide_js_menu(m_name) { document.getElementById(m_name).style.display='none'; toggleDisplay('SELECT', 'visible'); toggleDisplay('OBJECT', 'visible'); toggleDisplay('EMBED', 'visible'); toggleDisplay('IFRAME', 'visible'); } function show_js_menu(m_name, m_align) { zind++; d=document.getElementById(m_name).style; e=document.getElementById(m_name); if (m_align=='default') { x=event.clientX; y=document.body.scrollTop+event.clientY; if (x+parseInt(d.width)>parseInt(document.body.clientWidth)){x=x-((x+parseInt(d.width))-parseInt(document.body.clientWidth))-5+'px';}; } if (m_align=='center') { x=parseInt(document.body.clientWidth/2); y=parseInt(document.body.clientHeight/2); x=x-parseInt(parseInt(d.width)/2); y=y-parseInt(parseInt(d.height)/2); } // e.style.left=x; e.style.top=y; d.display="block"; toggleDisplay('SELECT', 'hidden'); toggleDisplay('OBJECT', 'hidden'); toggleDisplay('EMBED', 'hidden'); toggleDisplay('IFRAME', 'hidden'); } ta_opentags=new Array(); function adv_ta_add_tag(t,nn) { ct=''; if (t.name!='li') { if (ta_opentags[nn+t.name]==1){ta_opentags[nn+t.name]=0; ct='/';} else{ta_opentags[nn+t.name]=1;} } d=document.all[nn]; d.value=d.value+'['+ct+t.name+']'; d.focus(); } function opbs() { var wx = 740; var wy = 500; var wl = Math.round((sx - wx) / 2); var wt = Math.round((sy - wy) / 2); bwnd=window.open( '/mod/get/basket/', 'basket' ); //'all=yes,maximize=yes' return false; } function adbs(r, t, n) { var wx = 300; var wy = 200; var wl = Math.round((sx - wx) / 2); var wt = Math.round((sy - wy) / 2); window.open( '/mod/get/basket_add/?ok=a&r=' + escape(r) + '&t=' + escape(t) + '&n=' + escape(n), 'basketAdd', 'width=' + wx + ',height=' + wy + ',screenX=' + wl + ',screenY=' + wt + ',menubar=0,scrollbars=0' ); return false; } function opjp(n) { var wx = 740; var wy = 500; var wl = Math.round((sx - wx) / 2); var wt = Math.round((sy - wy) / 2); window.open( '/mod/get/jphoto/n'+n+'/', 'jphoto', 'width=' + wx + ',height=' + wy + ',screenX=' + wl + ',screenY=' + wt + ',menubar=0,scrollbars=1' ); return false; } function wopen(n, dcx){window.open('/mod/get/jss/?t='+n+'&dcx='+dcx,'selectStreet','height=400,width=640,menubar=no');} function openW(obj) {popupWin = window.open(obj.href, 'info', 'location=no,toobar=no,resizable=no,width=620,height=590');popupWin.focus();return false;} awid=0; function osme(d){ if (d == null){return;} if ((d.nodeName=='TABLE')||(d.nodeName=='IMG')||(d.nodeName=='table')||(d.nodeName=='img')) { if (awid