function showaction(url,idPiste){var posRight="";posRight=document.getElementById("map").offsetWidth-340+"px";var posTop="";posTop=document.getElementById(idPiste).offsetTop-44+"px";document.getElementById("page_action").style.visibility="visible";document.getElementById("page_action_iframe").style.width="357px";document.getElementById("page_action_iframe").style.height="100%";document.getElementById("page_action").style.left=posRight;document.getElementById("page_action").style.top=posTop;frames.page_action_iframe.location.href=url;}function hideaction(){document.getElementById("page_action").style.visibility="hidden";document.getElementById("page_action_iframe").style.height="0px";}var BDCCPolylineId=0;function BDCCPolyline(points,color,weight,opacity,tooltip,dash){this.tooltip=tooltip;this.dash=(dash!=null)?dash:"solid";this.oColor=color;this.weight=weight;this.oOpacity=((opacity>=0.005)&&(opacity<=0.015))?0.02:opacity;this.lineStyle="single";BDCCPolylineId+=1;var uid=BDCCPolylineId.toString(16);while(uid.length<6){uid="0"+uid;}this.uid="#"+uid;this.domid="BdccPolyline"+BDCCPolylineId.toString();this.usesVml=(navigator.userAgent.indexOf("MSIE")!=-1);GPolyline.call(this,points,this.uid,weight,0.01,{clickable:false});}BDCCPolyline.prototype=new GPolyline(new Array(new GLatLng(0,0)));BDCCPolyline.prototype.initialize=function(map){GPolyline.prototype.initialize.call(this,map);this.map=map;};BDCCPolyline.prototype.remove=function(){GPolyline.prototype.remove.call(this);};BDCCPolyline.prototype.copy=function(map){return new BDCCPolyline(this.points,this.oColor,this.weight,this.oOpacity,this.tooltip,this.dash);};BDCCPolyline.prototype.redraw=function(force){GPolyline.prototype.redraw.call(this,force);var credraw=GEvent.callback(this,this.delayedRedraw);if(this.dredraw){window.clearTimeout(this.dredraw);}this.dredraw=window.setTimeout(function(force){credraw(true);},100);};BDCCPolyline.prototype.delayedRedraw=function(force){var dom=null;var i;var prnt;this.map.getPane(G_MAP_MAP_PANE).parentNode.id="Cntnr"+this.domid;if(this.usesVml){try{var shps=document.getElementsByTagName("shape");for(i=0;i<shps.length;i++){dom=shps[i];if((dom.stroke.color==this.uid)&&(dom.stroke.opacity>0.005)&&(dom.stroke.opacity<0.015)){prnt=dom.parentNode;while(prnt!=null){if(prnt.id=="Cntnr"+this.domid){i=shps.length;break;}else{prnt=prnt.parentNode;}}if(i<shps.length){dom=null;}}else{dom=null;}}if(dom!=null){if(this.tooltip!=null){dom.style.cursor="help";dom.title=this.tooltip;}dom.id=this.domid;}}catch(ex){if(BDCCPolylineId==1){alert("The designer of this Google Maps web page has attempted to use VML graphics without including the necessary header material.");}}}else{var shps=document.getElementsByTagName("path");i=shps.length-1;for(i=0;i<shps.length;i++){dom=shps[i];if((dom.getAttribute("stroke")==this.uid)&&(dom.getAttribute("stroke-opacity")>=0.005)&&(dom.getAttribute("stroke-opacity")<=0.015)){prnt=dom.parentNode;while(prnt!=null){if(prnt.id=="Cntnr"+this.domid){i=shps.length;break;}else{prnt=prnt.parentNode;}}if(i<shps.length){dom=null;}}else{dom=null;}}if(dom!=null){if(this.tooltip!=null){dom.style.cursor="help";dom.setAttribute("title",this.tooltip);}dom.setAttribute("id",this.domid);dom.setAttribute("pointer-events","stroke");}}if(this.dredraw){window.clearTimeout(this.dredraw);}if(dom!=null){this.setColor(this.oColor);this.setDash(this.dash);this.setOpacity(this.oOpacity);this.setWeight(this.weight);this.setLineStyle(this.lineStyle);var cclick=GEvent.callback(this,this.onClick);var cover=GEvent.callback(this,this.onOver);var cout=GEvent.callback(this,this.onOut);GEvent.clearInstanceListeners(dom);GEvent.addDomListener(dom,"click",function(event){cclick();});GEvent.addDomListener(dom,"mouseover",function(){cover();});GEvent.addDomListener(dom,"mouseout",function(){cout();});}else{var credraw=GEvent.callback(this,this.delayedRedraw);this.dredraw=window.setTimeout(function(force){credraw(true);},100);}};BDCCPolyline.prototype.onClick=function(){GEvent.trigger(this,"click");};BDCCPolyline.prototype.onOver=function(){GEvent.trigger(this,"mouseover");};BDCCPolyline.prototype.onOut=function(){GEvent.trigger(this,"mouseout");};BDCCPolyline.prototype.setColor=function(color){this.oColor=color;var dom=document.getElementById(this.domid);if(!dom){return;}if(this.usesVml){dom.stroke.color=this.oColor;}else{dom.setAttribute("stroke",this.oColor);}};BDCCPolyline.prototype.getColor=function(){return this.oColor;};BDCCPolyline.prototype.setDash=function(dash){this.dash=dash;var dom=document.getElementById(this.domid);if(!dom){return;}if(this.usesVml){if(this.dash=="dash"){dom.stroke.dashstyle="dash";}else{if(this.dash=="dot"){dom.stroke.dashstyle="dot";}else{dom.stroke.dashstyle="";}}}else{if(this.dash=="dash"){dom.setAttribute("stroke-dasharray","10,14");}else{if(this.dash=="dot"){dom.setAttribute("stroke-dasharray","2,12");}else{dom.setAttribute("stroke-dasharray","");}}}};BDCCPolyline.prototype.getDash=function(){return this.dash;};BDCCPolyline.prototype.setLineStyle=function(ls){this.lineStyle=ls;var dom=document.getElementById(this.domid);if(!dom){return;}if(this.usesVml){dom.stroke.linestyle=ls;}};BDCCPolyline.prototype.getLineStyle=function(){return this.lineStyle;};BDCCPolyline.prototype.setWeight=function(weight){this.weight=weight;var dom=document.getElementById(this.domid);if(!dom){return;}if(this.usesVml){dom.stroke.weight=this.weight.toString()+"px";}else{dom.setAttribute("stroke-width",this.weight.toString()+"px");}};BDCCPolyline.prototype.getWeight=function(){return this.weight;};BDCCPolyline.prototype.setOpacity=function(opacity){this.oOpacity=((opacity>=0.005)&&(opacity<=0.015))?0.02:opacity;var dom=document.getElementById(this.domid);if(!dom){return;}if(this.usesVml){dom.stroke.opacity=this.oOpacity;}else{dom.setAttribute("stroke-opacity",this.oOpacity);}};BDCCPolyline.prototype.getOpacity=function(){return this.oOpacity;};
