var theinsetsmaps=new Array(10)
var nofInsets=10;theinsetsmaps[0]=new Array("inset_03",452937,318877,1370.66,452900,318800,454300,320350,200,50,10,9);theinsetsmaps[1]=new Array("inset_05",455756,316133,852.574,455700,316200,456650,317000,200,50,5,6);theinsetsmaps[2]=new Array("inset_02",457954,314488,640.239,457900,314400,458700,315200,200,50,5,5);theinsetsmaps[3]=new Array("inset_01",454620,308306,767.544,454600,308300,455400,309100,200,50,5,5);theinsetsmaps[4]=new Array("inset_06",447693,319397,748.9,447700,319300,448500,320250,200,50,6,5);theinsetsmaps[5]=new Array("inset_09",462077,311119,875.765,462100,311100,462900,312050,200,50,6,5);theinsetsmaps[6]=new Array("inset_07",459134,308998,626.793,459100,309000,459900,309650,200,50,4,5);theinsetsmaps[7]=new Array("inset_08",459766,314759,875.018,459700,314800,460650,315600,200,50,5,6);theinsetsmaps[8]=new Array("inset_04",457175,317123,752.029,457300,317100,457800,317900,200,50,5,3);theinsetsmaps[9]=new Array("proposals",444740,302760,26780,444000,306000,471600,326100,600,100,40,55);var agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));var is_nav2=(is_nav&&(is_major==2));var is_nav3=(is_nav&&(is_major==3));var is_nav4=(is_nav&&(is_major==4));var is_nav4up=(is_nav&&(is_major>=4));var is_navonly=(is_nav&&((agt.indexOf(";nav")!=-1)||(agt.indexOf("; nav")!=-1)));var is_nav6=(is_nav&&(is_major==5));var is_nav6up=(is_nav&&(is_major>=5));var is_gecko=(agt.indexOf('gecko')!=-1);var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 4")!=-1));var is_ie4up=(is_ie&&(is_major>=4));var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));var is_ie5_5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1));var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);var is_ie5_5up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5);var is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.")!=-1));var is_ie6up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5);var is_aol=(agt.indexOf("aol")!=-1);var is_aol3=(is_aol&&is_ie3);var is_aol4=(is_aol&&is_ie4);var is_aol5=(agt.indexOf("aol 5")!=-1);var is_aol6=(agt.indexOf("aol 6")!=-1);var is_opera=(agt.indexOf("opera")!=-1);var is_opera2=(agt.indexOf("opera 2")!=-1||agt.indexOf("opera/2")!=-1);var is_opera3=(agt.indexOf("opera 3")!=-1||agt.indexOf("opera/3")!=-1);var is_opera4=(agt.indexOf("opera 4")!=-1||agt.indexOf("opera/4")!=-1);var is_opera5=(agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1);var is_opera5up=(is_opera&&!is_opera2&&!is_opera3&&!is_opera4);var is_webtv=(agt.indexOf("webtv")!=-1);var is_TVNavigator=((agt.indexOf("navio")!=-1)||(agt.indexOf("navio_aoltv")!=-1));var is_AOLTV=is_TVNavigator;var is_hotjava=(agt.indexOf("hotjava")!=-1);var is_hotjava3=(is_hotjava&&(is_major==3));var is_hotjava3up=(is_hotjava&&(is_major>=3));var is_js;if(is_nav2||is_ie3)is_js=1.0;else if(is_nav3)is_js=1.1;else if(is_opera5up)is_js=1.3;else if(is_opera)is_js=1.1;else if((is_nav4&&(is_minor<=4.05))||is_ie4)is_js=1.2;else if((is_nav4&&(is_minor>4.05))||is_ie5)is_js=1.3;else if(is_hotjava3up)is_js=1.4;else if(is_nav6||is_gecko)is_js=1.5;else if(is_nav6up)is_js=1.5;else if(is_ie5up)is_js=1.3
else is_js=0.0;var is_win=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));var is_win95=((agt.indexOf("win95")!=-1)||(agt.indexOf("windows 95")!=-1));var is_win16=((agt.indexOf("win16")!=-1)||(agt.indexOf("16bit")!=-1)||(agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("windows 16-bit")!=-1));var is_win31=((agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("win16")!=-1)||(agt.indexOf("windows 16-bit")!=-1));var is_winme=((agt.indexOf("win 9x 4.90")!=-1));var is_win2k=((agt.indexOf("windows nt 5.0")!=-1));var is_win98=((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));var is_winnt=((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));var is_win32=(is_win95||is_winnt||is_win98||((is_major>=4)&&(navigator.platform=="Win32"))||(agt.indexOf("win32")!=-1)||(agt.indexOf("32bit")!=-1));var is_os2=((agt.indexOf("os/2")!=-1)||(navigator.appVersion.indexOf("OS/2")!=-1)||(agt.indexOf("ibm-webexplorer")!=-1));var is_mac=(agt.indexOf("mac")!=-1);if(is_mac&&is_ie5up)is_js=1.4;var is_mac68k=(is_mac&&((agt.indexOf("68k")!=-1)||(agt.indexOf("68000")!=-1)));var is_macppc=(is_mac&&((agt.indexOf("ppc")!=-1)||(agt.indexOf("powerpc")!=-1)));var is_sun=(agt.indexOf("sunos")!=-1);var is_sun4=(agt.indexOf("sunos 4")!=-1);var is_sun5=(agt.indexOf("sunos 5")!=-1);var is_suni86=(is_sun&&(agt.indexOf("i86")!=-1));var is_irix=(agt.indexOf("irix")!=-1);var is_irix5=(agt.indexOf("irix 5")!=-1);var is_irix6=((agt.indexOf("irix 6")!=-1)||(agt.indexOf("irix6")!=-1));var is_hpux=(agt.indexOf("hp-ux")!=-1);var is_hpux9=(is_hpux&&(agt.indexOf("09.")!=-1));var is_hpux10=(is_hpux&&(agt.indexOf("10.")!=-1));var is_aix=(agt.indexOf("aix")!=-1);var is_aix1=(agt.indexOf("aix 1")!=-1);var is_aix2=(agt.indexOf("aix 2")!=-1);var is_aix3=(agt.indexOf("aix 3")!=-1);var is_aix4=(agt.indexOf("aix 4")!=-1);var is_linux=(agt.indexOf("inux")!=-1);var is_sco=(agt.indexOf("sco")!=-1)||(agt.indexOf("unix_sv")!=-1);var is_unixware=(agt.indexOf("unix_system_v")!=-1);var is_mpras=(agt.indexOf("ncr")!=-1);var is_reliant=(agt.indexOf("reliantunix")!=-1);var is_dec=((agt.indexOf("dec")!=-1)||(agt.indexOf("osf1")!=-1)||(agt.indexOf("dec_alpha")!=-1)||(agt.indexOf("alphaserver")!=-1)||(agt.indexOf("ultrix")!=-1)||(agt.indexOf("alphastation")!=-1));var is_sinix=(agt.indexOf("sinix")!=-1);var is_freebsd=(agt.indexOf("freebsd")!=-1);var is_bsd=(agt.indexOf("bsd")!=-1);var is_unix=((agt.indexOf("x11")!=-1)||is_sun||is_irix||is_hpux||is_sco||is_unixware||is_mpras||is_reliant||is_dec||is_sinix||is_aix||is_linux||is_bsd||is_freebsd);var is_vms=((agt.indexOf("vax")!=-1)||(agt.indexOf("openvms")!=-1));function gotoMainMap(e){var cmdString=String(document.location.search);var theName=cmdString.substring(1,cmdString.length);if(theName==""){theName="proposals"}
for(i=0;i<nofInsets;i++){if(theName.toUpperCase()==theinsetsmaps[i][0].toUpperCase()){var useIndex=i;}}
var imageWidth=400;var pixpermetre=theinsetsmaps[useIndex][3]/imageWidth;var origTLY=theinsetsmaps[useIndex][2]+theinsetsmaps[useIndex][3];var theX=event.offsetX;var theY=event.offsetY;theX=Number(theX)*pixpermetre;theY=Number(theY)*pixpermetre;theX=theinsetsmaps[useIndex][1]+theX;theY=origTLY-theY;var outSideX="false";var outSideY="false";if((theX>=theinsetsmaps[useIndex][6])|(theX<=theinsetsmaps[useIndex][4])){outSideX="true";}
if((theY>=theinsetsmaps[useIndex][7])|(theY<=theinsetsmaps[useIndex][5])){outSideY="true";}
if((outSideX=="true")|(outSideY=="true")){}
else{var distx=theX-theinsetsmaps[useIndex][4];var disty=theY-theinsetsmaps[useIndex][5];var gridcnt=theinsetsmaps[useIndex][8];var thecol=1;while(gridcnt<distx){thecol=thecol+1;gridcnt=gridcnt+(theinsetsmaps[useIndex][8]-theinsetsmaps[useIndex][9]);}
var gridcnt=theinsetsmaps[useIndex][8];var therow=1;while(gridcnt<disty){therow=therow+1;gridcnt=gridcnt+(theinsetsmaps[useIndex][8]-theinsetsmaps[useIndex][9]);}
var theTileNo=((therow-1)*theinsetsmaps[useIndex][11])+thecol;if(theTileNo<10){theTileNo="00"+theTileNo;}
else if(theTileNo<100){theTileNo="0"+theTileNo;}
else{theTileNo=String(theTileNo);}
var theNewHTML="map_htm/"+theName+"/"+theName+"_"+theTileNo+".htm";eval("parent.location='"+theNewHTML+"'");}}
function openMapAtCentre(theMap,source){var newMap;if(theMap.toLowerCase()=="shepshed"){newMap="map_htm/inset_06/inset_06_012.htm";}
else if(theMap.toLowerCase()=="loughborough"){newMap="map_htm/inset_03/inset_03_050.htm";}
else if(theMap.toLowerCase()=="quorn"){newMap="map_htm/inset_05/inset_05_009.htm";}
else if(theMap.toLowerCase()=="barrow upon soar"){newMap="map_htm/inset_04/inset_04_011.htm";}
else if(theMap.toLowerCase()=="mountsorrel"){newMap="map_htm/inset_02/inset_02_013.htm";}
else if(theMap.toLowerCase()=="sileby"){newMap="map_htm/inset_08/inset_08_016.htm";}
else if(theMap.toLowerCase()=="anstey"){newMap="map_htm/inset_01/inset_01_009.htm";}
else if(theMap.toLowerCase()=="birstall"){newMap="map_htm/inset_07/inset_07_009.htm";}
else if(theMap.toLowerCase()=="syston"){newMap="map_htm/inset_09/inset_09_013.htm";}
else if(theMap.toLowerCase()=="proposals map"){newMap="map_htm/proposals/proposals_962.htm";}
else{newMap="";}
if(newMap!=""){if(source=="propmap"){newMap="../../"+newMap;}
eval("parent.location='"+newMap+"'");}}
function openOverview(e){var imageWidth=400;var imageHeight=400;var tileWidth=26780;var tileHeight=26780;var pixpermetreX=tileWidth/imageWidth;var pixpermetreY=tileHeight/imageHeight;var tileOriginX=444740;var tileOriginY=302760;tileOriginY=tileOriginY+tileHeight;var theX=event.offsetX
var theY=event.offsetY
theX=Number(theX)*pixpermetreX;theY=Number(theY)*pixpermetreY;theX=tileOriginX+theX;theY=tileOriginY-theY;for(i=0;i<nofInsets;i++){ovblx=theinsetsmaps[i][4];ovbly=theinsetsmaps[i][5];ovtrx=theinsetsmaps[i][6];ovtry=theinsetsmaps[i][7];var outSideX="false";var outSideY="false";if((theX>=ovtrx)|(theX<=ovblx)){outSideX="true";}
if((theY>=ovtry)|(theY<=ovbly)){outSideY="true";}
if((outSideX=="false")&(outSideY=="false")){var distx=theX-ovblx;var disty=theY-ovbly;var gridcnt=theinsetsmaps[i][8];var thecol=1;while(gridcnt<distx){thecol=thecol+1;gridcnt=gridcnt+(theinsetsmaps[i][8]-theinsetsmaps[i][9]);}
var gridcnt=theinsetsmaps[i][8];var therow=1;while(gridcnt<disty){therow=therow+1;gridcnt=gridcnt+(theinsetsmaps[i][8]-theinsetsmaps[i][9]);}
var theTileNo=((therow-1)*theinsetsmaps[i][11])+thecol;if(theTileNo<10){theTileNo="00"+theTileNo;}
else if(theTileNo<100){theTileNo="0"+theTileNo;}
else{theTileNo=String(theTileNo);}
theURL="map_opening.htm?"+theinsetsmaps[i][0];eval("parent.location='"+theURL+"'");break;}}}
function defineMapTitle(theMapNo){if(theMapNo.toLowerCase()=="inset_06"){theTitle="Shepshed";}
else if(theMapNo.toLowerCase()=="inset_03"){theTitle="Loughborough";}
else if(theMapNo.toLowerCase()=="inset_05"){theTitle="Quorn";}
else if(theMapNo.toLowerCase()=="inset_04"){theTitle="Barrow upon Soar";}
else if(theMapNo.toLowerCase()=="inset_02"){theTitle="Mountsorrel";}
else if(theMapNo.toLowerCase()=="inset_08"){theTitle="Sileby";}
else if(theMapNo.toLowerCase()=="inset_01"){theTitle="Anstey";}
else if(theMapNo.toLowerCase()=="inset_07"){theTitle="Birstall";}
else if(theMapNo.toLowerCase()=="inset_09"){theTitle="Syston";}
else if(theMapNo.toLowerCase()=="proposals"){theTitle="Proposals Map";}
else{theTitle="";}
return theTitle;}
function getatt(thePolRef,theDoc){if(theDoc.indexOf("inset")!=-1){openMapAtCentre(thePolRef,'propmap');}
else if(thePolRef!=""){var comm=thePolRef.indexOf(",");if(comm==-1){var test=thePolRef.indexOf(" ");if(test!=-1){var newPolRef=thePolRef.substring(0,test);thePolRef=newPolRef;}
theURL="../../written/cpt"+theDoc+".htm#"+thePolRef;winName="Written";features="menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=500";window.open(theURL,winName,features);}
else
{polIndex(thePolRef,theDoc);}}}
function polIndex(thePolRef,theDoc){theURL="../../pol_index.htm?"+thePolRef+"&"+theDoc;winName="thePolIndex";features="menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=500";window.open(theURL,winName,features);}
function removePercentCode(theTitle){var newstring="";var pos=theTitle.indexOf("%20");if(pos!=-1){newstring=newstring+theTitle.substring(0,pos)+" ";test=theTitle.substring((pos+3),theTitle.length);pos=test.indexOf("%20");while(pos!=-1){newstring=newstring+test.substring(0,pos)+" ";test=test.substring((pos+3),test.length);pos=test.indexOf("%20");}
newstring=newstring+test.substring(0,test.length);}
else{newstring=theTitle;}
var newstring2="";var pos=newstring.indexOf("%38");if(pos!=-1){newstring2=newstring2+newstring.substring(0,pos)+"&";test=newstring.substring((pos+3),newstring.length);pos=test.indexOf("%38");while(pos!=-1){newstring2=newstring2+test.substring(0,pos)+"&";test=test.substring((pos+3),test.length);pos=test.indexOf("%38");}
newstring2=newstring2+test.substring(0,test.length);}
else{newstring2=newstring;}
if(newstring2.indexOf(" ")==0){newstring3=newstring2.substring(1,newstring2.length);}
else{newstring3=newstring2;}
if(newstring3.indexOf(" ")==(newstring3.length-1)){newstring4=newstring3.substring(0,(newstring3.length-1));}
else{newstring4=newstring3;}
return(newstring4);}
function getPolicyName(polNum){if(polNum=="EV1"){thePolName="Design EV/1";}
else if(polNum=="EV2"){thePolName="Nationally Important Archaeological Sites EV/2";}
else if(polNum=="EV3"){thePolName="Archaeological Sites of County and Local Significance EV/3";}
else if(polNum=="EV4"){thePolName="Alterations and Extensions to Listed Buildings EV/4";}
else if(polNum=="EV5"){thePolName="The Setting of Listed Buildings EV/5";}
else if(polNum=="EV6"){thePolName="Change of Use of Listed Buildings EV/6";}
else if(polNum=="EV7"){thePolName="Demolition of Listed Buildings EV/7";}
else if(polNum=="EV8"){thePolName="Buildings of Local Historic or Architectural Interest EV/8";}
else if(polNum=="EV9"){thePolName="Historic Parks and Gardens EV/9";}
else if(polNum=="EV10"){thePolName="Development In Conservation Areas EV/10";}
else if(polNum=="EV11"){thePolName="Advertisements EV/11";}
else if(polNum=="EV12"){thePolName="Advertisements above First Floor Level EV/12";}
else if(polNum=="EV13"){thePolName="Advertisements on Listed Buildings or in Conservation Areas EV/13";}
else if(polNum=="EV14"){thePolName="Advertisement Hoardings EV/14";}
else if(polNum=="EV15"){thePolName="Projecting Signs EV/15";}
else if(polNum=="EV16"){thePolName="Access for People with Disabilities EV/16";}
else if(polNum=="EV17"){thePolName="Safety in New Development EV/17";}
else if(polNum=="EV18"){thePolName="Open Spaces of Special Character EV/18";}
else if(polNum=="EV19"){thePolName="Ancient Woodland EV/19";}
else if(polNum=="EV20"){thePolName="Landscaping in New Development EV/20";}
else if(polNum=="EV21"){thePolName="Sites of National Ecological or Geological Importance EV/21";}
else if(polNum=="EV22"){thePolName="Sites of Regional, County and District Level Ecological or Geological Importance EV/22";}
else if(polNum=="EV23"){thePolName="Sites of Parish Level Ecological or Geological Importance EV/23";}
else if(polNum=="EV24"){thePolName="Landscape Features Important for Nature Conservation EV/24";}
else if(polNum=="EV25"){thePolName="Development and Features of Nature Conservation Interest EV/25";}
else if(polNum=="EV26"){thePolName="Species Protection EV/26";}
else if(polNum=="EV27"){thePolName="Protection of Floodplains EV/27";}
else if(polNum=="EV28"){thePolName="Design of Flood Alleviation Measures EV/28";}
else if(polNum=="EV29"){thePolName="Access to Watercourses for Maintenance EV/29";}
else if(polNum=="EV30"){thePolName="Surface Water Run-off EV/30";}
else if(polNum=="EV31"){thePolName="Sewage Disposal Capacity EV/31";}
else if(polNum=="EV32"){thePolName="Guidance for Septic Tanks EV/32";}
else if(polNum=="EV33"){thePolName="Ground Water Protection EV/33";}
else if(polNum=="EV34"){thePolName="Nuisance from Sewage Works and Agriculture EV/34";}
else if(polNum=="EV35"){thePolName="Development Close to Landfill Sites and Contaminated Land EV/35";}
else if(polNum=="EV36"){thePolName="Site Assessments for Landfill Disposal Sites and Contaminated Land EV/36";}
else if(polNum=="EV37"){thePolName="Telecommunication Structures EV/37";}
else if(polNum=="EV38"){thePolName="Satellite Television Dishes EV/38";}
else if(polNum=="EV39"){thePolName="Development and Pollution EV/39";}
else if(polNum=="EV40"){thePolName="Light Pollution EV/40";}
else if(polNum=="EV41"){thePolName="Renewable Energy EV/41";}
else if(polNum=="EV42"){thePolName="Wind Power EV/42";}
else if(polNum=="EV43"){thePolName="Percent for Art EV/43";}
else if(polNum=="H1"){thePolName="New Housing Allocations on Previously Developed Land H/1";}
else if(polNum=="H2"){thePolName="New Housing Allocations on Greenfield Sites H/2";}
else if(polNum=="H2(a)"){thePolName="Land North of Bradgate Road, Anstey H/2(a)";}
else if(polNum=="H2(b)"){thePolName="Land between Cotes Road and Willow Way, Barrow upon Soar H/2(b)";}
else if(polNum=="H2(c)"){thePolName="Land at Brook Street, Burton on the Wolds H/2(c)";}
else if(polNum=="H2(d)"){thePolName="Land at Peartree Lane, Loughborough H/2(d)";}
else if(polNum=="H2(e)"){thePolName="Land at Meynell Road, Quorn H/2(e)";}
else if(polNum=="H2(f)"){thePolName="Land at Little Haw Farm, Shepshed H/2(f)";}
else if(polNum=="H2(g)"){thePolName="Land East of 19 Barkby Lane Syston H/2(g)";}
else if(polNum=="H2(h)"){thePolName="Land at Barkby Road, Syston H/2(h)";}
else if(polNum=="H2(i)"){thePolName="Land at Wysall Lane, Wymeswold H/2(i)";}
else if(polNum=="H3"){thePolName="Density H/3";}
else if(polNum=="H4"){thePolName="General Guidance on Provision for Affordable Housing H/4";}
else if(polNum=="H5"){thePolName="Affordable Housing on Unallocated Sites H/5";}
else if(polNum=="H6"){thePolName="Affordable Housing in the Rural Areas H/6";}
else if(polNum=="H7"){thePolName="Access Housing H/7";}
else if(polNum=="H8"){thePolName="Transit Site, Railway Terrace, Loughborough H/8";}
else if(polNum=="H9"){thePolName="Assessment of Gypsy Site Proposals H/9";}
else if(polNum=="H10"){thePolName="Assessment of Travelling Showpeople Site Proposals H/10";}
else if(polNum=="H11"){thePolName="Houseboats H/11";}
else if(polNum=="H12"){thePolName="Student Halls of Residence H/12";}
else if(polNum=="H13"){thePolName="Houses in Multiple Occupation without On-site Supervision H/13";}
else if(polNum=="H14"){thePolName="Care in the Community – Nursing, Residential Care, Rest Homes and Sheltered Housing (Class C2) Involving On-site Supervision H/14";}
else if(polNum=="H15"){thePolName="Self-Contained Residential Annexes H/15";}
else if(polNum=="H16"){thePolName="Design and Layout of New Housing Developments H/16";}
else if(polNum=="H17"){thePolName="Extensions to Dwellings H/17";}
else if(polNum=="H18"){thePolName="Non-Residential Uses in Primarily Residential Areas H/18";}
else if(polNum=="H19"){thePolName="Residential Development at Locations within the Limits to Development but outside the Primarily Residential Areas H/19";}
else if(polNum=="H20"){thePolName="The Ridgeway Area of Rothley H/20";}
else if(polNum=="E1"){thePolName="Planning Criteria for Employment Developments E/1";}
else if(polNum=="E2"){thePolName="Storage of Hazardous Substances E/2";}
else if(polNum=="E3"){thePolName="Hazardous Installations E/3";}
else if(polNum=="E4"){thePolName="Loughborough Science Park E/4";}
else if(polNum=="E5"){thePolName="New Employment Areas E/5";}
else if(polNum=="E5(a)"){thePolName="Extension to Hayhill Industrial Estate, Sileby E/5(a)";}
else if(polNum=="E5(b)"){thePolName="Extension to Woodbrook Industrial Park, Belton Rd, Loughborough E/5(b)";}
else if(polNum=="E5(c)"){thePolName="Land at Dishley Grange, Hathern E/5(c)";}
else if(polNum=="E5(d)"){thePolName="Granite Way, Mountsorrel E/5(d)";}
else if(polNum=="E5(e)"){thePolName="Land at Rothley Lodge, East of the A6 Bypass, Rothley E/5(e)";}
else if(polNum=="E5(f)"){thePolName="Land North of Harrowgate Drive and West of the A6, Wanlip E/5(f)";}
else if(polNum=="E6"){thePolName="Future Use of Dishley Grange Farmstead E/6";}
else if(polNum=="E7"){thePolName="Control of Employment Uses in Primarily Employment Areas E/7";}
else if(polNum=="E8"){thePolName="Safeguarding of Employment Land and Buildings E/8";}
else if(polNum=="E9"){thePolName="Sales Areas for Cars, Caravans and Other Vehicles E/9";}
else if(polNum=="E10"){thePolName="Regeneration Opportunity Site – Land between Burder Street and Midland Mainline, Loughborough E/10";}
else if(polNum=="E11"){thePolName="Acceptable Uses for Proposed Regeneration Opportunity Site E/11";}
else if(polNum=="CT1"){thePolName="General Principles for Areas of Countryside, Green Wedge and Local Separation CT/1";}
else if(polNum=="CT2"){thePolName="Development in the Countryside CT/2";}
else if(polNum=="CT3"){thePolName="Development in Green Wedges CT/3";}
else if(polNum=="CT4"){thePolName="Development in Areas of Local Separation CT/4";}
else if(polNum=="CT5"){thePolName="Local Separation – The Ridgeway Area of Rothley CT/5";}
else if(polNum=="CT6"){thePolName="Planning Criteria for Development in Areas of Countryside, Green Wedges and Local Separation CT/6";}
else if(polNum=="CT7"){thePolName="Areas of Particularly Attractive Countryside CT/7";}
else if(polNum=="CT8"){thePolName="Soar Valley Area of Local Landscape Value CT/8";}
else if(polNum=="CT9"){thePolName="Environmental Improvement of the Countryside, Green Wedge and Areas of Local Separation CT/9";}
else if(polNum=="CT10"){thePolName="Rural Diversification CT/10";}
else if(polNum=="CT11"){thePolName="New Dwellings for Farm and Forestry Workers CT/11";}
else if(polNum=="CT12"){thePolName="Removal of Restrictions on Occupancy of Dwellings CT/12";}
else if(polNum=="CT13"){thePolName="Riding Stables, Kennels and Similar Establishments CT/13";}
else if(polNum=="CT14"){thePolName="Replacement Dwellings CT/14";}
else if(polNum=="CT15"){thePolName="Conversion of Existing Rural Buildings CT/15";}
else if(polNum=="CT16"){thePolName="Extensions to Existing Rural Dwellings CT/16";}
else if(polNum=="CT17"){thePolName="Extensions to Semi-Permanent Recreational Chalets CT/17";}
else if(polNum=="CT18"){thePolName="Safeguarding Agricultural Land CT/18";}
else if(polNum=="CT19"){thePolName="Intensive Livestock Units CT/19";}
else if(polNum=="CT20"){thePolName="Development Located in the National Forest CT/20";}
else if(polNum=="CT21"){thePolName="Maintenance and Management of New Planted Areas in the National Forest CT/21";}
else if(polNum=="TR1"){thePolName="The Specified Road Network (SRN) TR/1";}
else if(polNum=="TR2"){thePolName="Safeguarding Areas for Programmed Strategic Road and Highway Improvement Schemes TR/2";}
else if(polNum=="TR3"){thePolName="Local Highway Improvement Schemes in Loughborough TR/3";}
else if(polNum=="TR4"){thePolName="Roads and Highway Improvements to be provided in Association with New Development TR/4";}
else if(polNum=="TR5"){thePolName="Transport Standards for New Development TR/5";}
else if(polNum=="TR6"){thePolName="Traffic Generation from New Development TR/6";}
else if(polNum=="TR7"){thePolName="Improving Bus Services and Facilities TR/7";}
else if(polNum=="TR8"){thePolName="An Improved Bus Station in Loughborough TR/8";}
else if(polNum=="TR9"){thePolName="Bus/Rail Interchange next to Loughborough Station TR/9";}
else if(polNum=="TR10"){thePolName="Safeguarding Areas for New Railway Stations TR/10";}
else if(polNum=="TR11"){thePolName="Safeguarding the Midland Mainline and Leicester to Peterborough Railway Corridors TR/11";}
else if(polNum=="TR12"){thePolName="Safeguarding the Great Central Railway Corridor TR/12";}
else if(polNum=="TR13"){thePolName="Access for Cyclists and Pedestrians TR/13";}
else if(polNum=="TR14"){thePolName="Safeguarding Disused Linear Routes for Transport Purposes TR/14";}
else if(polNum=="TR15"){thePolName="Public Rights of Way TR/15";}
else if(polNum=="TR16"){thePolName="Traffic Calming TR/16";}
else if(polNum=="TR17"){thePolName="The Impact of Traffic on Minor Rural Roads TR/17";}
else if(polNum=="TR18"){thePolName="Parking Provision in New Development TR/18";}
else if(polNum=="TR19"){thePolName="Public Car Parking Provision Serving Loughborough Town Centre TR/19";}
else if(polNum=="TR20"){thePolName="Public Car Parking Provision Serving District and Local Centres TR/20";}
else if(polNum=="TR21"){thePolName="Planning Criteria for the Design and Layout of New Car Parks TR/21";}
else if(polNum=="TR22"){thePolName="Park & Ride Site on land adjacent to the A46/A6 Junction, Wanlip TR/22";}
else if(polNum=="TR23"){thePolName="Planning Criteria for Park and Ride Schemes to Service Loughborough and Leicester TR/23";}
else if(polNum=="TR24"){thePolName="Loss of Parking and Garaging Areas TR/24";}
else if(polNum=="TR25"){thePolName="Heavy Goods Vehicle Operations TR/25";}
else if(polNum=="TR26"){thePolName="Parking of Commercial Vehicles at Residential Properties TR/26";}
else if(polNum=="TR27"){thePolName="Provision of Servicing, Loading and Unloading Facilities in Non-Residential Developments  TR/28Loss of Servicing, Loading and Unloading Facilities TR/27";}
else if(polNum=="TR29"){thePolName="Roadside Service Area on Land Adjacent to the A6/A46 Junction, Wanlip TR/29";}
else if(polNum=="TR30"){thePolName="Planning Criteria to Assess Proposals for Roadside Service Areas TR/30";}
else if(polNum=="CA1"){thePolName="Central Areas CA/1";}
else if(polNum=="CA2"){thePolName="Acceptable Uses in the Loughborough Core Area CA/2";}
else if(polNum=="CA3"){thePolName="Acceptable Uses in the Loughborough Outer Area CA/3";}
else if(polNum=="CA4(a)"){thePolName="Opportunity Site – Devonshire Square, Loughborough CA/4(a)";}
else if(polNum=="CA4(b)"){thePolName="Opportunity Sites – Fennel Street, Baxter Gate and Leicester Road, Loughborough CA/4(b)";}
else if(polNum=="CA5"){thePolName="Town Centre Business Areas CA/5";}
else if(polNum=="CA6"){thePolName="Town Centre Commercial Service Areas CA/6";}
else if(polNum=="CA7"){thePolName="Pedestrian Preference in Loughborough Town Centre CA/7";}
else if(polNum=="CA8"){thePolName="Acceptable Uses in District Centres CA/8";}
else if(polNum=="CA9"){thePolName="Acceptable Uses in Local Centres CA/9";}
else if(polNum=="CA10"){thePolName="New Local Centres CA/10";}
else if(polNum=="CA11"){thePolName="Use of Upper Floors CA/11";}
else if(polNum=="CA12"){thePolName="Shop Front Design CA/12";}
else if(polNum=="CA13"){thePolName="Shop Front Security CA/13";}
else if(polNum=="CA14"){thePolName="Amusement Centres CA/14";}
else if(polNum=="CA15"){thePolName="Farm Shops CA/15";}
else if(polNum=="RT1"){thePolName="Formal Recreation Facilities RT/1";}
else if(polNum=="RT2"){thePolName="Informal and Land Extensive Facilities RT/2";}
else if(polNum=="RT3"){thePolName="Play Spaces in New Development RT/3";}
else if(polNum=="RT4"){thePolName="Youth/Adult Play in New Development RT/4";}
else if(polNum=="RT5"){thePolName="Amenity Open Space In New Development RT/5";}
else if(polNum=="RT6"){thePolName="Design of Play-Areas RT/6";}
else if(polNum=="RT7"){thePolName="Safeguarding Existing Recreational Land and Buildings RT/7";}
else if(polNum=="RT8"){thePolName="Replacement Derby Road Playing Fields, Hathern RT/8";}
else if(polNum=="RT9"){thePolName="Recreation Land, Lanes Close, Sileby RT/9";}
else if(polNum=="RT10"){thePolName="New Recreation Land, South of Hazel Road and Manor Drive, Loughborough RT/10";}
else if(polNum=="RT11"){thePolName="Natural Green Space RT/11";}
else if(polNum=="RT12"){thePolName="Structural Open Space Provision In New Development RT/12";}
else if(polNum=="RT13"){thePolName="Allsopps Lane, Loughborough – Recreation and Amenity Area RT/13";}
else if(polNum=="RT14"){thePolName="Linear Recreation Routes RT/14";}
else if(polNum=="RT15"){thePolName="Allotments RT/15";}
else if(polNum=="RT16"){thePolName="Water Recreation RT/16";}
else if(polNum=="RT17"){thePolName="Watermead Country Park RT/17";}
else if(polNum=="RT18"){thePolName="Wanlip Country Club RT/18";}
else if(polNum=="RT19"){thePolName="Noise and Sport RT/19";}
else if(polNum=="RT20"){thePolName="Tourism RT/20";}
else if(polNum=="RT21"){thePolName="Grand Union Canal Opportunity Site RT/21";}
else if(polNum=="RT22"){thePolName="Tourist Caravan and Camping Sites RT/22";}
else if(polNum=="RT23"){thePolName="Soar Valley Centre, Mountsorrel RT/23";}
else if(polNum=="CF1"){thePolName="Retention of Existing Community Facilities CF/1";}
else if(polNum=="CF2"){thePolName="Proposals for New Community Facilities CF/2";}
else if(polNum=="CF3"){thePolName="Education Land and Buildings CF/3";}
else if(polNum=="CF4"){thePolName="Loughborough University and College Campuses CF/4";}
else if(polNum=="CF5"){thePolName="Loughborough Hospital, Epinal Way CF/5";}
else if(polNum=="CF6"){thePolName="Cemeteries and Crematoria CF/6";}
else if(polNum=="CF7"){thePolName="Extension to Cemeteries CF/7";}
else if(polNum=="CF8"){thePolName="Fire Station Site A6/A46 Junction, Wanlip CF/8";}
else if(polNum=="ST2"){thePolName="Limits to Development ST/2";}
else{thePolName="";}
return(thePolName);}
function updatemap1(e){var imageWidth=200;var tileWidth=26780;var pixpermetre=tileWidth/imageWidth;var tileOriginX=444740;var tileOriginY=302760;tileOriginY=tileOriginY+tileWidth;var theX=event.offsetX;var theY=event.offsetY;theX=Number(theX)*pixpermetre;theY=Number(theY)*pixpermetre;theX=tileOriginX+theX;theY=tileOriginY-theY;for(i=0;i<nofInsets;i++){ovblx=theinsetsmaps[i][4];ovbly=theinsetsmaps[i][5];ovtrx=theinsetsmaps[i][6];ovtry=theinsetsmaps[i][7];var outSideX="false";var outSideY="false";if((theX>=ovtrx)|(theX<=ovblx)){outSideX="true";}
if((theY>=ovtry)|(theY<=ovbly)){outSideY="true";}
if((outSideX=="false")&(outSideY=="false")){var distx=theX-ovblx;var disty=theY-ovbly;var gridcnt=theinsetsmaps[i][8];var thecol=1;while(gridcnt<distx){thecol=thecol+1;gridcnt=gridcnt+(theinsetsmaps[i][8]-theinsetsmaps[i][9]);}
var gridcnt=theinsetsmaps[i][8];var therow=1;while(gridcnt<disty){therow=therow+1;gridcnt=gridcnt+(theinsetsmaps[i][8]-theinsetsmaps[i][9]);}
var theTileNo=((therow-1)*theinsetsmaps[i][11])+thecol;if(theTileNo<10){theTileNo="00"+theTileNo;}
else if(theTileNo<100){theTileNo="0"+theTileNo;}
else{theTileNo=String(theTileNo);}
var newloc="../../map_htm/"+theinsetsmaps[i][0]+"/"+theinsetsmaps[i][0]+"_"+theTileNo+".htm";parent.window.location=newloc;break;}}}
function updatemap2(e){var cmdString=String(parent.document.location);var theSep;for(n=0;n<cmdString.length;n++){var teststring=cmdString.substring(n,(n+1));if(teststring=="/"){theSep=n;}}
var tempstring=cmdString.substring((theSep+1),(cmdString.length));for(n=0;n<tempstring.length;n++){var teststring=tempstring.substring(n,(n+1));if(teststring=="_"){theSep=n;}}
var theName=tempstring.substring(0,theSep);for(i=0;i<nofInsets;i++){if(theName.toUpperCase()==theinsetsmaps[i][0].toUpperCase()){var useIndex=i;}}
var imageWidth=200;var pixpermetre=theinsetsmaps[useIndex][3]/imageWidth;var origTLY=theinsetsmaps[useIndex][2]+theinsetsmaps[useIndex][3];var theX=event.offsetX;var theY=event.offsetY;theX=Number(theX)*pixpermetre;theY=Number(theY)*pixpermetre;theX=theinsetsmaps[useIndex][1]+theX;theY=origTLY-theY;var outSideX="false";var outSideY="false";if((theX>=theinsetsmaps[useIndex][6])|(theX<=theinsetsmaps[useIndex][4])){outSideX="true";}
if((theY>=theinsetsmaps[useIndex][7])|(theY<=theinsetsmaps[useIndex][5])){outSideY="true";}
if((outSideX=="true")|(outSideY=="true")){}
else{var distx=theX-theinsetsmaps[useIndex][4];var disty=theY-theinsetsmaps[useIndex][5];var gridcnt=theinsetsmaps[useIndex][8];var thecol=1;while(gridcnt<distx){thecol=thecol+1;gridcnt=gridcnt+(theinsetsmaps[useIndex][8]-theinsetsmaps[useIndex][9]);}
var gridcnt=theinsetsmaps[useIndex][8];var therow=1;while(gridcnt<disty){therow=therow+1;gridcnt=gridcnt+(theinsetsmaps[useIndex][8]-theinsetsmaps[useIndex][9]);}
var theTileNo=((therow-1)*theinsetsmaps[useIndex][11])+thecol;if(theTileNo<10){theTileNo="00"+theTileNo;}
else if(theTileNo<100){theTileNo="0"+theTileNo;}
else{theTileNo=String(theTileNo);}
var newloc=theName+"_"+theTileNo+".htm";parent.window.location=newloc;}}
function openMap(selObj,theSource){if(theSource==1){var inString=selObj.options[selObj.selectedIndex].value;}
else{var inString=selObj;}
var sep=inString.indexOf("_");var string1=inString.substring(0,(sep+1));var string2=inString.substring((sep+1),inString.length);var sep2=string2.indexOf("_");if(sep2!=-1){var insetNo=string1+string2.substring(0,sep2);}
else{var insetNo=string1.substring(0,(string1.length-1));}
if(((is_ie==true)&&(is_ie5up==true))||((is_opera==true)&&(is_opera5up==true))){var mapLoc="map_opening.htm?"+insetNo;}
else{var mapLoc="map_htm/"+insetNo+"/"+inString+".htm";}
eval("parent.location='"+mapLoc+"'");if(theSource==1){selObj.selectedIndex=0;}}
function getMapList(toShow){if(toShow=="combo"){eval("parent.location='map_index.htm?false'");}
else{eval("parent.location='map_index.htm?true'");}}
function openDiagram(theMapRef){theURL="diag.htm?"+theMapRef;winName="Diagram";features="toolbar=no,scrollbars=yes,resizable=yes,width=500,height=500";window.open(theURL,winName,features);}
