qmad.br_navigator=navigator.userAgent.indexOf("Netscape")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav6=qmad.br_navigator&&qmad.br_version<7;if(!qmad.br_oldnav6){if(!qmad.ibullets)qmad.ibullets=new Object();if(qmad.bvis.indexOf("qm_ibullets_active(o,false);")==-1){qmad.bvis+="qm_ibullets_active(o,false);";qmad.bhide+="qm_ibullets_active(a,1);";if(window.attachEvent)window.attachEvent("onload",qm_ibullets_init);else if(window.addEventListener)window.addEventListener("load",qm_ibullets_init,1);if(window.attachEvent)document.attachEvent("onmouseover",qm_ibullets_hover_off);else if(window.addEventListener)document.addEventListener("mouseover",qm_ibullets_hover_off,false)}};function qm_ibullets_init(e,c){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.item_bullets)&&(!z["on"+qmv.id]&&z["on"+qmv.id]!=undefined&&z["on"+qmv.id]!=null))return;qm_ts=1;var q=qmad.ibullets;var a,b,r,sx,sy;z=window.qmv;for(i=0;i<10;i++){if(!(a=document.getElementById("qm"+i))||(!isNaN(c)&&c!=i))continue;var d=qmad[a.id];if(d&&(d.ibullets_main_image||d.ibullets_sub_image)){q.mimg=d.ibullets_main_image;if(q.mimg){q.mimg_a=d.ibullets_main_image_active;if(!z)qm_ibullets_preload(q.mimg_a);q.mimg_h=d.ibullets_main_image_hover;if(!z)qm_ibullets_preload(q.mimg_a);q.mimgwh=eval("new Array("+d.ibullets_main_image_width+","+d.ibullets_main_image_height+")");r=q.mimgwh;if(!r[0])r[0]=9;if(!r[1])r[1]=6;sx=d.ibullets_main_position_x;sy=d.ibullets_main_position_y;if(!sx)sx=0;if(!sy)sy=0;q.mpos=eval("new Array('"+sx+"','"+sy+"')");q.malign=eval("new Array('"+d.ibullets_main_align_x+"','"+d.ibullets_main_align_y+"')");r=q.malign;if(!r[0])r[0]="right";if(!r[1])r[1]="center"}q.simg=d.ibullets_sub_image;if(q.simg){q.simg_a=d.ibullets_sub_image_active;if(!z)qm_ibullets_preload(q.simg_a);q.simg_h=d.ibullets_sub_image_hover;if(!z)qm_ibullets_preload(q.simg_h);q.simgwh=eval("new Array("+d.ibullets_sub_image_width+","+d.ibullets_sub_image_height+")");r=q.simgwh;if(!r[0])r[0]=6;if(!r[1])r[1]=9;sx=d.ibullets_sub_position_x;sy=d.ibullets_sub_position_y;if(!sx)sx=0;if(!sy)sy=0;q.spos=eval("new Array('"+sx+"','"+sy+"')");q.salign=eval("new Array('"+d.ibullets_sub_align_x+"','"+d.ibullets_sub_align_y+"')");r=q.salign;if(!r[0])r[0]="right";if(!r[1])r[1]="middle"}q.type=d.ibullets_apply_to;qm_ibullets_init_items(a,1)}}};function qm_ibullets_preload(a){if(a!=undefined){d=document.createElement("DIV");d.style.display="none";d.innerHTML="<img src="+a+" width=1 height=1>";document.body.appendChild(d)}};function qm_ibullets_init_items(a,b){var q=qmad.ibullets;var c,pf;c=a.childNodes;for(var j=0;j<c.length;j++){if(c[j].tagName=="A"){if(window.attachEvent)c[j].attachEvent("onmouseover",qm_ibullets_hover);else if(window.addEventListener)c[j].addEventListener("mouseover",qm_ibullets_hover,false);var d=false;if(q.type!="all"){if(q.type=="parent"&&!c[j].cdiv)d=true;if(q.type=="non-parent"&&c[j].cdiv)d=true}if(!d){if(b)pf="m";else pf="s";if(q[pf+"img"]){var e=document.createElement("IMG");e.setAttribute("src",q[pf+"img"]);e.setAttribute("width",q[pf+"imgwh"][0]);e.setAttribute("height",q[pf+"imgwh"][1]);e.style.borderWidth="0px";e.style.position="absolute";var f=document.createElement("SPAN");var g=f.style;g.display="block";g.position="relative";g.fontSize="1px";g.lineHeight="0px";f.ibhalign=q[pf+"align"][0];f.ibvalign=q[pf+"align"][1];f.ibiw=q[pf+"imgwh"][0];f.ibih=q[pf+"imgwh"][1];f.ibposx=q[pf+"pos"][0];f.ibposy=q[pf+"pos"][1];qm_ibullets_position(c[j],f);f.appendChild(e);c[j].qmibullet=c[j].insertBefore(f,c[j].firstChild);c[j]["qmibullet"+pf+"a"]=q[pf+"img_a"];c[j]["qmibullet"+pf+"h"]=q[pf+"img_h"];c[j].qmibulletorig=q[pf+"img"];f.setAttribute("qmvbefore",1);f.setAttribute("isibullet",1);if(c[j].className.indexOf("qmactive")+1)qm_ibullets_active(c[j])}}if(c[j].cdiv)new qm_ibullets_init_items(c[j].cdiv)}}};function qm_ibullets_position(a,b){if(b.ibhalign=="right")b.style.left=(a.offsetWidth+parseInt(b.ibposx)-b.ibiw)+"px";else if(b.ibhalign=="center")b.style.left=(parseInt(a.offsetWidth/2)-parseInt(b.ibiw/2)+parseInt(b.ibposx))+"px";else b.style.left=b.ibposx+"px";if(b.ibvalign=="bottom")b.style.top=(a.offsetHeight+parseInt(b.ibposy)-b.ibih)+"px";else if(b.ibvalign=="middle")b.style.top=parseInt((a.offsetHeight/2)-parseInt(b.ibih/2)+parseInt(b.ibposy))+"px";else b.style.top=b.ibposy+"px"};function qm_ibullets_hover(e,a){e=e||window.event;if(!a){var a=e.srcElement||e.target;while(a.tagName!="A")a=a[qp]}var b=qmad.ibullets.lasth;if(b&&b!=a){qm_ibullets_hover_off(new Object(),b)}if(a.className.indexOf("qmactive")+1)return;var c=a.qmibullet;var d=a.qmibulletmh;var f=a.qmibulletsh;if(c&&(d||f)){var g=d;if(f&&f!=undefined)g=f;if(d&&d!=undefined)g=d;c.firstChild.src=g;qmad.ibullets.lasth=a}if(e)qm_kille(e)};function qm_ibullets_hover_off(e,o){if(!o)o=qmad.ibullets.lasth;if(o&&o.className.indexOf("qmactive")==-1){if(o.firstChild&&o.firstChild.getAttribute&&o.firstChild.getAttribute("isibullet"))o.firstChild.firstChild.src=o.qmibulletorig}};function qm_ibullets_active(a,b){var c=a.qmibullet;var d=a.qmibulletma;var e=a.qmibulletsa;if(!b&&a.className.indexOf("qmactive")==-1)return;if(b&&a.idiv){var o=a.idiv;if(o&&o.qmibulletorig){if(o.firstChild&&o.firstChild.getAttribute&&o.firstChild.getAttribute("isibullet"))o.firstChild.firstChild.src=o.qmibulletorig}}else{qm_ibullets_wait_position(a);if(c&&(d||e)){var f=d;if(e&&e!=undefined)f=e;if(d&&d!=undefined)f=d;c.firstChild.src=f}}};function qm_ibullets_wait_position(a){if(a)qmad.ibullets.a=a;else a=qmad.ibullets.a;if(a.cdiv){var b=a.cdiv.childNodes;for(var i=0;i<b.length;i++){if(b[i].tagName=="A"&&b[i].qmibullet){if(!b[i].offsetWidth){setTimeout("qm_ibullets_wait_position()",10);return}qm_ibullets_position(b[i],b[i].qmibullet)}}}}
