function OpenWindow(a){window.open(a,"mywindow","status=0,toolbar=1,width=980,height=650")}function tab(e,a,d){if(document.getElementById("my_pageid")){document.getElementById("my_pageid").innerHTML=e+"_"+a}if(document.getElementById("my_path")){document.getElementById("my_path").innerHTML=e+"|"+a+"|"+d}var c;for(var b=1;b;b++){c=document.getElementById("tab_"+b);if(!c){break}if(b==d){c.style.display="block"}else{c.style.display="none"}}}function tabnew(c,a,b){if(document.getElementById("my_pageid")){document.getElementById("my_pageid").innerHTML=c+"_"+a}if(document.getElementById("my_path")){document.getElementById("my_path").innerHTML=c+"|"+a+"|"+b}}function hide_image_gallery(a){document.getElementById("gallery").style.display="none"}function show_image_gallery(e,b,d){var h=document.getElementById(e).innerHTML.split("|-|");var c="";var g="";var f="";imagedata=h[b-1].split("^");if(b>1){g+='<img src="'+DirParent+'system/images/btn_back.gif" onclick="show_image_gallery(\''+e+"','"+(b-1)+"')\"></td>"}g+='</td><td align="center">'+imagedata[1]+"\u00a0</td>";if(b<h.length-1){g+='<td align="right" width="53"><img src="'+DirParent+'system/images/btn_stop.gif" onclick="hide_image_gallery()" style="margin-right:3px;"><img src="'+DirParent+'system/images/btn_next.gif" onclick="show_image_gallery(\''+e+"','"+(b-(-1))+"')\">";f="show_image_gallery('"+e+"', '"+(b-(-1))+"')"}else{g+='<td align="right" width="30"><img src="'+DirParent+'system/images/btn_stop.gif" onclick="hide_image_gallery(\''+e+"')\"> ";"hide_image_gallery('"+e+"')";f="hide_image_gallery('"+e+"')"}c='<div style="cursor:move; background-color:white;"><div style="padding:10px 10px 5px 10px;"><img id="galleryimg" onclick="'+f+'" src="'+imagedata[0]+'"><table cellpadding="0" cellspacing="0" width="100%;" style="margin-top:5px;"><tr><td align="left" width="30">'+g+"</td></tr></table></div></div>";var i=getScrollXY();var a=document.getElementById("gallery");a.innerHTML='<table cellpadding="0" cellspacing="0"><tr><td class="r_ul"><img src="'+DirParent+'system/images/spacer.gif" style="width:13px; height:13px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+DirParent+'system/images/rohul.png\', sizingMethod=\'scale\');"></td><td class="r_u"><img src="'+DirParent+'system/images/spacer.gif" style="width:100%; height:13px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+DirParent+'system/images/rohu.png\', sizingMethod=\'scale\');"></td><td class="r_ur"><img src="'+DirParent+'system/images/spacer.gif" style="width:13px; height:13px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+DirParent+'system/images/rohur.png\', sizingMethod=\'scale\');"></td></tr><tr><td class="r_l"><img src="content/images/spacer.gif" style="height:100%; width:13px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'content/images/rohl.png\', sizingMethod=\'scale\');"></td><td align="center" class="loadbg" width="300" height="300" id="div_hidden_content">'+c+'</td><td class="r_r"><img src="content/images/spacer.gif" style="height:100%; width:13px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'content/images/rohr.png\', sizingMethod=\'scale\');"></td></tr><tr><td class="r_dl"><img src="content/images/spacer.gif" style="width:13px; height:13px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'content/images/rohdl.png\', sizingMethod=\'scale\');"></td><td class="r_d"><img src="content/images/spacer.gif" style="width:100%; height:13px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'content/images/rohd.png\', sizingMethod=\'scale\');"></td><td class="r_dr"><img src="content/images/spacer.gif" style="width:13px; height:13px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'content/images/rohdr.png\', sizingMethod=\'scale\');"></td></tr></table>';a.style.top=(Math.round((getClientHeight()-imagedata[3])/2)-50-(-i[1]))+"px";a.style.left=(Math.round((getClientWidth()-imagedata[2])/2)-(-i[0]))+"px";a.style.display="block";Drag.init(a)}function getClientWidth(){return document.compatMode=="CSS1Compat"&&!window.opera?document.documentElement.clientWidth:document.body.clientWidth}function getClientHeight(){return document.compatMode=="CSS1Compat"&&!window.opera?document.documentElement.clientHeight:document.body.clientHeight}function getScrollXY(){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}return[b,a]}var min_hint_width=300;function hint(b,a){document.getElementById("hint_title").innerHTML=b;document.getElementById("hint_text").innerHTML=a;if(document.getElementById("hint").style.display=="block"){document.getElementById("hint").style.display="none"}else{document.getElementById("hint").style.display="block";if(!b){document.getElementById("hint_title").style.display="none"}}if(xMousePos>document.body.offsetWidth-min_hint_width){xMousePos=document.body.offsetWidth-min_hint_width-10}document.getElementById("hint").style.left=(xMousePos-10)+"px";document.getElementById("hint").style.top=(yMousePos+5)+"px";hide=false}function hintHide(){document.getElementById("hint").style.display="none"}var xMousePos=0;var yMousePos=0;var xMousePosMax=0;var yMousePosMax=0;if(document.layers){document.captureEvents(Event.MOUSEMOVE);document.onmousedown=captureMousePosition}else{if(document.all){document.onmousedown=captureMousePosition}else{if(document.getElementById){document.onmousedown=captureMousePosition}}}function captureMousePosition(a){if(document.layers){xMousePos=a.pageX;yMousePos=a.pageY;xMousePosMax=window.innerWidth+window.pageXOffset;yMousePosMax=window.innerHeight+window.pageYOffset}else{if(document.all){xMousePos=window.event.x+document.body.scrollLeft;yMousePos=window.event.y+document.body.scrollTop;xMousePosMax=document.body.clientWidth+document.body.scrollLeft;yMousePosMax=document.body.clientHeight+document.body.scrollTop}else{if(document.getElementById){xMousePos=a.pageX;yMousePos=a.pageY;xMousePosMax=window.innerWidth+window.pageXOffset;yMousePosMax=window.innerHeight+window.pageYOffset}}}xMousePos=document.all?window.event.clientX:a.pageX;yMousePos=document.all?window.event.clientY:a.pageY}var Drag={obj:null,init:function(d,h,f,b,e,a,i,g,j,c){d.onmousedown=Drag.start;d.hmode=i?false:true;d.vmode=g?false:true;d.root=h&&h!=null?h:d;if(d.hmode&&isNaN(parseInt(d.root.style.left))){d.root.style.left="0px"}if(d.vmode&&isNaN(parseInt(d.root.style.top))){d.root.style.top="0px"}if(!d.hmode&&isNaN(parseInt(d.root.style.right))){d.root.style.right="0px"}if(!d.vmode&&isNaN(parseInt(d.root.style.bottom))){d.root.style.bottom="0px"}d.minX=typeof f!="undefined"?f:null;d.minY=typeof e!="undefined"?e:null;d.maxX=typeof b!="undefined"?b:null;d.maxY=typeof a!="undefined"?a:null;d.xMapper=j?j:null;d.yMapper=c?c:null;d.root.onDragStart=new Function();d.root.onDragEnd=new Function();d.root.onDrag=new Function()},start:function(b){var c=Drag.obj=this;b=Drag.fixE(b);var d=parseInt(c.vmode?c.root.style.top:c.root.style.bottom);var a=parseInt(c.hmode?c.root.style.left:c.root.style.right);c.root.onDragStart(a,d);c.lastMouseX=b.clientX;c.lastMouseY=b.clientY;if(c.hmode){if(c.minX!=null){c.minMouseX=b.clientX-a+c.minX}if(c.maxX!=null){c.maxMouseX=c.minMouseX+c.maxX-c.minX}}else{if(c.minX!=null){c.maxMouseX=-c.minX+b.clientX+a}if(c.maxX!=null){c.minMouseX=-c.maxX+b.clientX+a}}if(c.vmode){if(c.minY!=null){c.minMouseY=b.clientY-d+c.minY}if(c.maxY!=null){c.maxMouseY=c.minMouseY+c.maxY-c.minY}}else{if(c.minY!=null){c.maxMouseY=-c.minY+b.clientY+d}if(c.maxY!=null){c.minMouseY=-c.maxY+b.clientY+d}}document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return false},drag:function(f){f=Drag.fixE(f);var g=Drag.obj;var c=f.clientY;var d=f.clientX;var i=parseInt(g.vmode?g.root.style.top:g.root.style.bottom);var b=parseInt(g.hmode?g.root.style.left:g.root.style.right);var a,h;if(g.minX!=null){d=g.hmode?Math.max(d,g.minMouseX):Math.min(d,g.maxMouseX)}if(g.maxX!=null){d=g.hmode?Math.min(d,g.maxMouseX):Math.max(d,g.minMouseX)}if(g.minY!=null){c=g.vmode?Math.max(c,g.minMouseY):Math.min(c,g.maxMouseY)}if(g.maxY!=null){c=g.vmode?Math.min(c,g.maxMouseY):Math.max(c,g.minMouseY)}a=b+((d-g.lastMouseX)*(g.hmode?1:-1));h=i+((c-g.lastMouseY)*(g.vmode?1:-1));if(g.xMapper){a=g.xMapper(i)}else{if(g.yMapper){h=g.yMapper(b)}}Drag.obj.root.style[g.hmode?"left":"right"]=a+"px";Drag.obj.root.style[g.vmode?"top":"bottom"]=h+"px";Drag.obj.lastMouseX=d;Drag.obj.lastMouseY=c;Drag.obj.root.onDrag(a,h);return false},end:function(){document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?"left":"right"]),parseInt(Drag.obj.root.style[Drag.obj.vmode?"top":"bottom"]));Drag.obj=null},fixE:function(a){if(typeof a=="undefined"){a=window.event}if(typeof a.layerX=="undefined"){a.layerX=a.offsetX}if(typeof a.layerY=="undefined"){a.layerY=a.offsetY}return a}};var growl_opac=0;var growl_over=0;var growl_ok=0;function g_setOpacity(a,b){a.style.opacity=b/10;a.style.filter="alpha(opacity="+b*10+")"}function g_growlOK(c,b,a){g_growl_show(c,b,a,1)}function g_growl(c,b,a){g_growl_show(c,b,a,0)}function g_growl_show(i,h,f,g){growl_ok=g;var e=document.getElementById("div_g_growl");var d=document.getElementById("td_text");var b=document.getElementById("td_icon");d.innerHTML=i;b.innerHTML='<img src="'+f+'">';var c=0,a=0;if(typeof(window.innerWidth)=="number"){c=window.innerWidth;a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){c=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){c=document.body.clientWidth;a=document.body.clientHeight}}}e.style.left=((c-350)/2)+"px";e.style.top=((a-80)/2)+"px";growl_opac=10;g_setOpacity(e,growl_opac);e.style.display="block";setTimeout("g_growl_opacity()",2000)}function g_growl_opacity(){if(growl_ok==1){return}var a=document.getElementById("div_g_growl");if(growl_over==1){return}if(growl_opac==0){a.style.display="none"}else{g_setOpacity(a,growl_opac);setTimeout("g_growl_opacity()",50);growl_opac-=1}}function g_growl_out(){if(div_g_growl.style.backgroundImage.indexOf("black_bg_square.png")>0){return}growl_over=0;setTimeout("g_growl_opacity()",50)}function g_growl_over(){if(div_g_growl.style.backgroundImage.indexOf("black_bg_square.png")>0){return}growl_over=1;growl_opac=10;g_setOpacity(div_g_growl,growl_opac)}function showMenu(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="inline"}else{document.getElementById(a).style.display="none"}};
