function showPopup(b,c,a){var e,d,f;if(c){hideCurrentPopup(c);c.cancelBubble=true;f=get_event_coord(c,-5,-5);e=c.target?c.target:c.srcElement;changeObjectVisibility(b,"block");d=$("#"+b).parentRelative();f.x-=d.left;f.y-=d.top;window.drill_popupX=f.x;window.drill_popupY=f.y;if(a){moveObject(b,f)}window.currentlyVisiblePopup=b;return true}else{return false}}function get_event_coord(b,a,c){var d=new Object();if(b.pageY&&!$.browser.msie){d.x=b.pageX+a;d.y=b.pageY+c}else{d.x=b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft+a;d.y=b.clientY+document.body.scrollTop+document.documentElement.scrollTop+c}return d}function hideCurrentPopup(g){var f,c,d,a,b;d=window.event||g;if(d.button==2){return}if(window.currentlyVisiblePopup){coord=get_event_coord(d,0,0);parent_pos=$("#"+window.currentlyVisiblePopup).parentRelative();coord.x-=parent_pos.left;coord.y-=parent_pos.top;a=$("#"+window.currentlyVisiblePopup).width();b=$("#"+window.currentlyVisiblePopup).height();f=coord.x<window.drill_popupX||(coord.x>(window.drill_popupX+a));c=coord.y<window.drill_popupY||(coord.y>(window.drill_popupY+b));if((f)||(c)){changeObjectVisibility(window.currentlyVisiblePopup,"none");window.currentlyVisiblePopup=false}}}window.onload=initializeHacks;document.onclick=hideCurrentPopup;function initializeHacks(){if((navigator.appVersion.indexOf("MSIE 5")!=-1)&&(navigator.platform.indexOf("Mac")!=-1)&&getStyleObject("blankDiv")){window.onresize=explorerMacResizeFix}resizeBlankDiv();createFakeEventObj()}function createFakeEventObj(){if(!window.event){window.event=false}}function resizeBlankDiv(){if((navigator.appVersion.indexOf("MSIE 5")!=-1)&&(navigator.platform.indexOf("Mac")!=-1)&&getStyleObject("blankDiv")){getStyleObject("blankDiv").width=document.body.clientWidth-20;getStyleObject("blankDiv").height=document.body.clientHeight-20}}function explorerMacResizeFix(){location.reload(false)}function getStyleObject(a){if(document.getElementById&&document.getElementById(a)){return document.getElementById(a).style}else{if(document.all&&document.all(a)){return document.all(a).style}else{if(document.layers&&document.layers[a]){return document.layers[a]}else{return false}}}}function changeObjectVisibility(a,c){var b=getStyleObject(a);if(b){b.display=c;return true}else{return false}}function moveObject(b,g){var c=getStyleObject(b),a,f=get_x_size(),e,d;a=document.getElementById(b).offsetWidth-10;e=get_x_scroll();if((g.x+a)>f){d=f-a-10+e;g.x=(d<g.x)?d:g.x}if(c){c.left=g.x+"px";c.top=(g.y-5)+"px";return true}else{return false}}function get_x_size(){var a=0;if(document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth}else{if(document.body&&document.body.clientWidth){a=document.body.clientWidth}else{if(window.innerWidth){a=window.innerWidth-18}}}return a}function get_x_scroll(){var a;if(window.pageXOffset){a=window.pageXOffset}else{if(window.event){a=document.documentElement.scrollLeft+document.body.scrollLeft}else{a=window.scrollX}}return a}function onMenu(a,b){b.style.cursor="pointer";document.getElementById(a).style.backgroundColor="#B0FE86"}function offMenu(a){document.getElementById(a).style.color="#000000";document.getElementById(a).style.backgroundColor="#FFFFFF"};