var mL=new Array();var cdID=null;var HOST_URL="scripts";var API_KEY="";var DEF_ZOOM=14;var OV_WIDTH=100;ijs("js/jquery.jqGrid.js");ijs("js/sd.js");if(!window.Intera){window.Intera={}}String.prototype.trim=function(){return this.replace(/^\s*(\b.*\b|)\s*$/,"")};String.prototype.fulltrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")};Intera.IMap=function(c,d,a){var b=this;this.odID=cdID=c.id;this.keyAPI=typeof(d)=="string"?d:API_KEY;if(typeof a=="NaN"||typeof a=="undefined"||Math.floor(a)!=a||a<1||a>MAX_ZOOM){this.zN=DEF_ZOOM}c.style.position="relative";c.style.background="#FFFFFF";c.style.zIndex="1";c.style.border="1px solid #000000";this.getMapBySpace=function(e){};this.getMapByPerson=function(e){};this.resetMap=function(){};this.addObject=function(f,e,g){};this.removeObject=function(e){};this.addViewportObj=function(f,e,g){};this.removeViewportObj=function(e){};this.getPlaceParam=function(){var f=this.keyAPI.substr(4,1);switch(f){case"0":mL[this.odID].aL=0;break;case"1":mL[this.odID].aL=1;break;case"2":mL[this.odID].aL=2;break;case"3":mL[this.odID].aL=3;break;default:mL[this.odID].aL=0;break}var e=this.keyAPI.substr(0,4);e=e.concat(this.keyAPI.substr(5));mL[this.odID].pN="Woodlawn Cemetery";mL[this.odID].pU="";mL[this.odID].mapType="1";mL[this.odID].sP=mL[this.odID].pU+"/ground.xml";mL[this.odID].crtMap=1;var g=HOST_URL+"/msi_pli.php";$.ajax({url:g,type:"POST",timeout:20000,data:"key="+e,mpID:this.odID,success:function(i,h){try{var k=JSON.parse(i)}catch(j){return}mL[this.mpID].pN=k.CemName;mL[this.mpID].pU=k.MapURL;mL[this.mpID].mapType=k.MapTypeID;mL[this.mpID].sP=mL[this.mpID].pU+"/ground.xml";mL[this.mpID].mP=k.MemURL;mL[this.mpID].crtMap=1;document.title=k.CemName;b.openMap()},error:function(h){return}})};this.openMap=function(){mL[this.odID].mnV.openDzi(mL[this.odID].sP)};this.taskStream=function(e){if(mL[this.odID].mapType==="99"){mL[this.odID].pMn.gS(e);mL[b.odID].mnV.viewport.zoomTo(3);return}switch(e){case"O":case"A":case"S":case"R":case"X":if(mL[b.odID].mnV.viewport.getZoom()>8){mL[this.odID].pMn.gS(e)}break;case"C":mL[this.odID].pMn.cS();break;case"M":if(!(mL[b.odID].mnV.drawer)){b.getPlaceParam()}else{}break;case"W":break}};this.gVP=function(e,f){return new Seadragon.Point(e/mL[this.odID].mnW,f/mL[this.odID].mnW)};this.getLocation=function(h,g){if(mL[this.odID].crtMap===10){mL[this.odID].dOM();this.getLocation(h,g)}mL[this.odID].pMn.cS();if(typeof g=="NaN"||typeof g=="undefined"){g="D"}var f;var e=g;switch(g){case"D":f=HOST_URL+"/msi_psi.php";break;case"O":f=HOST_URL+"/msi_owi.php";break;case"C":f=HOST_URL+"/msi_coip.php";break;default:f=HOST_URL+"/msi_psi.php";break}$.ajax({url:f,type:"POST",timeout:20000,data:"id="+h,mpID:this.odID,success:function(k,j){try{var n=JSON.parse(k)}catch(m){return}var l=n[0];if(e=="D"){mL[this.mpID].pI.location=l.location;mL[this.mpID].pI.LocationID=l.LocationID;mL[this.mpID].pI.PersonID=l.PersonID;mL[this.mpID].pI.LastName=l.LastName;mL[this.mpID].pI.FirstName=l.FirstName;mL[this.mpID].pI.DetMapURL=l.DetMapURL;mL[this.mpID].pI.x=l.x;mL[this.mpID].pI.y=l.y;mL[this.mpID].pI.xg=l.xg;mL[this.mpID].pI.yg=l.yg;mL[this.mpID].pI.StatusCode="O";mL[this.mpID].pI.type="D";mL[this.mpID].pI.Date=l.Date;mL[this.mpID].pI.hm=l.hm;var i=new Intera.Mk(this.mpID,mL[this.mpID].pI.LocationID,mL[this.mpID].pI.xg,mL[this.mpID].pI.yg,mL[this.mpID].pI.StatusCode,true,true)}else{mL[this.mpID].pI.location=l.Location;mL[this.mpID].pI.LocationID=l.LocationID;mL[this.mpID].pI.PersonID=l.PersonID;mL[this.mpID].pI.LastName=l.Name;mL[this.mpID].pI.FirstName=l.WebSite;mL[this.mpID].pI.DetMapURL="";mL[this.mpID].pI.x=0;mL[this.mpID].pI.y=0;mL[this.mpID].pI.xg=l.xg;mL[this.mpID].pI.yg=l.yg;mL[this.mpID].pI.StatusCode="O";mL[this.mpID].pI.Date="";mL[this.mpID].pI.type="C";mL[this.mpID].pI.hm=false;var i=new Intera.Mk(this.mpID,mL[this.mpID].pI.LocationID,mL[this.mpID].pI.xg,mL[this.mpID].pI.yg,mL[this.mpID].pI.StatusCode,true,true)}},error:function(i){return}})};this.addMarker=function(h,f,i,e){var g=Seadragon.OverlayPlacement.BOTTOM_LEFT;mL[this.odID].mnV.drawer.addOverlay(h,this.gVP(f,i),g);if(e){mL[this.odID].mnV.viewport.panTo(this.gVP(f,i),false);mL[this.odID].mnV.viewport.zoomTo(20,false)}};this.removeMarker=function(e){mL[this.odID].mnV.drawer.removeOverlay(e)};this.clearMarkers=function(){mL[this.odID].mnV.drawer.clearOverlays();mL[this.odID].info.visible=false};this.addControl=function(f,e){mL[this.odID].mnV.addControl(f,e)};this.removeControl=function(e){mL[this.odID].mnV.removeControl(e)};this.clearControls=function(){mL[this.odID].mainViewerclearControls()};mL[this.odID]=new Intera.IMD(c,this.odID,a);if(typeof boolEnablePan=="boolean"){mL[this.odID].isEnablePan=boolEnablePan}else{mL[this.odID].isEnablePan=true}mL[this.odID].z=a;mL[this.odID].aEH();mL[this.odID].mnM=new Intera.MnM(this.odID);this.getPlaceParam()};Intera.IMD=function(p,c,k){var i=null;var m=null;var h=null;var o=this;var a=null;var j=null;var e=null;var n=null;this.mnW=null;this.mnH=null;this.aR=null;this.oDiv=p;this.odID=c;this.ovW=OV_WIDTH;this.ovH=OV_WIDTH;this.ovZ=null;this.ovIB=null;this.sP=null;this.mP=null;this.pU=null;this.pN=null;this.pI=[];this.mU=[];this.cP=0;this.mCv=new Intera.MCv(this.odID);Seadragon.Config.imagePath="images/sd/";Seadragon.Config.maxZoomPixelRatio=1;this.mnV=new Seadragon.Viewer(this.odID);var b=this.mnV.getNavControl();b.removeChild(b.lastChild);this.ovV=new Seadragon.Viewer(this.mCv.ovDivID);this.dOM=function(){if(o.crtMap>1){o.flagClick=0;o.crtMap=1;o.aMk=true;o.mnV.openDzi(o.sP);mL[this.odID].mCv.cI.setAttribute("src","images/center.png");if(mL[this.odID].mCv.mMI.status=="Maximize"){mL[this.odID].mnM.ovMa();mL[this.odID].mCv.mMI.src="images/min.gif";mL[this.odID].mCv.mMI.setAttribute("alt","Minimize");mL[this.odID].mCv.mMI.status="Minimize"}}};this.ovV.removeControl(this.ovV.getNavControl());this.pMn=new Intera.PMn(this.odID);this.info=new Intera.Info(this.odID);this.flagClick=0;Seadragon.Config.zoomPerClick=2;var g=null;var l=null;var d=null;var f=null;this.pMB=function(q,s){if(mL[this.odID].mnV.isOpen()){var r=new Seadragon.Point(-q,-s);r=mL[this.odID].mnV.viewport.deltaPointsFromPixels(r);mL[this.odID].mnV.viewport.panBy(r,false)}};this.pL=function(){if(mL[this.odID].mnV.isOpen()){var q=mL[this.odID].mnV.viewport.getBounds().getSize();q.x=-((q.x)-(q.x/3));q.y=0;mL[this.odID].mnV.viewport.panBy(q,false)}};this.pDn=function(){if(mL[this.odID].mnV.isOpen()){var q=mL[this.odID].mnV.viewport.getBounds().getSize();q.x=0;q.y=(q.y)-(q.y/3);mL[this.odID].mnV.viewport.panBy(q,false)}};this.pR=function(){if(mL[this.odID].mnV.isOpen()){var q=mL[this.odID].mnV.viewport.getBounds().getSize();q.x=(q.x)-(q.x/3);q.y=0;mL[this.odID].mnV.viewport.panBy(q,false)}};this.pUp=function(){if(mL[this.odID].mnV.isOpen()){var q=mL[this.odID].mnV.viewport.getBounds().getSize();q.x=0;q.y=-((q.y)-(q.y/3));mL[this.odID].mnV.viewport.panBy(q,false)}};this.pC=function(){if(mL[this.odID].mnV.isOpen()){o.dOM()}};this.mDI=function(){if(mL[this.odID].mnV.isOpen()){o.info.gMI()}};this.cM=function(){if(mL[this.odID].mnV.isOpen()){o.dOM()}};this.nM=function(){if(this.mU.length>this.cP+1){this.cP+=1;var q=this.mP+"/"+this.mU[this.cP]+".xml";this.mnV.openDzi(q)}this.ckP()};this.pM=function(){if(this.cP>0){this.cP-=1;var q=this.mP+"/"+this.mU[this.cP]+".xml";this.mnV.openDzi(q)}this.ckP()};this.ckP=function(){if(this.cP>0){o.mCv.lMI.style.display="block"}else{o.mCv.lMI.style.display="none"}if(this.mU.length>this.cP+1){o.mCv.rMI.style.display="block"}else{o.mCv.rMI.style.display="none"}};this.dDM=function(){var q=o.pU+"/"+o.pI.DetMapURL+".xml";o.boundsBackup=o.mnV.viewport.getBounds();o.crtMap=2;o.aMk=true;mL[this.odID].mnV.openDzi(q);mL[this.odID].mCv.cI.setAttribute("src","images/center_hover.png");this.flagClick=0;if(mL[this.odID].mCv.mMI.status=="Minimize"){mL[this.odID].mnM.ovMi();mL[this.odID].mCv.mMI.src="images/max.gif";mL[this.odID].mCv.mMI.setAttribute("alt","Maximize");mL[this.odID].mCv.mMI.status="Maximize"}};this.dM=function(q){o.boundsBackup=o.mnV.viewport.getBounds();mL[o.odID].mU=[];var r=HOST_URL+"/msi_psm.php";$.ajax({url:r,type:"POST",timeout:20000,data:"key="+q,mpID:o.odID,success:function(v,u){if(!v){return}var t="";try{var y=JSON.parse(v)}catch(x){return}if(!y){return}for(var w=0,s=y.length;w<s;++w){t=y[w];if(t.MemorialTypeCode==="URL"){mL[this.mpID].mU=[];window.open(t.Path);return}if(t.MemorialTypeCode==="IMG"){mL[this.mpID].mU[w]=t.Path}}if(mL[this.mpID].mU.length>0){mL[this.mpID].dIM()}},error:function(){return}})};this.dIM=function(){this.crtMap=10;this.aMk=false;var q=this.mP+"/"+this.mU[0]+".xml";this.mnV.openDzi(q);this.cP=0;o.mCv.cI.setAttribute("src","images/center_hover.png");this.ckP()};this.rS=function(){o.info.rS()};this.rB=function(){o.info.rB()};this.cR=function(){o.info.cR()};this.mS=function(){o.info.mS()};this.sR=function(){o.info.sR()};this.bR=function(){o.info.bR()};this.dRM=function(){var q;if(o.crtMap>1){q=new Intera.Mk(this.odID,o.pI.LocationID,o.pI.x,o.pI.y,o.pI.StatusCode,true,true)}else{q=new Intera.Mk(this.odID,mL[this.odID].pI.LocationID,mL[this.odID].pI.xg,mL[this.odID].pI.yg,mL[this.odID].pI.StatusCode,true,true)}};this.onOvOE=function(){o.ovZ=o.ovV.viewport.getZoom();o.ovIB=o.ovV.viewport.getBounds()};this.onMnOE=function(){if(o.crtMap===10){o.mCv.mMI.style.display="none";o.mCv.ovD.style.width="1px";o.mCv.ovD.style.height="1px";o.mCv.mCD.style.display="block";o.mnV.viewport.goHome();return}o.mCv.mMI.style.display="block";o.mCv.mCD.style.display="none";var q=o.mnV.source.dimensions;o.mnW=q.x;o.mnH=q.y;o.aR=o.mnW/o.mnH;if(!o.ovSetup){if(o.aR>1){o.ovW=OV_WIDTH;o.ovH=OV_WIDTH/o.aR;o.mCv.ovD.style.width=o.ovW+"px";o.mCv.ovD.style.height=o.ovH+"px";o.ovV.openDzi(o.sP);o.ovSetup=true}else{o.ovW=OV_WIDTH*o.aR;o.ovH=OV_WIDTH;o.mCv.ovD.style.width=o.ovW+"px";o.mCv.ovD.style.height=o.ovH+"px";o.ovV.openDzi(o.sP);o.ovSetup=true}}else{o.mCv.ovD.style.width=o.ovW+"px";o.mCv.ovD.style.height=o.ovH+"px"}if(o.aMk){o.dRM()}else{o.mnV.viewport.fitBounds(o.boundsBackup,true)}};this.dOvM=function(){if(!mL[o.odID].mnV.isOpen()||(o.crtMap>1)){return}var q=o.mnV.viewport.getBounds();if(o.oM){o.ovV.drawer.updateOverlay(o.oM,q)}else{o.oM=document.createElement("div");o.oM.style.border="2px solid red";o.ovV.drawer.addOverlay(o.oM,q)}};this.MD=function(r){switch(o.flagClick){case 1:Seadragon.Config.zoomPerClick=1;break;case 2:o.flagClick=0;Seadragon.Config.zoomPerClick=1;break;default:Seadragon.Config.zoomPerClick=2;break}var q=this.id;o.fm=1;r=r||window.event;if(o.pMn.state===2){mL[q].pMn.hPM();return false}if(iRB(r)){if((mL[o.odID].mnV.viewport===null)||(mL[o.odID].aL<1)){return false}var s=gMO(document.getElementById(o.odID),r);mL[o.odID].pMn.sPM(parseInt(s.x,10),parseInt(s.y,10));return false}if(o.pMn.state===1){return false}o.pMn.hPM();return false};this.ovMouseDown=function(s){s=s||window.event;var q=null;var r=this.id;var t=r.lastIndexOf("_");if(t<0){return}q=r.substring(0,t);mL[q].pMn.state=2;if(iRB(s)){return false}};this.aEH=function(){Seadragon.Utils.addEvent(o.mnV.elmt,"mousemove",o.MM);Seadragon.Utils.addEvent(o.mnV.elmt,"mousedown",o.MD);Seadragon.Utils.addEvent(o.mnV.elmt,"mouseup",o.MU);o.mnV.addEventListener("open",o.onMnOE);o.ovV.addEventListener("open",o.onOvOE);o.mnV.addEventListener("animation",o.dOvM)};this.MU=function(q){if(!iRB(q)&&(o.pMn.state>0)){o.pMn.hPM()}o.fm=3};this.MM=function(q){o.fm=2}};Intera.PMn=function(b){var a=this;this.odID=b;this.state=null;document.getElementById(b).oncontextmenu=function(d){return false};this.popupMenuID=this.odID+"_PopupMenu";this.pMn=document.createElement("div");this.pMn.setAttribute("id",this.popupMenuID);this.pMn.style.position="absolute";this.pMn.style.zIndex="1000";this.aSpID=this.odID+"_aSp";this.oSpID=this.odID+"_oSp";this.rSpID=this.odID+"_rSp";this.cSpID=this.odID+"_cSp";this.bg_color="#D2D2B4";this.bg_colorHover="#FFFFFF";this.pMn.style.width="110px";var c=Seadragon.Utils.getBrowser()==Seadragon.Browser.IE;if(c){this.pMn.style.height="103px"}else{this.pMn.style.height="100px"}this.pMn.style.textAlign="center";this.pMn.style.cursor="default";this.pMn.style.backgroundColor="#000000";this.pMn.odID=this.odID;this.pMn.style.borderLeft="1px solid #000000";this.pMn.style.borderTop="1px solid #000000";this.pMn.style.borderRight="2px solid #000000";this.pMn.style.borderBottom="2px solid #000000";this.pMn.onmouseout=function(d){mL[this.odID].pMn.sBC()};this.aSpDiv=document.createElement("div");this.aSpDiv.setAttribute("id",this.aSpID);this.aSpDiv.style.position="absolute";this.aSpDiv.style.left="0px";this.aSpDiv.style.top="0px";this.aSpDiv.style.width="100%";this.aSpDiv.style.height="20px";this.aSpDiv.style.fontSize=12+"px";this.aSpDiv.style.zIndex="100000";this.aSpDiv.style.backgroundColor=this.bg_color;this.aSpDiv.innerHTML="Available Spaces";this.aSpDiv.odID=this.odID;this.aSpDiv.onmouseover=function(d){mL[this.odID].pMn.aSMO()};this.aSpDiv.onclick=function(d){mL[this.odID].pMn.aSOC()};this.tavi=function(d){d=d||window.event};this.pMn.appendChild(this.aSpDiv);this.sSpDiv=document.createElement("div");this.sSpDiv.setAttribute("id",this.rSpID);this.sSpDiv.style.position="absolute";this.sSpDiv.style.left="0px";this.sSpDiv.style.top="20px";this.sSpDiv.style.width="100%";this.sSpDiv.style.height="20px";this.sSpDiv.style.fontSize=12+"px";this.sSpDiv.style.backgroundColor=this.bg_color;this.sSpDiv.innerHTML="Sold Spaces &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";this.sSpDiv.odID=this.odID;this.sSpDiv.onmouseover=function(d){mL[this.odID].pMn.sSMO()};this.sSpDiv.onclick=function(d){mL[this.odID].pMn.sSOC()};this.pMn.appendChild(this.sSpDiv);this.oSpDiv=document.createElement("div");this.oSpDiv.setAttribute("id",this.oSpID);this.oSpDiv.style.position="absolute";this.oSpDiv.style.left="0px";this.oSpDiv.style.top="40px";this.oSpDiv.style.width="100%";this.oSpDiv.style.height="20px";this.oSpDiv.style.fontSize=12+"px";this.oSpDiv.style.backgroundColor=this.bg_color;this.oSpDiv.innerHTML="Ocupied Spaces &nbsp;";this.oSpDiv.odID=this.odID;this.oSpDiv.onmouseover=function(d){mL[this.odID].pMn.oSMO()};this.oSpDiv.onclick=function(d){mL[this.odID].pMn.oSOC()};this.pMn.appendChild(this.oSpDiv);this.rSpDiv=document.createElement("div");this.rSpDiv.setAttribute("id",this.oSpID);this.rSpDiv.style.position="absolute";this.rSpDiv.style.left="0px";this.rSpDiv.style.top="60px";this.rSpDiv.style.width="100%";this.rSpDiv.style.height="20px";this.rSpDiv.style.fontSize=12+"px";this.rSpDiv.style.backgroundColor=this.bg_color;this.rSpDiv.innerHTML="Reserved Spaces &nbsp;";this.rSpDiv.odID=this.odID;this.rSpDiv.onmouseover=function(d){mL[this.odID].pMn.rSMO()};this.rSpDiv.onclick=function(d){mL[this.odID].pMn.rSOC()};this.pMn.appendChild(this.rSpDiv);this.cSpDiv=document.createElement("div");this.cSpDiv.setAttribute("id",this.oSpID);this.cSpDiv.style.position="absolute";this.cSpDiv.style.left="0px";this.cSpDiv.style.top="80px";this.cSpDiv.style.width="100%";this.cSpDiv.style.height="20px";this.cSpDiv.style.fontSize=12+"px";this.cSpDiv.style.backgroundColor=this.bg_color;this.cSpDiv.innerHTML="Clear Markers &nbsp;&nbsp;&nbsp;";this.cSpDiv.odID=this.odID;this.cSpDiv.onmouseover=function(d){mL[this.odID].pMn.cSMO()};this.cSpDiv.onclick=function(d){mL[this.odID].pMn.cSOC()};this.pMn.appendChild(this.cSpDiv);this.sBC=function(){this.pMn.style.backgroundColor=this.bg_color;this.aSpDiv.style.backgroundColor=this.bg_color;this.sSpDiv.style.backgroundColor=this.bg_color;this.oSpDiv.style.backgroundColor=this.bg_color;this.cSpDiv.style.backgroundColor=this.bg_color;this.rSpDiv.style.backgroundColor=this.bg_color};this.aSMO=function(){this.sBC();this.aSpDiv.style.backgroundColor=this.bg_colorHover};this.sSMO=function(){this.sBC();this.sSpDiv.style.backgroundColor=this.bg_colorHover};this.oSMO=function(){this.sBC();this.oSpDiv.style.backgroundColor=this.bg_colorHover};this.cSMO=function(){this.sBC();this.cSpDiv.style.backgroundColor=this.bg_colorHover};this.rSMO=function(){this.sBC();this.rSpDiv.style.backgroundColor=this.bg_colorHover};this.aSOC=function(){this.hPM();this.gS("A")};this.sSOC=function(){this.hPM();this.gS("S")};this.oSOC=function(){this.hPM();this.gS("O")};this.rSOC=function(){this.hPM();this.gS("R")};this.cSOC=function(){this.hPM();this.cS()};this.dOvM=function(){if(!mL[a.odID].mnV.isOpen()||(a.crtMap>1)){return}var d=a.mnV.viewport.getBounds();if(a.oM){a.ovV.drawer.updateOverlay(a.oM,d)}else{a.oM=document.createElement("div");a.oM.style.border="2px solid red";a.ovV.drawer.addOverlay(a.oM,d)}};this.gVP=function(d,e){return new Seadragon.Point(d/mL[this.odID].mnW,e/mL[this.odID].mnW)};this.gMP=function(d,e){return new Seadragon.Point(d*mL[this.odID].mnW,e*mL[this.odID].mnW)};this.cS=function(d){mL[this.odID].mnV.drawer.clearOverlays();mL[this.odID].info.visible=false};this.gS=function(g){if(mL[this.odID].lastStatusCode==g){mL[this.odID].mnV.drawer.clearOverlays();mL[this.odID].info.visible=false}else{mL[this.odID].lastStatusCode=g}if(!mL[a.odID].mnV.isOpen()){return}var h=g;var d=mL[a.odID].mnV.viewport.getBounds();var l=d.getTopLeft();var k=d.getBottomRight();var f=this.gMP(l.x,l.y);var i=this.gMP(k.x,k.y);var e="scode="+h;e+="&";e+="xmin="+parseInt(f.x,10);e+="&";e+="ymin="+parseInt(f.y,10);e+="&";e+="xmax="+parseInt(i.x,10);e+="&";e+="ymax="+parseInt(i.y,10);if(mL[this.odID].crtMap>1){e+="&";e+="map="+mL[this.odID].pI.DetMapURL}if(mL[this.odID].mapType==="99"){var j=HOST_URL+"/msi_bbs.php"}else{var j=HOST_URL+"/msi_sbs.php"}$.ajax({url:j,type:"POST",timeout:10000,data:e,success:function(n,p){var w;mL[a.odID].tgStr=n;try{w=JSON.parse(n)}catch(u){alert("No space found in the viewport area!");return}if(!w){return}var v;var s;for(var r=0,t=w.length;r<t;++r){var m=w[r];var x=m.LocationID;var o=m.StatusCode;if(mL[a.odID].crtMap>1){v=m.x;s=m.y}else{v=m.xg;s=m.yg}var q=new Intera.Mk(a.odID,x,v,s,o,false,false)}},error:function(){alert("Communication Error! Please try latter.")}})};this.iDiv=document.getElementById(this.odID);this.iDiv.appendChild(this.pMn);this.iDivWidth=parseInt(this.iDiv.offsetWidth,10);this.iDivHeight=parseInt(this.iDiv.offsetHeight,10);this.mDW=parseInt(this.pMn.offsetWidth,10);this.mDH=parseInt(this.pMn.offsetHeight,10);this.hPM=function(){this.state=0;this.pMn.style.visibility="hidden"};this.sPM=function(d,e){this.state=1;this.sBC();if(d+this.mDW>this.iDivWidth){d-=this.mDW}if(e+this.mDH>this.iDivHeight){e-=this.mDH}this.pMn.style.left=d+"px";this.pMn.style.top=e+"px";this.pMn.style.visibility="visible"};this.hPM()};Intera.MCv=function(a){this.oDiv=document.getElementById(a);this.odID=a;this.pBI=null;this.ovD=null;this.ovDivID=a+"_OvMap";this.minMaxID=a+"_minMax";this.centerButID=a+"_centerBut";this.interaID=this.odID+"_Intera";this.pBI=document.createElement("img");this.pBI.setAttribute("id",this.interaID);this.pBI.title="Intera USA Tel:(888) 483-7885";this.pBI.src="images/logoi.png";this.pBI.style.cursor="hand";this.pBI.style.position="absolute";this.pBI.style.width="77px";this.pBI.style.height="45px";this.pBI.style.left="5px";this.pBI.style.top=(sPx(this.oDiv.style.height)-50)+"px";this.pBI.style.zIndex="100";this.pBI.onload=function(){fixPNG(this)};this.pBI.onclick=function(){window.open("http://www.intera.us")};this.oDiv.appendChild(this.pBI);this.mCD=document.createElement("div");this.mCD.style.width="150px";this.mCD.style.height="50px";this.mCD.style.position="absolute";this.mCD.style.right="1px";this.mCD.style.top="1px";this.mCD.style.zIndex=160;this.mCD.setAttribute("id","elPanID");this.oDiv.appendChild(this.mCD);this.mCD.style.display="none";this.lMI=document.createElement("img");this.lMI.setAttribute("src","images/mleft.png");this.lMI.setAttribute("alt","Previous Page");this.lMI.style.position="absolute";this.lMI.style.right="100px";this.lMI.style.top="1px";this.lMI.style.width=35+"px";this.lMI.style.height=34+"px";this.lMI.style.zIndex="1000";this.lMI.mapDivID=this.odID;this.lMI.onclick=function(b){mL[this.mapDivID].pM()};this.mCD.appendChild(this.lMI);this.rMI=document.createElement("img");this.rMI.setAttribute("src","images/mright.png");this.rMI.setAttribute("alt","Next Page");this.rMI.style.position="absolute";this.rMI.style.right="50px";this.rMI.style.top="1px";this.rMI.style.width=35+"px";this.rMI.style.height=34+"px";this.rMI.style.zIndex="1000";this.rMI.mapDivID=this.odID;this.rMI.onclick=function(b){mL[this.mapDivID].nM()};this.mCD.appendChild(this.rMI);this.pD=document.createElement("div");this.pD.style.width="50px";this.pD.style.height="50px";this.pD.style.position="absolute";this.pD.style.left="1px";this.pD.style.top="1px";this.pD.style.zIndex=160;this.pD.setAttribute("id","elPanID");this.oDiv.appendChild(this.pD);this.lI=document.createElement("img");this.lI.setAttribute("src","images/left.png");this.lI.setAttribute("alt","Pan Left");this.lI.style.position="absolute";this.lI.style.left="0px";this.lI.style.top="13px";this.lI.style.width=12+"px";this.lI.style.height=24+"px";this.lI.style.zIndex="1000";this.lI.mapDivID=this.odID;this.lI.onclick=function(b){mL[this.mapDivID].pL()};this.pD.appendChild(this.lI);this.rI=document.createElement("img");this.rI.setAttribute("src","images/right.png");this.rI.setAttribute("alt","Pan Right");this.rI.style.position="absolute";this.rI.style.right="0px";this.rI.style.top="13px";this.rI.style.width=12+"px";this.rI.style.height=24+"px";this.rI.style.zIndex="1000";this.rI.mapDivID=this.odID;this.rI.onclick=function(b){mL[this.mapDivID].pR()};this.pD.appendChild(this.rI);this.dI=document.createElement("img");this.dI.setAttribute("src","images/down.png");this.dI.setAttribute("alt","Pan Down");this.dI.style.position="absolute";this.dI.style.left="13px";this.dI.style.top="38px";this.dI.style.width=22+"px";this.dI.style.height=12+"px";this.dI.style.zIndex="1000";this.dI.mapDivID=this.odID;this.dI.onclick=function(b){mL[this.mapDivID].pDn()};this.pD.appendChild(this.dI);this.uI=document.createElement("img");this.uI.setAttribute("src","images/up.png");this.uI.setAttribute("alt","Pan Up");this.uI.style.position="absolute";this.uI.style.left="13px";this.uI.style.top="0px";this.uI.style.width=24+"px";this.uI.style.height=12+"px";this.uI.style.zIndex="1000";this.uI.mapDivID=this.odID;this.uI.onclick=function(b){mL[this.mapDivID].pUp()};this.pD.appendChild(this.uI);this.cI=document.createElement("img");this.cI.setAttribute("src","images/center.png");this.cI.setAttribute("alt","Back");this.cI.style.position="absolute";this.cI.style.right="13px";this.cI.style.top="13px";this.cI.setAttribute("id",this.centerButID);this.cI.style.width=24+"px";this.cI.style.height=24+"px";this.cI.style.zIndex="1000";this.cI.mapDivID=this.odID;this.cI.onclick=function(b){mL[this.mapDivID].pC()};this.pD.appendChild(this.cI);this.ovD=document.createElement("div");this.ovD.setAttribute("id",this.ovDivID);this.ovD.style.position="absolute";this.ovD.style.right="-1px";this.ovD.style.top="-1px";this.ovD.style.zIndex="1000";this.ovD.style.background="#FFFFFF";this.ovD.style.width=OV_WIDTH+"px";this.ovD.style.height=OV_WIDTH+"px";this.ovD.style.border="1px solid #000000";this.oDiv.appendChild(this.ovD);this.mMI=document.createElement("img");this.mMI.setAttribute("src","images/min.gif");this.mMI.setAttribute("alt","Minimize");this.mMI.style.position="absolute";this.mMI.style.right="0px";this.mMI.style.top="0px";this.mMI.setAttribute("width",16);this.mMI.setAttribute("height",16);this.mMI.style.width=16+"px";this.mMI.style.height=16+"px";this.mMI.style.zIndex="1000";this.mMI.status="Minimize";this.mMI.setAttribute("id",this.minMaxID);this.mMI.mapDivID=this.odID;this.mMI.onclick=function(b){if(this.status=="Minimize"){mL[this.mapDivID].mnM.ovMi();this.src="images/max.gif";this.setAttribute("alt","Maximize");this.status="Maximize"}else{if(this.status=="Maximize"){mL[this.mapDivID].mnM.ovMa();this.src="images/min.gif";this.setAttribute("alt","Minimize");this.status="Minimize"}}};this.ovD.appendChild(this.mMI)};Intera.MnM=function(a){this.odID=a;this.ovMi=function(){if(mL[this.odID].toID!=null){clearTimeout(mL[this.odID].toID)}var b=30;var d=Math.floor(-1*mL[this.odID].ovW/b);var c=Math.floor(-1*mL[this.odID].ovH/b);d=(d>=0)?-1:d;c=(c>=0)?-1:c;this.aOvMWS(16,16,d,c)};this.ovMa=function(){if(mL[this.odID].toID!=null){clearTimeout(mL[this.odID].toID)}var b=30;var d=Math.ceil(mL[this.odID].ovW/b);var c=Math.ceil(mL[this.odID].ovH/b);d=(d<=0)?1:d;c=(c<=0)?1:c;this.aOvMWS(mL[this.odID].ovW,mL[this.odID].ovH,d,c)};this.sOvMWS=function(c,b){var d=document.getElementById(mL[this.odID].mCv.ovDivID);d.style.width=c+"px";d.style.height=b+"px"};this.aOvMWS=function(h,f,g,e){var d=document.getElementById(mL[this.odID].mCv.ovDivID);var k=parseInt(d.style.width,10);var j=parseInt(d.style.height,10);var l=0;var c=0;var i;var b;if(g>0||e>0){l=0;c=0;if(k+g<=h){l=g}else{l=h-k}if(j+e<=f){c=e}else{c=f-j}i=k+l;b=j+c;d.style.width=i+"px";d.style.height=b+"px";if(i<h||b<f){mL[this.odID].toID=setTimeout("mL['"+this.odID+"'].mnM.aOvMWS("+h+","+f+","+g+","+e+")",1)}else{mL[this.odID].toID=null}}else{if(g<0||e<0){l=0;c=0;if(k+g>=h){l=g}else{l=h-k}if(j+e>=f){c=e}else{c=f-j}i=k+l;b=j+c;d.style.width=i+"px";d.style.height=b+"px";if(i>h||b>f){mL[this.odID].toID=setTimeout("mL['"+this.odID+"'].mnM.aOvMWS("+h+","+f+","+g+","+e+")",1)}else{mL[this.odID].toID=null}}}}};function sPx(a){if(a==""){return 0}return parseFloat(a.substring(0,a.length-2))}function gMO(d,c){c=c||window.event;var b=fP(d);var a=mC(c);return{x:a.x-b.x,y:a.y-b.y}}function fP(a){if(typeof(a.offsetParent)!="undefined"){for(var c=0,b=0;a;a=a.offsetParent){c+=a.offsetLeft;b+=a.offsetTop}return{x:c,y:b}}else{return{x:a.x,y:a.y}}}function iRB(b){var a=false;b=b||window.event;if(b.which){a=(b.which==3)}else{if(b.button){a=(b.button==2)}}return a}function mC(b){b=b||window.event;if(!b||(typeof(b.pageX)!="number"&&typeof(b.clientX)!="number")){return[0,0]}if(b.pageX||b.pageY){if(b.type=="DOMMouseScroll"){var a=BrowserDetect.browser=="Firefox"&&BrowserDetect.version<3;if(a){return{x:b.pageX/15,y:b.pageY/15}}else{return{x:b.pageX,y:b.pageY}}}else{return{x:b.pageX,y:b.pageY}}}else{if(b.clientX||b.clientY){posx=b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;posy=b.clientY+document.body.scrollTop+document.documentElement.scrollTop;return{x:posx,y:posy}}}}Intera.Info=function(b){this.mID=null;this.odID=b;var i=this;this.loc=null;this.ok=null;this.eD=null;this.elButton=null;this.eI=null;this.eIH=null;this.visible=false;this.placement=Seadragon.OverlayPlacement.BOTTOM_LEFT;this.status=null;this.srcRestBut="images/closed.png";this.srcHoverBut="images/closeh.gif";this.sp_loc="";var j="<table style = 'width:160; cellpading:0; position:absolute;'>";var c="<tr><td style = 'height:5px; width:160px; line-height:11px; text-overflow:ellipsis; overflow:hidden;'>";var f="<td style = 'height:6px; width:138px; line-height:12px; text-overflow:ellipsis; overflow:hidden;'>";var g="<td style = 'height:6px; width:20px; line-height:20px'>";var e="<tr><td  colspan='2' bgcolor='#CAD8FD'><img src='images/transparent.gif' width='1'; height='1';'></td></tr>";var a="<hr style = 'color:#CAD8FD; height:1px'/>";var h="</td></tr>";var d="</table>";this.close=function(){if(mL[this.odID].mnV.drawer){mL[this.odID].mnV.drawer.removeOverlay(this.eD);this.visible=false}};this.pCB=function(){this.elButton=document.createElement("img");this.elButton.src=this.srcRestBut;this.elButton.style.cursor="pointer";this.elButton.style.position="absolute";this.elButton.setAttribute("id","closeBut");this.elButton.style.right="118px";this.elButton.style.top="11px";this.elButton.setAttribute("alt","close");this.elButton.style.zIndex=180;var k=this;mL[i.odID].flagClick=1;this.elButton.onclick=function(){i.close()};this.elButton.onmousedown=function(){mL[i.odID].flagClick=2};this.elButton.onmouseover=function(){this.src=i.srcHoverBut};this.elButton.onmouseout=function(){this.src=i.srcRestBut};if(this.eD){this.eD.appendChild(this.elButton)}};this.gVP=function(k,l){return new Seadragon.Point(k/mL[this.odID].mnW,l/mL[this.odID].mnW)};this.cCv=function(k){this.eD=document.createElement("div");this.eD.style.width="315px";this.eD.style.height="214px";this.eD.style.backgroundImage="url(images/dialog.gif)";this.eD.style.zIndex=160;this.eD.setAttribute("id","dlgID");this.eIH=document.createElement("div");this.eIH.style.width="178px";this.eIH.style.zIndex=170;this.eIH.style.position="absolute";this.eIH.style.fontFamily="Arial";this.eIH.style.fontSize="8pt";this.eIH.style.left="20px";this.eIH.style.top="11px";this.eIH.style.whitespace="nowrap";this.eIH.style.overflow="hidden";this.eIH.style.background="#CAD8FD";this.eIH.style.borderBottom="1px solid #7A95C6";this.eIH.setAttribute("id","infoHdID");this.eI=document.createElement("div");this.eI.style.width="178px";this.eI.style.overflow="auto";this.eI.style.position="absolute";this.eI.style.left="20px";this.eI.style.zIndex=170;this.eI.style.fontFamily="Arial";this.eI.style.fontSize="7.5pt";this.eI.style.fontStyle="normal";this.eI.style.fontWeight="normal";this.eI.style.marginTop="1px";this.eI.setAttribute("id","infoID");this.sCH(k);this.eD.appendChild(this.eIH);this.eD.appendChild(this.eI)};this.gMI=function(){this.sCH(true);i.eIH.innerHTML="";i.eI.innerHTML="";this.pSD()};this.sR=function(){var l=document.reserveform.fname.value;var m=document.reserveform.lname.value;if(m.replace(/^\s+|\s+$/g,"").length<=0){alert("Please enter Last name.");document.reserveform.lname.focus();return}if(l.replace(/^\s+|\s+$/g,"").length<=0){alert("Please enter First name.");document.reserveform.fname.focus();return}i.eI.innerHTML="";var n=HOST_URL+"/msi_rs.php";var k="sp_id="+i.mID;k+="&";k+="fname="+l;k+="&";k+="lname="+m;$.ajax({url:n,type:"POST",timeout:20000,data:k,success:function(p,o){if(p==="RC_SUCCESS"){i.eI.innerHTML="Space Successfully Reserved !"}else{alert(p)}},error:function(){i.eI.innerHTML="Server Error! <br> Please try again latter!"}})};this.bR=function(){var q=document.reserveboothform.name.value;var m=document.reserveboothform.web.value;var k=document.reserveboothform.loc.value;if(q.replace(/^\s+|\s+$/g,"").length<=0){alert("Please enter Company name.");document.reserveboothform.name.focus();return}if(k.replace(/^\s+|\s+$/g,"").length<=0){alert("Please enter Booth number.");document.reserveboothform.loc.focus();return}i.eI.innerHTML="";var p=HOST_URL+"/msi_rb.php";var o="sp_id="+i.mID;o+="&";o+="n="+q;o+="&";o+="w="+m;o+="&";o+="l="+k;$.ajax({url:p,type:"POST",timeout:20000,data:o,success:function(n,l){if(n==="RC_SUCCESS"){i.eI.innerHTML="Booth Successfully Reserved !"}else{}},error:function(){i.eI.innerHTML="Server Error! <br> Please try again latter!"}})};this.rS=function(){this.sCH(false);i.eI.innerHTML="";var k=j+c+"<b>"+i.sp_loc+"</b></td></tr></table>";i.eIH.innerHTML=k;var l="";l+="<form name='reserveform' action='scripts/ms_rs.php' method='post'>";l+="<table border='0' cellspacing = '0'>";l+="<tr><td style = 'height:14px; width:60px; line-height:13px;'>First name: &nbsp;</td>";l+="<td style = 'height:14px; line-height:15px;' ><input type='text' name='fname' value='' maxlenght='50' style = 'height:14px; width:95px; fontSize:6pt' ></td></tr>";l+="<tr><td style = 'height:14px; width:60px; line-height:13px;'>Last name: &nbsp;</td>";l+="<td style = 'height:14px; line-height:15px;' ><input type='text' name='lname' value='' maxlenght='50' style = 'height:14px; width:95px; fontSize:6pt' ></td></tr>";l+="<tr><td>  </td><td>";l+='<a href="#" onClick="mL[\''+i.odID+"'].sR();\">Reserve</a> </td>";l+="</td></tr>";l+="</table></form>";i.eI.innerHTML=l;document.reserveform.fname.focus()};this.rB=function(){this.sCH(false);i.eI.innerHTML="";var k=j+c+"<b>"+i.sp_loc+"</b></td></tr></table>";i.eIH.innerHTML=k;var l="";l+="<form name='reserveboothform' action='scripts/ms_rs.php' method='post'>";l+="<table border='0' cellspacing = '0'>";l+="<tr><td style = 'height:14px; width:60px; line-height:13px;'>Company: &nbsp;</td>";l+="<td style = 'height:14px; line-height:15px;' ><input type='text' name='name' value='' maxlenght='50' style = 'height:14px; width:95px; fontSize:6pt' ></td></tr>";l+="<tr><td style = 'height:14px; width:60px; line-height:13px;'>Webite: &nbsp;</td>";l+="<td style = 'height:14px; line-height:15px;' ><input type='text' name='web' value='' maxlenght='50' style = 'height:14px; width:95px; fontSize:6pt' ></td></tr>";l+="<tr><td style = 'height:14px; width:60px; line-height:13px;'>Booth(s): &nbsp;</td>";l+="<td style = 'height:14px; line-height:15px;' ><input type='text' name='loc' value='' maxlenght='50' style = 'height:14px; width:95px; fontSize:6pt' ></td></tr>";l+="<tr><td>  </td><td>";l+='<a href="#" onClick="mL[\''+i.odID+"'].bR();\">Reserve</a> </td>";l+="</td></tr>";l+="</table></form>";i.eI.innerHTML=l;document.reserveboothform.name.focus()};this.cR=function(){var l=HOST_URL+"/msi_cr.php";var k="sp_id="+i.mID;$.ajax({url:l,type:"POST",timeout:20000,data:k,success:function(n,m){if(n==="RC_SUCCESS"){i.eI.innerHTML="Cancel Reservation Successfully !"}else{alert(n)}},error:function(){i.eI.innerHTML="Server Error! <br> Please try again latter!"}})};this.mS=function(){var l=HOST_URL+"/msi_mks.php";var k="sp_id="+i.mID;$.ajax({url:l,type:"POST",timeout:20000,data:k,success:function(n,m){if(n==="RC_SUCCESS"){i.eI.innerHTML="Space Mark Sold Successfully !"}else{alert(n)}},error:function(){i.eI.innerHTML="Server Error! <br> Please try again latter!"}})};this.sCH=function(k){if(k===true){this.eIH.style.height="45px";this.eI.style.top="60px";this.eI.style.height="75px"}else{this.eIH.style.height="35px";this.eI.style.top="52px";this.eI.style.height="83px"}};this.pID=function(){if(mL[this.odID].mapType==="99"){var l=j;l+="<tr><td style = 'text-align:center; font-size:12px; height:5px; width:160px; line-height:11px; text-overflow:ellipsis; overflow:hidden;'>";l+="<b>"+mL[this.odID].pI.LastName+"</b>";l+="</td></tr></table>"}else{var l=j+c+"<b>Location:&nbsp;</b>";if(mL[this.odID].pI.DetMapURL){if(mL[this.odID].pI.DetMapURL.length>0){if(mL[this.odID].crtMap>1){l+='<a href="#" onClick="mL[\''+this.odID+"'].dOM();\">« General view</a>"}else{l+='&nbsp;&nbsp;<a href="#" onClick="mL[\''+this.odID+"'].dDM();\">Wall view</a>"}}}l+="</td></tr>";l+="<td align='left'>"+mL[this.odID].pI.location;if((mL[this.odID].aL>0)&&((mL[this.odID].pI.DetMapURL.length<1)||(mL[this.odID].crtMap>1))){l+='&nbsp;&nbsp;<a href="#" onClick="mL[\''+this.odID+"'].mDI();\">more info</a>"}l+="</td></tr>"}i.eIH.innerHTML=l;var k="<table height='30%' width='100%' cellspacing='0'>";if(mL[this.odID].mapType==="99"){k+="<tr><td style='font-size:11px; text-align:left;'><b> Booth(s):</b>&nbsp;&nbsp;&nbsp;"+mL[this.odID].pI.location+" </td></tr>";k+="<tr height='8'><td align='left' style='font-size:11px'> <b>Website:</b></td></tr>";k+="<tr height='8'><td style='font-size:11px; text-align:center;'>";k+="<a href=http://"+mL[this.odID].pI.FirstName+' onclick="window.open(this.href)">'+mL[this.odID].pI.FirstName+"</a></b></td></tr>";k+="</table>"}else{k+="<tr><td align='left'><b>"+mL[this.odID].pI.FirstName+" "+mL[this.odID].pI.LastName+" </b>";if(mL[this.odID].pI.hm==1){k+='&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onClick="mL[\''+i.odID+"'].dM("+mL[this.odID].pI.PersonID+');"><img src="images/candle.gif" border = "0"alt ="View More" width="20px" height="20px"></a>'}k+="</td></tr>";k+="<tr><td align='left'><b>Died: &nbsp; </b>"+mL[this.odID].pI.Date+"   </td></tr>";k+="</font></table>"}i.eI.innerHTML=k;i.pCB();mL[i.odID].mnV.drawer.addOverlay(i.eD,loc,i.placement)};this.pSD=function(l){if(mL[this.odID].mapType==="99"){var k=HOST_URL+"/msi_cois.php"}else{var k=HOST_URL+"/msi_spi.php"}$.ajax({url:k,type:"POST",timeout:20000,data:"id="+i.mID,success:function(o,s){var A=o;try{A=JSON.parse(o)}catch(x){return}i.sp_loc="";var z="<table   style = ' width:158px; cellpading:0;cellspacing:0;'>";var r="";if(mL[i.odID].mapType==="99"){if(i.status==="A"){r+='<br><a href="#" onClick="mL[\''+i.odID+"'].rB();\">Reserve this Booth</a> </td>"}else{var n=A[0];r=j;r+="<tr><td style = 'text-align:center; font-size:12px; height:5px; width:160px; line-height:11px; text-overflow:ellipsis; overflow:hidden;'>";r+="<b>"+n.Name+"</b>";r+="</td></tr></table>";z+="<tr><td style='font-size:11px; text-align:left;'><b> Booth(s):</b>&nbsp;&nbsp;&nbsp;"+n.Location+" </td></tr>";z+="<tr height='8'><td align='left' style='font-size:11px'> <b>Website:</b></td></tr>";z+="<tr height='8'><td style='font-size:11px; text-align:center;'>";z+="<a href=http://"+n.WebSite+' onclick="window.open(this.href)">'+n.WebSite+"</a></b></td></tr>";z+="</table>"}}else{r=j+c;if(mL[i.odID].aL<1){r+="<br>"}if(!A){mL[i.odID].mnV.drawer.addOverlay(i.eD,l,placement);var q="<table height='30%' width='65%'><tr><tr>";q+="<tr><td align='left'>&nbsp;&nbsp;&nbsp <b>No decedents <b></td></tr>";i.eI.innerHTML=q;i.pCB();return}var C=0;for(var t=0,v=A.length;t<v;++t){var m=A[t];var B=m.LocationID;var y=m.TypeCode;var w=m.xg;var u=m.yg;if(t==0){if(m.location!=null){i.sp_loc+=m.location;r+=i.sp_loc}}if(m.TypeCode==="D"){z+="<tr>"+f+"<b>"+m.FirstName+" "+m.LastName+" <br>Died: &nbsp; </b>"+m.Date+"</td> ";if(m.hm==1){z+=g+'<a href="#" onClick="mL[\''+i.odID+"'].dM("+m.PersonID+');"><img src="images/candle.gif" border = "0"alt ="View More" width="20px" height="20px"></a> </td>'}else{z+="<td></td>"}z+="</tr>"}else{if((m.TypeCode==="O")||(m.TypeCode==="L")){if(mL[i.odID].aL>0){if(C===0){if(m.TypeCode==="O"){r+="<br>Owner&nbsp;:<b><br>"+m.FirstName+" "+m.LastName}else{r+="<br>Reserved for&nbsp;:<b><br>"+m.FirstName+" "+m.LastName}}else{r+="</b>&nbsp;and&nbsp;<b>"+m.FirstName+" "+m.LastName}C++}}}}if(C===0){if(i.status==="A"){r+='<br><a href="#" onClick="mL[\''+i.odID+"'].rS();\">Reserve this Space</a> </td>"}else{}}else{r+="</b></td></tr></table>";if(i.status==="R"){z=g+'<tr><td><a href="#" onClick="mL[\''+i.odID+"'].cR();\"> Cancel Reservation</a> </td></tr><td></td>";z+=g+'<tr><td><a href="#" onClick="mL[\''+i.odID+"'].mS();\"> Mark as Sold</a> </td><td></td></tr>"}else{r+="</b></td></tr></table>"}}z+="</table>"}i.eIH.innerHTML=r;i.eI.innerHTML=z;if(typeof l!="undefined"){i.pCB();mL[i.odID].mnV.drawer.addOverlay(i.eD,l,i.placement);i.visible=true}},error:function(){var m=j;m+="<tr><tr/> <tr><tr/><tr><tr/><tr><tr/><tr><tr/><tr><tr/><tr><tr/><tr><tr/>";m+="<BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;There has been an error <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please try again later.";m+=j;$("#infoID").html(m);i.pCB()}})};this.dp=function(l,m,k){if(!mL[this.odID].mnV.drawer){return}this.close();this.ok=false;this.status=k;if(typeof l=="undefined"){this.mID=mL[this.odID].pI.LocationID;this.cCv(true);if(mL[this.odID].crtMap>1){loc=this.gVP(mL[this.odID].pI.x,mL[this.odID].pI.y)}else{loc=this.gVP(mL[this.odID].pI.xg,mL[this.odID].pI.yg)}this.pID()}else{this.mID=l;this.cCv(true);loc=m;this.pSD(m)}}};function ijs(a){var c=document.getElementsByTagName("head")[0];var b=document.createElement("script");b.type="text/javascript";b.src=a;c.appendChild(b)}Intera.Mk=function(d,a,i,g,f,k,h){this.odID=d;var c={NONE:"N",A:"A",S:"S",R:"R",O:"O",E:"E"};if(typeof f=="NaN"||typeof f=="undefined"){f=0}if(typeof xc=="NaN"||typeof xc=="undefined"){xc=0}if(typeof yc=="NaN"||typeof yc=="undefined"){yc=0}if(typeof k=="NaN"||typeof f=="undefined"){k=false}this.mClick=function(n){mL[l.odID].stopBuble=true;var m=n||window.event;mL[l.odID].info.dp(j,e,f);return false};this.gVP=function(m,n){return new Seadragon.Point(m/mL[this.odID].mnW,n/mL[this.odID].mnW)};var e=this.gVP(i,g);var l=this;var j=a;this.center=k;this.elmt=document.createElement("img");this.elmt.setAttribute("id",j);this.elmt.onload=function(){fixPNG(this)};var b=Seadragon.OverlayPlacement.BOTTOM_LEFT;switch(f){case c.A:this.elmt.src="images/pinW.png";this.elmt.title="Available";break;case c.O:this.elmt.src="images/pinO.png";this.elmt.title="Occupied";break;case c.R:this.elmt.src="images/pinR.png";this.elmt.title="Reserved";break;case c.S:this.elmt.src="images/pinB.png";this.elmt.title="Sold";break;case c.E:this.elmt.src="images/pinG.png";this.elmt.title="Engineering";break;default:this.elmt.src="images/pinO.png";break}Seadragon.Utils.addEvent(l.elmt,"click",l.mClick);this.elmt.onmousedown=function(m){Seadragon.Config.zoomPerClick=1;mL[l.odID].flagClick=1};this.D=function(){if(!mL[this.odID].mnV.drawer){return}mL[l.odID].info.close();mL[this.odID].mnV.drawer.addOverlay(this.elmt,e,b);if(this.center){var o=mL[this.odID].mnV.source.dimensions.x;var m=mL[this.odID].mnV.viewport.getContainerSize().x;var n=o/m;if(mL[this.odID].crtMap>1){mL[this.odID].mnV.viewport.panTo(e,false);mL[this.odID].mnV.viewport.ensureVisible();mL[this.odID].pMB(-60,100)}else{mL[this.odID].mnV.viewport.panTo(e,false);mL[this.odID].mnV.viewport.zoomTo(n,false);mL[this.odID].pMB(-110,80)}}};this.R=function(){mL[this.odID].mnV.drawer.removeOverlay(this.elmt)};this.U=function(){mL[this.odID].mnV.drawer.updateOverlay(this.elmt,e,b);if(this.center){mL[this.odID].mnV.viewport.panTo(e,false);mL[this.odID].mnV.viewport.zoomTo(20,false)}};this.elmt.style.zIndex=100;this.D();if(h){mL[l.odID].stopBuble=true;mL[l.odID].info.dp()}};function isUrlActive(b){var a=null;if(window.XMLHttpRequest){a=new window.XMLHttpRequest()}else{if(window.ActiveXObject){a=new window.ActiveXObject("Microsoft.XMLHTTP")}else{return false}}if(!a){return false}a.open("HEAD",b,false);a.onreadystatechange=function(){var c=true;if(a.readyState==4){if(a.status==200){return true}else{return false}}};a.send(null)}function fixPNG(f){var h=navigator.appVersion.split("MSIE");var c=parseFloat(h[1]);if((c>=5.5)&&(c<7)&&(document.body.filters)){var b=(f.id)?"id='"+f.id+"' ":"";var e=(f.className)?"class='"+f.className+"' ":"";var g=(f.title)?"title='"+f.title+"' ":"title='"+f.alt+"' ";var d="display:inline-block;"+f.style.cssText;var a="<span "+b+e+g+' style="width:'+f.width+"px; height:"+f.height+"px;"+d+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f.src+"', sizingMethod='scale');\"></span>";f.outerHTML=a}};
