
if(typeof(Sys)=='undefined') { 
Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){var e=arguments.length;if(e>0){var d=[];for(var c=0;c<e;c++){d[c]=arguments[c];}d[e]=a;return b.apply(this,d);}return b.call(this,a);};};Function.createDelegate=function(a,b){return function(){return b.apply(a,arguments);};};Function.emptyFunction=Function.emptyMethod=function(){};Function._validateParams=function(e,c){var a;a=Function._validateParameterCount(e,c);if(a){a.popStackFrame();return a;}for(var b=0;b<e.length;b++){var d=c[Math.min(b,c.length-1)],f=d.name;if(d.parameterArray){f+="["+(b-c.length+1)+"]";}a=Function._validateParameter(e[b],d,f);if(a){a.popStackFrame();return a;}}return null;};Function._validateParameterCount=function(e,a){var c=a.length,d=0;for(var b=0;b<a.length;b++){if(a[b].parameterArray){c=Number.MAX_VALUE;}else{if(!a[b].optional){d++;}}}if(e.length<d||e.length>c){var f=Error.parameterCount();f.popStackFrame();return f;}return null;};Function._validateParameter=function(c,a,h){var b,g=a.type,l=!!a.integer,k=!!a.domElement,m=!!a.mayBeNull;b=Function._validateParameterType(c,g,l,k,m,h);if(b){b.popStackFrame();return b;}var e=a.elementType,f=!!a.elementMayBeNull;if(g===Array&&typeof c!=="undefined"&&c!==null&&(e||!f)){var j=!!a.elementInteger,i=!!a.elementDomElement;for(var d=0;d<c.length;d++){var n=c[d];b=Function._validateParameterType(n,e,j,i,f,h+"["+d+"]");if(b){b.popStackFrame();return b;}}}return null;};Function._validateParameterType=function(a,c,n,m,k,d){var b;if(typeof a==="undefined"){if(k){return null;}else{b=Error.argumentUndefined(d);b.popStackFrame();return b;}}if(a===null){if(k){return null;}else{b=Error.argumentNull(d);b.popStackFrame();return b;}}if(c&&c.__enum){if(typeof a!=="number"){b=Error.argumentType(d,Object.getType(a),c);b.popStackFrame();return b;}if(a%1===0){var e=c.prototype;if(!c.__flags||a===0){for(var i in e){if(e[i]===a){return null;}}}else{var l=a;for(var i in e){var f=e[i];if(f===0){continue;}if((f&a)===f){l-=f;}if(l===0){return null;}}}}b=Error.argumentOutOfRange(d,a,String.format(Sys.Res.enumInvalidValue,a,c.getName()));b.popStackFrame();return b;}if(m){var h;if(typeof a.nodeType!=="number"){var g=a.ownerDocument||a.document||a;if(g!=a){var j=g.defaultView||g.parentWindow;h=j!=a&&!(j.document&&a.document&&j.document===a.document);}else{h=typeof g.body==="undefined";}}else{h=a.nodeType===3;}if(h){b=Error.argument(d,Sys.Res.argumentDomElement);b.popStackFrame();return b;}}if(c&&!c.isInstanceOfType(a)){b=Error.argumentType(d,Object.getType(a),c);b.popStackFrame();return b;}if(c===Number&&n){if(a%1!==0){b=Error.argumentOutOfRange(d,a,Sys.Res.argumentInteger);b.popStackFrame();return b;}}return null;};Error.__typeName="Error";Error.__class=true;Error.create=function(d,b){var a=new Error(d);a.message=d;if(b){for(var c in b){a[c]=b[c];}}a.popStackFrame();return a;};Error.argument=function(a,c){var b="Sys.ArgumentException: "+(c?c:Sys.Res.argument);if(a){b+="\n"+String.format(Sys.Res.paramName,a);}var d=Error.create(b,{name:"Sys.ArgumentException",paramName:a});d.popStackFrame();return d;};Error.argumentNull=function(a,c){var b="Sys.ArgumentNullException: "+(c?c:Sys.Res.argumentNull);if(a){b+="\n"+String.format(Sys.Res.paramName,a);}var d=Error.create(b,{name:"Sys.ArgumentNullException",paramName:a});d.popStackFrame();return d;};Error.argumentOutOfRange=function(c,a,d){var b="Sys.ArgumentOutOfRangeException: "+(d?d:Sys.Res.argumentOutOfRange);if(c){b+="\n"+String.format(Sys.Res.paramName,c);}if(typeof a!=="undefined"&&a!==null){b+="\n"+String.format(Sys.Res.actualValue,a);}var e=Error.create(b,{name:"Sys.ArgumentOutOfRangeException",paramName:c,actualValue:a});e.popStackFrame();return e;};Error.argumentType=function(d,c,b,e){var a="Sys.ArgumentTypeException: ";if(e){a+=e;}else{if(c&&b){a+=String.format(Sys.Res.argumentTypeWithTypes,c.getName(),b.getName());}else{a+=Sys.Res.argumentType;}}if(d){a+="\n"+String.format(Sys.Res.paramName,d);}var f=Error.create(a,{name:"Sys.ArgumentTypeException",paramName:d,actualType:c,expectedType:b});f.popStackFrame();return f;};Error.argumentUndefined=function(a,c){var b="Sys.ArgumentUndefinedException: "+(c?c:Sys.Res.argumentUndefined);if(a){b+="\n"+String.format(Sys.Res.paramName,a);}var d=Error.create(b,{name:"Sys.ArgumentUndefinedException",paramName:a});d.popStackFrame();return d;};Error.format=function(a){var c="Sys.FormatException: "+(a?a:Sys.Res.format),b=Error.create(c,{name:"Sys.FormatException"});b.popStackFrame();return b;};Error.invalidOperation=function(a){var c="Sys.InvalidOperationException: "+(a?a:Sys.Res.invalidOperation),b=Error.create(c,{name:"Sys.InvalidOperationException"});b.popStackFrame();return b;};Error.notImplemented=function(a){var c="Sys.NotImplementedException: "+(a?a:Sys.Res.notImplemented),b=Error.create(c,{name:"Sys.NotImplementedException"});b.popStackFrame();return b;};Error.parameterCount=function(a){var c="Sys.ParameterCountException: "+(a?a:Sys.Res.parameterCount),b=Error.create(c,{name:"Sys.ParameterCountException"});b.popStackFrame();return b;};Error.prototype.popStackFrame=function(){if(typeof this.stack==="undefined"||this.stack===null||typeof this.fileName==="undefined"||this.fileName===null||typeof this.lineNumber==="undefined"||this.lineNumber===null){return;}var a=this.stack.split("\n"),c=a[0],e=this.fileName+":"+this.lineNumber;while(typeof c!=="undefined"&&c!==null&&c.indexOf(e)===-1){a.shift();c=a[0];}var d=a[1];if(typeof d==="undefined"||d===null){return;}var b=d.match(/@(.*):(\d+)$/);if(typeof b==="undefined"||b===null){return;}this.fileName=b[1];this.lineNumber=parseInt(b[2]);a.shift();this.stack=a.join("\n");};Object.__typeName="Object";Object.__class=true;Object.getType=function(b){var a=b.constructor;if(!a||typeof a!=="function"||!a.__typeName||a.__typeName==="Object"){return Object;}return a;};Object.getTypeName=function(a){return Object.getType(a).getName();};String.__typeName="String";String.__class=true;String.prototype.endsWith=function(a){return this.substr(this.length-a.length)===a;};String.prototype.startsWith=function(a){return this.substr(0,a.length)===a;};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.trimEnd=function(){return this.replace(/\s+$/,"");};String.prototype.trimStart=function(){return this.replace(/^\s+/,"");};String.format=function(){return String._toFormattedString(false,arguments);};String.localeFormat=function(){return String._toFormattedString(true,arguments);};String._toFormattedString=function(l,j){var c="",e=j[0];for(var a=0;true;){var f=e.indexOf("{",a),d=e.indexOf("}",a);if(f<0&&d<0){c+=e.slice(a);break;}if(d>0&&(d<f||f<0)){c+=e.slice(a,d+1);a=d+2;continue;}c+=e.slice(a,f);a=f+1;if(e.charAt(a)==="{"){c+="{";a++;continue;}if(d<0){break;}var h=e.substring(a,d),g=h.indexOf(":"),k=parseInt(g<0?h:h.substring(0,g),10)+1,i=g<0?"":h.substring(g+1),b=j[k];if(typeof b==="undefined"||b===null){b="";}if(b.toFormattedString){c+=b.toFormattedString(i);}else{if(l&&b.localeFormat){c+=b.localeFormat(i);}else{if(b.format){c+=b.format(i);}else{c+=b.toString();}}}a=d+1;}return c;};Boolean.__typeName="Boolean";Boolean.__class=true;Boolean.parse=function(b){var a=b.trim().toLowerCase();if(a==="false"){return false;}if(a==="true"){return true;}};Date.__typeName="Date";Date.__class=true;Date._appendPreOrPostMatch=function(e,b){var d=0,a=false;for(var c=0,g=e.length;c<g;c++){var f=e.charAt(c);switch(f){case"'":if(a){b.append("'");}else{d++;}a=false;break;case"\\":if(a){b.append("\\");}a=!a;break;default:b.append(f);a=false;}}return d;};Date._expandFormat=function(a,b){if(!b){b="F";}if(b.length===1){switch(b){case"d":return a.ShortDatePattern;case"D":return a.LongDatePattern;case"t":return a.ShortTimePattern;case"T":return a.LongTimePattern;case"F":return a.FullDateTimePattern;case"M":case"m":return a.MonthDayPattern;case"s":return a.SortableDateTimePattern;case"Y":case"y":return a.YearMonthPattern;default:throw Error.format(Sys.Res.formatInvalidString);}}return b;};Date._expandYear=function(c,a){if(a<100){var b=(new Date).getFullYear();a+=b-b%100;if(a>c.Calendar.TwoDigitYearMax){return a-100;}}return a;};Date._getParseRegExp=function(b,e){if(!b._parseRegExp){b._parseRegExp={};}else{if(b._parseRegExp[e]){return b._parseRegExp[e];}}var c=Date._expandFormat(b,e);c=c.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");var a=new Sys.StringBuilder("^"),j=[],f=0,i=0,h=Date._getTokenRegExp(),d;while((d=h.exec(c))!==null){var l=c.slice(f,d.index);f=h.lastIndex;i+=Date._appendPreOrPostMatch(l,a);if(i%2===1){a.append(d[0]);continue;}switch(d[0]){case"dddd":case"ddd":case"MMMM":case"MMM":a.append("(\\D+)");break;case"tt":case"t":a.append("(\\D*)");break;case"yyyy":a.append("(\\d{4})");break;case"fff":a.append("(\\d{3})");break;case"ff":a.append("(\\d{2})");break;case"f":a.append("(\\d)");break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":a.append("(\\d\\d?)");break;case"zzz":a.append("([+-]?\\d\\d?:\\d{2})");break;case"zz":case"z":a.append("([+-]?\\d\\d?)");}Array.add(j,d[0]);}Date._appendPreOrPostMatch(c.slice(f),a);a.append("$");var k=a.toString().replace(/\s+/g,"\\s+"),g={regExp:k,groups:j};b._parseRegExp[e]=g;return g;};Date._getTokenRegExp=function(){return/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z/g;};Date.parseLocale=function(a){return Date._parse(a,Sys.CultureInfo.CurrentCulture,arguments);};Date.parseInvariant=function(a){return Date._parse(a,Sys.CultureInfo.InvariantCulture,arguments);};Date._parse=function(g,c,h){var e=false;for(var a=1,i=h.length;a<i;a++){var f=h[a];if(f){e=true;var b=Date._parseExact(g,f,c);if(b){return b;}}}if(!e){var d=c._getDateTimeFormats();for(var a=0,i=d.length;a<i;a++){var b=Date._parseExact(g,d[a],c);if(b){return b;}}}return null;};Date._parseExact=function(s,y,j){s=s.trim();var m=j.dateTimeFormat,v=Date._getParseRegExp(m,y),x=(new RegExp(v.regExp)).exec(s);if(x===null){return null;}var w=v.groups,f=null,c=null,h=null,g=null,d=0,n=0,o=0,e=0,k=null,r=false;for(var p=0,z=w.length;p<z;p++){var a=x[p+1];if(a){switch(w[p]){case"dd":case"d":h=parseInt(a,10);if(h<1||h>31){return null;}break;case"MMMM":c=j._getMonthIndex(a);if(c<0||c>11){return null;}break;case"MMM":c=j._getAbbrMonthIndex(a);if(c<0||c>11){return null;}break;case"M":case"MM":var c=parseInt(a,10)-1;if(c<0||c>11){return null;}break;case"y":case"yy":f=Date._expandYear(m,parseInt(a,10));if(f<0||f>9999){return null;}break;case"yyyy":f=parseInt(a,10);if(f<0||f>9999){return null;}break;case"h":case"hh":d=parseInt(a,10);if(d===12){d=0;}if(d<0||d>11){return null;}break;case"H":case"HH":d=parseInt(a,10);if(d<0||d>23){return null;}break;case"m":case"mm":n=parseInt(a,10);if(n<0||n>59){return null;}break;case"s":case"ss":o=parseInt(a,10);if(o<0||o>59){return null;}break;case"tt":case"t":var u=a.toUpperCase();r=u===m.PMDesignator.toUpperCase();if(!r&&u!==m.AMDesignator.toUpperCase()){return null;}break;case"f":e=parseInt(a,10)*100;if(e<0||e>999){return null;}break;case"ff":e=parseInt(a,10)*10;if(e<0||e>999){return null;}break;case"fff":e=parseInt(a,10);if(e<0||e>999){return null;}break;case"dddd":g=j._getDayIndex(a);if(g<0||g>6){return null;}break;case"ddd":g=j._getAbbrDayIndex(a);if(g<0||g>6){return null;}break;case"zzz":var q=a.split(/:/);if(q.length!==2){return null;}var i=parseInt(q[0],10);if(i<-12||i>13){return null;}var l=parseInt(q[1],10);if(l<0||l>59){return null;}k=i*60+(a.startsWith("-")?-l:l);break;case"z":case"zz":var i=parseInt(a,10);if(i<-12||i>13){return null;}k=i*60;}}}var b=new Date;if(f===null){f=b.getFullYear();}if(c===null){c=b.getMonth();}if(h===null){h=b.getDate();}b.setFullYear(f,c,h);if(b.getDate()!==h){return null;}if(g!==null&&b.getDay()!==g){return null;}if(r&&d<12){d+=12;}b.setHours(d,n,o,e);if(k!==null){var t=b.getMinutes()-(k+b.getTimezoneOffset());b.setHours(b.getHours()+parseInt(t/60,10),t%60);}return b;};Date.prototype.format=function(a){return this._toFormattedString(a,Sys.CultureInfo.InvariantCulture);};Date.prototype.localeFormat=function(a){return this._toFormattedString(a,Sys.CultureInfo.CurrentCulture);};Date.prototype._toFormattedString=function(e,h){if(!e||e.length===0||e==="i"){if(h&&h.name.length>0){return this.toLocaleString();}else{return this.toString();}}var d=h.dateTimeFormat;e=Date._expandFormat(d,e);var a=new Sys.StringBuilder,b;function c(a){if(a<10){return"0"+a;}return a.toString();}function g(a){if(a<10){return"00"+a;}if(a<100){return"0"+a;}return a.toString();}var j=0,i=Date._getTokenRegExp();for(;true;){var l=i.lastIndex,f=i.exec(e),k=e.slice(l,f?f.index:e.length);j+=Date._appendPreOrPostMatch(k,a);if(!f){break;}if(j%2===1){a.append(f[0]);continue;}switch(f[0]){case"dddd":a.append(d.DayNames[this.getDay()]);break;case"ddd":a.append(d.AbbreviatedDayNames[this.getDay()]);break;case"dd":a.append(c(this.getDate()));break;case"d":a.append(this.getDate());break;case"MMMM":a.append(d.MonthNames[this.getMonth()]);break;case"MMM":a.append(d.AbbreviatedMonthNames[this.getMonth()]);break;case"MM":a.append(c(this.getMonth()+1));break;case"M":a.append(this.getMonth()+1);break;case"yyyy":a.append(this.getFullYear());break;case"yy":a.append(c(this.getFullYear()%100));break;case"y":a.append(this.getFullYear()%100);break;case"hh":b=this.getHours()%12;if(b===0){b=12;}a.append(c(b));break;case"h":b=this.getHours()%12;if(b===0){b=12;}a.append(b);break;case"HH":a.append(c(this.getHours()));break;case"H":a.append(this.getHours());break;case"mm":a.append(c(this.getMinutes()));break;case"m":a.append(this.getMinutes());break;case"ss":a.append(c(this.getSeconds()));break;case"s":a.append(this.getSeconds());break;case"tt":a.append(this.getHours()<12?d.AMDesignator:d.PMDesignator);break;case"t":a.append((this.getHours()<12?d.AMDesignator:d.PMDesignator).charAt(0));break;case"f":a.append(g(this.getMilliseconds()).charAt(0));break;case"ff":a.append(g(this.getMilliseconds()).substr(0,2));break;case"fff":a.append(g(this.getMilliseconds()));break;case"z":b=this.getTimezoneOffset()/60;a.append((b<=0?"+":"-")+Math.floor(Math.abs(b)));break;case"zz":b=this.getTimezoneOffset()/60;a.append((b<=0?"+":"-")+c(Math.floor(Math.abs(b))));break;case"zzz":b=this.getTimezoneOffset()/60;a.append((b<=0?"+":"-")+c(Math.floor(Math.abs(b)))+d.TimeSeparator+c(Math.abs(this.getTimezoneOffset()%60)));}}return a.toString();};Number.__typeName="Number";Number.__class=true;Number.parseLocale=function(a){return Number._parse(a,Sys.CultureInfo.CurrentCulture);};Number.parseInvariant=function(a){return Number._parse(a,Sys.CultureInfo.InvariantCulture);};Number._parse=function(b,n){b=b.trim();if(b.match(/^[+-]?infinity$/i)){return parseFloat(b);}if(b.match(/^0x[a-f0-9]+$/i)){return parseInt(b);}var a=n.numberFormat,f=Number._parseNumberNegativePattern(b,a,a.NumberNegativePattern),h=f[0],d=f[1];if(h===""&&a.NumberNegativePattern!==1){f=Number._parseNumberNegativePattern(b,a,1);h=f[0];d=f[1];}if(h===""){h="+";}var j,c,e=d.indexOf("e");if(e<0){e=d.indexOf("E");}if(e<0){c=d;j=null;}else{c=d.substr(0,e);j=d.substr(e+1);}var g,k,m=c.indexOf(a.NumberDecimalSeparator);if(m<0){g=c;k=null;}else{g=c.substr(0,m);k=c.substr(m+a.NumberDecimalSeparator.length);}g=g.split(a.NumberGroupSeparator).join("");var l=h+g;if(k!==null){l+="."+k;}if(j!==null){var i=Number._parseNumberNegativePattern(j,a,1);if(i[0]===""){i[0]="+";}l+="e"+i[0]+i[1];}if(l.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)){return parseFloat(l);}return Number.NaN;};Number._parseNumberNegativePattern=function(a,d,e){var b=d.NegativeSign,c=d.PositiveSign;switch(e){case 4:b=" "+b;c=" "+c;case 3:if(a.endsWith(b)){return["-",a.substr(0,a.length-b.length)];}else{if(a.endsWith(c)){return["+",a.substr(0,a.length-c.length)];}}break;case 2:b+=" ";c+=" ";case 1:if(a.startsWith(b)){return["-",a.substr(b.length)];}else{if(a.startsWith(c)){return["+",a.substr(c.length)];}}break;case 0:if(a.startsWith("(")&&a.endsWith(")")){return["-",a.substr(1,a.length-2)];}}return["",a];};Number.prototype.format=function(a){return this._toFormattedString(a,Sys.CultureInfo.InvariantCulture);};Number.prototype.localeFormat=function(a){return this._toFormattedString(a,Sys.CultureInfo.CurrentCulture);};Number.prototype._toFormattedString=function(d,j){if(!d||d.length===0||d==="i"){if(j&&j.name.length>0){return this.toLocaleString();}else{return this.toString();}}var q=["n %","n%","%n"],p=["-n %","-n%","-%n"],r=["(n)","-n","- n","n-","n -"],o=["$n","n$","$ n","n $"],n=["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"];function i(p,k,j,l,o){var e=j[0],g=1,c=p.toString(),a="",m="",i=c.split(".");if(i.length>1){c=i[0];a=i[1];var h=a.split(/e/i);if(h.length>1){a=h[0];m="e"+h[1];}}if(k>0){var f=a.length-k;if(f>0){a=a.slice(0,k);}else{if(f<0){for(var n=0;n<Math.abs(f);n++){a+="0";}}}a=o+a;}else{a="";}a+=m;var b=c.length-1,d="";while(b>=0){if(e===0||e>b){if(d.length>0){return c.slice(0,b+1)+l+d+a;}else{return c.slice(0,b+1)+a;}}if(d.length>0){d=c.slice(b-e+1,b+1)+l+d;}else{d=c.slice(b-e+1,b+1);}b-=e;if(g<j.length){e=j[g];g++;}}return c.slice(0,b+1)+l+d+a;}var a=j.numberFormat,e=Math.abs(this);if(!d){d="D";}var b=-1;if(d.length>1){b=parseInt(d.slice(1),10);}var c;switch(d.charAt(0)){case"d":case"D":c="n";if(b!==-1){var g=""+e,k=b-g.length;if(k>0){for(var m=0;m<k;m++){g="0"+g;}}e=g;}if(this<0){e=-e;}break;case"c":case"C":if(this<0){c=n[a.CurrencyNegativePattern];}else{c=o[a.CurrencyPositivePattern];}if(b===-1){b=a.CurrencyDecimalDigits;}e=i(Math.abs(this),b,a.CurrencyGroupSizes,a.CurrencyGroupSeparator,a.CurrencyDecimalSeparator);break;case"n":case"N":if(this<0){c=r[a.NumberNegativePattern];}else{c="n";}if(b===-1){b=a.NumberDecimalDigits;}e=i(Math.abs(this),b,a.NumberGroupSizes,a.NumberGroupSeparator,a.NumberDecimalSeparator);break;case"p":case"P":if(this<0){c=p[a.PercentNegativePattern];}else{c=q[a.PercentPositivePattern];}if(b===-1){b=a.PercentDecimalDigits;}e=i(Math.abs(this),b,a.PercentGroupSizes,a.PercentGroupSeparator,a.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier);}var l=/n|\$|-|%/g,f="";for(;true;){var s=l.lastIndex,h=l.exec(c);f+=c.slice(s,h?h.index:c.length);if(!h){break;}switch(h[0]){case"n":f+=e;break;case"$":f+=a.CurrencySymbol;break;case"-":f+=a.NegativeSign;break;case"%":f+=a.PercentSymbol;}}return f;};RegExp.__typeName="RegExp";RegExp.__class=true;Array.__typeName="Array";Array.__class=true;Array.add=Array.enqueue=function(a,b){a[a.length]=b;};Array.addRange=function(a,b){a.push.apply(a,b);};Array.clear=function(a){a.length=0;};Array.clone=function(a){if(a.length===1){return[a[0]];}else{return Array.apply(null,a);}};Array.contains=function(a,b){return Array.indexOf(a,b)>=0;};Array.dequeue=function(a){return a.shift();};Array.forEach=function(b,e,d){for(var a=0,f=b.length;a<f;a++){var c=b[a];if(typeof c!=="undefined"){e.call(d,c,a,b);}}};Array.indexOf=function(d,e,a){if(typeof e==="undefined"){return -1;}var c=d.length;if(c!==0){a=a-0;if(isNaN(a)){a=0;}else{if(isFinite(a)){a=a-a%1;}if(a<0){a=Math.max(0,c+a);}}for(var b=a;b<c;b++){if(typeof d[b]!=="undefined"&&d[b]===e){return b;}}}return -1;};Array.insert=function(a,b,c){a.splice(b,0,c);};Array.parse=function(value){if(!value){return[];}return eval(value);};Array.remove=function(b,c){var a=Array.indexOf(b,c);if(a>=0){b.splice(a,1);}return a>=0;};Array.removeAt=function(a,b){a.splice(b,1);};if(!window){this.window=this;}window.Type=Function;Type.prototype.callBaseMethod=function(a,d,b){var c=this.getBaseMethod(a,d);if(!b){return c.apply(a);}else{return c.apply(a,b);}};Type.prototype.getBaseMethod=function(d,c){var b=this.getBaseType();if(b){var a=b.prototype[c];return a instanceof Function?a:null;}return null;};Type.prototype.getBaseType=function(){return typeof this.__baseType==="undefined"?null:this.__baseType;};Type.prototype.getInterfaces=function(){var a=[],b=this;while(b){var c=b.__interfaces;if(c){for(var d=0,f=c.length;d<f;d++){var e=c[d];if(!Array.contains(a,e)){a[a.length]=e;}}}b=b.__baseType;}return a;};Type.prototype.getName=function(){return typeof this.__typeName==="undefined"?"":this.__typeName;};Type.prototype.implementsInterface=function(d){this.resolveInheritance();var c=d.getName(),a=this.__interfaceCache;if(a){var e=a[c];if(typeof e!=="undefined"){return e;}}else{a=this.__interfaceCache={};}var b=this;while(b){var f=b.__interfaces;if(f){if(Array.indexOf(f,d)!==-1){return a[c]=true;}}b=b.__baseType;}return a[c]=false;};Type.prototype.inheritsFrom=function(b){this.resolveInheritance();var a=this.__baseType;while(a){if(a===b){return true;}a=a.__baseType;}return false;};Type.prototype.initializeBase=function(a,b){this.resolveInheritance();if(this.__baseType){if(!b){this.__baseType.apply(a);}else{this.__baseType.apply(a,b);}}return a;};Type.prototype.isImplementedBy=function(a){if(typeof a==="undefined"||a===null){return false;}var b=Object.getType(a);return !!(b.implementsInterface&&b.implementsInterface(this));};Type.prototype.isInstanceOfType=function(b){if(typeof b==="undefined"||b===null){return false;}if(b instanceof this){return true;}var a=Object.getType(b);return !!(a===this)||a.inheritsFrom&&a.inheritsFrom(this)||a.implementsInterface&&a.implementsInterface(this);};Type.prototype.registerClass=function(c,b,d){this.prototype.constructor=this;this.__typeName=c;this.__class=true;if(b){this.__baseType=b;this.__basePrototypePending=true;}Sys.__upperCaseTypes[c.toUpperCase()]=this;if(d){this.__interfaces=[];for(var a=2,f=arguments.length;a<f;a++){var e=arguments[a];this.__interfaces.push(e);}}return this;};Type.prototype.registerInterface=function(a){Sys.__upperCaseTypes[a.toUpperCase()]=this;this.prototype.constructor=this;this.__typeName=a;this.__interface=true;return this;};Type.prototype.resolveInheritance=function(){if(this.__basePrototypePending){var b=this.__baseType;b.resolveInheritance();for(var a in b.prototype){var c=b.prototype[a];if(!this.prototype[a]){this.prototype[a]=c;}}delete this.__basePrototypePending;}};Type.getRootNamespaces=function(){return Array.clone(Sys.__rootNamespaces);};Type.isClass=function(a){if(typeof a==="undefined"||a===null){return false;}return !!a.__class;};Type.isInterface=function(a){if(typeof a==="undefined"||a===null){return false;}return !!a.__interface;};Type.isNamespace=function(a){if(typeof a==="undefined"||a===null){return false;}return !!a.__namespace;};Type.parse=function(typeName,ns){var fn;if(ns){fn=Sys.__upperCaseTypes[ns.getName().toUpperCase()+"."+typeName.toUpperCase()];return fn||null;}if(!typeName){return null;}if(!Type.__htClasses){Type.__htClasses={};}fn=Type.__htClasses[typeName];if(!fn){fn=eval(typeName);Type.__htClasses[typeName]=fn;}return fn;};Type.registerNamespace=function(f){var d=window,c=f.split(".");for(var b=0;b<c.length;b++){var e=c[b],a=d[e];if(!a){a=d[e]={__namespace:true,__typeName:c.slice(0,b+1).join(".")};if(b===0){Sys.__rootNamespaces[Sys.__rootNamespaces.length]=a;}a.getName=function(){return this.__typeName;};}d=a;}};window.Sys={__namespace:true,__typeName:"Sys",getName:function(){return"Sys";},__upperCaseTypes:{}};Sys.__rootNamespaces=[Sys];Sys.IDisposable=function(){};Sys.IDisposable.prototype={};Sys.IDisposable.registerInterface("Sys.IDisposable");Sys.StringBuilder=function(a){this._parts=typeof a!=="undefined"&&a!==null&&a!==""?[a.toString()]:[];this._value={};this._len=0;};Sys.StringBuilder.prototype={append:function(a){this._parts[this._parts.length]=a;},appendLine:function(a){this._parts[this._parts.length]=typeof a==="undefined"||a===null||a===""?"\r\n":a+"\r\n";},clear:function(){this._parts=[];this._value={};this._len=0;},isEmpty:function(){if(this._parts.length===0){return true;}return this.toString()==="";},toString:function(a){a=a||"";var b=this._parts;if(this._len!==b.length){this._value={};this._len=b.length;}var d=this._value;if(typeof d[a]==="undefined"){if(a!==""){for(var c=0;c<b.length;){if(typeof b[c]==="undefined"||b[c]===""||b[c]===null){b.splice(c,1);}else{c++;}}}d[a]=this._parts.join(a);}return d[a];}};Sys.StringBuilder.registerClass("Sys.StringBuilder");if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var b=["Mxsml2.XMLHTTP.3.0","Msxml2.XMLHTTP"];for(var a=0,c=b.length;a<c;a++){try{return new ActiveXObject(b[a]);}catch(d){}}return null;};}Sys.Browser={};Sys.Browser.InternetExplorer={};Sys.Browser.Firefox={};Sys.Browser.Safari={};Sys.Browser.Opera={};Sys.Browser.agent=null;Sys.Browser.hasDebuggerStatement=false;Sys.Browser.name=navigator.appName;Sys.Browser.version=parseFloat(navigator.appVersion);if(navigator.userAgent.indexOf(" MSIE ")>-1){Sys.Browser.agent=Sys.Browser.InternetExplorer;Sys.Browser.version=parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]);Sys.Browser.hasDebuggerStatement=true;}else{if(navigator.userAgent.indexOf(" Firefox/")>-1){Sys.Browser.agent=Sys.Browser.Firefox;Sys.Browser.version=parseFloat(navigator.userAgent.match(/Firefox\/(\d+\.\d+)/)[1]);Sys.Browser.name="Firefox";Sys.Browser.hasDebuggerStatement=true;}else{if(navigator.userAgent.indexOf(" Safari/")>-1){Sys.Browser.agent=Sys.Browser.Safari;Sys.Browser.version=parseFloat(navigator.userAgent.match(/Safari\/(\d+(\.\d+)?)/)[1]);Sys.Browser.name="Safari";}else{if(navigator.userAgent.indexOf("Opera/")>-1){Sys.Browser.agent=Sys.Browser.Opera;}}}}Type.registerNamespace("Sys.UI");Sys._Debug=function(){};Sys._Debug.prototype={_appendConsole:function(a){if(typeof Debug!=="undefined"&&Debug.writeln){Debug.writeln(a);}if(window.console&&window.console.log){window.console.log(a);}if(window.opera){window.opera.postError(a);}if(window.debugService){window.debugService.trace(a);}},_appendTrace:function(b){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA"){a.value+=b+"\n";}},assert:function(c,a,b){if(!c){a=b&&this.assert.caller?String.format(Sys.Res.assertFailedCaller,a,this.assert.caller):String.format(Sys.Res.assertFailed,a);if(confirm(String.format(Sys.Res.breakIntoDebugger,a))){this.fail(a);}}},clearTrace:function(){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA"){a.value="";}},fail:function(message){this._appendConsole(message);if(Sys.Browser.hasDebuggerStatement){eval("debugger");}},trace:function(a){this._appendConsole(a);this._appendTrace(a);},traceDump:function(a,b){var c=this._traceDump(a,b,true);},_traceDump:function(a,c,f,b,d){c=c?c:"traceDump";b=b?b:"";if(a===null){this.trace(b+c+": null");return;}switch(typeof a){case"undefined":this.trace(b+c+": Undefined");break;case"number":case"string":case"boolean":this.trace(b+c+": "+a);break;default:if(Date.isInstanceOfType(a)||RegExp.isInstanceOfType(a)){this.trace(b+c+": "+a.toString());break;}if(!d){d=[];}else{if(Array.contains(d,a)){this.trace(b+c+": ...");return;}}Array.add(d,a);if(a==window||a===document||window.HTMLElement&&a instanceof HTMLElement||typeof a.nodeName==="string"){var k=a.tagName?a.tagName:"DomElement";if(a.id){k+=" - "+a.id;}this.trace(b+c+" {"+k+"}");}else{var i=Object.getTypeName(a);this.trace(b+c+(typeof i==="string"?" {"+i+"}":""));if(b===""||f){b+="    ";var e,j,l,g,h;if(Array.isInstanceOfType(a)){j=a.length;for(e=0;e<j;e++){this._traceDump(a[e],"["+e+"]",f,b,d);}}else{for(g in a){h=a[g];if(!Function.isInstanceOfType(h)){this._traceDump(h,g,f,b,d);}}}}}Array.remove(d,a);}}};Sys._Debug.registerClass("Sys._Debug");Sys.Debug=new Sys._Debug;Sys.Debug.isDebug=false;function Sys$Enum$parse(c,e){var a,b,i;if(e){a=this.__lowerCaseValues;if(!a){this.__lowerCaseValues=a={};var g=this.prototype;for(var f in g){a[f.toLowerCase()]=g[f];}}}else{a=this.prototype;}if(!this.__flags){i=e?c.toLowerCase():c;b=a[i.trim()];if(typeof b!=="number"){throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,c,this.__typeName));}return b;}else{var h=(e?c.toLowerCase():c).split(","),j=0;for(var d=h.length-1;d>=0;d--){var k=h[d].trim();b=a[k];if(typeof b!=="number"){throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,c.split(",")[d].trim(),this.__typeName));}j|=b;}return j;}}function Sys$Enum$toString(c){if(typeof c==="undefined"||c===null){return this.__string;}var d=this.prototype,a;if(!this.__flags||c===0){for(a in d){if(d[a]===c){return a;}}}else{var b=this.__sortedValues;if(!b){b=[];for(a in d){b[b.length]={key:a,value:d[a]};}b.sort(function(a,b){return a.value-b.value;});this.__sortedValues=b;}var e=[],g=c;for(a=b.length-1;a>=0;a--){var h=b[a],f=h.value;if(f===0){continue;}if((f&c)===f){e[e.length]=h.key;g-=f;if(g===0){break;}}}if(e.length&&g===0){return e.reverse().join(", ");}}return"";}Type.prototype.registerEnum=function(b,c){Sys.__upperCaseTypes[b.toUpperCase()]=this;for(var a in this.prototype){this[a]=this.prototype[a];}this.__typeName=b;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=c;this.__enum=true;};Type.isEnum=function(a){if(typeof a==="undefined"||a===null){return false;}return !!a.__enum;};Type.isFlags=function(a){if(typeof a==="undefined"||a===null){return false;}return !!a.__flags;};Sys.EventHandlerList=function(){this._list={};};Sys.EventHandlerList.prototype={addHandler:function(b,a){Array.add(this._getEvent(b,true),a);},removeHandler:function(c,b){var a=this._getEvent(c);if(!a){return;}Array.remove(a,b);},getHandler:function(b){var a=this._getEvent(b);if(!a||a.length===0){return null;}a=Array.clone(a);return function(c,d){for(var b=0,e=a.length;b<e;b++){a[b](c,d);}};},_getEvent:function(a,b){if(!this._list[a]){if(!b){return null;}this._list[a]=[];}return this._list[a];}};Sys.EventHandlerList.registerClass("Sys.EventHandlerList");Sys.EventArgs=function(){};Sys.EventArgs.registerClass("Sys.EventArgs");Sys.EventArgs.Empty=new Sys.EventArgs;Sys.CancelEventArgs=function(){Sys.CancelEventArgs.initializeBase(this);this._cancel=false;};Sys.CancelEventArgs.prototype={get_cancel:function(){return this._cancel;},set_cancel:function(a){this._cancel=a;}};Sys.CancelEventArgs.registerClass("Sys.CancelEventArgs",Sys.EventArgs);Sys.INotifyPropertyChange=function(){};Sys.INotifyPropertyChange.prototype={};Sys.INotifyPropertyChange.registerInterface("Sys.INotifyPropertyChange");Sys.PropertyChangedEventArgs=function(a){Sys.PropertyChangedEventArgs.initializeBase(this);this._propertyName=a;};Sys.PropertyChangedEventArgs.prototype={get_propertyName:function(){return this._propertyName;}};Sys.PropertyChangedEventArgs.registerClass("Sys.PropertyChangedEventArgs",Sys.EventArgs);Sys.INotifyDisposing=function(){};Sys.INotifyDisposing.prototype={};Sys.INotifyDisposing.registerInterface("Sys.INotifyDisposing");Sys.Component=function(){if(Sys.Application){Sys.Application.registerDisposableObject(this);}};Sys.Component.prototype={_id:null,_initialized:false,_updating:false,get_events:function(){if(!this._events){this._events=new Sys.EventHandlerList;}return this._events;},get_id:function(){return this._id;},set_id:function(a){this._id=a;},get_isInitialized:function(){return this._initialized;},get_isUpdating:function(){return this._updating;},add_disposing:function(a){this.get_events().addHandler("disposing",a);},remove_disposing:function(a){this.get_events().removeHandler("disposing",a);},add_propertyChanged:function(a){this.get_events().addHandler("propertyChanged",a);},remove_propertyChanged:function(a){this.get_events().removeHandler("propertyChanged",a);},beginUpdate:function(){this._updating=true;},dispose:function(){if(this._events){var a=this._events.getHandler("disposing");if(a){a(this,Sys.EventArgs.Empty);}}delete this._events;Sys.Application.unregisterDisposableObject(this);Sys.Application.removeComponent(this);},endUpdate:function(){this._updating=false;if(!this._initialized){this.initialize();}this.updated();},initialize:function(){this._initialized=true;},raisePropertyChanged:function(b){if(!this._events){return;}var a=this._events.getHandler("propertyChanged");if(a){a(this,new Sys.PropertyChangedEventArgs(b));}},updated:function(){}};Sys.Component.registerClass("Sys.Component",null,Sys.IDisposable,Sys.INotifyPropertyChange,Sys.INotifyDisposing);function Sys$Component$_setProperties(a,i){var d,j=Object.getType(a),e=j===Object||j===Sys.UI.DomElement,h=Sys.Component.isInstanceOfType(a)&&!a.get_isUpdating();if(h){a.beginUpdate();}for(var c in i){var b=i[c],f=e?null:a["get_"+c];if(e||typeof f!=="function"){var k=a[c];if(!b||typeof b!=="object"||e&&!k){a[c]=b;}else{Sys$Component$_setProperties(k,b);}}else{var l=a["set_"+c];if(typeof l==="function"){l.apply(a,[b]);}else{if(b instanceof Array){d=f.apply(a);for(var g=0,m=d.length,n=b.length;g<n;g++,m++){d[m]=b[g];}}else{if(typeof b==="object"&&Object.getType(b)===Object){d=f.apply(a);Sys$Component$_setProperties(d,b);}}}}}if(h){a.endUpdate();}}function Sys$Component$_setReferences(c,b){for(var a in b){var e=c["set_"+a],d=$find(b[a]);e.apply(c,[d]);}}var $create=Sys.Component.create=function(h,f,d,c,g){var a=g?new h(g):new h,b=Sys.Application,i=b.get_isCreatingComponents();a.beginUpdate();if(f){Sys$Component$_setProperties(a,f);}if(d){for(var e in d){a["add_"+e](d[e]);}}if(a.get_id()){b.addComponent(a);}if(i){b._createdComponents[b._createdComponents.length]=a;if(c){b._addComponentToSecondPass(a,c);}else{a.endUpdate();}}else{if(c){Sys$Component$_setReferences(a,c);}a.endUpdate();}return a;};Sys.UI.MouseButton=function(){throw Error.notImplemented();};Sys.UI.MouseButton.prototype={leftButton:0,middleButton:1,rightButton:2};Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton");Sys.UI.Key=function(){throw Error.notImplemented();};Sys.UI.Key.prototype={backspace:8,tab:9,enter:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};Sys.UI.Key.registerEnum("Sys.UI.Key");Sys.UI.Point=function(a,b){this.x=a;this.y=b;};Sys.UI.Point.registerClass("Sys.UI.Point");Sys.UI.Bounds=function(c,d,b,a){this.x=c;this.y=d;this.height=a;this.width=b;};Sys.UI.Bounds.registerClass("Sys.UI.Bounds");Sys.UI.DomEvent=function(d){var a=d;this.rawEvent=a;this.altKey=a.altKey;if(typeof a.button!=="undefined"){this.button=typeof a.which!=="undefined"?a.button:a.button===4?Sys.UI.MouseButton.middleButton:a.button===2?Sys.UI.MouseButton.rightButton:Sys.UI.MouseButton.leftButton;}if(a.type==="keypress"){this.charCode=a.charCode||a.keyCode;}else{if(a.keyCode&&a.keyCode===46){this.keyCode=127;}else{this.keyCode=a.keyCode;}}this.clientX=a.clientX;this.clientY=a.clientY;this.ctrlKey=a.ctrlKey;this.target=a.target?a.target:a.srcElement;if(typeof a.offsetX!=="undefined"&&typeof a.offsetY!=="undefined"){this.offsetX=a.offsetX;this.offsetY=a.offsetY;}else{if(this.target&&this.target.nodeType!==3&&typeof a.clientX==="number"){var b=Sys.UI.DomElement.getLocation(this.target),c=Sys.UI.DomElement._getWindow(this.target);this.offsetX=(c.pageXOffset||0)+a.clientX-b.x;this.offsetY=(c.pageYOffset||0)+a.clientY-b.y;}}this.screenX=a.screenX;this.screenY=a.screenY;this.shiftKey=a.shiftKey;this.type=a.type;};Sys.UI.DomEvent.prototype={preventDefault:function(){if(this.rawEvent.preventDefault){this.rawEvent.preventDefault();}else{if(window.event){this.rawEvent.returnValue=false;}}},stopPropagation:function(){if(this.rawEvent.stopPropagation){this.rawEvent.stopPropagation();}else{if(window.event){this.rawEvent.cancelBubble=true;}}}};Sys.UI.DomEvent.registerClass("Sys.UI.DomEvent");var $addHandler=Sys.UI.DomEvent.addHandler=function(a,d,e){if(!a._events){a._events={};}var c=a._events[d];if(!c){a._events[d]=c=[];}var b;if(a.addEventListener){b=function(b){return e.call(a,new Sys.UI.DomEvent(b));};a.addEventListener(d,b,false);}else{if(a.attachEvent){b=function(){var b={};try{b=Sys.UI.DomElement._getWindow(a).event;}catch(c){}return e.call(a,new Sys.UI.DomEvent(b));};a.attachEvent("on"+d,b);}}c[c.length]={handler:e,browserHandler:b};},$addHandlers=Sys.UI.DomEvent.addHandlers=function(e,d,c){for(var b in d){var a=d[b];if(c){a=Function.createDelegate(c,a);}$addHandler(e,b,a);}},$clearHandlers=Sys.UI.DomEvent.clearHandlers=function(a){if(a._events){var e=a._events;for(var b in e){var d=e[b];for(var c=d.length-1;c>=0;c--){$removeHandler(a,b,d[c].handler);}}a._events=null;}},$removeHandler=Sys.UI.DomEvent.removeHandler=function(a,e,f){var d=null,c=a._events[e];for(var b=0,g=c.length;b<g;b++){if(c[b].handler===f){d=c[b].browserHandler;break;}}if(a.removeEventListener){a.removeEventListener(e,d,false);}else{if(a.detachEvent){a.detachEvent("on"+e,d);}}c.splice(b,1);};Sys.UI.DomElement=function(){};Sys.UI.DomElement.registerClass("Sys.UI.DomElement");Sys.UI.DomElement.addCssClass=function(a,b){if(!Sys.UI.DomElement.containsCssClass(a,b)){if(a.className===""){a.className=b;}else{a.className+=" "+b;}}};Sys.UI.DomElement.containsCssClass=function(b,a){return Array.contains(b.className.split(" "),a);};Sys.UI.DomElement.getBounds=function(a){var b=Sys.UI.DomElement.getLocation(a);return new Sys.UI.Bounds(b.x,b.y,a.offsetWidth||0,a.offsetHeight||0);};var $get=Sys.UI.DomElement.getElementById=function(f,e){if(!e){return document.getElementById(f);}if(e.getElementById){return e.getElementById(f);}var c=[],d=e.childNodes;for(var b=0;b<d.length;b++){var a=d[b];if(a.nodeType==1){c[c.length]=a;}}while(c.length){a=c.shift();if(a.id==f){return a;}d=a.childNodes;for(b=0;b<d.length;b++){a=d[b];if(a.nodeType==1){c[c.length]=a;}}}return null;};switch(Sys.Browser.agent){case Sys.Browser.InternetExplorer:Sys.UI.DomElement.getLocation=function(a){if(a.self||a.nodeType===9){return new Sys.UI.Point(0,0);}var b=a.getBoundingClientRect();if(!b){return new Sys.UI.Point(0,0);}var d=a.ownerDocument.documentElement,e=b.left-2+d.scrollLeft,f=b.top-2+d.scrollTop;try{var c=a.ownerDocument.parentWindow.frameElement||null;if(c){var g=c.frameBorder==="0"||c.frameBorder==="no"?2:0;e+=g;f+=g;}}catch(h){}return new Sys.UI.Point(e,f);};break;case Sys.Browser.Safari:Sys.UI.DomElement.getLocation=function(c){if(c.window&&c.window===c||c.nodeType===9){return new Sys.UI.Point(0,0);}var f=0,g=0,j=null,e=null,b;for(var a=c;a;j=a,(e=b,a=a.offsetParent)){b=Sys.UI.DomElement._getCurrentStyle(a);var d=a.tagName;if((a.offsetLeft||a.offsetTop)&&(d!=="BODY"||(!e||e.position!=="absolute"))){f+=a.offsetLeft;g+=a.offsetTop;}}b=Sys.UI.DomElement._getCurrentStyle(c);var h=b?b.position:null;if(!h||h!=="absolute"){for(var a=c.parentNode;a;a=a.parentNode){d=a.tagName;if(d!=="BODY"&&d!=="HTML"&&(a.scrollLeft||a.scrollTop)){f-=a.scrollLeft||0;g-=a.scrollTop||0;}b=Sys.UI.DomElement._getCurrentStyle(a);var i=b?b.position:null;if(i&&i==="absolute"){break;}}}return new Sys.UI.Point(f,g);};break;case Sys.Browser.Opera:Sys.UI.DomElement.getLocation=function(b){if(b.window&&b.window===b||b.nodeType===9){return new Sys.UI.Point(0,0);}var d=0,e=0,i=null;for(var a=b;a;i=a,a=a.offsetParent){var f=a.tagName;d+=a.offsetLeft||0;e+=a.offsetTop||0;}var g=b.style.position,c=g&&g!=="static";for(var a=b.parentNode;a;a=a.parentNode){f=a.tagName;if(f!=="BODY"&&f!=="HTML"&&(a.scrollLeft||a.scrollTop)&&(c&&(a.style.overflow==="scroll"||a.style.overflow==="auto"))){d-=a.scrollLeft||0;e-=a.scrollTop||0;}var h=a&&a.style?a.style.position:null;c=c||h&&h!=="static";}return new Sys.UI.Point(d,e);};break;default:Sys.UI.DomElement.getLocation=function(d){if(d.window&&d.window===d||d.nodeType===9){return new Sys.UI.Point(0,0);}var e=0,f=0,i=null,g=null,b=null;for(var a=d;a;i=a,(g=b,a=a.offsetParent)){var c=a.tagName;b=Sys.UI.DomElement._getCurrentStyle(a);if((a.offsetLeft||a.offsetTop)&&!(c==="BODY"&&(!g||g.position!=="absolute"))){e+=a.offsetLeft;f+=a.offsetTop;}if(i!==null&&b){if(c!=="TABLE"&&c!=="TD"&&c!=="HTML"){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0;}if(c==="TABLE"&&(b.position==="relative"||b.position==="absolute")){e+=parseInt(b.marginLeft)||0;f+=parseInt(b.marginTop)||0;}}}b=Sys.UI.DomElement._getCurrentStyle(d);var h=b?b.position:null;if(!h||h!=="absolute"){for(var a=d.parentNode;a;a=a.parentNode){c=a.tagName;if(c!=="BODY"&&c!=="HTML"&&(a.scrollLeft||a.scrollTop)){e-=a.scrollLeft||0;f-=a.scrollTop||0;b=Sys.UI.DomElement._getCurrentStyle(a);if(b){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0;}}}}return new Sys.UI.Point(e,f);};}Sys.UI.DomElement.removeCssClass=function(d,c){var a=" "+d.className+" ",b=a.indexOf(" "+c+" ");if(b>=0){d.className=(a.substr(0,b)+" "+a.substring(b+c.length+1,a.length)).trim();}};Sys.UI.DomElement.setLocation=function(b,c,d){var a=b.style;a.position="absolute";a.left=c+"px";a.top=d+"px";};Sys.UI.DomElement.toggleCssClass=function(b,a){if(Sys.UI.DomElement.containsCssClass(b,a)){Sys.UI.DomElement.removeCssClass(b,a);}else{Sys.UI.DomElement.addCssClass(b,a);}};Sys.UI.DomElement.getVisibilityMode=function(a){return a._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse;};Sys.UI.DomElement.setVisibilityMode=function(a,b){Sys.UI.DomElement._ensureOldDisplayMode(a);if(a._visibilityMode!==b){a._visibilityMode=b;if(Sys.UI.DomElement.getVisible(a)===false){if(a._visibilityMode===Sys.UI.VisibilityMode.hide){a.style.display=a._oldDisplayMode;}else{a.style.display="none";}}a._visibilityMode=b;}};Sys.UI.DomElement.getVisible=function(b){var a=b.currentStyle||Sys.UI.DomElement._getCurrentStyle(b);if(!a){return true;}return a.visibility!=="hidden"&&a.display!=="none";};Sys.UI.DomElement.setVisible=function(a,b){if(b!==Sys.UI.DomElement.getVisible(a)){Sys.UI.DomElement._ensureOldDisplayMode(a);a.style.visibility=b?"visible":"hidden";if(b||a._visibilityMode===Sys.UI.VisibilityMode.hide){a.style.display=a._oldDisplayMode;}else{a.style.display="none";}}};Sys.UI.DomElement._ensureOldDisplayMode=function(a){if(!a._oldDisplayMode){var b=a.currentStyle||Sys.UI.DomElement._getCurrentStyle(a);a._oldDisplayMode=b?b.display:null;if(!a._oldDisplayMode||a._oldDisplayMode==="none"){switch(a.tagName.toUpperCase()){case"DIV":case"P":case"ADDRESS":case"BLOCKQUOTE":case"BODY":case"COL":case"COLGROUP":case"DD":case"DL":case"DT":case"FIELDSET":case"FORM":case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"HR":case"IFRAME":case"LEGEND":case"OL":case"PRE":case"TABLE":case"TD":case"TH":case"TR":case"UL":a._oldDisplayMode="block";break;case"LI":a._oldDisplayMode="list-item";break;default:a._oldDisplayMode="inline";}}}};Sys.UI.DomElement._getWindow=function(a){var b=a.ownerDocument||a.document||a;return b.defaultView||b.parentWindow;};Sys.UI.DomElement._getCurrentStyle=function(a){if(a.nodeType===3){return null;}var c=Sys.UI.DomElement._getWindow(a);if(a.documentElement){a=a.documentElement;}var b=c&&a!==c&&c.getComputedStyle?c.getComputedStyle(a,null):a.currentStyle||a.style;if(!b&&Sys.Browser.agent===Sys.Browser.Safari&&a.style){var g=a.style.display,f=a.style.position;a.style.position="absolute";a.style.display="block";var e=c.getComputedStyle(a,null);a.style.display=g;a.style.position=f;b={};for(var d in e){b[d]=e[d];}b.display="none";}return b;};Sys.IContainer=function(){};Sys.IContainer.prototype={};Sys.IContainer.registerInterface("Sys.IContainer");Sys._ScriptLoader=function(){this._scriptsToLoad=null;this._scriptLoadedDelegate=Function.createDelegate(this,this._scriptLoadedHandler);};Sys._ScriptLoader.prototype={dispose:function(){this._stopLoading();if(this._events){delete this._events;}this._scriptLoadedDelegate=null;},loadScripts:function(a,c,d,b){this._loading=true;this._allScriptsLoadedCallback=c;this._scriptLoadFailedCallback=d;this._scriptLoadTimeoutCallback=b;if(a>0){this._timeoutCookie=window.setTimeout(Function.createDelegate(this,this._scriptLoadTimeoutHandler),a*1000);}this._loadScriptsInternal();},notifyScriptLoaded:function(){if(!this._loading){return;}this._currentTask._notified++;if(Sys.Browser.agent===Sys.Browser.Safari){if(this._currentTask._notified===1){window.setTimeout(Function.createDelegate(this,function(){this._scriptLoadedHandler(this._currentTask.get_scriptElement(),true);}),0);}}},queueCustomScriptTag:function(a){if(!this._scriptsToLoad){this._scriptsToLoad=[];}Array.add(this._scriptsToLoad,a);},queueScriptBlock:function(a){if(!this._scriptsToLoad){this._scriptsToLoad=[];}Array.add(this._scriptsToLoad,{text:a});},queueScriptReference:function(a){if(!this._scriptsToLoad){this._scriptsToLoad=[];}Array.add(this._scriptsToLoad,{src:a});},_createScriptElement:function(c){var a=document.createElement("SCRIPT");a.type="text/javascript";for(var b in c){a[b]=c[b];}return a;},_loadScriptsInternal:function(){if(this._scriptsToLoad&&this._scriptsToLoad.length>0){var b=Array.dequeue(this._scriptsToLoad),a=this._createScriptElement(b);if(a.text&&Sys.Browser.agent===Sys.Browser.Safari){a.innerHTML=a.text;delete a.text;}if(typeof b.src==="string"){this._currentTask=new Sys._ScriptLoaderTask(a,this._scriptLoadedDelegate);this._currentTask.execute();}else{document.getElementsByTagName("HEAD")[0].appendChild(a);var d=this;window.setTimeout(function(){Sys._ScriptLoader._clearScript(a);d._loadScriptsInternal();},0);}}else{var c=this._allScriptsLoadedCallback;this._stopLoading();if(c){c(this);}}},_raiseError:function(a){var c=this._scriptLoadFailedCallback,b=this._currentTask.get_scriptElement();this._stopLoading();if(c){c(this,b,a);}else{throw Sys._ScriptLoader._errorScriptLoadFailed(b.src,a);}},_scriptLoadedHandler:function(a,b){if(b&&this._currentTask._notified){if(this._currentTask._notified>1){this._raiseError(true);}else{Array.add(Sys._ScriptLoader._getLoadedScripts(),a.src);this._currentTask.dispose();this._currentTask=null;this._loadScriptsInternal();}}else{this._raiseError(false);}},_scriptLoadTimeoutHandler:function(){var a=this._scriptLoadTimeoutCallback;this._stopLoading();if(a){a(this);}},_stopLoading:function(){if(this._timeoutCookie){window.clearTimeout(this._timeoutCookie);this._timeoutCookie=null;}if(this._currentTask){this._currentTask.dispose();this._currentTask=null;}this._scriptsToLoad=null;this._loading=null;this._allScriptsLoadedCallback=null;this._scriptLoadFailedCallback=null;this._scriptLoadTimeoutCallback=null;}};Sys._ScriptLoader.registerClass("Sys._ScriptLoader",null,Sys.IDisposable);Sys._ScriptLoader.getInstance=function(){var a=Sys._ScriptLoader._activeInstance;if(!a){a=Sys._ScriptLoader._activeInstance=new Sys._ScriptLoader;}return a;};Sys._ScriptLoader.isScriptLoaded=function(b){var a=document.createElement("script");a.src=b;return Array.contains(Sys._ScriptLoader._getLoadedScripts(),a.src);};Sys._ScriptLoader.readLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){var b=Sys._ScriptLoader._referencedScripts=[],c=document.getElementsByTagName("SCRIPT");for(i=c.length-1;i>=0;i--){var d=c[i],a=d.src;if(a.length){if(!Array.contains(b,a)){Array.add(b,a);}}}}};Sys._ScriptLoader._clearScript=function(a){if(!Sys.Debug.isDebug){a.parentNode.removeChild(a);}};Sys._ScriptLoader._errorScriptLoadFailed=function(b,d){var a;if(d){a=Sys.Res.scriptLoadMultipleCallbacks;}else{a=Sys.Res.scriptLoadFailed;}var e="Sys.ScriptLoadFailedException: "+String.format(a,b),c=Error.create(e,{name:"Sys.ScriptLoadFailedException",scriptUrl:b});c.popStackFrame();return c;};Sys._ScriptLoader._getLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){Sys._ScriptLoader._referencedScripts=[];Sys._ScriptLoader.readLoadedScripts();}return Sys._ScriptLoader._referencedScripts;};Sys._ScriptLoaderTask=function(b,a){this._scriptElement=b;this._completedCallback=a;this._notified=0;};Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement;},dispose:function(){if(this._disposed){return;}this._disposed=true;this._removeScriptElementHandlers();Sys._ScriptLoader._clearScript(this._scriptElement);this._scriptElement=null;},execute:function(){this._addScriptElementHandlers();document.getElementsByTagName("HEAD")[0].appendChild(this._scriptElement);},_addScriptElementHandlers:function(){this._scriptLoadDelegate=Function.createDelegate(this,this._scriptLoadHandler);if(Sys.Browser.agent!==Sys.Browser.InternetExplorer){this._scriptElement.readyState="loaded";$addHandler(this._scriptElement,"load",this._scriptLoadDelegate);}else{$addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);}if(this._scriptElement.addEventListener){this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler);this._scriptElement.addEventListener("error",this._scriptErrorDelegate,false);}},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var a=this.get_scriptElement();if(Sys.Browser.agent!==Sys.Browser.InternetExplorer){$removeHandler(a,"load",this._scriptLoadDelegate);}else{$removeHandler(a,"readystatechange",this._scriptLoadDelegate);}if(this._scriptErrorDelegate){this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,false);this._scriptErrorDelegate=null;}this._scriptLoadDelegate=null;}},_scriptErrorHandler:function(){if(this._disposed){return;}this._completedCallback(this.get_scriptElement(),false);},_scriptLoadHandler:function(){if(this._disposed){return;}var a=this.get_scriptElement();if(a.readyState!=="loaded"&&a.readyState!=="complete"){return;}var b=this;window.setTimeout(function(){b._completedCallback(a,true);},0);}};Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable);Sys.ApplicationLoadEventArgs=function(b,a){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=b;this._isPartialLoad=a;};Sys.ApplicationLoadEventArgs.prototype={get_components:function(){return this._components;},get_isPartialLoad:function(){return this._isPartialLoad;}};Sys.ApplicationLoadEventArgs.registerClass("Sys.ApplicationLoadEventArgs",Sys.EventArgs);Sys._Application=function(){Sys._Application.initializeBase(this);this._disposableObjects=[];this._components={};this._createdComponents=[];this._secondPassComponents=[];this._unloadHandlerDelegate=Function.createDelegate(this,this._unloadHandler);this._loadHandlerDelegate=Function.createDelegate(this,this._loadHandler);Sys.UI.DomEvent.addHandler(window,"unload",this._unloadHandlerDelegate);Sys.UI.DomEvent.addHandler(window,"load",this._loadHandlerDelegate);};Sys._Application.prototype={_creatingComponents:false,_disposing:false,get_isCreatingComponents:function(){return this._creatingComponents;},add_load:function(a){this.get_events().addHandler("load",a);},remove_load:function(a){this.get_events().removeHandler("load",a);},add_init:function(a){if(this._initialized){a(this,Sys.EventArgs.Empty);}else{this.get_events().addHandler("init",a);}},remove_init:function(a){this.get_events().removeHandler("init",a);},add_unload:function(a){this.get_events().addHandler("unload",a);},remove_unload:function(a){this.get_events().removeHandler("unload",a);},addComponent:function(a){this._components[a.get_id()]=a;},beginCreateComponents:function(){this._creatingComponents=true;},dispose:function(){if(!this._disposing){this._disposing=true;if(window.pageUnload){window.pageUnload(this,Sys.EventArgs.Empty);}var c=this.get_events().getHandler("unload");if(c){c(this,Sys.EventArgs.Empty);}var b=Array.clone(this._disposableObjects);for(var a=0,e=b.length;a<e;a++){b[a].dispose();}Array.clear(this._disposableObjects);Sys.UI.DomEvent.removeHandler(window,"unload",this._unloadHandlerDelegate);if(this._loadHandlerDelegate){Sys.UI.DomEvent.removeHandler(window,"load",this._loadHandlerDelegate);this._loadHandlerDelegate=null;}var d=Sys._ScriptLoader.getInstance();if(d){d.dispose();}Sys._Application.callBaseMethod(this,"dispose");}},endCreateComponents:function(){var b=this._secondPassComponents;for(var a=0,d=b.length;a<d;a++){var c=b[a].component;Sys$Component$_setReferences(c,b[a].references);c.endUpdate();}this._secondPassComponents=[];this._creatingComponents=false;},findComponent:function(b,a){return a?Sys.IContainer.isInstanceOfType(a)?a.findComponent(b):a[b]||null:Sys.Application._components[b]||null;},getComponents:function(){var a=[],b=this._components;for(var c in b){a[a.length]=b[c];}return a;},initialize:function(){if(!this._initialized&&!this._initializing){this._initializing=true;window.setTimeout(Function.createDelegate(this,this._doInitialize),0);}},notifyScriptLoaded:function(){var a=Sys._ScriptLoader.getInstance();if(a){a.notifyScriptLoaded();}},registerDisposableObject:function(a){if(!this._disposing){this._disposableObjects[this._disposableObjects.length]=a;}},raiseLoad:function(){var b=this.get_events().getHandler("load"),a=new Sys.ApplicationLoadEventArgs(Array.clone(this._createdComponents),!this._initializing);if(b){b(this,a);}if(window.pageLoad){window.pageLoad(this,a);}this._createdComponents=[];},removeComponent:function(b){var a=b.get_id();if(a){delete this._components[a];}},unregisterDisposableObject:function(a){if(!this._disposing){Array.remove(this._disposableObjects,a);}},_addComponentToSecondPass:function(b,a){this._secondPassComponents[this._secondPassComponents.length]={component:b,references:a};},_doInitialize:function(){Sys._Application.callBaseMethod(this,"initialize");var a=this.get_events().getHandler("init");if(a){this.beginCreateComponents();a(this,Sys.EventArgs.Empty);this.endCreateComponents();}this.raiseLoad();this._initializing=false;},_loadHandler:function(){if(this._loadHandlerDelegate){Sys.UI.DomEvent.removeHandler(window,"load",this._loadHandlerDelegate);this._loadHandlerDelegate=null;}this.initialize();},_unloadHandler:function(){this.dispose();}};Sys._Application.registerClass("Sys._Application",Sys.Component,Sys.IContainer);Sys.Application=new Sys._Application;var $find=Sys.Application.findComponent;Type.registerNamespace("Sys.Net");Sys.Net.WebRequestExecutor=function(){this._webRequest=null;this._resultObject=null;};Sys.Net.WebRequestExecutor.prototype={get_webRequest:function(){return this._webRequest;},_set_webRequest:function(a){this._webRequest=a;},get_started:function(){throw Error.notImplemented();},get_responseAvailable:function(){throw Error.notImplemented();},get_timedOut:function(){throw Error.notImplemented();},get_aborted:function(){throw Error.notImplemented();},get_responseData:function(){throw Error.notImplemented();},get_statusCode:function(){throw Error.notImplemented();},get_statusText:function(){throw Error.notImplemented();},get_xml:function(){throw Error.notImplemented();},get_object:function(){if(!this._resultObject){this._resultObject=Sys.Serialization.JavaScriptSerializer.deserialize(this.get_responseData());}return this._resultObject;},executeRequest:function(){throw Error.notImplemented();},abort:function(){throw Error.notImplemented();},getResponseHeader:function(){throw Error.notImplemented();},getAllResponseHeaders:function(){throw Error.notImplemented();}};Sys.Net.WebRequestExecutor.registerClass("Sys.Net.WebRequestExecutor");Sys.Net.XMLDOM=function(d){if(!window.DOMParser){var c=["Msxml2.DOMDocument.3.0","Msxml2.DOMDocument"];for(var b=0,f=c.length;b<f;b++){try{var a=new ActiveXObject(c[b]);a.async=false;a.loadXML(d);a.setProperty("SelectionLanguage","XPath");return a;}catch(g){}}}else{try{var e=new window.DOMParser;return e.parseFromString(d,"text/xml");}catch(g){}}return null;};Sys.Net.XMLHttpExecutor=function(){Sys.Net.XMLHttpExecutor.initializeBase(this);var a=this;this._xmlHttpRequest=null;this._webRequest=null;this._responseAvailable=false;this._timedOut=false;this._timer=null;this._aborted=false;this._started=false;this._onReadyStateChange=function(){if(a._xmlHttpRequest.readyState===4){try{if(typeof a._xmlHttpRequest.status==="undefined"){return;}}catch(b){return;}a._clearTimer();a._responseAvailable=true;a._webRequest.completed(Sys.EventArgs.Empty);if(a._xmlHttpRequest!=null){a._xmlHttpRequest.onreadystatechange=Function.emptyMethod;a._xmlHttpRequest=null;}}};this._clearTimer=function(){if(a._timer!=null){window.clearTimeout(a._timer);a._timer=null;}};this._onTimeout=function(){if(!a._responseAvailable){a._clearTimer();a._timedOut=true;a._xmlHttpRequest.onreadystatechange=Function.emptyMethod;a._xmlHttpRequest.abort();a._webRequest.completed(Sys.EventArgs.Empty);a._xmlHttpRequest=null;}};};Sys.Net.XMLHttpExecutor.prototype={get_timedOut:function(){return this._timedOut;},get_started:function(){return this._started;},get_responseAvailable:function(){return this._responseAvailable;},get_aborted:function(){return this._aborted;},executeRequest:function(){this._webRequest=this.get_webRequest();var c=this._webRequest.get_body(),a=this._webRequest.get_headers();this._xmlHttpRequest=new XMLHttpRequest;this._xmlHttpRequest.onreadystatechange=this._onReadyStateChange;var e=this._webRequest.get_httpVerb();this._xmlHttpRequest.open(e,this._webRequest.getResolvedUrl(),true);if(a){for(var b in a){var f=a[b];if(typeof f!=="function"){this._xmlHttpRequest.setRequestHeader(b,f);}}}if(e.toLowerCase()==="post"){if(a===null||!a["Content-Type"]){this._xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");}if(!c){c="";}}var d=this._webRequest.get_timeout();if(d>0){this._timer=window.setTimeout(Function.createDelegate(this,this._onTimeout),d);}this._xmlHttpRequest.send(c);this._started=true;},getResponseHeader:function(b){var a;try{a=this._xmlHttpRequest.getResponseHeader(b);}catch(c){}if(!a){a="";}return a;},getAllResponseHeaders:function(){return this._xmlHttpRequest.getAllResponseHeaders();},get_responseData:function(){return this._xmlHttpRequest.responseText;},get_statusCode:function(){var a=0;try{a=this._xmlHttpRequest.status;}catch(b){}return a;},get_statusText:function(){return this._xmlHttpRequest.statusText;},get_xml:function(){var a=this._xmlHttpRequest.responseXML;if(!a||!a.documentElement){a=Sys.Net.XMLDOM(this._xmlHttpRequest.responseText);if(!a||!a.documentElement){return null;}}else{if(navigator.userAgent.indexOf("MSIE")!==-1){a.setProperty("SelectionLanguage","XPath");}}if(a.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"&&a.documentElement.tagName==="parsererror"){return null;}if(a.documentElement.firstChild&&a.documentElement.firstChild.tagName==="parsererror"){return null;}return a;},abort:function(){if(this._aborted||this._responseAvailable||this._timedOut){return;}this._aborted=true;this._clearTimer();if(this._xmlHttpRequest&&!this._responseAvailable){this._xmlHttpRequest.onreadystatechange=Function.emptyMethod;this._xmlHttpRequest.abort();this._xmlHttpRequest=null;this._webRequest.completed(Sys.EventArgs.Empty);}}};Sys.Net.XMLHttpExecutor.registerClass("Sys.Net.XMLHttpExecutor",Sys.Net.WebRequestExecutor);Sys.Net._WebRequestManager=function(){this._this=this;this._defaultTimeout=0;this._defaultExecutorType="Sys.Net.XMLHttpExecutor";};Sys.Net._WebRequestManager.prototype={add_invokingRequest:function(a){this._get_eventHandlerList().addHandler("invokingRequest",a);},remove_invokingRequest:function(a){this._get_eventHandlerList().removeHandler("invokingRequest",a);},add_completedRequest:function(a){this._get_eventHandlerList().addHandler("completedRequest",a);},remove_completedRequest:function(a){this._get_eventHandlerList().removeHandler("completedRequest",a);},_get_eventHandlerList:function(){if(!this._events){this._events=new Sys.EventHandlerList;}return this._events;},get_defaultTimeout:function(){return this._defaultTimeout;},set_defaultTimeout:function(a){this._defaultTimeout=a;},get_defaultExecutorType:function(){return this._defaultExecutorType;},set_defaultExecutorType:function(a){this._defaultExecutorType=a;},executeRequest:function(webRequest){var executor=webRequest.get_executor();if(!executor){var failed=false;try{var executorType=eval(this._defaultExecutorType);executor=new executorType;}catch(a){failed=true;}webRequest.set_executor(executor);}if(executor.get_aborted()){return;}var evArgs=new Sys.Net.NetworkRequestEventArgs(webRequest),handler=this._get_eventHandlerList().getHandler("invokingRequest");if(handler){handler(this,evArgs);}if(!evArgs.get_cancel()){executor.executeRequest();}}};Sys.Net._WebRequestManager.registerClass("Sys.Net._WebRequestManager");Sys.Net.WebRequestManager=new Sys.Net._WebRequestManager;Sys.Net.NetworkRequestEventArgs=function(a){Sys.Net.NetworkRequestEventArgs.initializeBase(this);this._webRequest=a;};Sys.Net.NetworkRequestEventArgs.prototype={get_webRequest:function(){return this._webRequest;}};Sys.Net.NetworkRequestEventArgs.registerClass("Sys.Net.NetworkRequestEventArgs",Sys.CancelEventArgs);Sys.Net.WebRequest=function(){this._url="";this._headers={};this._body=null;this._userContext=null;this._httpVerb=null;this._executor=null;this._invokeCalled=false;this._timeout=0;};Sys.Net.WebRequest.prototype={add_completed:function(a){this._get_eventHandlerList().addHandler("completed",a);},remove_completed:function(a){this._get_eventHandlerList().removeHandler("completed",a);},completed:function(b){var a=Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest");if(a){a(this._executor,b);}a=this._get_eventHandlerList().getHandler("completed");if(a){a(this._executor,b);}},_get_eventHandlerList:function(){if(!this._events){this._events=new Sys.EventHandlerList;}return this._events;},get_url:function(){return this._url;},set_url:function(a){this._url=a;},get_headers:function(){return this._headers;},get_httpVerb:function(){if(this._httpVerb===null){if(this._body===null){return"GET";}return"POST";}return this._httpVerb;},set_httpVerb:function(a){this._httpVerb=a;},get_body:function(){return this._body;},set_body:function(a){this._body=a;},get_userContext:function(){return this._userContext;},set_userContext:function(a){this._userContext=a;},get_executor:function(){return this._executor;},set_executor:function(a){this._executor=a;this._executor._set_webRequest(this);},get_timeout:function(){if(this._timeout===0){return Sys.Net.WebRequestManager.get_defaultTimeout();}return this._timeout;},set_timeout:function(a){this._timeout=a;},getResolvedUrl:function(){return Sys.Net.WebRequest._resolveUrl(this._url);},invoke:function(){Sys.Net.WebRequestManager.executeRequest(this);this._invokeCalled=true;}};Sys.Net.WebRequest._resolveUrl=function(b,a){if(b&&b.indexOf("://")!==-1){return b;}if(!a||a.length===0){var c=document.getElementsByTagName("base")[0];if(c&&c.href&&c.href.length>0){a=c.href;}else{a=document.URL;}}var d=a.indexOf("?");if(d!==-1){a=a.substr(0,d);}a=a.substr(0,a.lastIndexOf("/")+1);if(!b||b.length===0){return a;}if(b.charAt(0)==="/"){var e=a.indexOf("://"),g=a.indexOf("/",e+3);return a.substr(0,g)+b;}else{var f=a.lastIndexOf("/");return a.substr(0,f+1)+b;}};Sys.Net.WebRequest._createQueryString=function(d,b){if(!b){b=encodeURIComponent;}var a=new Sys.StringBuilder,f=0;for(var c in d){var e=d[c];if(typeof e==="function"){continue;}var g=Sys.Serialization.JavaScriptSerializer.serialize(e);if(f!==0){a.append("&");}a.append(c);a.append("=");a.append(b(g));f++;}return a.toString();};Sys.Net.WebRequest._createUrl=function(a,b){if(!b){return a;}var d=Sys.Net.WebRequest._createQueryString(b);if(d.length>0){var c="?";if(a&&a.indexOf("?")!==-1){c="&";}return a+c+d;}else{return a;}};Sys.Net.WebRequest.registerClass("Sys.Net.WebRequest");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout;},set_timeout:function(a){if(a<0){throw Error.argumentOutOfRange("value",a,Sys.Res.invalidTimeout);}this._timeout=a;},get_defaultUserContext:function(){return this._userContext;},set_defaultUserContext:function(a){this._userContext=a;},get_defaultSucceededCallback:function(){return this._succeeded;},set_defaultSucceededCallback:function(a){this._succeeded=a;},get_defaultFailedCallback:function(){return this._failed;},set_defaultFailedCallback:function(a){this._failed=a;},get_path:function(){return this._path;},set_path:function(a){this._path=a;},_invoke:function(d,e,g,f,c,b,a){if(c===null||typeof c==="undefined"){c=this.get_defaultSucceededCallback();}if(b===null||typeof b==="undefined"){b=this.get_defaultFailedCallback();}if(a===null||typeof a==="undefined"){a=this.get_defaultUserContext();}return Sys.Net.WebServiceProxy.invoke(d,e,g,f,c,b,a,this.get_timeout());}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(k,a,j,d,i,c,f,h){var b=new Sys.Net.WebRequest;b.get_headers()["Content-Type"]="application/json; charset=utf-8";if(!d){d={};}var g=d;if(!j||!g){g={};}b.set_url(Sys.Net.WebRequest._createUrl(k+"/"+encodeURIComponent(a),g));var e=null;if(!j){e=Sys.Serialization.JavaScriptSerializer.serialize(d);if(e==="{}"){e="";}}b.set_body(e);b.add_completed(l);if(h&&h>0){b.set_timeout(h);}b.invoke();function l(d){if(d.get_responseAvailable()){var g=d.get_statusCode(),b=null;try{var e=d.getResponseHeader("Content-Type");if(e.startsWith("application/json")){b=d.get_object();}else{if(e.startsWith("text/xml")){b=d.get_xml();}else{b=d.get_responseData();}}}catch(m){}var k=d.getResponseHeader("jsonerror"),h=k==="true";if(h){if(b){b=new Sys.Net.WebServiceError(false,b.Message,b.StackTrace,b.ExceptionType);}}else{if(e.startsWith("application/json")){b=b.d;}}if(g<200||g>=300||h){if(c){if(!b||!h){b=new Sys.Net.WebServiceError(false,String.format(Sys.Res.webServiceFailedNoMsg,a),"","");}b._statusCode=g;c(b,f,a);}}else{if(i){i(b,f,a);}}}else{var j;if(d.get_timedOut()){j=String.format(Sys.Res.webServiceTimedOut,a);}else{j=String.format(Sys.Res.webServiceFailedNoMsg,a);}if(c){c(new Sys.Net.WebServiceError(d.get_timedOut(),j,"",""),f,a);}}}return b;};Sys.Net.WebServiceProxy._generateTypedConstructor=function(a){return function(b){if(b){for(var c in b){this[c]=b[c];}}this.__type=a;};};Sys.Net.WebServiceError=function(c,d,b,a){this._timedOut=c;this._message=d;this._stackTrace=b;this._exceptionType=a;this._statusCode=-1;};Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut;},get_statusCode:function(){return this._statusCode;},get_message:function(){return this._message;},get_stackTrace:function(){return this._stackTrace;},get_exceptionType:function(){return this._exceptionType;}};Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError");Type.registerNamespace("Sys.Services");Sys.Services._ProfileService=function(){Sys.Services._ProfileService.initializeBase(this);this.properties={};};Sys.Services._ProfileService.DefaultWebServicePath="";Sys.Services._ProfileService.prototype={_defaultLoadCompletedCallback:null,_defaultSaveCompletedCallback:null,_path:"",_timeout:0,get_defaultLoadCompletedCallback:function(){return this._defaultLoadCompletedCallback;},set_defaultLoadCompletedCallback:function(a){this._defaultLoadCompletedCallback=a;},get_defaultSaveCompletedCallback:function(){return this._defaultSaveCompletedCallback;},set_defaultSaveCompletedCallback:function(a){this._defaultSaveCompletedCallback=a;},get_path:function(){return this._path||"";},load:function(c,d,e,f){var b,a;if(!c){a="GetAllPropertiesForCurrentUser";b={authenticatedUserOnly:false};}else{a="GetPropertiesForCurrentUser";b={properties:this._clonePropertyNames(c),authenticatedUserOnly:false};}this._invoke(this._get_path(),a,false,b,Function.createDelegate(this,this._onLoadComplete),Function.createDelegate(this,this._onLoadFailed),[d,e,f]);},save:function(d,b,c,e){var a=this._flattenProperties(d,this.properties);this._invoke(this._get_path(),"SetPropertiesForCurrentUser",false,{values:a.value,authenticatedUserOnly:false},Function.createDelegate(this,this._onSaveComplete),Function.createDelegate(this,this._onSaveFailed),[b,c,e,a.count]);},_clonePropertyNames:function(e){var c=[],d={};for(var b=0;b<e.length;b++){var a=e[b];if(!d[a]){Array.add(c,a);d[a]=true;}}return c;},_flattenProperties:function(a,i,j){var b={},e,d,g=0;if(a&&a.length===0){return{value:b,count:0};}for(var c in i){e=i[c];d=j?j+"."+c:c;if(Sys.Services.ProfileGroup.isInstanceOfType(e)){var k=this._flattenProperties(a,e,d),h=k.value;g+=k.count;for(var f in h){var l=h[f];b[f]=l;}}else{if(!a||Array.indexOf(a,d)!==-1){b[d]=e;g++;}}}return{value:b,count:g};},_get_path:function(){var a=this.get_path();if(!a.length){a=Sys.Services._ProfileService.DefaultWebServicePath;}if(!a||!a.length){throw Error.invalidOperation(Sys.Res.servicePathNotSet);}return a;},_onLoadComplete:function(a,e,g){if(typeof a!=="object"){throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType,g,"Object"));}var c=this._unflattenProperties(a);for(var b in c){this.properties[b]=c[b];}var d=e[0]||this.get_defaultLoadCompletedCallback()||this.get_defaultSucceededCallback();if(d){var f=e[2]||this.get_defaultUserContext();d(a.length,f,"Sys.Services.ProfileService.load");}},_onLoadFailed:function(d,b){var a=b[1]||this.get_defaultFailedCallback();if(a){var c=b[2]||this.get_defaultUserContext();a(d,c,"Sys.Services.ProfileService.load");}},_onSaveComplete:function(a,b,f){var c=b[3];if(a!==null){if(a instanceof Array){c-=a.length;}else{if(typeof a==="number"){c=a;}else{throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType,f,"Array"));}}}var d=b[0]||this.get_defaultSaveCompletedCallback()||this.get_defaultSucceededCallback();if(d){var e=b[2]||this.get_defaultUserContext();d(c,e,"Sys.Services.ProfileService.save");}},_onSaveFailed:function(d,b){var a=b[1]||this.get_defaultFailedCallback();if(a){var c=b[2]||this.get_defaultUserContext();a(d,c,"Sys.Services.ProfileService.save");}},_unflattenProperties:function(e){var c={},d,f,h=0;for(var a in e){h++;f=e[a];d=a.indexOf(".");if(d!==-1){var g=a.substr(0,d);a=a.substr(d+1);var b=c[g];if(!b||!Sys.Services.ProfileGroup.isInstanceOfType(b)){b=new Sys.Services.ProfileGroup;c[g]=b;}b[a]=f;}else{c[a]=f;}}e.length=h;return c;}};Sys.Services._ProfileService.registerClass("Sys.Services._ProfileService",Sys.Net.WebServiceProxy);Sys.Services.ProfileService=new Sys.Services._ProfileService;Sys.Services.ProfileGroup=function(a){if(a){for(var b in a){this[b]=a[b];}}};Sys.Services.ProfileGroup.registerClass("Sys.Services.ProfileGroup");Sys.Services._AuthenticationService=function(){Sys.Services._AuthenticationService.initializeBase(this);};Sys.Services._AuthenticationService.DefaultWebServicePath="";Sys.Services._AuthenticationService.prototype={_defaultLoginCompletedCallback:null,_defaultLogoutCompletedCallback:null,_path:"",_timeout:0,_authenticated:false,get_defaultLoginCompletedCallback:function(){return this._defaultLoginCompletedCallback;},set_defaultLoginCompletedCallback:function(a){this._defaultLoginCompletedCallback=a;},get_defaultLogoutCompletedCallback:function(){return this._defaultLogoutCompletedCallback;},set_defaultLogoutCompletedCallback:function(a){this._defaultLogoutCompletedCallback=a;},get_isLoggedIn:function(){return this._authenticated;},get_path:function(){return this._path||"";},login:function(c,b,a,h,f,d,e,g){this._invoke(this._get_path(),"Login",false,{userName:c,password:b,createPersistentCookie:a},Function.createDelegate(this,this._onLoginComplete),Function.createDelegate(this,this._onLoginFailed),[c,b,a,h,f,d,e,g]);},logout:function(c,a,b,d){this._invoke(this._get_path(),"Logout",false,{},Function.createDelegate(this,this._onLogoutComplete),Function.createDelegate(this,this._onLogoutFailed),[c,a,b,d]);},_get_path:function(){var a=this.get_path();if(!a.length){a=Sys.Services._AuthenticationService.DefaultWebServicePath;}if(!a||!a.length){throw Error.invalidOperation(Sys.Res.servicePathNotSet);}return a;},_onLoginComplete:function(e,c,f){if(typeof e!=="boolean"){throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType,f,"Boolean"));}var b=c[4],d=c[7]||this.get_defaultUserContext(),a=c[5]||this.get_defaultLoginCompletedCallback()||this.get_defaultSucceededCallback();if(e){this._authenticated=true;if(a){a(true,d,"Sys.Services.AuthenticationService.login");}if(typeof b!=="undefined"&&b!==null){window.location.href=b;}}else{if(a){a(false,d,"Sys.Services.AuthenticationService.login");}}},_onLoginFailed:function(d,b){var a=b[6]||this.get_defaultFailedCallback();if(a){var c=b[7]||this.get_defaultUserContext();a(d,c,"Sys.Services.AuthenticationService.login");}},_onLogoutComplete:function(f,a,e){if(f!==null){throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType,e,"null"));}var b=a[0],d=a[3]||this.get_defaultUserContext(),c=a[1]||this.get_defaultLogoutCompletedCallback()||this.get_defaultSucceededCallback();this._authenticated=false;if(c){c(null,d,"Sys.Services.AuthenticationService.logout");}if(!b){window.location.reload();}else{window.location.href=b;}},_onLogoutFailed:function(c,b){var a=b[2]||this.get_defaultFailedCallback();if(a){a(c,b[3],"Sys.Services.AuthenticationService.logout");}},_setAuthenticated:function(a){this._authenticated=a;}};Sys.Services._AuthenticationService.registerClass("Sys.Services._AuthenticationService",Sys.Net.WebServiceProxy);Sys.Services.AuthenticationService=new Sys.Services._AuthenticationService;Sys.Services._RoleService=function(){Sys.Services._RoleService.initializeBase(this);this._roles=[];};Sys.Services._RoleService.DefaultWebServicePath="";Sys.Services._RoleService.prototype={_defaultLoadCompletedCallback:null,_rolesIndex:null,_timeout:0,_path:"",get_defaultLoadCompletedCallback:function(){return this._defaultLoadCompletedCallback;},set_defaultLoadCompletedCallback:function(a){this._defaultLoadCompletedCallback=a;},get_path:function(){return this._path||"";},get_roles:function(){return Array.clone(this._roles);},isUserInRole:function(a){var b=this._get_rolesIndex()[a.trim().toLowerCase()];return !!b;},load:function(a,b,c){Sys.Net.WebServiceProxy.invoke(this._get_path(),"GetRolesForCurrentUser",false,{},Function.createDelegate(this,this._onLoadComplete),Function.createDelegate(this,this._onLoadFailed),[a,b,c],this.get_timeout());},_get_path:function(){var a=this.get_path();if(!a||!a.length){a=Sys.Services._RoleService.DefaultWebServicePath;}if(!a||!a.length){throw Error.invalidOperation(Sys.Res.servicePathNotSet);}return a;},_get_rolesIndex:function(){if(!this._rolesIndex){var b={};for(var a=0;a<this._roles.length;a++){b[this._roles[a].toLowerCase()]=true;}this._rolesIndex=b;}return this._rolesIndex;},_onLoadComplete:function(a,c,f){if(a&&!(a instanceof Array)){throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType,f,"Array"));}this._roles=a;this._rolesIndex=null;var b=c[0]||this.get_defaultLoadCompletedCallback()||this.get_defaultSucceededCallback();if(b){var e=c[2]||this.get_defaultUserContext(),d=Array.clone(a);b(d,e,"Sys.Services.RoleService.load");}},_onLoadFailed:function(d,b){var a=b[1]||this.get_defaultFailedCallback();if(a){var c=b[2]||this.get_defaultUserContext();a(d,c,"Sys.Services.RoleService.load");}}};Sys.Services._RoleService.registerClass("Sys.Services._RoleService",Sys.Net.WebServiceProxy);Sys.Services.RoleService=new Sys.Services._RoleService;Type.registerNamespace("Sys.Serialization");Sys.Serialization.JavaScriptSerializer=function(){};Sys.Serialization.JavaScriptSerializer.registerClass("Sys.Serialization.JavaScriptSerializer");Sys.Serialization.JavaScriptSerializer._serverTypeFieldName="__type";Sys.Serialization.JavaScriptSerializer._stringRegEx=new RegExp('["\\b\\f\\n\\r\\t\\\\\\x00-\\x1F]',"i");Sys.Serialization.JavaScriptSerializer._dateRegEx=new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"',"g");Sys.Serialization.JavaScriptSerializer._jsonRegEx=new RegExp("[^,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]","g");Sys.Serialization.JavaScriptSerializer._jsonStringRegEx=new RegExp('"(\\\\.|[^"\\\\])*"',"g");Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder=function(b,a){a.append(b.toString());};Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder=function(a,b){if(isFinite(a)){b.append(String(a));}else{throw Error.invalidOperation(Sys.Res.cannotSerializeNonFiniteNumbers);}};Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder=function(c,a){a.append('"');if(Sys.Serialization.JavaScriptSerializer._stringRegEx.test(c)){var d=c.length;for(i=0;i<d;++i){var b=c.charAt(i);if(b>=" "){if(b==="\\"||b==='"'){a.append("\\");}a.append(b);}else{switch(b){case"\b":a.append("\\b");break;case"\f":a.append("\\f");break;case"\n":a.append("\\n");break;case"\r":a.append("\\r");break;case"\t":a.append("\\t");break;default:a.append("\\u00");if(b.charCodeAt()<16){a.append("0");}a.append(b.charCodeAt().toString(16));}}}}else{a.append(c);}a.append('"');};Sys.Serialization.JavaScriptSerializer._serializeWithBuilder=function(b,a,i,g){var c;switch(typeof b){case"object":if(b){if(Number.isInstanceOfType(b)){Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(b,a);}else{if(Boolean.isInstanceOfType(b)){Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(b,a);}else{if(String.isInstanceOfType(b)){Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(b,a);}else{if(Array.isInstanceOfType(b)){a.append("[");for(c=0;c<b.length;++c){if(c>0){a.append(",");}Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(b[c],a,false,g);}a.append("]");}else{if(Date.isInstanceOfType(b)){a.append('"\\/Date(');a.append(b.getTime());a.append(')\\/"');break;}var d=[],f=0;for(var e in b){if(e.startsWith("$")){continue;}if(e===Sys.Serialization.JavaScriptSerializer._serverTypeFieldName&&f!==0){d[f++]=d[0];d[0]=e;}else{d[f++]=e;}}if(i){d.sort();}a.append("{");var j=false;for(c=0;c<f;c++){var h=b[d[c]];if(typeof h!=="undefined"&&typeof h!=="function"){if(j){a.append(",");}else{j=true;}Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(d[c],a,i,g);a.append(":");Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(h,a,i,g);}}a.append("}");}}}}}else{a.append("null");}break;case"number":Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(b,a);break;case"string":Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(b,a);break;case"boolean":Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(b,a);break;default:a.append("null");}};Sys.Serialization.JavaScriptSerializer.serialize=function(b){var a=new Sys.StringBuilder;Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(b,a,false);return a.toString();};Sys.Serialization.JavaScriptSerializer.deserialize=function(data,secure){if(data.length===0){throw Error.argument("data",Sys.Res.cannotDeserializeEmptyString);}try{var exp=data.replace(Sys.Serialization.JavaScriptSerializer._dateRegEx,"$1new Date($2)");if(secure&&Sys.Serialization.JavaScriptSerializer._jsonRegEx.test(exp.replace(Sys.Serialization.JavaScriptSerializer._jsonStringRegEx,""))){throw null;}return eval("("+exp+")");}catch(a){throw Error.argument("data",Sys.Res.cannotDeserializeInvalidJson);}};Sys.CultureInfo=function(c,b,a){this.name=c;this.numberFormat=b;this.dateTimeFormat=a;};Sys.CultureInfo.prototype={_getDateTimeFormats:function(){if(!this._dateTimeFormats){var a=this.dateTimeFormat;this._dateTimeFormats=[a.MonthDayPattern,a.YearMonthPattern,a.ShortDatePattern,a.ShortTimePattern,a.LongDatePattern,a.LongTimePattern,a.FullDateTimePattern,a.RFC1123Pattern,a.SortableDateTimePattern,a.UniversalSortableDateTimePattern];}return this._dateTimeFormats;},_getMonthIndex:function(a){if(!this._upperMonths){this._upperMonths=this._toUpperArray(this.dateTimeFormat.MonthNames);}return Array.indexOf(this._upperMonths,this._toUpper(a));},_getAbbrMonthIndex:function(a){if(!this._upperAbbrMonths){this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);}return Array.indexOf(this._upperAbbrMonths,this._toUpper(a));},_getDayIndex:function(a){if(!this._upperDays){this._upperDays=this._toUpperArray(this.dateTimeFormat.DayNames);}return Array.indexOf(this._upperDays,this._toUpper(a));},_getAbbrDayIndex:function(a){if(!this._upperAbbrDays){this._upperAbbrDays=this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames);}return Array.indexOf(this._upperAbbrDays,this._toUpper(a));},_toUpperArray:function(c){var b=[];for(var a=0,d=c.length;a<d;a++){b[a]=this._toUpper(c[a]);}return b;},_toUpper:function(a){return a.split("\u00a0").join(" ").toUpperCase();}};Sys.CultureInfo._parse=function(b){var a=Sys.Serialization.JavaScriptSerializer.deserialize(b);return new Sys.CultureInfo(a.name,a.numberFormat,a.dateTimeFormat);};Sys.CultureInfo.registerClass("Sys.CultureInfo");Sys.CultureInfo.InvariantCulture=Sys.CultureInfo._parse('{"name":"","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":true,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"\u00a4","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":true},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, dd MMMM yyyy HH:mm:ss","LongDatePattern":"dddd, dd MMMM yyyy","LongTimePattern":"HH:mm:ss","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","ShortDatePattern":"MM/dd/yyyy","ShortTimePattern":"HH:mm","SortableDateTimePattern":"yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","YearMonthPattern":"yyyy MMMM","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":true,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]}}');if(typeof __cultureInfo==="undefined"){var __cultureInfo='{"name":"en-US","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":false,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"$","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":false},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, MMMM dd, yyyy h:mm:ss tt","LongDatePattern":"dddd, MMMM dd, yyyy","LongTimePattern":"h:mm:ss tt","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","ShortDatePattern":"M/d/yyyy","ShortTimePattern":"h:mm tt","SortableDateTimePattern":"yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","YearMonthPattern":"MMMM, yyyy","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":false,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]}}';}Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse(__cultureInfo);delete __cultureInfo;Sys.UI.Behavior=function(b){Sys.UI.Behavior.initializeBase(this);this._element=b;var a=b._behaviors;if(!a){b._behaviors=[this];}else{a[a.length]=this;}};Sys.UI.Behavior.prototype={_name:null,get_element:function(){return this._element;},get_id:function(){var a=Sys.UI.Behavior.callBaseMethod(this,"get_id");if(a){return a;}if(!this._element||!this._element.id){return"";}return this._element.id+"$"+this.get_name();},get_name:function(){if(this._name){return this._name;}var a=Object.getTypeName(this),b=a.lastIndexOf(".");if(b!=-1){a=a.substr(b+1);}if(!this.get_isInitialized()){this._name=a;}return a;},set_name:function(a){this._name=a;},initialize:function(){Sys.UI.Behavior.callBaseMethod(this,"initialize");var a=this.get_name();if(a){this._element[a]=this;}},dispose:function(){Sys.UI.Behavior.callBaseMethod(this,"dispose");if(this._element){var a=this.get_name();if(a){this._element[a]=null;}Array.remove(this._element._behaviors,this);delete this._element;}}};Sys.UI.Behavior.registerClass("Sys.UI.Behavior",Sys.Component);Sys.UI.Behavior.getBehaviorByName=function(b,c){var a=b[c];return a&&Sys.UI.Behavior.isInstanceOfType(a)?a:null;};Sys.UI.Behavior.getBehaviors=function(a){if(!a._behaviors){return[];}return Array.clone(a._behaviors);};Sys.UI.Behavior.getBehaviorsByType=function(d,e){var a=d._behaviors,c=[];if(a){for(var b=0,f=a.length;b<f;b++){if(e.isInstanceOfType(a[b])){c[c.length]=a[b];}}}return c;};Sys.UI.VisibilityMode=function(){throw Error.notImplemented();};Sys.UI.VisibilityMode.prototype={hide:0,collapse:1};Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode");Sys.UI.Control=function(a){Sys.UI.Control.initializeBase(this);this._element=a;a.control=this;};Sys.UI.Control.prototype={_parent:null,_visibilityMode:Sys.UI.VisibilityMode.hide,get_element:function(){return this._element;},get_id:function(){if(!this._element){return"";}return this._element.id;},set_id:function(){throw Error.invalidOperation(Sys.Res.cantSetId);},get_parent:function(){if(this._parent){return this._parent;}if(!this._element){return null;}var a=this._element.parentNode;while(a){if(a.control){return a.control;}a=a.parentNode;}return null;},set_parent:function(a){this._parent=a;},get_visibilityMode:function(){return Sys.UI.DomElement.getVisibilityMode(this._element);},set_visibilityMode:function(a){Sys.UI.DomElement.setVisibilityMode(this._element,a);},get_visible:function(){return Sys.UI.DomElement.getVisible(this._element);},set_visible:function(a){Sys.UI.DomElement.setVisible(this._element,a);},addCssClass:function(a){Sys.UI.DomElement.addCssClass(this._element,a);},dispose:function(){Sys.UI.Control.callBaseMethod(this,"dispose");if(this._element){this._element.control=undefined;delete this._element;}if(this._parent){delete this._parent;}},onBubbleEvent:function(){return false;},raiseBubbleEvent:function(b,c){var a=this.get_parent();while(a){if(a.onBubbleEvent(b,c)){return;}a=a.get_parent();}},removeCssClass:function(a){Sys.UI.DomElement.removeCssClass(this._element,a);},toggleCssClass:function(a){Sys.UI.DomElement.toggleCssClass(this._element,a);}};Sys.UI.Control.registerClass("Sys.UI.Control",Sys.Component);Type.registerNamespace("Sys");Sys.Res={argumentInteger:"Value must be an integer.",scriptLoadMultipleCallbacks:"The script '{0}' contains multiple calls to Sys.Application.notifyScriptLoaded(). Only one is allowed.",invokeCalledTwice:"Cannot call invoke more than once.",webServiceFailed:"The server method '{0}' failed with the following error: {1}",webServiceInvalidJsonWrapper:"The server method '{0}' returned invalid data. The 'd' property is missing from the JSON wrapper.",argumentType:"Object cannot be converted to the required type.",argumentNull:"Value cannot be null.",controlCantSetId:"The id property can't be set on a control.",formatBadFormatSpecifier:"Format specifier was invalid.",webServiceFailedNoMsg:"The server method '{0}' failed.",argumentDomElement:"Value must be a DOM element.",invalidExecutorType:"Could not create a valid Sys.Net.WebRequestExecutor from: {0}.",cannotCallBeforeResponse:"Cannot call {0} when responseAvailable is false.",actualValue:"Actual value was {0}.",enumInvalidValue:"'{0}' is not a valid value for enum {1}.",scriptLoadFailed:"The script '{0}' could not be loaded.",parameterCount:"Parameter count mismatch.",cannotDeserializeEmptyString:"Cannot deserialize empty string.",formatInvalidString:"Input string was not in a correct format.",invalidTimeout:"Value must be greater than or equal to zero.",cannotAbortBeforeStart:"Cannot abort when executor has not started.",argument:"Value does not fall within the expected range.",cannotDeserializeInvalidJson:"Cannot deserialize. The data does not correspond to valid JSON.",invalidHttpVerb:"httpVerb cannot be set to an empty or null string.",nullWebRequest:"Cannot call executeRequest with a null webRequest.",eventHandlerInvalid:"Handler was not added through the Sys.UI.DomEvent.addHandler method.",cannotSerializeNonFiniteNumbers:"Cannot serialize non finite numbers.",argumentUndefined:"Value cannot be undefined.",webServiceInvalidReturnType:"The server method '{0}' returned an invalid type. Expected type: {1}",servicePathNotSet:"The path to the web service has not been set.",argumentTypeWithTypes:"Object of type '{0}' cannot be converted to type '{1}'.",cannotCallOnceStarted:"Cannot call {0} once started.",badBaseUrl1:"Base URL does not contain ://.",badBaseUrl2:"Base URL does not contain another /.",badBaseUrl3:"Cannot find last / in base URL.",setExecutorAfterActive:"Cannot set executor after it has become active.",paramName:"Parameter name: {0}",cannotCallOutsideHandler:"Cannot call {0} outside of a completed event handler.",cannotSerializeObjectWithCycle:"Cannot serialize object with cyclic reference within child properties.",format:"One of the identified items was in an invalid format.",assertFailedCaller:"Assertion Failed: {0}\r\nat {1}",argumentOutOfRange:"Specified argument was out of the range of valid values.",webServiceTimedOut:"The server method '{0}' timed out.",notImplemented:"The method or operation is not implemented.",assertFailed:"Assertion Failed: {0}",invalidOperation:"Operation is not valid due to the current state of the object.",breakIntoDebugger:"{0}\r\n\r\nBreak into debugger?"};if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded();}
};
 // end of external scripts
// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//

				Type.registerNamespace('TripzoomLib');

				TripzoomLib._Constants = function() {
					// load consts
				}

				TripzoomLib._Constants.prototype = {
					USERID: 'd655dc5e-33b5-41eb-af79-14a58fb3d4b1',
					COPYRIGHT : '&copy; Locatienet, PTV, NAVTEQ',
					COPYRIGHT_EUROSENSE : '&copy; Locatienet, PTV, NAVTEQ, Eurosense DKLN-2006',
					LANGUAGE : 'nl',
					MIN_SCALE : 100,
					MAX_SCALE : 1000000,
					TILE_SIZE : 256,
					IMAGE_URL : 'http://www.routenet.nl/images/',
					BASE_URL : 'http://onderweg.locatienet.com/',
					STATIC_URL : 'http://static.routenet.eu/', 
					EXTERN_URL : 'http://onderweg.locatienet.com/',
					USE_STATIC_SERVER : true,
					NAVIGATIONTOOL : 31,
					DEBUG : false,
					TRACE : false,
					TRACEALERT : false
				}
				TripzoomLib.Constants = new TripzoomLib._Constants();
			

				Type.registerNamespace('TripzoomLib.Resources');

				TripzoomLib.Resources._Resource = function() {
				}

				TripzoomLib.Resources._Resource.prototype = {
					zoom_out : 'Uitzoomen',
					zoom_in : 'Inzoomen',
					zoom : 'In- /uitzoomen',					
					country : 'Land',
					province : 'Provincie',
					region : 'Regio',
					city : 'Plaats',
					neighbourhood : 'Buurt',
					block : 'Blok',
					street : 'Straat',
					overviewmap : 'Overzichtskaart',
					pan : 'Schuiven',
					map : 'Kaart',
					show_map : 'toon kaart',
					hybrid : 'Hybride',
					aerophoto : 'Luchtfoto',
					next: 'volgende',
					previous: 'vorige',
					info: 'info'
				}

				TripzoomLib.Resources.Resource = new TripzoomLib.Resources._Resource();
			

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
internalMoveAnimatorObj=null;cMoveAnimator=function(a){this._elem=a;this._steptime=100;this._stepcount=5;this._startpos=null;this._stoppos=null;this._type="";internalMoveAnimatorObj=this;};cMoveAnimator.prototype={dispose:function(){},MoveIn:function(){this._type="movein";this.Run();},MoveOut:function(){this._type="moveout";this.Run();},Run:function(a,c,b){switch(this._type){case"movein":if(arguments.length==0){a=1;this._elem.style.left=this._startpos.x+"px";this._elem.style.top=this._startpos.y+"px";this._elem.style.display="block";c=(this._stoppos.x-this._startpos.x)/this._stepcount;b=(this._stoppos.y-this._startpos.y)/this._stepcount;}else{this._elem.style.left=(parseInt(this._elem.style.left)+c)+"px";this._elem.style.top=(parseInt(this._elem.style.top)+b)+"px";a++;}if(a<this._stepcount){window.setTimeout("internalMoveAnimatorObj.Run("+a+","+c+","+b+")",this._steptime);}break;case"moveout":if(arguments.length==0){a=1;this._elem.style.left=this._stoppos.x+"px";this._elem.style.top=this._stoppos.y+"px";this._elem.style.display="block";c=(this._startpos.x-this._stoppos.x)/this._stepcount;b=(this._startpos.y-this._stoppos.y)/this._stepcount;}else{this._elem.style.left=(parseInt(this._elem.style.left)+c)+"px";this._elem.style.top=(parseInt(this._elem.style.top)+b)+"px";a++;}if(a<this._stepcount){window.setTimeout("internalMoveAnimatorObj.Run("+a+","+c+","+b+")",this._steptime);}else{this._elem.style.filter="";this._elem.style.opacity=0;this._elem.style.display="none";}break;}Trace(this._elem.style.left+" , "+this._elem.style.top);},set_stepcount:function(a){this._stepcount=a;},set_steptime:function(a){this._steptime=a;},set_startpos:function(a){this._startpos=a;},set_stoppos:function(a){this._stoppos=a;}};internalFadeAnimatorObj=null;cFadeAnimator=function(b,a){this.elem=b;this.maxopacity=a||80;this.steptime=100;this.stepcount=5;this.type="";internalFadeAnimatorObj=this;};cFadeAnimator.prototype={dispose:function(){},FadeIn:function(){this.type="fadein";this.Run();},FadeOut:function(){this.type="fadeout";this.Run();},Run:function(){switch(this.type){case"fadein":step=0;if(arguments.length==0){step=1;this.elem.style.display="block";}else{step=arguments[0]+1;}if(Sys.Browser.agent==Sys.Browser.InternetExplorer){this.elem.style.filter="Alpha(Opacity="+Math.round(this.maxopacity*(step)/this.stepcount)+")";}else{this.elem.style.opacity=Math.round(this.maxopacity*(step)/this.stepcount)/100;}if(step<this.stepcount){window.setTimeout("internalFadeAnimatorObj.Run("+step+")",this.steptime);}else{this.elem.style.filter="";this.elem.style.opacity=100;}break;case"fadeout":step=(arguments.length==0)?1:arguments[0]+1;if(Sys.Browser.agent==Sys.Browser.InternetExplorer){this.elem.style.filter="Alpha(Opacity="+Math.round(100*(this.stepcount-step)/this.stepcount)+")";}else{this.elem.style.opacity=Math.round(100*(this.stepcount-step)/this.stepcount)/100;}if(step<this.stepcount){window.setTimeout("internalFadeAnimatorObj.Run("+step+")",this.steptime);}else{this.elem.style.filter="";this.elem.style.opacity=0;this.elem.style.display="none";}break;}}};internalSlideAnimator=null;cSlideAnimator=function(a){this.elem=a;this.steptime=100;this.stepcount=5;internalSlideAnimator=this;};cSlideAnimator.prototype={dispose:function(){},Vertical:function(b,a){this.Run(b,a);},Run:function(){starttop=arguments[0];stoptop=arguments[1];step=0;if(arguments.length==2){step=1;}else{step=arguments[2]+1;}this.elem.style.top=(starttop+Math.round((stoptop-starttop)*step/this.stepcount))+"px";if(step<this.stepcount){debug.write((starttop+Math.round((stoptop-starttop)*step/this.stepcount))+"px");window.setTimeout("internalSlideAnimator.Run("+starttop+","+stoptop+","+step+")",this.steptime);}}};

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
var _Map=null;Trace=function(b,a){if(TripzoomLib.Constants.TRACE){traceStr=b;if(a){traceStr+=" :\n"+a;}if(TripzoomLib.Constants.TRACEALERT){alert(traceStr);}Sys.Debug.trace(traceStr);}};TraceDump=function(b,a){if(TripzoomLib.Constants.TRACE){var c=(a)?a+" : \n":"";traceStr=c+=Object.getType(b).getName();if(TripzoomLib.Constants.TRACEALERT){alert(traceStr);}if(a){Sys.Debug.trace(a);}Sys.Debug.traceDump(b);}};Serialize=function(a){return Sys.Serialization.JavaScriptSerializer.serialize(a);};var timeA=null;StartTimer=function(){timeA=new Date();};StopTimer=function(){var a=new Date();return(a-timeA);};Type.registerNamespace("TripzoomLib");TripzoomLib.MapAction=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.MapAction.prototype={NONE:0,ZOOMING:1,MOVING:2,EDITING:4};TripzoomLib.MapAction.registerEnum("TripzoomLib.MapAction");TripzoomLib.Unit=function(){};TripzoomLib.Unit.prototype={GEO:0,PIXEL:1};TripzoomLib.Unit.registerEnum("TripzoomLib.Unit");TripzoomLib.Toolbar=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.Toolbar.prototype={Navigate:0,Maptype:1,Overview:2};TripzoomLib.Toolbar.registerEnum("TripzoomLib.Toolbar");TripzoomLib.NavigationTool=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.NavigationTool.prototype={None:0,ZoomOut:1,ZoomIn:2,ScaleBar:4,Panning:8,Zooming:16,Edit:32};TripzoomLib.NavigationTool.registerEnum("TripzoomLib.NavigationTool");TripzoomLib.MapViewMode=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.MapViewMode.prototype={MAP:0,AERIAL:1,HYBRID:2};TripzoomLib.MapViewMode.registerEnum("TripzoomLib.MapViewMode");TripzoomLib.NavigationMode=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.NavigationMode.prototype={NONE:0,ZOOMING:1,MOVING:2,EDITING:3};TripzoomLib.NavigationMode.registerEnum("TripzoomLib.NavigationMode");TripzoomLib.NavigationAction=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.NavigationAction.prototype={NONE:0,ZOOMIN:1,ZOOMOUT:2,SCALEBAR_1:3,SCALEBAR_2:4,SCALEBAR_3:5,SCALEBAR_4:6,SCALEBAR_5:7,SCALEBAR_6:8,SCALEBAR_7:9,NAVMODE_ZOOM:10,NAVMODE_MOVE:11,NAVMODE_EDIT:12,OVERVIEW:13,LAYERS:14,VIEWMODE_MAP:15,VIEWMODE_SAT:16,VIEWMODE_HYB:17};TripzoomLib.NavigationAction.registerEnum("TripzoomLib.NavigationAction");function showMapSpinner(a){_Map.get_spinner().set_visible(a);}var stepTotal=10;var timerID=null;function showTooltip(b){obj=_Map._tooltiplayer;obj.style.display="block";textObj=$get("tooltiptextDIV");textObj.innerHTML=b;var a=new cSlideAnimator(obj);a.Vertical(-45,0);timerID=setTimeout("hideTooltip()",4000);}function hideTooltip(){obj=_Map._tooltiplayer;var a=new cSlideAnimator(obj);a.Vertical(0,-45);}

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib.Utils");TripzoomLib.Utils.lastSeqID=0;TripzoomLib.Utils.createUniqueID=function(a){if(a==null){a="id_";}TripzoomLib.Utils.lastSeqID+=1;return a+TripzoomLib.Utils.lastSeqID;};TripzoomLib.Utils.Distance=function(a,c,b,d){dx=a-c;dy=b-d;return Math.sqrt(dx*dx+dy*dy);};TripzoomLib.Utils.ZoomToScale=function(a){found=false;prevt=t=1;scale=TripzoomLib.Constants.MIN_SCALE;dif=Math.abs(a-scale);while(!found){prevt=t;scale=TripzoomLib.Constants.MIN_SCALE*Math.pow(2,t);if(dif>=Math.abs(a-scale)){t++;}dif=Math.abs(a-scale);if(prevt==t){found=true;}}scale=TripzoomLib.Constants.MIN_SCALE*Math.pow(2,prevt-1);return scale;};TripzoomLib.Utils.getScrollXY=function(){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];};TripzoomLib.Utils.isArray=function(a){return a.constructor==Array;};

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib.Collections");TripzoomLib.Collections.Collection=function(){TripzoomLib.Collections.Collection.initializeBase(this);};TripzoomLib.Collections.Collection.prototype={items:[],lsize:0,initialize:function(){TripzoomLib.Collections.Collection.callBaseMethod(this,"initialize");},add:function(a){if(a==null){return;}this.lsize++;this.items[(this.lsize-1)]=a;},remove:function(b){if(b<0||b>this.items.length-1){return;}this.items[b]=null;for(var a=b;a<=this.lsize;a++){this.items[a]=this.items[a+1];}this.lsize--;},size:function(){return this.lsize;},clear:function(){for(var a=0;a<this.lsize;a++){this.items[a]=null;}this.lsize=0;},clone:function(){var a=new TripzoomLib.Collections.Collection();for(var b=0;b<this.lsize;b++){a.add(this.items[b]);}return a;}};TripzoomLib.Collections.Collection.registerClass("TripzoomLib.Collections.Collection",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.Element");

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Element.Address=function(a){TripzoomLib.Element.Address.initializeBase(this);this.XCoord=0;this.YCoord=0;this.Name="";this.Street="";this.HouseNr="";this.Postcode="";this.City="";this.District="";this.Country="";this.DetailLevel=9;this.LinkType="";this._address=a;if(this._address){this._update();}};TripzoomLib.Element.Address.prototype={initialize:function(){TripzoomLib.Element.Address.callBaseMethod(this,"initialize");},dispose:function(){TripzoomLib.Element.Address.callBaseMethod(this,"dispose");},set_address:function(a){if(this._address!=a){this._address=a;this._update();}},set_xcoord:function(a){this.XCoord=a;},get_xcoord:function(){return this.XCoord;},set_ycoord:function(a){this.YCoord=a;},get_ycoord:function(){return this.YCoord;},set_street:function(a){this.Street=a;},get_street:function(){return this.Street;},set_postcode:function(a){this.Postcode=a;},get_postcode:function(){return this.Postcode;},set_city:function(a){this.City=a;},get_city:function(){return this.City;},set_country:function(a){this.Country=a;},get_country:function(){return this.Country;},get_address:function(){return this.XCoord+"_"+this.YCoord+"_"+this.Street+"_"+this.HouseNr+"_"+this.Postcode+"_"+this.City+"_"+this.District+"_"+this.Country+"_"+this.DetailLevel+"_"+this.Name;},toString:function(){return this.get_address();},_update:function(){var b=this._address.split("#");var a=b[0].split("_");this.XCoord=parseInt(a[0]);this.YCoord=parseInt(a[1]);this.Street=a[2];this.HouseNr=a[3];this.Postcode=a[4];this.City=a[5];this.District=a[6];this.Country=a[7];if(a.length>8){this.DetailLevel=a[8];}if(a.length>9){this.Name=a[9];}if(b.length>1){this.LinkType=b[1];}},Description:function(){return this.Street+" "+this.HouseNr+" "+this.City+" ("+this.Country+", "+this.Postcode+")";},ShortDescription:function(){return this.Street+" "+this.HouseNr+" "+this.City;},HTML:function(){var a="";if(this.Name.length>0){a+="<strong>"+this.Name+"</strong><br/>";}if(this.Street!=""){a+=this.Street+",<br/>";}if(this.Postcode!=""){a+=this.Postcode+" ";}if(this.City!=""){a+=this.City;}a+=" ("+this.Country+")";return a;}};TripzoomLib.Element.Address.registerClass("TripzoomLib.Element.Address",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Element.Geometry=function(a){this._type=a;this._unit=TripzoomLib.Unit.GEO;};TripzoomLib.Element.Geometry.prototype={get_type:function(){return this._type;},get_unit:function(){return this._unit;},set_unit:function(a){this._unit=a;},TransformCoordinates:function(f,c,g){var n=null;switch(this.get_type()){case"Point":var j=this;var e,b;e=Math.round((parseInt(j.x)-f.left)*c/f.get_width());b=Math.round((f.top-parseInt(j.y))*g/f.get_height());n=new TripzoomLib.Element.Point(e,b);n.set_unit(TripzoomLib.Unit.PIXEL);break;case"Rect":var d=this;var k=this.TransformCoordinates(new TripzoomLib.Element.Point(d.left,d.top));var l=this.TransformCoordinates(new TripzoomLib.Element.Point(d.right,d.bottom));n=new TripzoomLib.Element.Rect(k.x,k.y,l.x,l.y);n.set_unit(TripzoomLib.Unit.PIXEL);break;case"Polygon":var h=this;var m=h.get_exteriorring();for(var a=0;a<m.length;a++){m[a]=this.TransformCoordinates(new TripzoomLib.Element.Point(m[a].x,m[a].y));}n=$create(TripzoomLib.Element.Polygon,{exteriorring:m,unit:TripzoomLib.Unit.PIXEL});}return n;}};TripzoomLib.Element.Geometry.registerClass("TripzoomLib.Element.Geometry",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Element.Rect=function(c,b,d,a){TripzoomLib.Element.Rect.initializeBase(this,["Rect"]);this.left=c|Number.POSITIVE_INFINITY;this.top=b|Number.NEGATIVE_INFINITY;this.right=d|Number.NEGATIVE_INFINITY;this.bottom=a|Number.POSITIVE_INFINITY;};TripzoomLib.Element.Rect.prototype={isWithin:function(a){switch(this.get_unit()){case TripzoomLib.Unit.GEO:if(TripzoomLib.Element.Rect.isInstanceOfType(a)){if(this.top<a.top||this.bottom>a.bottom){return false;}}if(TripzoomLib.Element.Point.isInstanceOfType(a)){if(this.top<a.y||this.bottom>a.y){return false;}}break;case TripzoomLib.Unit.PIXEL:if(TripzoomLib.Element.Rect.isInstanceOfType(a)){if(this.top>a.top||this.bottom<a.bottom){return false;}}if(TripzoomLib.Element.Point.isInstanceOfType(a)){if(this.top>a.y||this.bottom<a.y){return false;}}break;}if(TripzoomLib.Element.Rect.isInstanceOfType(a)){if(this.left>a.left||this.right<a.right){return false;}}if(TripzoomLib.Element.Point.isInstanceOfType(a)){if(this.left>a.x||this.right<a.x){return false;}}return true;},isBigger:function(a){if(TripzoomLib.Element.Rect.isInstanceOfType(a)){if(this.get_width()>a.get_width()||this.get_height()<a.get_height()){return false;}}return true;},Equals:function(a){var b=false;if(a.left==this.left&&a.top==this.top&&a.right==this.right&&a.bottom==this.bottom){b=true;}return b;},isSmaller:function(a){return !this.isBigger(a);},Expand:function(a){if(TripzoomLib.Element.Rect.isInstanceOfType(a)){var b=a;this.left=Math.min(this.left,b.left);this.top=(this._unit!=TripzoomLib.Unit.PIXEL)?Math.max(this.top,b.top):Math.min(this.top,b.top);this.right=Math.max(this.right,b.right);this.bottom=(this._unit!=TripzoomLib.Unit.PIXEL)?Math.min(this.bottom,b.bottom):Math.max(this.bottom,b.bottom);}else{if(TripzoomLib.Element.Point.isInstanceOfType(a)){var e=a;this.left=Math.min(this.left,e.x);this.right=Math.max(this.right,e.x);this.top=Math.max(this.top,e.y);this.bottom=Math.min(this.bottom,e.y);}else{var d=a*this.get_width();var c=a*this.get_height();this.left-=d;this.right+=d;this.top+=c;this.bottom-=c;}}},set_rect:function(a){var b=a.split("_");this.left=parseFloat(b[0]);this.top=parseFloat(b[1]);this.right=parseFloat(b[2]);this.bottom=parseFloat(b[3]);return this;},get_rect:function(){return Math.round(this.left)+"_"+Math.round(this.top)+"_"+Math.round(this.right)+"_"+Math.round(this.bottom);},get_bounds:function(){return{x:this.left,y:this.top,width:this.right-this.left,height:Math.abs(this.top-this.bottom)};},set_bounds:function(a){this.left=a.x;this.top=a.y;this.right=a.x+a.width;this.bottom=a.y+a.height;},Zoom2Scale:function(a){return TripzoomLib.Constants.MIN_SCALE*Math.pow(2,a);},centerx:function(){return(this.right+this.left)/2;},centery:function(){return(this.bottom+this.top)/2;},get_width:function(){return Math.abs(this.right-this.left);},set_width:function(a){if(this.get_width()!=a){this.right=this.left+a;}},get_height:function(){return Math.abs(this.bottom-this.top);},set_height:function(a){if(this.get_height()!=a){this.bottom=this.top+a;}},Width:function(){return this.get_width();},Height:function(){return this.get_height();},toString:function(){return Math.round(this.left)+"_"+Math.round(this.top)+"_"+Math.round(this.right)+"_"+Math.round(this.bottom);}};TripzoomLib.Element.Rect.registerClass("TripzoomLib.Element.Rect",TripzoomLib.Element.Geometry);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Element.Point=function(a,b,c){TripzoomLib.Element.Point.initializeBase(this,["Point"]);this.x=a;this.y=b;};TripzoomLib.Element.Point.prototype={toString:function(){return this.x+"_"+this.y;}};TripzoomLib.Element.Point.registerClass("TripzoomLib.Element.Point",TripzoomLib.Element.Geometry);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Element.Polygon=function(){TripzoomLib.Element.Polygon.initializeBase(this,["Polygon"]);this._exteriorring=[];this._extents=new TripzoomLib.Element.Rect();};TripzoomLib.Element.Polygon.prototype={get_exteriorring:function(){return this._exteriorring;},set_exteriorring:function(a){if(this._exteriorring!=a){this._exteriorring=a;this._extents=this._calcExtents();}},isWithin:function(a){var c=false;if(TripzoomLib.Element.Point.isInstanceOfType(a)){var f=a;if(this.get_extents().isWithin(f)){var d,e=0;var b=this._exteriorring.length;for(d=0,e=b-1;d<b;e=d++){if((((this._exteriorring[d].y<=f.y)&&(f.y<this._exteriorring[e].y))||((this._exteriorring[e].y<=f.y)&&(f.y<this._exteriorring[d].y)))&&(f.x<(this._exteriorring[e].x-this._exteriorring[d].x)*(f.y-this._exteriorring[d].y)/(this._exteriorring[e].y-this._exteriorring[d].y)+this._exteriorring[d].x)){c=!c;}}}}return c;},_calcExtents:function(){var a=new TripzoomLib.Element.Rect();if(this._exteriorring){for(var b=0;b<this._exteriorring.length;b++){a.left=Math.min(a.left,this._exteriorring[b].x);a.top=Math.max(a.top,this._exteriorring[b].y);a.right=Math.max(a.right,this._exteriorring[b].x);a.bottom=Math.min(a.bottom,this._exteriorring[b].y);}}return a;},get_extents:function(){return this._extents;}};TripzoomLib.Element.Polygon.registerClass("TripzoomLib.Element.Polygon",TripzoomLib.Element.Geometry);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Element.LayerObject=function(){TripzoomLib.Element.LayerObject.initializeBase(this);this._refid=null;this._async=false;this._geometry=null;this._bitmap="standard.gif";this._title="";this._text="";this._url="";this._layer=null;};TripzoomLib.Element.LayerObject.prototype={set_async:function(a){this._async=a;},get_async:function(){return this._async;},set_bitmap:function(a){this._bitmap=a;},get_bitmap:function(){return this._bitmap;},set_geometry:function(a){this._geometry=a;},get_geometry:function(){return this._geometry;},set_title:function(a){this._title=a;},get_title:function(){return this._title;},set_text:function(a){this._text=a;},get_text:function(){return this._text;},set_url:function(a){this._url=a;},get_url:function(){return this._url;},set_layer:function(a){this._layer=a;},get_layer:function(){return this._layer;},get_refid:function(){return this._refid;},set_refid:function(a){this._refid=a;}};TripzoomLib.Element.LayerObject.registerClass("TripzoomLib.Element.LayerObject",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.Gis");TripzoomLib.Gis.CoordinateTypeEnum=function(){};TripzoomLib.Gis.CoordinateTypeEnum.prototype={Default:0,Mercator:0,EuroConform:1,SuperConform:1,GeoMinSec:2,GeoDecimal:3,GaussKrueger:4,UTM:5,Conform:6,None:-1};TripzoomLib.Gis.CoordinateTypeEnum.registerEnum("TripzoomLib.Gis.CoordinateTypeEnum");

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Gis._Utils=function(){};TripzoomLib.Gis._Utils.prototype={TransformRect:function(a,c,b){if(!TripzoomLib.Element.Rect.isInstanceOfType(a)){throw Error.argumentType(a,typeof(a),"Not of type TripzoomLib.Element.Rect");return;}topleft=this.TransformPoint(new TripzoomLib.Element.Point(a.left,a.top),c,b);bottomright=this.TransformPoint(new TripzoomLib.Element.Point(a.right,a.bottom),c,b);return new TripzoomLib.Element.Rect(topleft.x,topleft.y,bottomright.x,bottomright.y);},TransformPoint:function(d,a,c){var b=d;switch(a){case 0:switch(c){case 3:b=this._Mercator2Geodecimal(d.x,d.y);break;}break;case 3:switch(c){case 0:b=this._Geodecimal2Mercator(d.x,d.y);break;}break;}return b;},_Geodecimal2Mercator:function(a,d){var b,c;b=a;c=d;xArg=6371000*((Math.PI/180)*((b)-0));yArg=6371000*Math.log(Math.tan((Math.PI/4)+(Math.PI/180)*c*0.5));return new TripzoomLib.Element.Point(xArg,yArg);},_Mercator2Geodecimal:function(a,b){var d,c;d=(180/Math.PI)*(a/6371000+0);c=(180/Math.PI)*(Math.atan(Math.exp(b/6371000))-(Math.PI/4))/0.5;a=d;b=c;return new TripzoomLib.Element.Point(a,b);}};TripzoomLib.Gis._Utils.registerClass("TripzoomLib.Gis._Utils");TripzoomLib.Gis.Utils=new TripzoomLib.Gis._Utils();function UTMRefToLatLng(D,b){var w=new RefEll(D,b);var g=0.9996;var s=w.maj;var e=w.ecc;var u=e/(1-e);var f=(1-Math.sqrt(1-e))/(1+Math.sqrt(1-e));var D=this.easting-500000;var b=this.northing;var o=this.lngZone;var B=this.latZone;var l=(o-1)*6-180+3;if((ord(B)-ord("N"))<0){b-=10000000;}var k=b/g;var C=k/(s*(1-e/4-3*e*e/64-5*Math.pow(e,3)/256));var h=C+(3*f/2-27*Math.pow(f,3)/32)*Math.sin(2*C)+(21*f*f/16-55*Math.pow(f,4)/32)*Math.sin(4*C)+(151*Math.pow(f,3)/96)*Math.sin(6*C);var p=s/Math.sqrt(1-e*Math.sin(h)*Math.sin(h));var i=Math.tan(h)*Math.tan(h);var v=u*Math.cos(h)*Math.cos(h);var j=s*(1-e)/Math.pow(1-e*Math.sin(h)*Math.sin(h),1.5);var q=D/(p*g);var A=(h-(p*Math.tan(h)/j)*(q*q/2-(5+(3*i)+(10*v)-(4*v*v)-(9*u))*Math.pow(q,4)/24+(61+(90*i)+(298*v)+(45*i*i)-(252*u)-(3*v*v))*Math.pow(q,6)/720))*(180/Math.PI);var z=l+((q-(1+2*i+v)*Math.pow(q,3)/6+(5-(2*v)+(28*i)-(3*v*v)+(8*u)+(24*i*i))*Math.pow(q,5)/120)/Math.cos(h))*(180/Math.PI);return new LatLng(A,z);}

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.Net");

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Net.GeoJSONRequest=function(b,c,a){TripzoomLib.Net.GeoJSONRequest.initializeBase(this);this._requestid=0;this._url=b;this._onCompletedCallback=c;this._onErrorCallback=a;this._responseData=null;this._sender=null;this._jsonRequestObj=null;};TripzoomLib.Net.GeoJSONRequest.prototype={initialize:function(){TripzoomLib.Net.GeoJSONRequest.callBaseMethod(this,"initialize");TripzoomLib.Net.RequestManager.Add(this);url=TripzoomLib.Constants.BASE_URL+"GeoXmlHandlerService.ashx?id="+this._requestid+"&url="+escape(this._url);this._jsonRequestObj=new JSONScriptRequest();this._jsonRequestObj.open("GET",url,false);this._jsonRequestObj.send(null);},dispose:function(){TripzoomLib.Net.GeoJSONRequest.callBaseMethod(this,"dispose");},abort:function(){if(this._jsonRequestObj){this._jsonRequestObj.abort();}this._jsonRequestObj=null;},get_sender:function(){return this._sender;},set_sender:function(a){this._sender=a;},get_requestid:function(){return this._requestid;},set_requestid:function(a){this._requestid=a;},get_responseData:function(){return this._responseData;},_onCompleted:function(){if(this._onCompletedCallback){this._onCompletedCallback(this._sender,Sys.EventArgs.Empty);}this._jsonRequestObj=null;},_onError:function(){if(this._onErrorCallback){this._onErrorCallback(this._sender,Sys.EventArts.Empty);}this._jsonRequestObj=null;}};TripzoomLib.Net.GeoJSONRequest.registerClass("TripzoomLib.Net.GeoJSONRequest",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Net.RequestSettings=function(){TripzoomLib.Net.RequestSettings.initializeBase(this);this._xcoord=null;this._ycoord=null;this._rect=null;this._width=null;this._height=null;this._layers=null;this._language=null;this._coordformat=0;this._transparent=false;this._name=null;this._parameters=[];};TripzoomLib.Net.RequestSettings.prototype={set_xcoord:function(a){this._xcoord=a;},get_xcoord:function(){return this._xcoord;},set_ycoord:function(a){this._ycoord=a;},get_ycoord:function(){return this._ycoord;},set_rect:function(a){this._rect=a;},get_rect:function(){return this._rect;},set_width:function(a){this._width=a;},get_width:function(){return this._width;},set_height:function(a){this._height=a;},get_height:function(){return this._height;},set_layers:function(a){this._layers=a;},get_layers:function(){return this._layers;},set_language:function(a){this._language=a;},get_language:function(){return this._language;},set_coordformat:function(a){this._coordformat=a;},get_coordformat:function(){return this._coordformat;},set_transparent:function(a){this._transparent=a;},get_transparent:function(){return this._transparent;},set_name:function(a){this._name=a;},get_name:function(){return this._name;},set_parameters:function(a){this._parameters=a;},get_parameters:function(){return this._parameters;},_Parameters:function(){var a="";if(this.get_name()){a+="&name="+this.get_name();}if(this.get_parameters()){a+="&parameters="+this.get_parameters().join("|");}if(this.get_width()){a+="&width="+this.get_width();}if(this.get_height()){a+="&height="+this.get_height();}if(this.get_xcoord()){a+="&x="+this.get_xcoord().toString();}if(this.get_ycoord()){a+="&y="+this.get_ycoord().toString();}if(this.get_rect()){a+="&rect="+this.get_rect().toString();}if(this.get_layers()){a+="&layers="+escape(this.get_layers());}if(this.get_language()){a+="&uiCulture="+this.get_language();}a+="&coordformat="+this.get_coordformat();a+="&transparent="+this.get_transparent();return a;}};TripzoomLib.Net.RequestSettings.registerClass("TripzoomLib.Net.RequestSettings",Sys.Component);TripzoomLib.Net.LocateRequestSettings=function(){TripzoomLib.Net.LocateRequestSettings.initializeBase(this);this._location=null;this._language=null;this._coordformat=null;this._maxresults=null;};TripzoomLib.Net.LocateRequestSettings.prototype={set_location:function(a){if(!TripzoomLib.Element.Address.isInstanceOfType(a)){throw Error.argumentType("value",Object.getType(a),TripzoomLib.Element.Address,"TripzoomLib.Element.Address is required!");}this._location=a;},get_location:function(){return this._location;},set_language:function(a){this._language=a;},get_language:function(){return this._language;},set_coordformat:function(a){this._coordformat=a;},get_coordformat:function(){return this._coordformat;},set_maxresults:function(a){this._maxresults=a;},get_maxresults:function(){return this._maxresults;},_Parameters:function(){var a="";if(this.get_location()!=null){a+="&address="+this.get_location().get_address();}if(this.get_language()!=null){a+="&uiCulture="+this.get_language();}if(this.get_coordformat()!=null){a+="&coordformat="+this.get_coordformat();}if(this.get_maxresults()!=null){a+="&maxresults="+this.get_maxresults();}return a;}};TripzoomLib.Net.LocateRequestSettings.registerClass("TripzoomLib.Net.LocateRequestSettings",Sys.Component);TripzoomLib.Net.RouteRequestSettings=function(){TripzoomLib.Net.RouteRequestSettings.initializeBase(this);this._language="nl";this._stations="";this._template="";this._isstart=true;this._starttime="";this._optimisation=null;this._detail=null;this._vehicle=null;this._avoid=null;this._display=null;};TripzoomLib.Net.RouteRequestSettings.prototype={set_language:function(a){this._language=a;},get_language:function(){return this._language;},set_stations:function(a){this._stations=a;},get_stations:function(){return this._stations;},set_template:function(a){this._template=a;},get_template:function(){return this._template;},set_isstart:function(a){this._isstart=a;},get_isstart:function(){return this._isstart;},set_starttime:function(a){this._starttime=a;},get_starttime:function(){return this._starttime;},set_optimisation:function(a){this._optimisation=a;},get_optimisation:function(){return this._optimisation;},set_detail:function(a){this._detail=a;},get_detail:function(){return this._detail;},set_vehicle:function(a){this._vehicle=a;},get_vehicle:function(){return this._vehicle;},set_avoid:function(a){this._avoid=a;},get_avoid:function(){return this._avoid;},set_display:function(a){this._avoid=a;},get_display:function(){return this._display;},_Parameters:function(){var a="";if(this.get_language()!=null){a+="&language="+this.get_language();}if(this.get_stations()!=null){a+="&stations="+this.get_stations();}if(this.get_template()!=null){a+="&template="+this.get_template();}if(this.get_isstart()!=null){a+="&isstart="+this.get_isstart();}if(this._starttime!=null){a+="&starttime="+this._starttime;}if(this.get_optimisation()!=null){a+="&optimisation="+this.get_optimisation();}if(this.get_detail()!=null){a+="&detail="+this.get_detail();}if(this.get_vehicle()!=null){a+="&vehicle="+this.get_vehicle();}if(this.get_avoid()!=null){a+="&avoid="+this.get_avoid();}if(this.get_display()!=null){a+="&display="+this.get_display();}return a;}};TripzoomLib.Net.RouteRequestSettings.registerClass("TripzoomLib.Net.RouteRequestSettings",Sys.Component);TripzoomLib.Net.Request=function(b,a){TripzoomLib.Net.Request.initializeBase(this);this._url=TripzoomLib.Constants.BASE_URL+"RequestHandler.ashx";this._settings=null;this._requestid=0;this._onCompletedCallback=b;this._onErrorCallback=a;this._responseData=null;this._sender=null;};TripzoomLib.Net.Request.prototype={initialize:function(){TripzoomLib.Net.Request.callBaseMethod(this,"initialize");},CreateMap:function(a){if(!TripzoomLib.Net.RequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.RequestSettings,"TripzoomLib.Net.RequestSettings is required!");}this.Create("CreateMap",a);},GetLayer:function(a){if(!TripzoomLib.Net.RequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.RequestSettings,"TripzoomLib.Net.RequestSettings is required!");}this.Create("GetLayer",a);},GetLayerObject:function(a){if(!TripzoomLib.Net.RequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.RequestSettings,"TripzoomLib.Net.RequestSettings is required!");}this.Create("GetLayerObject",a);},Locate:function(a){if(!TripzoomLib.Net.LocateRequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.LocateRequestSettings,"TripzoomLib.Net.LocateRequestSettings is required!");}this.Create("Locate",a);},RevLocate:function(a){if(!TripzoomLib.Net.LocateRequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.LocateRequestSettings,"TripzoomLib.Net.LocateRequestSettings is required!");}this.Create("RevLocate",a);},RevLocateLayer:function(a){if(!TripzoomLib.Net.LocateRequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.LocateRequestSettings,"TripzoomLib.Net.LocateRequestSettings is required!");}this.Create("RevLocateLayer",a);},GetSharpMapLayer:function(a){this.Create("GetSharpMapLayer",a);},TraveltimeForecast:function(a){if(!TripzoomLib.Net.RouteRequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.RouteRequestSettings,"TripzoomLib.Net.RouteRequestSettings is required!");}this.Create("TravelTimeForecast",a);},LoadLastView:function(){this.Create("LoadLastView");},RemoveRoute:function(){this.Create("RemoveRoute");},RouteSummary:function(a){if(!TripzoomLib.Net.RouteRequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.RouteRequestSettings,"TripzoomLib.Net.RouteRequestSettings is required!");}this.Create("RouteSummary",a);},RouteDescription:function(a){if(!TripzoomLib.Net.RouteRequestSettings.isInstanceOfType(a)){throw Error.argumentType("settings",Object.getType(a),TripzoomLib.Net.RouteRequestSettings,"TripzoomLib.Net.RouteRequestSettings is required!");}this.Create("RouteDescription",a);},Create:function(a,c){this._settings=c;TripzoomLib.Net.RequestManager.Add(this);var d=this._url+"?function="+a;d+="&userid="+TripzoomLib.Constants.USERID;d+="&requestid="+this.get_requestid();if(this._settings){d+=this._settings._Parameters();}var b=new JSONScriptRequest();b.open("GET",d,false);b.onreadystatechange=function(){if(b.readyState==4){alert(b.responseJSON);}};b.send(null);},dispose:function(){TripzoomLib.Net.Request.callBaseMethod(this,"dispose");},get_sender:function(){return this._sender;},set_sender:function(a){this._sender=a;},get_requestid:function(){return this._requestid;},set_requestid:function(a){this._requestid=a;},get_url:function(){return this._url;},set_url:function(a){this._url=a;},get_responseData:function(){return this._responseData;},clear:function(){this._responseData=null;},_onCompleted:function(a){if(this._onCompletedCallback){this._onCompletedCallback((this._sender)?this._sender:this,a,Sys.EventArgs.Empty);}},_onError:function(a){if(this._onErrorCallback){this._onErrorCallback((this._sender)?this._sender:this,a,Sys.EventArgs.Empty);}}};TripzoomLib.Net.Request.registerClass("TripzoomLib.Net.Request",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.Net._RequestManager=function(){this._RequestObjs=new Object();this._requestCount=0;};TripzoomLib.Net._RequestManager.prototype={Abort:function(){this._RequestObjs=new Object();},Add:function(a){a.set_requestid(this._requestCount);this._RequestObjs[this._requestCount++]=a;return a;},LoadData:function(a,b,c){if(!this._RequestObjs[a]){return;}this._RequestObjs[a]._responseData=c;this._RequestObjs[a]._onCompleted(b);},LoadError:function(a,b,c){if(!this._RequestObjs[a]){return;}this._RequestObjs[a]._responseData=c;this._RequestObjs[a]._onError(b);}};TripzoomLib.Net._RequestManager.registerClass("TripzoomLib.Net._RequestManager");TripzoomLib.Net.RequestManager=new TripzoomLib.Net._RequestManager();

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.Web");TripzoomLib.Web._Request=function(){};TripzoomLib.Web._Request.prototype={item:function(b,c){if(c==null){c="";}b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var d=new RegExp("[\\?&]"+b+"=([^&#]*)");var a=d.exec(window.location.href);if(a==null){return c;}else{return a[1];}}};TripzoomLib.Web._Request.registerClass("TripzoomLib.Web._Request");TripzoomLib.Web.Request=new TripzoomLib.Web._Request();

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.Map=function(a){TripzoomLib.GUI.Map.Map.initializeBase(this);this._parent=a;this._element=null;this._mapview=null;this.isBusy=false;this.route=null;this.currentMapLayer=1;this.eventsEnabled=false;this._resize=true;this._viewmode=TripzoomLib.MapViewMode.MAP;this._showTraffic=false;this._showRoadwork=false;this._showRoute=false;this._showSatellite=false;this._showStreets=false;this._showRadar=false;this._media="screen";this._ScrollWheel=false;this._language=TripzoomLib.Constants.LANGUAGE;this._navaction=null;this._tooltip=null;this._scalebar=null;this._spinner=null;this._copyright=null;this._navigation=null;this._tileview=null;this._navigationtool=TripzoomLib.Constants.NAVIGATIONTOOL;this._staticimagelayer=null;this._toolbar=null;this._overviewtoolbar=null;this._mapstyletoolbar=null;this._overviewmap=null;this._layermanager=null;this._mouseOutDelegate=null;this._mouseClickDelegate=null;this._resizeDelegate=null;this._isLoaded=false;this._layers=[];this.zoomsteps=1;this.timeOut=20;this._left=0;this._top=0;this._width=null;this._height=null;this._service=null;this._request=null;this._tiled=true;};TripzoomLib.GUI.Map.Map.prototype={initialize:function(){TripzoomLib.GUI.Map.Map.callBaseMethod(this,"initialize");_Map=this;this._element=document.createElement("DIV");this._element.id=TripzoomLib.Utils.createUniqueID("map");this._element.className="mapControl";this._element.style.position="relative";this._element.style.overflow="hidden";this._element.style.left="0px";this._element.style.top="0px";this._element.style.width="100%";this._element.style.height="100%";this._parent.innerHTML="";this._parent.className+=" mapControl";this._parent.appendChild(this._element);if(typeof(LocatienetLibService)!=="undefined"){this._service=new LocatienetLibService();this._service.set_defaultUserContext(this);this._service.set_defaultSucceededCallback(this.ServiceCallbackSucceeded);this._service.set_defaultFailedCallback(this.ServiceCallbackFailed);this._service.set_timeout(10000);}this._request=new TripzoomLib.Net.Request(this._RequestCompleted);this._request.set_sender(this);this._request.initialize();if(this.get_tiled()){this._tileview=$create(TripzoomLib.GUI.Map.TileView,{mapcontrol:this});}this._staticimagelayer=$create(TripzoomLib.GUI.Map.StaticImageLayer,{mapcontrol:this});this._navigation=$create(TripzoomLib.GUI.Map.Navigation,{mapcontrol:this,zindex:101});this._layermanager=$create(TripzoomLib.GUI.Map.LayerManager,{mapcontrol:this._navigation});this._mapview=$create(TripzoomLib.GUI.Map.MapView,{control:this,scale:5000,tiled:this._tiled});this._toolbar=$create(TripzoomLib.GUI.Map.ToolBar,{mapcontrol:this,left:10,top:10,zindex:1000});if((this.get_navigationtool()&TripzoomLib.NavigationTool.ZoomOut)==TripzoomLib.NavigationTool.ZoomOut){this._toolbar.createImageButton(TripzoomLib.NavigationAction.ZOOMOUT,TripzoomLib.Constants.IMAGE_URL+"map/button_zoom_out.gif",TripzoomLib.Resources.Resource.zoom_out,0,21);}if((this.get_navigationtool()&TripzoomLib.NavigationTool.ScaleBar)==TripzoomLib.NavigationTool.ScaleBar){this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_1,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-1.gif",TripzoomLib.Resources.Resource.country,19,21);this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_2,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-2.gif",TripzoomLib.Resources.Resource.province,29,21);this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_3,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-3.gif",TripzoomLib.Resources.Resource.region,39,21);this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_4,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-4.gif",TripzoomLib.Resources.Resource.city,49,21);this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_5,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-5.gif",TripzoomLib.Resources.Resource.neighbourhood,59,21);this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_6,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-6.gif",TripzoomLib.Resources.Resource.block,69,21);this._toolbar.createImageButton(TripzoomLib.NavigationAction.SCALEBAR_7,TripzoomLib.Constants.IMAGE_URL+"map/scalebar-7.gif",TripzoomLib.Resources.Resource.street,79,21);}if((this.get_navigationtool()&TripzoomLib.NavigationTool.ZoomIn)==TripzoomLib.NavigationTool.ZoomIn){this._toolbar.createImageButton(TripzoomLib.NavigationAction.ZOOMIN,TripzoomLib.Constants.IMAGE_URL+"map/button_zoom_in.gif",TripzoomLib.Resources.Resource.zoom_in,90,21);}if((this.get_navigationtool()&TripzoomLib.NavigationTool.Panning)==TripzoomLib.NavigationTool.Panning){this._toolbar.createImageButton(TripzoomLib.NavigationAction.NAVMODE_MOVE,TripzoomLib.Constants.IMAGE_URL+"map/button_move_mode.gif",TripzoomLib.Resources.Resource.pan,111,21);}if((this.get_navigationtool()&TripzoomLib.NavigationTool.Zooming)==TripzoomLib.NavigationTool.Zooming){this._toolbar.createImageButton(TripzoomLib.NavigationAction.NAVMODE_ZOOM,TripzoomLib.Constants.IMAGE_URL+"map/button_zoom_mode.png",TripzoomLib.Resources.Resource.zoom,132,21);}if((this.get_navigationtool()&TripzoomLib.NavigationTool.Edit)==TripzoomLib.NavigationTool.Edit){this._toolbar.createImageButton(TripzoomLib.NavigationAction.NAVMODE_EDIT,TripzoomLib.Constants.IMAGE_URL+"map/button_info_mode.gif",TripzoomLib.Resources.Resource.info,153,21,true);}this._mapstyletoolbar=$create(TripzoomLib.GUI.Map.ToolBar,{mapcontrol:this,top:10,right:40,zindex:101,classNameNonActive:"textButton",classNameActive:"textButton_Active"});mapbtn=this._mapstyletoolbar.createTextButton(TripzoomLib.NavigationAction.VIEWMODE_MAP,TripzoomLib.Resources.Resource.map,"",0,48);satbtn=this._mapstyletoolbar.createTextButton(TripzoomLib.NavigationAction.VIEWMODE_SAT,TripzoomLib.Resources.Resource.aerophoto,"",50,60);hybbtn=this._mapstyletoolbar.createTextButton(TripzoomLib.NavigationAction.VIEWMODE_HYB,TripzoomLib.Resources.Resource.hybrid,"",112,56);switch(this._viewmode){case TripzoomLib.MapViewMode.MAP:mapbtn.set_enabled(true);mapbtn.get_control().className="textButton_Active";break;case TripzoomLib.MapViewMode.AERIAL:satbtn.set_enabled(true);satbtn.get_control().className="textButton_Active";break;case TripzoomLib.MapViewMode.HYBRID:hybbtn.set_enabled(true);hybbtn.get_control().className="textButton_Active";break;}var a=Sys.UI.DomElement.getBounds(this._mapstyletoolbar.get_element());this._mapstyletoolbar.get_element().style.width=(a.width+2)+"px";this._overviewtoolbar=$create(TripzoomLib.GUI.Map.ToolBar,{mapcontrol:this,top:10,right:10,zindex:102});this._overviewtoolbar.createImageButton(TripzoomLib.NavigationAction.OVERVIEW,TripzoomLib.Constants.IMAGE_URL+"map/button_overview.gif",TripzoomLib.Resources.Resource.overviewmap,0,21);this._overviewmap=$create(TripzoomLib.GUI.Map.OverviewMap,{mapcontrol:this,zindex:101});this._overviewmap.set_visible(false);if(this.get_mapview().get_tiled()){this._copyright=$create(TripzoomLib.GUI.Map.Copyright,{mapcontrol:this,zindex:100});}this._scalebar=$create(TripzoomLib.GUI.Map.Scalebar,{mapcontrol:this,zindex:100});this._spinner=$create(TripzoomLib.GUI.Map.Spinner,{mapcontrol:this,zindex:100});this._spinner.set_visible(false);this._tooltip=$create(TripzoomLib.GUI.Map.ToolTip,{mapcontrol:this,zindex:100});if(!this._mouseClickDelegate){this._mouseClickDelegate=Function.createDelegate(this,this._mouseClick);}$addHandler(this._element,"click",this._mouseClickDelegate);if(!this._mouseOutDelegate){this._mouseOutDelegate=Function.createDelegate(this,this._mouseOut);}$addHandler(this._element,"mouseout",this._mouseOutDelegate);if(!this._resizeDelegate){this._resizeDelegate=Function.createDelegate(this,this._raiseResize);}$addHandler(window,"resize",this._resizeDelegate);$addHandler(document.body,"resize",this._resizeDelegate);var a=Sys.UI.DomElement.getBounds(this.get_parent());this.set_left(a.x);this.set_top(a.y);this.set_width(a.width);this.set_height(a.height);},_mouseClick:function(a){this._raiseClickEvent();},_mouseOut:function(a){document.body.style.cursor="default";this.isDragging=false;},_raiseResize:function(c){this._raiseResizeEvent();if(this._isLoaded&&this._resize){var d=Sys.UI.DomElement.getBounds(this.get_element());if(Math.abs(this.get_width()-d.width)>100||Math.abs(this.get_height()-d.height)>100){if(this.get_mapview().get_tiled()){this.get_mapview().createMap(this.get_mapview().get_viewrect().centerx(),this.get_mapview().get_viewrect().centery());this.get_layermanager().Update(this.get_mapview().get_viewrect());this.currentMapLayer=-this.currentMapLayer;var a=this.getTileLayer();a.innerHTML="";this.currentMapLayer=-this.currentMapLayer;this.Update();}else{this.set_rect(this.get_mapview().get_viewrect());}}}},dispose:function(){if(this._mouseClickDelegate){$removeHandler(this.get_element(),"click",this._mouseClickDelegate);}this._mouseClickDelegate=null;if(this._mouseOutDelegate){$removeHandler(this.get_element(),"mouseout",this._mouseOutDelegate);}this._mouseOutDelegate=null;if(this._resizeDelegate){$removeHandler(window,"resize",this._resizeDelegate);$removeHandler(document.body,"resize",this._resizeDelegate);}this._resizeDelegate=null;TripzoomLib.GUI.Map.Map.callBaseMethod(this,"dispose");},Resize:function(){this._raiseResize();},set_rect:function(c){rect=c;var d=Sys.UI.DomElement.getBounds(this.get_parent());this.set_left(d.x);this.set_top(d.y);this.set_width(d.width);this.set_height(d.height);if(!this.get_mapview()){this._mapview=$create(TripzoomLib.GUI.Map.MapView,{control:this});}else{this.get_mapview().isUpdated=false;}if(this.get_tiled()){var d=Sys.UI.DomElement.getBounds(this.get_element());mppix=Math.max(rect.Width()/d.width,rect.Height()/d.height);this.s=TripzoomLib.Utils.ZoomToScale(mppix*TripzoomLib.Constants.TILE_SIZE)*2;this.startx=d.width/2;this.starty=d.height/2;centerx=rect.centerx();centery=rect.centery();this.get_mapview().set_center(new TripzoomLib.Element.Point(centerx,centery));this.get_mapview().set_scale(this.s);this.get_mapview().update();this.currentMapLayer=-this.currentMapLayer;var a=this.getTileLayer();a.innerHTML="";this.currentMapLayer=-this.currentMapLayer;}else{this.get_mapview().set_viewrect(rect);}this.Update();this.isPressed=false;this.isDragging=false;this._raiseLoadEvent();},set_center:function(c,b){var a=this._staticimagelayer;a.set_visible(false);if(b!=null){this.s=TripzoomLib.Utils.ZoomToScale(b);this.get_mapview().set_scale(this.s);}this.get_mapview().createMap(c.x,c.y);if(this.get_mapview().get_tiled()){this.currentMapLayer=-this.currentMapLayer;var a=this.getTileLayer();a.innerHTML="";this.currentMapLayer=-this.currentMapLayer;}this.Update();this._raiseLoadEvent();},get_parent:function(){return this._parent;},set_parent:function(a){this._parent=a;},get_element:function(){return this._element;},get_spinner:function(){return this._spinner;},get_navigation:function(){return this._navigation;},get_toolbar:function(){return this._toolbar;},get_mapstyletoolbar:function(){return this._mapstyletoolbar;},get_overviewtoolbar:function(){return this._overviewtoolbar;},get_overviewmap:function(){return this._overviewmap;},get_layermanager:function(){return this._layermanager;},get_staticimagelayer:function(){return this._staticimagelayer;},get_media:function(){return this._media;},set_media:function(a){this._media=a;},get_language:function(){return this._language;},set_language:function(a){this._language=a;},set_ScrollWheel:function(a){this._ScrollWheel=a;},get_mapview:function(){return this._mapview;},get_top:function(){return this._top;},set_top:function(a){this._top=a;},get_left:function(){return this._left;},set_left:function(a){this._left=a;},get_tiled:function(){return this._tiled;},set_tiled:function(a){this._tiled=a;},get_layers:function(){return this._layers;},showRoute:function(a){if(arguments.length>0){if(this._showRoute!=a){this._showRoute=a;if(this._showRoute){if(this.get_layermanager()){this.get_layermanager().base.Clear();this.get_layermanager().AddLayer("ROUTE");}}else{if(this.get_layermanager()){this.get_layermanager().Remove("ROUTE");}}}}else{return this._showRoute;}},showTraffic:function(a){if(this.showTraffic.arguments.length>0){if(this._showTraffic!=a){this._showTraffic=a;if(this._showTraffic){if(this.get_layermanager()){this.get_layermanager().AddLayer("TRAFFIC");}}else{if(this.get_layermanager()){this.get_layermanager().Remove("TRAFFIC");}}}}else{return this._showTraffic;}},showRoadwork:function(a){if(this.showRoadwork.arguments.length>0){if(this._showRoadwork!=a){this._showRoadwork=a;if(this._showRoadwork){if(this.get_layermanager()){this.get_layermanager().AddLayer("ROADWORK");}}else{if(this.get_layermanager()){this.get_layermanager().Remove("ROADWORK");}}}}else{return this._showRoadwork;}},showRadar:function(a){if(this.showRadar.arguments.length>0){if(this._showRadar!=a){this._showRadar=a;}}else{return this._showRadar;}},showSatellite:function(c,d){this.get_mapview().isSatellite=c;this._showStreets=d;var a=Sys.UI.DomElement.getBounds(this.get_element());this.Zoom(1);},getTileLayer:function(){return $get(this._element.id+"_tileLayer"+this.currentMapLayer);},Update:function(b){this._staticimagelayer.set_left(0);this._staticimagelayer.set_top(0);this._staticimagelayer.clear();if(this.get_mapview().get_tiled()){var a=this.createLayer("LABELS",4,true);a.style.opacity="0.8";if(this._showRoute){a=this.createLayer("ROUTE",3);a.style.opacity="0.7";}if(this._showTraffic){a=this.createLayer("TRAFFIC",2);a.style.opacity="0.9";}if(this._showRoadwork){a=this.createLayer("ROADWORK",2);a.style.opacity="0.9";}if(this._showStreets){this.createLayer("STREET",1);}if(this._showRadar){if(this._service){this._service.GetBuienradarUrl();}}this._staticimagelayer.set_visible(true);if(this.get_layermanager()){this.get_layermanager().set_visible(true);this.get_layermanager().Update((!b)?this.get_mapview().get_viewrect():null);}if(this.get_overviewmap()){if(b){}else{this.get_overviewmap().Update(this.get_mapview().get_viewrect().centerx(),this.get_mapview().get_viewrect().centery());}}this.updateScalebar();this._raiseChangedEvent();}else{layers=["STANDARD"];if(this._showRoute){Array.add(layers,"ROUTE");}if(this._showTraffic){Array.add(layers,"TRAFFIC");}if(this._showRoadwork){Array.add(layers,"ROADWORK");}if(this._showStreets){Array.add(layers,"STREET");}Array.addRange(layers,this._layers);if(this.get_mapview().isSatellite){Array.add(layers,"SATELLITE");}this.get_layermanager().set_visible(false);this._request.CreateMap($create(TripzoomLib.Net.RequestSettings,{rect:(!b)?this.get_mapview().get_viewrect():null,width:this.get_width(),height:this.get_height(),layers:layers.join(","),language:this.get_language()}));if(this._showRadar){if(this._service){this._service.GetBuienradarUrl();}}}},setLocation:function(a,b){var c=TripzoomLib.Utils.getScrollXY();if(!a){a=this.get_width()/2+this.get_left();}if(!b){b=this.get_height()/2+this.get_top();}a=a-this.get_left()+c[0];b=b-this.get_top()+c[1];xcoord=Math.round(this.get_mapview().get_viewrect().left+this.get_mapview().get_viewrect().Width()*(a/this.get_width()));ycoord=Math.round(this.get_mapview().get_viewrect().top-this.get_mapview().get_viewrect().Height()*(b/this.get_height()));this._request.RevLocateLayer($create(TripzoomLib.Net.LocateRequestSettings,{location:$create(TripzoomLib.Element.Address,{xcoord:xcoord,ycoord:ycoord}),language:this.get_language()}));},_RequestCompleted:function(d,l,b){if(!l){return;}switch(l.toLowerCase()){case"createmap":var e=d._request.get_responseData();if(e){if(e.RectString){d.get_mapview().set_viewrect(new TripzoomLib.Element.Rect().set_rect(e.RectString));}if(e.ImageUrl){var j=$create(TripzoomLib.GUI.Map.StaticImage,{mapcontrol:d,url:e.ImageUrl,zindex:1,left:0,top:0,width:d.get_width(),height:d.get_height()});d._staticimagelayer.add_staticimage(j);d._staticimagelayer.set_visible(true);if(d.get_layermanager()){d.get_layermanager().Remove("locations");if(e.LayerObjects){var c=d.get_layermanager().AddLayer("locations");c.set_static(true);for(var a=0;a<e.LayerObjects.length;a++){var g=e.LayerObjects[a];c.Add($create(TripzoomLib.Element.LayerObject,{layer:c,geometry:new TripzoomLib.Element.Point(g.Location.point.x,g.Location.point.y),title:g.Title,text:g.Description,bitmap:g.Marker,url:g.Link}));}}d.get_layermanager().set_visible(true);d.get_layermanager().Update(d.get_mapview().get_viewrect());}if(d.get_overviewmap()){d.get_overviewmap().Update(d.get_mapview().get_viewrect());}d.updateScalebar();}}d._raiseChangedEvent();break;case"revlocatelayer":var e=d._request.get_responseData();if(e!=null&&e.LayerObjects!=null){var c=d.get_layermanager().Find("revlocate");if(!c){c=d.get_layermanager().AddLayer("revlocate");}else{c.Clear();}var f=null;c.set_static(true);for(var a=0;a<e.LayerObjects.length;a++){var g=e.LayerObjects[a];f=c.Add($create(TripzoomLib.Element.LayerObject,{layer:c,geometry:new TripzoomLib.Element.Point(g.Location.point.x,g.Location.point.y),title:g.Title,text:g.Description,bitmap:g.Marker,url:g.Link}));}d.get_layermanager().set_visible(true);d.get_layermanager().Update(d.get_mapview().get_viewrect());if(f){c.get_popup().show(f);}}break;case"error":var e=d._request.get_responseData();var k=Error.create(e.StatusDescription,{name:"TripzoomLib.GUI.Map.Map._RequestCompleted"});d._raiseErrorEvent(k);break;}},ServiceCallbackSucceeded:function(b,a,c){switch(c){case"GetBuienradarUrl":img=a.createLayer("RADAR",5,false,b);break;}},ServiceCallbackFailed:function(c,a,b){alert(c.message);},createLayer:function(e,b,a,c){x=0;y=0;w=this.get_width();h=this.get_height();switch(e){case"RADAR":var d=new TripzoomLib.Element.Rect(0,7544789,1207132,6250062);w=d.get_width()/this.get_mapview().get_mppixX();h=d.get_height()/this.get_mapview().get_mppixY();x=Math.round((-this.get_mapview().get_viewrect().left+d.left)/this.get_mapview().get_mppixX());y=Math.round((this.get_mapview().get_viewrect().top-d.top)/this.get_mapview().get_mppixY());break;case"STREET":c=TripzoomLib.Constants.EXTERN_URL+"image.ashx?rect="+this.get_mapview().get_viewrect().get_rect()+"&width="+this.get_width()+"&height="+this.get_height();if(e.length>0){c+="&layers="+e;}c+="&transparent=true";c+="&caching=false";c+="&language="+this._language;break;default:c=TripzoomLib.Constants.EXTERN_URL+"image.ashx?rect="+this.get_mapview().get_viewrect().get_rect()+"&width="+this.get_width()+"&height="+this.get_height();if(e.length>0){c+="&layers="+e;}c+="&transparent=true";if(a){c+="&caching=true&cachingtype=private";}else{c+="&caching=false";}c+="&language="+this._language;break;}staticimage=$create(TripzoomLib.GUI.Map.StaticImage,{mapcontrol:this,url:c,zindex:b,left:x,top:y,width:w,height:h});this._staticimagelayer.add_staticimage(staticimage);return staticimage.get_image();},updateScalebar:function(){var a=this.get_mapview().get_mppixX();this._scalebar.update(a);},Pan:function(f,c){step=(arguments.length==2)?1:arguments[2]+1;if(step==1){this.isBusy=true;if(this.get_mapview().get_tiled()){this.currentMapLayer=-this.currentMapLayer;var a=this.getTileLayer();a.innerHTML="";this.currentMapLayer=-this.currentMapLayer;}if(this._staticimagelayer){this._staticimagelayer.set_visible(false);}if(this.get_layermanager()){this.get_layermanager().set_visible(false);}}if(this.get_mapview().get_tiled()){var a=this.getTileLayer();a.style.left=this.get_mapview().dx+(f*(step/this.zoomsteps))+"px";a.style.top=this.get_mapview().dy+(c*(step/this.zoomsteps))+"px";}if(step<this.zoomsteps){window.setTimeout("_Map.Pan("+f+","+c+","+step+")",this.timeOut);}else{try{if(this.get_mapview().get_tiled()){this.get_mapview().updateMap(f,c);this.Update();}else{var b=this.get_mapview().get_viewrect();b.left-=(f)*b.get_width()/this.get_width();b.top+=(c)*b.get_height()/this.get_height();b.right-=(f)*b.get_width()/this.get_width();b.bottom+=(c)*b.get_height()/this.get_height();this.set_rect(b);}}catch(d){alert(d.message);}this.isBusy=false;}},Drag:function(b){var d=b.clientX-this.startx;var c=b.clientY-this.starty;if(this.get_mapview().get_tiled()){var a=this.getTileLayer();a.style.left=(this.get_mapview().dx+d)+"px";a.style.top=(this.get_mapview().dy+c)+"px";}var a=this._staticimagelayer;a.set_left(d);a.set_top(c);if(this.get_layermanager()){this.get_layermanager().get_element().style.left=(d)+"px";this.get_layermanager().get_element().style.top=(c)+"px";}if(this.get_tiled()&&this.get_overviewmap()){this.get_overviewmap().Update();}},stopDrag:function(c,a,b){if(a){this.startx=a;}if(b){this.starty=b;}var f=c.clientX-this.startx;var e=c.clientY-this.starty;if(this.get_mapview().get_tiled()){this.get_mapview().updateMap(f,e);this.Update();}else{var d=this.get_mapview().get_viewrect();d.left-=(f)*d.get_width()/this.get_width();d.top+=(e)*d.get_height()/this.get_height();d.right-=(f)*d.get_width()/this.get_width();d.bottom+=(e)*d.get_height()/this.get_height();this.set_rect(d);}this.isBusy=false;},ZoomTo:function(f){if(this.get_mapview().get_tiled()){var a=this._staticimagelayer;a.set_visible(false);this.get_mapview().set_scale(f);this.get_mapview().createMap(this.get_mapview().get_viewrect().centerx(),this.get_mapview().get_viewrect().centery());this.Update();}else{var e=this.get_mapview().get_viewrect();var b=e.centerx();var c=e.centery();var d=new TripzoomLib.Element.Rect();d.left=Math.round(b-f);d.top=Math.round(c+f);d.right=Math.round(b+f);d.bottom=Math.round(c-f);this.set_rect(d);}},Zoom:function(f,b,c){this.isBusy=true;var g=TripzoomLib.Utils.getScrollXY();if(!b){b=this.get_width()/2+this.get_left();}if(!c){c=this.get_height()/2+this.get_top();}b=b-this.get_left()+g[0];c=c-this.get_top()+g[1];if(this.get_mapview().get_tiled()){if(this.get_mapview().get_scale()/f<TripzoomLib.Constants.MIN_SCALE){this.isBusy=false;return;}else{this.get_mapview().set_scale(this.get_mapview().get_scale()/f);}this._mapviewTmp={left:this.get_mapview().get_viewrect().left,top:this.get_mapview().get_viewrect().top,x0:this.get_mapview().x0,y0:this.get_mapview().y0,dx:this.get_mapview().dx,dy:this.get_mapview().dy,mppix:this.get_mapview().mppix};this.get_mapview().createMap(this.get_mapview().get_viewrect().left+b*this.get_mapview().mppix,this.get_mapview().get_viewrect().top-c*this.get_mapview().mppix);if(this.get_layermanager()){this.get_layermanager().set_visible(false);}var a=this._staticimagelayer;a.set_visible(false);a=this.getTileLayer();a.style.zIndex=0;this.currentMapLayer=-this.currentMapLayer;a=this.getTileLayer();a.style.zIndex=1;xcoord=this._mapviewTmp.left+b*this._mapviewTmp.mppix;ycoord=this._mapviewTmp.top-c*this._mapviewTmp.mppix;dx=this.get_width()/2-f*((xcoord-this._mapviewTmp.x0)/this._mapviewTmp.mppix);dy=this.get_height()/2-f*((this._mapviewTmp.y0-ycoord)/this._mapviewTmp.mppix);var a=this.getTileLayer();a.innerHTML="";a.style.zIndex=0;this.currentMapLayer=-this.currentMapLayer;a=this.getTileLayer();a.style.zIndex=1;this.Update();}else{var e=this.get_mapview().get_viewrect();var d=new TripzoomLib.Element.Rect();b=e.left+(b)*e.get_width()/this.get_width();c=e.bottom+(this.get_height()-c)*e.get_height()/this.get_height();d.left=Math.round(b-0.5*e.get_width()/f);d.top=Math.round(c+0.5*e.get_height()/f);d.right=Math.round(b+0.5*e.get_width()/f);d.bottom=Math.round(c-0.5*e.get_height()/f);this.set_rect(d);}this.isBusy=false;},get_navigationtool:function(){return this._navigationtool;},set_navigationtool:function(a){this._navigationtool=a;},get_tiled:function(){return this._tiled;},set_tiled:function(a){this._tiled=a;},get_width:function(){return this._width;},set_width:function(a){this._width=a;},get_height:function(){return this._height;},set_height:function(a){this._height=a;},get_viewmode:function(){return this._viewmode;},set_viewmode:function(a){if(this._viewmode!=a){this._viewmode=a;switch(this._viewmode){case TripzoomLib.MapViewMode.MAP:this.set_navaction(TripzoomLib.NavigationAction.VIEWMODE_MAP);break;case TripzoomLib.MapViewMode.AERIAL:this.set_navaction(TripzoomLib.NavigationAction.VIEWMODE_SAT);break;case TripzoomLib.MapViewMode.HYBRID:this.set_navaction(TripzoomLib.NavigationAction.VIEWMODE_HYB);break;}}},get_navaction:function(){return this._navaction;},set_navaction:function(a){this._navaction=a;switch(this._navaction){case TripzoomLib.NavigationAction.ZOOMOUT:this.Zoom(0.5);break;case TripzoomLib.NavigationAction.SCALEBAR_7:this.ZoomTo(500);break;case TripzoomLib.NavigationAction.SCALEBAR_6:this.ZoomTo(1000);break;case TripzoomLib.NavigationAction.SCALEBAR_5:this.ZoomTo(5000);break;case TripzoomLib.NavigationAction.SCALEBAR_4:this.ZoomTo(10000);break;case TripzoomLib.NavigationAction.SCALEBAR_3:this.ZoomTo(50000);break;case TripzoomLib.NavigationAction.SCALEBAR_2:this.ZoomTo(100000);break;case TripzoomLib.NavigationAction.SCALEBAR_1:this.ZoomTo(500000);break;case TripzoomLib.NavigationAction.ZOOMIN:this.Zoom(2);break;case TripzoomLib.NavigationAction.NAVMODE_ZOOM:this._navigation.get_zoombox().set_enabled(true);this._navigation.set_mode(TripzoomLib.NavigationMode.ZOOMING);break;case TripzoomLib.NavigationAction.NAVMODE_MOVE:this._navigation.get_zoombox().set_enabled(false);this._navigation.set_mode(TripzoomLib.NavigationMode.MOVING);break;case TripzoomLib.NavigationAction.NAVMODE_EDIT:this._navigation.get_zoombox().set_enabled(false);this._navigation.set_mode(TripzoomLib.NavigationMode.EDITING);break;case TripzoomLib.NavigationAction.OVERVIEW:this.get_overviewmap().setVisible(!this.get_overviewmap().isVisible);break;case TripzoomLib.NavigationAction.VIEWMODE_MAP:if(this.get_mapview().get_tiled()){this._copyright.set_text(TripzoomLib.Constants.COPYRIGHT);}this.showSatellite(false,false);break;case TripzoomLib.NavigationAction.VIEWMODE_SAT:if(this.get_mapview().get_tiled()){this._copyright.set_text(TripzoomLib.Constants.COPYRIGHT_EUROSENSE);}this.showSatellite(true,false);break;case TripzoomLib.NavigationAction.VIEWMODE_HYB:if(this.get_mapview().get_tiled()){this._copyright.set_text(TripzoomLib.Constants.COPYRIGHT_EUROSENSE);}this.showSatellite(true,true);break;}switch(this._navigation.get_mode()){case TripzoomLib.NavigationMode.ZOOMING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/magnify.cur'), auto";break;case TripzoomLib.NavigationMode.MOVING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/openhand.cur'), auto";break;case TripzoomLib.NavigationMode.EDITING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/pin.cur'), auto";break;}},add_changed:function(a){this.get_events().addHandler("changed",a);},remove_changed:function(a){this.get_events().removeHandler("changed",a);},_raiseChangedEvent:function(){handler=this.get_events().getHandler("changed");if(handler){handler(this,Sys.EventArgs.Empty);}},add_load:function(a){this.get_events().addHandler("load",a);},remove_load:function(a){this.get_events().removeHandler("load",a);},_raiseLoadEvent:function(){if(!this._isLoaded){this._isLoaded=true;handler=this.get_events().getHandler("load");if(handler){handler(this,Sys.EventArgs.Empty);}}},add_resize:function(a){this.get_events().addHandler("resize",a);},remove_resize:function(a){this.get_events().removeHandler("resize",a);},_raiseResizeEvent:function(){if(!this._isLoaded){this._isLoaded=true;handler=this.get_events().getHandler("resize");if(handler){handler(this,Sys.EventArgs.Empty);}}},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);},_raiseClickEvent:function(){handler=this.get_events().getHandler("click");if(handler){handler(this,Sys.EventArgs.Empty);}},add_error:function(a){this.get_events().addHandler("error",a);},remove_error:function(a){this.get_events().removeHandler("error",a);},_raiseErrorEvent:function(a){handler=this.get_events().getHandler("error");if(handler){handler(this,a);}}};TripzoomLib.GUI.Map.Map.registerClass("TripzoomLib.GUI.Map.Map",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.BaseControl=function(a){TripzoomLib.GUI.Map.BaseControl.initializeBase(this);this._mapcontrol=a;this._element=null;this._visible=true;this._zindex=0;this._parent=null;};TripzoomLib.GUI.Map.BaseControl.prototype={initialize:function(){TripzoomLib.GUI.Map.BaseControl.callBaseMethod(this,"initialize");this._element=document.createElement("DIV");if(this._zindex>0){this._element.style.zIndex=this._zindex;}if(!this._parent){this._parent=this._mapcontrol.get_element();}this._parent.appendChild(this._element);this.add_propertyChanged(this._onPropertyChanged);},dispose:function(){this._raiseUnload();this.remove_propertyChanged(this._onPropertyChanged);TripzoomLib.GUI.Map.BaseControl.callBaseMethod(this,"dispose");},_onPropertyChanged:function(a,b){switch(b.get_propertyName()){case"visible":a.get_element().style.display=(a.get_visible())?"block":"none";break;}},get_element:function(){return this._element;},set_parent:function(a){this._parent=a;},get_parent:function(){return this._parent;},get_mapcontrol:function(){return this._mapcontrol;},set_mapcontrol:function(a){this._mapcontrol=a;},get_zindex:function(){return this._zindex;},set_zindex:function(a){this._zindex=a;},set_visible:function(a){if(this._visible!=a){this._visible=a;this.raisePropertyChanged("visible");}},get_visible:function(){return this._visible;},Update:function(){this._raiseUpdated();},_raiseUpdated:function(){handler=this.get_events().getHandler("updated");if(handler){handler(this,Sys.EventArgs.Empty);}},add_updated:function(a){this.get_events().addHandler("updated",a);},remove_updated:function(a){this.get_events().removeHandler("updated",a);},_raiseUnload:function(){handler=this.get_events().getHandler("unload");if(handler){handler(this,Sys.EventArgs.Empty);}},add_unload:function(a){this.get_events().addHandler("unload",a);},remove_unload:function(a){this.get_events().removeHandler("unload",a);}};TripzoomLib.GUI.Map.BaseControl.registerClass("TripzoomLib.GUI.Map.BaseControl",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.Scalebar=function(a){TripzoomLib.GUI.Map.Scalebar.initializeBase(this,[a]);this._scalevalue=null;this._scaleimg=null;};TripzoomLib.GUI.Map.Scalebar.prototype={initialize:function(){TripzoomLib.GUI.Map.Scalebar.callBaseMethod(this,"initialize");element=this.get_element();element.className="scalebarLayer";img=document.createElement("IMG");img.src=TripzoomLib.Constants.IMAGE_URL+"map/scaletick.gif";img.style.verticalAlign="middle";element.appendChild(img);this._scaleimg=document.createElement("IMG");this._scaleimg.src=TripzoomLib.Constants.IMAGE_URL+"map/scalepixel.gif";this._scaleimg.style.height="1px";this._scaleimg.style.verticalAlign="middle";element.appendChild(this._scaleimg);img=document.createElement("IMG");img.src=TripzoomLib.Constants.IMAGE_URL+"map/scaletick.gif";img.style.verticalAlign="middle";element.appendChild(img);this._scalevalue=document.createElement("SPAN");this._scalevalue.style.marginLeft="4px";element.appendChild(this._scalevalue);},dispose:function(){TripzoomLib.GUI.Map.Scalebar.callBaseMethod(this,"dispose");},update:function(a){scalebar=new Array(10,50,100,200,500,1000,5000,10000,20000,50000,100000,200000,5000000,1000000,2000000,3000000,4000000,9999000);for(i=0;i<scalebar.length;i++){pixels=scalebar[i]/a;barscale=scalebar[i];if(pixels>30&&pixels<250){break;}}this._scaleimg.style.width=pixels+"px";this._scalevalue.innerHTML=(barscale<1000)?barscale+" m":barscale/1000+" km";}};TripzoomLib.GUI.Map.Scalebar.registerClass("TripzoomLib.GUI.Map.Scalebar",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.Copyright=function(a){TripzoomLib.GUI.Map.Copyright.initializeBase(this,[a]);this._text=TripzoomLib.Constants.COPYRIGHT;};TripzoomLib.GUI.Map.Copyright.prototype={initialize:function(){TripzoomLib.GUI.Map.Copyright.callBaseMethod(this,"initialize");element=this.get_element();element.className="copyrightLayer";element.innerHTML=this.get_text();},dispose:function(){TripzoomLib.GUI.Map.Copyright.callBaseMethod(this,"dispose");},get_text:function(){return this._text;},set_text:function(a){if(this._text!=a){this._text=a;this.get_element().innerHTML=this._text;}}};TripzoomLib.GUI.Map.Copyright.registerClass("TripzoomLib.GUI.Map.Copyright",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.Zoombox=function(a){TripzoomLib.GUI.Map.Zoombox.initializeBase(this,[a]);this._rect=null;this._enabled=false;this._isDragging=false;this._mouseDownDelegate=Function.createDelegate(this,this._mouseDownHandler);this._mouseMoveDelegate=Function.createDelegate(this,this._mouseMoveHandler);this._mouseUpDelegate=Function.createDelegate(this,this._mouseUpHandler);this._mouseClickDelegate=Function.createDelegate(this,this._mouseClickHandler);};TripzoomLib.GUI.Map.Zoombox.prototype={initialize:function(){TripzoomLib.GUI.Map.Zoombox.callBaseMethod(this,"initialize");this.get_element().className="Zoombox";if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){this.get_element().style.backgroundColor="transparent";}this._rect=new TripzoomLib.Element.Rect();$addHandler(this.get_mapcontrol().get_element(),"mousedown",this._mouseDownDelegate);$addHandler(this.get_mapcontrol().get_element(),"mouseup",this._mouseUpDelegate);$addHandler(this.get_mapcontrol().get_element(),"mousemove",this._mouseMoveDelegate);$addHandler(this.get_mapcontrol().get_element(),"click",this._mouseClickDelegate);},dispose:function(){$removeHandler(this.get_mapcontrol().get_element(),"mousedown",this._mouseDownDelegate);$removeHandler(this.get_mapcontrol().get_element(),"mouseup",this._mouseUpDelegate);$removeHandler(this.get_mapcontrol().get_element(),"mousemove",this._mouseMoveDelegate);$removeHandler(this.get_mapcontrol().get_element(),"click",this._mouseClickDelegate);TripzoomLib.GUI.Map.Zoombox.callBaseMethod(this,"dispose");},get_enabled:function(){return this._enabled;},set_enabled:function(a){this._enabled=a;},get_rect:function(){return this._rect;},_mouseClickHandler:function(a){if(!this._enabled){return;}this.Start(a);this.Stop(a);},_mouseDownHandler:function(a){if(!this._enabled){return;}this.Start(a);},_mouseMoveHandler:function(a){if(!this._enabled){return;}this.Move(a);},_mouseUpHandler:function(b){if(!this._enabled){return;}if(this.Stop(b)){var a=this.get_events().getHandler(b.type);if(a){a(this,b);}}},Start:function(a){var b=TripzoomLib.Utils.getScrollXY();this._rect.left=a.clientX+b[0];this._rect.top=a.clientY+b[1];this._rect.right=a.clientX+b[0];this._rect.bottom=a.clientY+b[1];this._isDragging=true;},Move:function(b){if(!this._isDragging){return;}this.get_mapcontrol().get_mapcontrol().get_layermanager().get_popup().hide();var a=this.get_mapcontrol().get_mapcontrol();var c=TripzoomLib.Utils.getScrollXY();this._rect.right=b.clientX+c[0];this._rect.bottom=b.clientY+c[1];this.get_element().style.visibility="visible";if(this._rect.right>this._rect.left){this.get_element().style.left=(this._rect.left-a.get_left())+"px";}else{this.get_element().style.left=(this._rect.right-a.get_left())+"px";this.get_element().style.right=(this._rect.left-a.get_left())+"px";}if(this._rect.top<this._rect.bottom){this.get_element().style.top=(this._rect.top-a.get_top())+"px";}else{this.get_element().style.top=(this._rect.bottom-a.get_top())+"px";this.get_element().style.bottom=(this._rect.top-a.get_top())+"px";}this.get_element().style.width=this._rect.Width()+"px";this.get_element().style.height=this._rect.Height()+"px";},Stop:function(a){if(this._isDragging){var b=TripzoomLib.Utils.getScrollXY();this._rect.right=a.clientX+b[0];this._rect.bottom=a.clientY+b[1];this.get_element().style.width="0px";this.get_element().style.height="0px";this.get_element().style.visibility="hidden";this._isDragging=false;return true;}return false;},add_mousedown:function(a){this.get_events().addHandler("mousedown",a);},remove_mousedown:function(a){this.get_events().removeHandler("mousedown",a);},add_mousemove:function(a){this.get_events().addHandler("mousemove",a);},remove_mousemove:function(a){this.get_events().removeHandler("mousemove",a);},add_mouseup:function(a){this.get_events().addHandler("mouseup",a);},remove_mouseup:function(a){this.get_events().removeHandler("mouseup",a);}};TripzoomLib.GUI.Map.Zoombox.registerClass("TripzoomLib.GUI.Map.Zoombox",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.ToolTip=function(a){TripzoomLib.GUI.Map.ToolTip.initializeBase(this,[a]);};TripzoomLib.GUI.Map.ToolTip.prototype={initialize:function(){TripzoomLib.GUI.Map.ToolTip.callBaseMethod(this,"initialize");element=this.get_element();element.className="tooltipLayer";element.innerHTML='<table cellpadding="2" cellspacing="0" border="0"><tr><td><img src="'+TripzoomLib.Constants.IMAGE_URL+'map/tooltip.gif" alt=""/></td><td style="padding-left:10px;vertical-align:top;"><div id="tooltiptextDIV" name="tooltiptextDIV"></div></td></tr></table>';element.style.zIndex=200;element.style.width="250px";},dispose:function(){TripzoomLib.GUI.Map.ToolTip.callBaseMethod(this,"dispose");}};TripzoomLib.GUI.Map.ToolTip.registerClass("TripzoomLib.GUI.Map.ToolTip",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.Navigation=function(a){TripzoomLib.GUI.Map.Navigation.initializeBase(this,[a]);this._mode=TripzoomLib.NavigationMode.MOVING;this._zoombox=null;this._navigationbehavior=null;};TripzoomLib.GUI.Map.Navigation.prototype={initialize:function(){TripzoomLib.GUI.Map.Navigation.callBaseMethod(this,"initialize");var a=this.get_element();a.className="layer";a.innerHTML='<table width="100%" height="100%" cellpadding="0" cellspacing="0"><tr><td>&nbsp;</td></tr></table>';this._navigationbehavior=$create(TripzoomLib.GUI.Map.NavigationBehavior,{control:this},null,null,a);this._zoombox=$create(TripzoomLib.GUI.Map.Zoombox,{mapcontrol:this,enabled:true});this.set_mode(TripzoomLib.NavigationMode.ZOOMING);},dispose:function(){TripzoomLib.GUI.Map.Navigation.callBaseMethod(this,"dispose");},get_zoombox:function(){return this._zoombox;},get_mode:function(){return this._mode;},set_mode:function(a){if(this._mode!=a){this._mode=a;}}};TripzoomLib.GUI.Map.Navigation.registerClass("TripzoomLib.GUI.Map.Navigation",TripzoomLib.GUI.Map.BaseControl);TripzoomLib.GUI.Map.NavigationBehavior=function(a){TripzoomLib.GUI.Map.NavigationBehavior.initializeBase(this,[a]);this._control=null;this._currentNavigationAction=null;this._lastAction=null;this._CommonEventDelegate=Function.createDelegate(this,this._CommonEventHandler);this._DisableEventDelegate=Function.createDelegate(this,this._DisableEventHandler);};TripzoomLib.GUI.Map.NavigationBehavior.prototype={initialize:function(){TripzoomLib.GUI.Map.NavigationBehavior.callBaseMethod(this,"initialize");$addHandler(this.get_element(),"mousedown",this._CommonEventDelegate);$addHandler(this.get_element(),"mouseover",this._CommonEventDelegate);$addHandler(this.get_element(),"mouseup",this._CommonEventDelegate);$addHandler(this.get_element(),"mousemove",this._CommonEventDelegate);$addHandler(this.get_element(),"mouseout",this._CommonEventDelegate);$addHandler(this.get_element(),"click",this._CommonEventDelegate);$addHandler(this.get_element(),"selectstart",this._DisableEventDelegate);$addHandler(this.get_element(),"contextmenu",this._DisableEventDelegate);},dispose:function(){$removeHandler(this.get_element(),"mouseup",this._CommonEventDelegate);$removeHandler(this.get_element(),"mousedown",this._CommonEventDelegate);$removeHandler(this.get_element(),"mousemove",this._CommonEventDelegate);$removeHandler(this.get_element(),"mouseout",this._CommonEventDelegate);$removeHandler(this.get_element(),"click",this._CommonEventDelegate);$removeHandler(this.get_element(),"selectstart",this._DisableEventDelegate);$removeHandler(this.get_element(),"contextmenu",this._DisableEventDelegate);TripzoomLib.GUI.Map.NavigationBehavior.callBaseMethod(this,"dispose");},get_control:function(){return this._control;},set_control:function(a){this._control=a;},get_lastAction:function(){return this._lastAction;},_DisableEventHandler:function(a){a.preventDefault();a.stopPropagation();return false;},_CommonEventHandler:function(c){var a=this._control.get_mapcontrol();if(a.isBusy){return;}var d=Sys.UI.DomElement.getBounds(a.get_element());a.set_left(d.x);a.set_top(d.y);a.set_width(d.width);a.set_height(d.height);switch(c.type){case"mousedown":this._mouseDown(this,c);break;case"mousemove":this._mouseMove(this,c);break;case"mouseover":this._mouseOver(this,c);break;case"mouseup":TripzoomLib.Net.RequestManager.Abort();this._mouseUp(this,c);break;case"dblclick":TripzoomLib.Net.RequestManager.Abort();this._doubleClick(this,c);break;case"click":this._mouseClick(this,c);break;}var e=this.get_events().getHandler(c.type);if(e){e(this,c);}c.preventDefault();},add_mousedown:function(a){this.get_events().addHandler("mousedown",a);},remove_mousedown:function(a){this.get_events().removeHandler("mousedown",a);},add_mousemove:function(a){this.get_events().addHandler("mousemove",a);},remove_mousemove:function(a){this.get_events().removeHandler("mousemove",a);},add_mouseup:function(a){this.get_events().addHandler("mouseup",a);},remove_mouseup:function(a){this.get_events().removeHandler("mouseup",a);},add_mouseover:function(a){this.get_events().addHandler("mouseover",a);},remove_mouseover:function(a){this.get_events().removeHandler("mouseover",a);},add_mouseout:function(a){this.get_events().addHandler("mouseout",a);},remove_mouseout:function(a){this.get_events().removeHandler("mouseout",a);},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);},add_dblclick:function(a){this.get_events().addHandler("dblclick",a);},remove_dblclick:function(a){this.get_events().removeHandler("dblclick",a);},_mouseDown:function(a,b){if(!this.get_control().get_mode()||this.get_control().get_mode()==TripzoomLib.NavigationMode.MOVING){document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/closedhand.cur'), auto";this.get_control().set_mode(TripzoomLib.NavigationMode.MOVING);}else{if(this.get_control().get_mode()==TripzoomLib.NavigationMode.ZOOMING){}}this.get_control().get_mapcontrol().startx=b.clientX;this.get_control().get_mapcontrol().starty=b.clientY;this.get_control().get_mapcontrol().isPressed=true;},_mouseMove:function(a,b){if(this.get_control().get_mapcontrol().isPressed){if(!this.get_control().get_mapcontrol().isDragging){if(this.get_control().get_mode()==TripzoomLib.NavigationMode.MOVING){dist=TripzoomLib.Utils.Distance(this.get_control().get_mapcontrol().startx,b.clientX,this.get_control().get_mapcontrol().starty,b.clientY);if(dist>6){this.get_control().get_mapcontrol().isDragging=true;}}}if(this.get_control().get_mapcontrol().isDragging){this.get_control().get_mapcontrol().get_layermanager().get_popup().hide();this.get_control().get_mapcontrol().Drag(b);}}else{if(!this.get_control().get_mapcontrol().get_layermanager().get_activeAreaHotspot()&&document.body.style.cursor=="pointer"){switch(this.get_control().get_mode()){case TripzoomLib.NavigationMode.ZOOMING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/magnify.cur'), auto";break;case TripzoomLib.NavigationMode.MOVING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/openhand.cur'), auto";break;case TripzoomLib.NavigationMode.EDITING:document.body.style.cursor="crosshair";break;}}}},_mouseOver:function(a,b){switch(this.get_control().get_mode()){case TripzoomLib.NavigationMode.ZOOMING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/magnify.cur'), auto";break;case TripzoomLib.NavigationMode.MOVING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/openhand.cur'), auto";break;case TripzoomLib.NavigationMode.EDITING:document.body.style.cursor="crosshair";break;}},_mouseUp:function(h,b){var g=this.get_control().get_mapcontrol();if(!g.isPressed){return;}var a=g.isDragging;g.isDragging=false;g.isPressed=false;if(b.button!=Sys.UI.MouseButton.rightButton&&!a){if(this.get_control().get_mapcontrol().get_layermanager().get_activeAreaHotspot()){var f=this.get_control().get_mapcontrol().get_layermanager().get_activeAreaHotspot();var c=this.get_control().get_mapcontrol();f.set_position(new TripzoomLib.Element.Point(b.clientX-c.get_left(),b.clientY-c.get_top()));f.get_layer().get_popup().show(f);this.get_control().get_mapcontrol().get_layermanager().set_activeAreaHotspot(null);return;}}switch(this.get_control().get_mode()){case TripzoomLib.NavigationMode.ZOOMING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/magnify.cur'), auto";break;case TripzoomLib.NavigationMode.MOVING:document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/openhand.cur'), auto";break;case TripzoomLib.NavigationMode.EDITING:document.body.style.cursor="crosshair";break;}switch(this.get_control().get_mode()){case TripzoomLib.NavigationMode.EDITING:g.setLocation(b.clientX,b.clientY);break;case TripzoomLib.NavigationMode.ZOOMING:if(b.button==Sys.UI.MouseButton.rightButton){g.Zoom(0.5,b.clientX,b.clientY);}else{if(b.button==Sys.UI.MouseButton.leftButton){if(this.get_control().get_zoombox().get_rect().Width()>10&&this.get_control().get_zoombox().get_rect().Height()>10){rect=this.get_control().get_zoombox().get_rect();if(g.get_mapview().get_tiled()){scale=TripzoomLib.Utils.ZoomToScale((Math.min(rect.Width(),rect.Height())/g.get_width())*TripzoomLib.Constants.TILE_SIZE*g.get_mapview().mppix);g.Zoom(g.get_mapview().get_scale()/scale,rect.centerx(),rect.centery());}else{var d=g.get_mapview().get_viewrect();var e=new TripzoomLib.Element.Rect();e.left=d.left+(rect.left-g.get_left())*d.get_width()/g.get_width();e.top=d.bottom+(g.get_height()-(rect.top-g.get_top()))*d.get_height()/g.get_height();e.right=d.left+(rect.right-g.get_left())*d.get_width()/g.get_width();e.bottom=d.bottom+(g.get_height()-(rect.bottom-g.get_top()))*d.get_height()/g.get_height();g.set_rect(e);}}else{rect=this.get_control().get_zoombox().get_rect();dx=-rect.centerx()+g.get_width()/2+g.get_left();dy=-rect.centery()+g.get_height()/2+g.get_top();g.Pan(dx,dy);}}}break;case TripzoomLib.NavigationMode.MOVING:if(a){g.stopDrag(b);}else{if(b.button==Sys.UI.MouseButton.rightButton){g.Zoom(0.5,b.clientX,b.clientY);}else{if((b.button==Sys.UI.MouseButton.leftButton)){g.Zoom(2,b.clientX,b.clientY);}}}break;}this._lastAction=this.get_control().get_mode();},_doubleClick:function(a,b){a.Zoom(2,this.get_control().get_mapcontrol().get_width()/2,this.get_control().get_mapcontrol().get_height()/2,false);this._lastAction=TripzoomLib.NavigationMode.ZOOMING;},_mouseClick:function(a){sender=this.get_control();if(!sender.isPressed){return;}var b=TripzoomLib.Utils.getScrollXY();dx=-(a.clientX+b[0]-this.get_control().get_mapcontrol().offsetX-this.get_control().get_mapcontrol().get_width()/2)*this.get_control().get_mapcontrol().get_mapview().mppix/this.get_control().get_mapcontrol().get_mapview().mppix;dy=-(a.clientY+b[1]-this.get_control().get_mapcontrol().offsetY-this.get_control().get_mapcontrol().get_height()/2)*this.get_control().get_mapcontrol().get_mapview().mppix/this.get_control().get_mapcontrol().get_mapview().mppix;this.get_control().get_mapcontrol().Zoom(dx,dy);this.get_control().get_mapcontrol().isPressed=false;this.get_control().get_mapcontrol().isDragging=false;this._lastAction=TripzoomLib.NavigationMode.ZOOMING;},_mouseWheel:function(a,b){var c=true;if(this.get_control().get_mapcontrol()._ScrollWheel){if(this.get_control().get_mapcontrol().eventsEnabled){if(this.get_control().get_mapcontrol().wheelDelta>0){this.get_control().get_mapcontrol().Zoom(2,this.get_control().get_mapcontrol().get_width()/2,this.get_control().get_mapcontrol().get_height()/2,false);}else{this.get_control().get_mapcontrol().Zoom(0.5,this.get_control().get_mapcontrol().get_width()/2,this.get_control().get_mapcontrol().get_height()/2,false);}}c=false;}return c;}};TripzoomLib.GUI.Map.NavigationBehavior.registerClass("TripzoomLib.GUI.Map.NavigationBehavior",Sys.UI.Behavior);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.StaticImageLayer=function(a){TripzoomLib.GUI.Map.StaticImageLayer.initializeBase(this,[a]);this._images=[];};TripzoomLib.GUI.Map.StaticImageLayer.prototype={initialize:function(){TripzoomLib.GUI.Map.StaticImageLayer.callBaseMethod(this,"initialize");this.get_element().className="layer";this.get_element().style.overflow="visible";},clear:function(){for(var a=0;a<this._images.length;a++){this._images[a].get_element().parentNode.removeChild(this._images[a].get_element());}Array.clear(this._images);},add_staticimage:function(a){Array.add(this._images,a);this.get_element().appendChild(a.get_element());},remove_staticimage:function(a){Array.remove(this._images,a);if(a&&a.get_element()&&a.get_element().parentNode){a.get_element().parentNode.removeChild(a.get_element());}},set_left:function(a){this.get_element().style.left=a+"px";},set_top:function(a){this.get_element().style.top=a+"px";},update:function(){for(var a=0;a<this._images.length;a++){this._images[a].reload();}}};TripzoomLib.GUI.Map.StaticImageLayer.registerClass("TripzoomLib.GUI.Map.StaticImageLayer",TripzoomLib.GUI.Map.BaseControl);TripzoomLib.GUI.Map.StaticImage=function(a){TripzoomLib.GUI.Map.StaticImage.initializeBase(this,[a]);this._url=null;this._left=0;this._top=0;this._width=null;this._height=null;this._image=null;};TripzoomLib.GUI.Map.StaticImage.prototype={initialize:function(){TripzoomLib.GUI.Map.StaticImage.callBaseMethod(this,"initialize");element=this.get_element();element.className="layer";element.style.zIndex=this._zindex;element.style.left=this._left+"px";element.style.top=this._top+"px";if(this._width){element.style.width=this._width+"px";}if(this._height){element.style.height=this._height+"px";}if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<4){this._image=element.appendChild(document.createElement("DIV"));this._image.style.position="absolute";var a=Sys.UI.DomElement.getBounds(element);img=new Image();img.src=this._url;this._image.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"', sizingMethod='scale')";this._image.style.width="100%";this._image.style.height="100%";}else{this._image=element.appendChild(document.createElement("IMG"));this._image.src=this._url;var a=Sys.UI.DomElement.getBounds(this.get_element());this._image.style.width=a.width+"px";if(a.height>50){this._image.style.height=a.height+"px";}else{this._image.style.height="100%";}}},dispose:function(){TripzoomLib.GUI.Map.StaticImage.callBaseMethod(this,"dispose");},get_left:function(){return this._left;},set_left:function(a){this._left=a;},get_top:function(){return this._top;},set_top:function(a){this._top=a;},get_width:function(){return this._width;},set_width:function(a){this._width=a;},get_height:function(){return this._height;},set_height:function(a){this._height=a;},get_url:function(){return this._url;},set_url:function(a){if(this._url!=a){this._url=a;}},reload:function(){element=this.get_element();element.innerHTML="";if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<4){this._image=element.appendChild(document.createElement("DIV"));this._image.style.position="absolute";var a=Sys.UI.DomElement.getBounds(element);img=new Image();img.src=this._url;this._image.style.width="100%";this._image.style.height="100%";}else{this._image=element.appendChild(document.createElement("IMG"));this._image.src=this._url;var a=Sys.UI.DomElement.getBounds(this.get_element());this._image.style.width=a.width+"px";this._image.style.height=a.height+"px";}},get_image:function(){return this._image;}};TripzoomLib.GUI.Map.StaticImage.registerClass("TripzoomLib.GUI.Map.StaticImage",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.ToolBar=function(a){TripzoomLib.GUI.Map.ToolBar.initializeBase(this,[a]);this._top=NaN;this._left=NaN;this._right=NaN;this._bottom=NaN;this._classNameActive="";this._classNameNonActive="";this._tools=[];this._mouseClickDelegate=Function.createDelegate(this,this._mouseClick);};TripzoomLib.GUI.Map.ToolBar.prototype={initialize:function(){TripzoomLib.GUI.Map.ToolBar.callBaseMethod(this,"initialize");element=this.get_element();element.style.position="absolute";element.style.border="1px solid gray";element.style.backgroundColor="white";if(!isNaN(this._left)){element.style.left=this._left+"px";}if(!isNaN(this._top)){element.style.top=this._top+"px";}if(!isNaN(this._right)){element.style.right=this._right+"px";}if(!isNaN(this._bottom)){element.style.bottom=this._bottom+"px";}element.style.width="0px";element.style.height="21px";element.style.opacity="0.7";element.style.filter="Alpha(Opacity=70)";},dispose:function(){this._mouseClickDelegate=null;TripzoomLib.GUI.Map.ToolBar.callBaseMethod(this,"dispose");},createImageButton:function(b,e,a,c,d){this.get_element().style.width=(c+d)+"px";img=document.createElement("IMG");img.src=e;img.title=a;tool=$create(TripzoomLib.GUI.Map.ToolBarButton,{parent:this.get_element(),action:b,control:img,title:a,offsetx:c,width:d},{click:this._mouseClickDelegate});Array.add(this._tools,tool);return tool;},createTextButton:function(c,f,b,d,e,a){this.get_element().style.width=(d+e+((a)?2:0))+"px";div=document.createElement("DIV");div.className=this._classNameNonActive;div.innerHTML=f;div.title=b;tool=$create(TripzoomLib.GUI.Map.ToolBarButton,{parent:this.get_element(),action:c,control:div,title:b,offsetx:d,width:e},{click:this._mouseClickDelegate});Array.add(this._tools,tool);return tool;},get_classNameActive:function(){return this._classNameActive;},set_classNameActive:function(a){this._classNameActive=a;},get_classNameNonActive:function(){return this._classNameNonActive;},set_classNameNonActive:function(a){this._classNameNonActive=a;},get_left:function(){return this._left;},set_left:function(a){this._left=a;},get_top:function(){return this._top;},set_top:function(a){this._top=a;},get_right:function(){return this._right;},set_right:function(a){this._right=a;},get_bottom:function(){return this._bottom;},set_bottom:function(a){this._bottom=a;},_mouseDown:function(a){a.stopPropagation();},_mouseClick:function(a,b){for(i=0;i<this._tools.length;i++){tool=this._tools[i];tool.set_enabled(false);tool.get_control().className=this._classNameNonActive;}a.set_enabled(true);a.get_control().className=this._classNameActive;this.get_mapcontrol().set_navaction(a.get_action());}};TripzoomLib.GUI.Map.ToolBar.registerClass("TripzoomLib.GUI.Map.ToolBar",TripzoomLib.GUI.Map.BaseControl);TripzoomLib.GUI.Map.ToolBarButton=function(a){TripzoomLib.GUI.Map.ToolBarButton.initializeBase(this);this._parent=a;this._element=null;this._control=null;this._title=null;this._action=0;this._offsetx=0;this._action=0;this._width=0;this._enabled=false;this._mouseOverDelegate=Function.createDelegate(this,this._raiseMouseOver);this._mouseOutDelegate=Function.createDelegate(this,this._raiseMouseOut);this._mouseClickDelegate=Function.createDelegate(this,this._raiseMouseClick);};TripzoomLib.GUI.Map.ToolBarButton.prototype={initialize:function(){TripzoomLib.GUI.Map.ToolBarButton.callBaseMethod(this,"initialize");this._element=this._parent.appendChild(document.createElement("DIV"));element=this._element;element.style.position="absolute";element.style.opacity="0.50";element.style.filter="Alpha(Opacity=50)";element.style.width=this._width+"px";element.style.left=this._offsetx+"px";element.style.margin="2px";element.appendChild(this._control);$addHandler(this._control,"mouseover",this._mouseOverDelegate);$addHandler(this._control,"mouseout",this._mouseOutDelegate);$addHandler(this._control,"click",this._mouseClickDelegate);},dispose:function(){$clearHandlers(this._control);TripzoomLib.GUI.Map.ToolBarButton.callBaseMethod(this,"dispose");},get_parent:function(){return this._parent;},set_parent:function(a){this._parent=a;},get_element:function(){return this._element;},get_action:function(){return this._action;},set_action:function(a){if(this._action!=a){this._action=a;}},get_control:function(){return this._control;},set_control:function(a){if(this._control!=a){this._control=a;}},get_title:function(){return this._title;},set_title:function(a){if(this._title!=a){this._title=a;}},get_offsetx:function(){return this._offsetx;},set_offsetx:function(a){if(this._offsetx!=a){this._offsetx=a;}},get_width:function(){return this._width;},set_width:function(a){if(this._width!=a){this._width=a;}},get_enabled:function(){return this._enabled;},set_enabled:function(a){if(this._enabled!=a){this._enabled=a;}},add_mouseover:function(a){this.get_events().addHandler("mouseover",a);},remove_mouseover:function(a){this.get_events().removeHandler("mouseover",a);},_raiseMouseOver:function(a){this.get_element().style.cursor="pointer";this.get_element().style.filter="Alpha(Opacity=100)";this.get_element().style.opacity="1.0";handler=this.get_events().getHandler("mouseover");if(handler){handler(this,a);}},add_mouseout:function(a){this.get_events().addHandler("mouseout",a);},remove_mouseout:function(a){this.get_events().removeHandler("mouseout",a);},_raiseMouseOut:function(a){this.get_element().style.filter="Alpha(Opacity=50)";this.get_element().style.opacity="0.5";handler=this.get_events().getHandler("mouseout");if(handler){handler(this,a);}},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);},_raiseMouseClick:function(a){handler=this.get_events().getHandler("click");if(handler){handler(this,a);}}};TripzoomLib.GUI.Map.ToolBarButton.registerClass("TripzoomLib.GUI.Map.ToolBarButton",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.OverviewTool=function(a){TripzoomLib.GUI.Map.OverviewTool.initializeBase(this,[a]);};TripzoomLib.GUI.Map.OverviewTool.prototype={initialize:function(){TripzoomLib.GUI.Map.OverviewTool.callBaseMethod(this,"initialize");element=this.get_element();element.className="navToolMenu2";this.createNavtoolButton(TripzoomLib.NavigationAction.OVERVIEW,TripzoomLib.Constants.IMAGE_URL+"map/button_overview.gif","Overzichtskaart",2,19);}};TripzoomLib.GUI.Map.OverviewTool.registerClass("TripzoomLib.GUI.Map.OverviewTool",TripzoomLib.GUI.Map.ToolBar);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.MapView=function(){TripzoomLib.GUI.Map.MapView.initializeBase(this);this.isSatellite=false;this._control=null;this._scale=0;this._center=null;this.tileRect=null;this._viewrect=null;this.isUpdated=false;this.dx=0;this.dy=0;this.currentTileX=0;this.currentTileY=0;this._tiled=true;this.mppix=0;};TripzoomLib.GUI.Map.MapView.prototype={initialize:function(){TripzoomLib.GUI.Map.MapView.callBaseMethod(this,"initialize");if(this._center){this.createMap(this._center.x,this._center.y);}},get_service:function(){return this._service;},set_service:function(a){this._service=a;},get_tiled:function(){return this._tiled;},set_tiled:function(a){this._tiled=a;},get_control:function(){return this._control;},set_control:function(a){this._control=a;},get_center:function(){return this._center;},set_center:function(a){this._center=a;},get_scale:function(){return this._scale;},set_scale:function(a){this._scale=a;},get_viewrect:function(){return this._viewrect;},set_viewrect:function(a){Sys.Debug.assert(typeof(a)!="TripzoomLib.Element.Rect","viewrect must be of type TripzoomLib.Element.Rect");if(!this._viewrect||!this._viewrect.Equals(a)){this._viewrect=a;}},get_mppixX:function(){var a=0;if(this.get_tiled()){a=this.mppix;}else{a=this._viewrect.get_width()/this.get_control().get_width();}return a;},get_mppixY:function(){var a=0;if(this.get_tiled()){a=this.mppix;}else{a=this._viewrect.get_height()/this.get_control().get_height();}return a;},update:function(){if(this.get_tiled()){this.createMap(this._center.x,this._center.y);}},tileCreated:function(a,b){a.dispose();},createTile:function(a,b){var d="";var c="static"+(((a+b)/this._scale)%4);if(TripzoomLib.Constants.USE_STATIC_SERVER){if(this.isSatellite){d="http://"+c+".routenet.eu/xmap/sat_"+a+"_"+b+"_"+this._scale+".jpg";}else{d="http://"+c+".routenet.eu/xmap/map_"+a+"_"+b+"_"+this._scale+".gif";}}else{if(this.isSatellite){d=TripzoomLib.Constants.EXTERN_URL+"image.ashx?x="+a+"&y="+b+"&d="+this._scale+"&width="+TripzoomLib.Constants.TILE_SIZE+"&height="+TripzoomLib.Constants.TILE_SIZE+"&layers=SATELLITE&format=JPG";}else{d=TripzoomLib.Constants.EXTERN_URL+"image.ashx?x="+a+"&y="+b+"&d="+this._scale+"&width="+TripzoomLib.Constants.TILE_SIZE+"&height="+TripzoomLib.Constants.TILE_SIZE;}}$create(TripzoomLib.GUI.Map.Tile,{parent:this.get_control().getTileLayer(),left:TripzoomLib.Constants.TILE_SIZE*((a-this.x0)/this._scale),top:TripzoomLib.Constants.TILE_SIZE*((this.y0-b)/this._scale),url:d},{load:this.tileCreated});},createMap:function(b,d){this.mppix=this._scale/TripzoomLib.Constants.TILE_SIZE;this._viewrect=new TripzoomLib.Element.Rect(b-0.5*this.get_control().get_width()*this.mppix,d+0.5*this.get_control().get_height()*this.mppix,b+0.5*this.get_control().get_width()*this.mppix,d-0.5*this.get_control().get_height()*this.mppix);if(this.get_control().get_tiled()){var f=this._scale;bufferTiles=0;var a=this.get_control().getTileLayer();a.style.zIndex=0;this.get_control().currentMapLayer=-this.get_control().currentMapLayer;a=this.get_control().getTileLayer();a.style.zIndex=1;a.style.width=this.get_control().get_width()+"px";a.style.height=this.get_control().get_height()+"px";this.x0=(this._viewrect.left>0)?Math.floor(this._viewrect.left/f)*f-bufferTiles*f:Math.floor(this._viewrect.left/f)*f-(bufferTiles+1)*f;this.y0=(this._viewrect.top>0)?Math.floor(this._viewrect.top/f)*f+(bufferTiles+1)*f:Math.floor(this._viewrect.top/f)*f+bufferTiles*f;this.dx=parseInt(0.5*this.get_control().get_width())-(b-this.x0)/this.mppix;this.dy=parseInt(0.5*this.get_control().get_height())-(this.y0-d)/this.mppix;this.dx0=this.dx;this.dy0=this.dy;this.tilesH=Math.ceil(((b-this.x0)/this.mppix+this.get_control().get_width()/2)/TripzoomLib.Constants.TILE_SIZE)+bufferTiles;this.tilesV=Math.ceil(((this.y0-d)/this.mppix+this.get_control().get_height()/2)/TripzoomLib.Constants.TILE_SIZE)+bufferTiles;var e=0;var c=0;for(i=0;i<this.tilesH;i++){for(j=0;j<this.tilesV;j++){e=this.x0+parseInt(i)*this._scale;c=this.y0-parseInt(j)*this._scale;this.createTile(Math.round(e),Math.round(c));}}this.tileRect=new TripzoomLib.Element.Rect(this.x0,this.y0,e,c);a.style.left=(this.dx)+"px";a.style.top=(this.dy)+"px";}},updateDimensions:function(b,a){this._viewrect.left-=b*this.mppix;this._viewrect.right-=b*this.mppix;this._viewrect.top+=a*this.mppix;this._viewrect.bottom+=a*this.mppix;if(this.get_control().get_tiled()){if(this._viewrect.left<this.tileRect.left){this.tileRect.left-=Math.ceil((this.tileRect.left-this._viewrect.left)/this._scale)*this._scale;}if(this._viewrect.right>this.tileRect.right){this.tileRect.right-=Math.ceil((this.tileRect.right-this._viewrect.right)/this._scale)*this._scale;}if(this._viewrect.top>this.tileRect.top){this.tileRect.top+=Math.ceil((this._viewrect.top-this.tileRect.top)/this._scale)*this._scale;}if(this._viewrect.bottom<this.tileRect.bottom){this.tileRect.bottom+=Math.ceil((this._viewrect.bottom-this.tileRect.bottom)/this._scale)*this._scale;}}this.isUpdated=true;},updateMap:function(){if(!this.get_control().get_tiled()){this.set_viewrect(arguments[0]);}else{var c=arguments[0];var a=arguments[1];if(!this.isUpdated){this.updateDimensions(c,a);}x=this.tileRect.left;do{y=this.tileRect.bottom;var b=0;while(y<this.tileRect.top+this._scale){if(x>this._viewrect.left-this._scale&&x<this._viewrect.right){if(y<this._viewrect.top+this._scale&&y>this._viewrect.bottom){this.createTile(Math.round(x),Math.round(y));}}y+=this._scale;}x+=this._scale;}while(x<this.tileRect.right+this._scale);this.dx+=c;this.dy+=a;}this.isUpdated=false;}};TripzoomLib.GUI.Map.MapView.registerClass("TripzoomLib.GUI.Map.MapView",Sys.Component);TripzoomLib.GUI.Map.Tile=function(){TripzoomLib.GUI.Map.Tile.initializeBase(this);this._image;this._left;this._top;this._url;this._parent;this._loadedDelegate=Function.createDelegate(this,this._raiseLoad);};TripzoomLib.GUI.Map.Tile.prototype={initialize:function(){TripzoomLib.GUI.Map.Tile.callBaseMethod(this,"initialize");this._image=document.createElement("img");$addHandler(this._image,"load",this._loadedDelegate);this._image.style.position="absolute";this._image.style.display="none";if(TripzoomLib.Constants.DEBUG){this._image.style.border="1px dotted #efefef";}this._image.style.left=this._left+"px";this._image.style.top=this._top+"px";this._image.style.width=TripzoomLib.Constants.TILE_SIZE+"px";this._image.style.height=TripzoomLib.Constants.TILE_SIZE+"px";this._image.src=this._url;this._parent.appendChild(this._image);},dispose:function(){$removeHandler(this._image,"load",this._loadedDelegate);this._loadedDelegate=null;TripzoomLib.GUI.Map.Tile.callBaseMethod(this,"dispose");},get_parent:function(){return this._parent;},set_parent:function(a){this._parent=a;},get_url:function(){return this._url;},set_url:function(a){this._url=a;},get_left:function(){return this._left;},set_left:function(a){this._left=a;},get_top:function(){return this._parent;},set_top:function(a){this._top=a;},add_load:function(a){this.get_events().addHandler("load",a);},remove_load:function(a){this.get_events().removeHandler("load",a);},_raiseLoad:function(){this._image.style.display="block";handler=this.get_events().getHandler("load");if(handler){handler(this,Sys.EventArgs.Empty);}}};TripzoomLib.GUI.Map.Tile.registerClass("TripzoomLib.GUI.Map.Tile",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.Layer=function(a){TripzoomLib.GUI.Map.Layer.initializeBase(this,[a]);this._id=null;this._bitmap=null;this._objects=null;this._objectcount=0;this._positions=null;this._static=false;this._rect=null;this._type=null;this._layermanager=null;this._searchquery="";this._mouseClickDelegate=Function.createDelegate(this,this._mouseClick);this._popup=null;this._canvas=null;this._style=null;this._request=null;this._disposed=false;this._partialloading=true;};TripzoomLib.GUI.Map.Layer.prototype={initialize:function(){TripzoomLib.GUI.Map.Layer.callBaseMethod(this,"initialize");this._layermanager=this.get_mapcontrol();this._rect=new TripzoomLib.Element.Rect(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY);this._objects=[];this._positions=[];element=this.get_element();element.className="layer";if(TripzoomLib.Constants.DEBUG){element.id=TripzoomLib.Utils.createUniqueID("layer_"+this.get_id()+"_");}this._request=new TripzoomLib.Net.Request(this._RequestCompleted);this._request.set_sender(this);this._request.initialize();},get_layermanager:function(){return this._layermanager;},dispose:function(){var b=this.get_element();if(b){b.innerHTML="";b.parentNode.removeChild(b);}this.Clear();this._objects=null;this._positions=null;this._mouseClickDelegate=null;this._mouseOverDelegate=null;if(typeof(this._staticimage)!="undefined"){var a=this.get_mapcontrol().get_mapcontrol().get_mapcontrol();a.get_staticimagelayer().remove_staticimage(this._staticimage);}this._disposed=true;TripzoomLib.GUI.Map.Layer.callBaseMethod(this,"dispose");},get_id:function(){return this._id;},set_id:function(a){this._id=a;},get_partialloading:function(){return this._partialloading;},set_partialloading:function(a){this._partialloading=a;},get_requestHandler:function(a){return this._request;},get_popup:function(){return this._popup;},set_popup:function(a){this._popup=a;},get_bitmap:function(){return this._bitmap;},set_bitmap:function(a){this._bitmap=a;},get_static:function(){return this._static;},set_static:function(a){this._static=a;},get_type:function(){return this._type;},set_type:function(a){this._type=a;},get_style:function(){return this._style;},set_style:function(a){this._style=a;},get_searchquery:function(){return this._searchquery;},set_searchquery:function(a){this._searchquery=a;},isLoading:function(a){if(this._static){return;}showMapSpinner(a);},Add:function(b){var d=null;switch(b.get_geometry().get_type()){case"Point":var a=this.get_mapcontrol().get_mapcontrol().get_mapcontrol();var g=b.get_geometry();this._rect.Expand(g);d=$create(TripzoomLib.GUI.Map.Controls.MarkerHotspot,{parent:this.get_element(),layerobject:b,position:b.get_geometry().TransformCoordinates(a.get_mapview().get_viewrect(),a.get_width(),a.get_height()),type:this.get_type()},{click:this._mouseClickDelegate});if(d){var f=false;if(Array.contains(this._positions,d.get_position().x+"_"+d.get_position().y)){if(this._objects){for(var c=0;c<this._objects.length;c++){if(this._objects[c].get_type()==TripzoomLib.GUI.Map.Controls.ShapeType.POINT&&this._objects[c].get_position().x==d.get_position().x&&this._objects[c].get_position().y==d.get_position().y){this._objects[c].add_hotspot(d);this._objects[c].update();f=true;break;}}}}else{Array.add(this._positions,d.get_position().x+"_"+d.get_position().y);}if(!f){d.show();Array.add(this._objects,d);}this._objectcount++;}break;case"Polygon":var e=b.get_geometry();this._rect.Expand(e.get_extents());d=$create(TripzoomLib.GUI.Map.Controls.AreaHotspot,{layer:this,layerobject:b,type:this.get_type()});Array.add(this._objects,d);this._objectcount++;break;}return d;},AddShape:function(c,a,b){switch(c){case LocatienetLib.MapShapeType.POINT:c=TripzoomLib.GUI.Map.Controls.ShapeType.POINT;this._rect.Expand(new TripzoomLib.Element.Point(a.x,a.y));break;case LocatienetLib.MapShapeType.RECT:c=TripzoomLib.GUI.Map.Controls.ShapeType.RECT;for(var e=0;e<a.length;e++){this._rect.Expand(new TripzoomLib.Element.Point(a[e].x,a[e].y));}break;case LocatienetLib.MapShapeType.POLYGON:c=TripzoomLib.GUI.Map.Controls.ShapeType.POLYGON;for(var e=0;e<a.length;e++){this._rect.Expand(new TripzoomLib.Element.Point(a[e].x,a[e].y));}break;case LocatienetLib.MapShapeType.LINE:c=TripzoomLib.GUI.Map.Controls.ShapeType.LINE;for(var e=0;e<a.length;e++){this._rect.Expand(new TripzoomLib.Element.Point(a[e].x,a[e].y));}break;case LocatienetLib.MapShapeType.CIRCLE:if(!TripzoomLib.GUI.Map.Controls.CircleShapeStyle.isInstanceOfType(b)){throw new Sys.ArgumentTypeException("");}this._rect.Expand(new TripzoomLib.Element.Point(a.x-b.radius,a.y+b.radius));this._rect.Expand(new TripzoomLib.Element.Point(a.x+b.radius,a.y-b.radius));break;}var d=$create(TripzoomLib.GUI.Map.Controls.Shape,{canvas:this._canvas,coords:a,type:c,style:(b)?b:this._style},{click:this._mouseClickDelegate});if(d){Array.add(this._objects,d);this._objectcount++;}return d;},AddLine:function(a,b){return this.AddShape(LocatienetLib.MapShapeType.LINE,a,b);},_mouseClick:function(a,c){var b=this.get_mapcontrol().get_mapcontrol().get_mapcontrol();switch(this.get_type()){case TripzoomLib.GUI.Map.Controls.HotspotType.INFO:case LocatienetLib.MapLayerStyle.INFO:if(this.get_popup()){this.get_popup().show(a);}break;case TripzoomLib.GUI.Map.Controls.HotspotType.LINK:case LocatienetLib.MapLayerStyle.LINK:if(a.get_url()){window.open(a.get_url(),"","");}break;}},get_rect:function(){return this._rect;},set_rect:function(a){this._rect=a;},get_objectcount:function(){return this._objectcount;},Clear:function(){if(this._objects){for(var a=0;a<this._objects.length;a++){if(this._objects[a]){this._objects[a].dispose();this._objects[a]=null;}}Array.clear(this._objects);}this._objectcount=0;if(this._positions){Array.clear(this._positions);}this._rect=new TripzoomLib.Element.Rect();},_RequestCompleted:function(a,b,c){if(a._disposed){return;}var f=a._request.get_responseData();if(f){var e=a.get_mapcontrol().get_mapcontrol().get_mapcontrol();switch(b.toLowerCase()){case"getlayer":if(f.ImageUrl){a._staticimage=$create(TripzoomLib.GUI.Map.StaticImage,{mapcontrol:e,url:f.ImageUrl,zindex:1,left:0,top:0,width:e.get_width(),height:e.get_height()});e.get_staticimagelayer().add_staticimage(a._staticimage);e.get_staticimagelayer().set_visible(true);}if(f.LayerObjects){for(i=0;i<f.LayerObjects.length;i++){a.Add($create(TripzoomLib.Element.LayerObject,{layer:a,geometry:new TripzoomLib.Element.Point(f.LayerObjects[i].Location.point.x,f.LayerObjects[i].Location.point.y),title:f.LayerObjects[i].Title,text:f.LayerObjects[i].Description,bitmap:f.LayerObjects[i].Marker}));}}if(f.MarkerObjects){for(i=0;i<f.MarkerObjects.length;i++){var d=$find(f.MarkerObjects[i].Id);if(d){d.dispose();}a.Add($create(TripzoomLib.Element.LayerObject,{layer:a,refid:f.MarkerObjects[i].Id,geometry:new TripzoomLib.Element.Point(f.MarkerObjects[i].Location.point.x,f.MarkerObjects[i].Location.point.y),bitmap:f.MarkerObjects[i].Marker,async:true}));}}if(f.Hotspots){a.Clear();for(i=0;i<f.Hotspots.length;i++){switch(f.Hotspots[i].Type){case"Polygon":a.Add($create(TripzoomLib.Element.LayerObject,{layer:a,async:true,refid:f.Hotspots[i].Id,geometry:$create(TripzoomLib.Element.Polygon,{exteriorring:f.Hotspots[i].Coords})}));break;}}}break;case"getlayerobject":if(a.get_popup()){a.get_popup().show(a);}break;}}a.isLoading(false);TripzoomLib.GUI.Map.Layer.callBaseMethod(a,"Update");},LoadLayer:function(c){var d=this.get_mapcontrol().get_mapcontrol().get_mapcontrol();this.Clear();if(this._partialloading){var f=2;var g=c.get_width()/f;var h=c.get_height()/f;for(var a=0;a<f;a++){for(var b=0;b<f;b++){var e=new TripzoomLib.Element.Rect(c.left+a*g,c.top-(b)*h-1,c.left+(a+1)*g-1,c.top-(b+1)*h);this._request.GetLayer($create(TripzoomLib.Net.RequestSettings,{width:d.get_width()/f,height:d.get_height()/f,name:this.get_id(),language:d.get_language(),rect:e,parameters:[this._searchquery]}));}}}else{this._request.GetLayer($create(TripzoomLib.Net.RequestSettings,{width:d.get_width(),height:d.get_height(),name:this.get_id(),language:d.get_language(),rect:c,parameters:[this._searchquery]}));}},get_language:function(){var a=this.get_mapcontrol().get_mapcontrol().get_mapcontrol();return a.get_language();},_CreateCanvas:function(){if(this.get_element().getElementsByTagName("CANVAS").length>0){return;}this._canvas=this.get_element().appendChild(document.createElement("CANVAS"));this._canvas.className="layer";this._canvas.width=this.get_mapcontrol().get_mapcontrol().get_mapcontrol().get_width();this._canvas.height=this.get_mapcontrol().get_mapcontrol().get_mapcontrol().get_height();if(typeof G_vmlCanvasManager!="undefined"){this._canvas=G_vmlCanvasManager.initElement(this._canvas);}},Update:function(b){if(!this._static){if(b&&this._rect.Equals(b)){return;}else{this._rect=b;}}if(this._canvas&&this._canvas.parentNode){this._canvas.parentNode.removeChild(this._canvas);}this._CreateCanvas();if(this._static){if(this._objects){for(var c=0;c<this._objects.length;c++){var e=this._objects[c];if(TripzoomLib.GUI.Map.Controls.Shape.isInstanceOfType(e)){e.set_canvas(this._canvas);e.update();}else{if(TripzoomLib.GUI.Map.Controls.MarkerHotspot.isInstanceOfType(e)){var a=this.get_mapcontrol().get_mapcontrol().get_mapcontrol();var d=e.get_layerobject().get_geometry().TransformCoordinates(a.get_mapview().get_viewrect(),a.get_width(),a.get_height());e.set_position(d);if(this.get_popup()&&this.get_popup().get_visible()){this.get_popup().show(e);}}}}}TripzoomLib.GUI.Map.Layer.callBaseMethod(this,"Update");}else{if(this.get_popup()){this.get_popup().hide();}this.isLoading(true);if(b){this.LoadLayer(b);}}},_raiseClick:function(){handler=this.get_events().getHandler("click");if(handler){handler(this,Sys.EventArgs.Empty);}},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);}};TripzoomLib.GUI.Map.Layer.registerClass("TripzoomLib.GUI.Map.Layer",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.TileView=function(a){TripzoomLib.GUI.Map.TileView.initializeBase(this,[a]);};TripzoomLib.GUI.Map.TileView.prototype={initialize:function(){TripzoomLib.GUI.Map.TileView.callBaseMethod(this,"initialize");element=this.get_element();element.className="layer";var a=document.createElement("DIV");a.id=this.get_mapcontrol().get_element().id+"_tileLayer-1";a.className="layer";element.appendChild(a);a=document.createElement("DIV");a.id=this.get_mapcontrol().get_element().id+"_tileLayer1";a.className="layer";element.appendChild(a);},dispose:function(){TripzoomLib.GUI.Map.TileView.callBaseMethod(this,"dispose");}};TripzoomLib.GUI.Map.TileView.registerClass("TripzoomLib.GUI.Map.TileView",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.LayerManager=function(a){TripzoomLib.GUI.Map.LayerManager.initializeBase(this,[a]);this._objects=new Array();this.base=null;this._activeAreaHotspot=null;this._popup=null;};TripzoomLib.GUI.Map.LayerManager.prototype={initialize:function(){TripzoomLib.GUI.Map.LayerManager.callBaseMethod(this,"initialize");element=this.get_element();element.style.position="absolute";element.style.width="100%";element.style.height="100%";element.style.top="0px";element.style.left="0px";element.onmousedown=function(){return false;};this._objects=new Array();this._popup=$create(TripzoomLib.GUI.Map.Controls.Popup,{mapcontrol:this,parent:this.get_mapcontrol().get_mapcontrol().get_parent()});this._popup.set_visible(false);this.base=$create(TripzoomLib.GUI.Map.Layer,{mapcontrol:this,id:"base",type:TripzoomLib.GUI.Map.Controls.HotspotType.INFO,popup:this._popup,"static":true});},get_activeAreaHotspot:function(){return this._activeAreaHotspot;},set_activeAreaHotspot:function(a){this._activeAreaHotspot=a;},dispose:function(){if(this._objects){for(var a=0;a<this._objects.length;a++){if(this._objects[a]){this._objects[a].dispose();}}}this._objects=null;if(this.base){this.base.dispose();}this.base=null;this._popup=null;TripzoomLib.GUI.Map.LayerManager.callBaseMethod(this,"dispose");},AddLayer:function(a){var b=null;if(TripzoomLib.GUI.Map.Layer.isInstanceOfType(a)){b=this.Find(a.get_id());if(!b){b=a;b.set_popup(this._popup);Array.add(this._objects,b);}}else{var c=a;b=this.Find(c);if(!b){b=$create(TripzoomLib.GUI.Map.Layer,{mapcontrol:this,id:c,type:TripzoomLib.GUI.Map.Controls.HotspotType.INFO,popup:this._popup});Array.add(this._objects,b);}}return b;},Add:function(a,d,c){var b=this.Find(a);if(!b){b=new TripzoomLib.GUI.Map.Layer(this);b.set_id(a);b.set_static(true);b.set_bitmap(d);if(!c){c=TripzoomLib.GUI.Map.Controls.HotspotType.INFO;}b.set_type(c);if(c==TripzoomLib.GUI.Map.Controls.HotspotType.INFO){b.set_popup(this._popup);}b.initialize();Array.add(this._objects,b);}return b;},Remove:function(b){var a=this.Find(b);if(a){a.dispose();Array.remove(this._objects,a);}},Find:function(a){var b=null;if(this._objects){for(var c=0;c<this._objects.length;c++){if(this._objects[c].get_id()==a){b=this._objects[c];break;}}}return b;},Update:function(a){this.get_element().style.top="0px";this.get_element().style.left="0px";this.base.Update(a);if(this._objects){for(var b=0;b<this._objects.length;b++){layerObj=this._objects[b];layerObj.Update(a);}}},get_layers:function(){return this._objects;},get_popup:function(){return this._popup;}};TripzoomLib.GUI.Map.LayerManager.registerClass("TripzoomLib.GUI.Map.LayerManager",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.OverviewMap=function(a){TripzoomLib.GUI.Map.OverviewMap.initializeBase(this,[a]);this._viewframe=null;this._view=null;this._maplayer=null;this._mapview=null;this._width=0;this._height=0;this.isPressed=false;this.isDragging=false;this.isVisible=false;this.startX=0;this.startY=0;this._tiled=true;this._mouseOutDelegate=null;this._mouseOverDelegate=null;this._mouseDownDelegate=null;this._mouseMoveDelegate=null;this._mouseUpDelegate=null;this._request=null;this._staticimagelayer=null;};TripzoomLib.GUI.Map.OverviewMap.prototype={initialize:function(){TripzoomLib.GUI.Map.OverviewMap.callBaseMethod(this,"initialize");element=this.get_element();element.style.position="absolute";element.style.overflow="hidden";element.style.opacity="0.9";element.style.filter="Alpha(Opacity=90)";element.style.border="1px solid black";element.style.backgroundColor="white";element.style.width="150px";element.style.height="150px";element.style.top="34px";element.style.right="10px";this._view=document.createElement("DIV");if(this.get_mapcontrol().get_tiled()){this._maplayer=document.createElement("DIV");this._maplayer.style.position="absolute";this._maplayer.width="100%";this._maplayer.height="100%";this._maplayer.style.zIndex=1;this._view.appendChild(this._maplayer);}this._viewframe=document.createElement("IMG");this._viewframe.style.position="absolute";this._viewframe.style.zIndex=2;this._viewframe.width="0px";this._viewframe.height="0px";this._viewframe.src=TripzoomLib.Constants.IMAGE_URL+"trans.gif";this._view.appendChild(this._viewframe);element.appendChild(this._view);this._width=parseInt(element.style.width);this._height=parseInt(element.style.height);this._staticimagelayer=$create(TripzoomLib.GUI.Map.StaticImageLayer,{mapcontrol:this});this._request=new TripzoomLib.Net.Request(this._RequestCompleted);this._request.set_sender(this);this._request.initialize();this._mapview=$create(TripzoomLib.GUI.Map.MapView,{control:this,scale:this.get_mapcontrol().get_mapview().get_scale()*16,tiled:this.get_mapcontrol().get_tiled()});},dispose:function(){TripzoomLib.GUI.Map.OverviewMap.callBaseMethod(this,"dispose");},_RequestCompleted:function(b,c,d){var e=b._request.get_responseData();if(e){b.get_mapview().set_viewrect(new TripzoomLib.Element.Rect().set_rect(e.RectString));var a=$create(TripzoomLib.GUI.Map.StaticImage,{mapcontrol:b,url:e.ImageUrl,zindex:1,left:0,top:0,width:b.get_width(),height:b.get_height()});b._staticimagelayer.clear();b._staticimagelayer.add_staticimage(a);b._staticimagelayer.set_visible(true);}},get_width:function(){return this._width;},set_width:function(a){this._width=a;},get_height:function(){return this._height;},set_height:function(a){this._height=a;},get_tiled:function(){return this._tiled;},set_tiled:function(a){this._tiled=a;},get_mapview:function(){return this._mapview;},setCenter:function(a,b){if(this.isVisible){this.centerx=a;this.centery=b;this.Update(this.centerx,this.centery);}},Update:function(){if(this.isVisible){if(this.get_mapcontrol().get_mapview().get_tiled()){this.get_mapview().set_scale(this.get_mapcontrol().get_mapview().get_scale()*8);this.get_mapview().createMap(this.get_mapcontrol().get_mapview().get_viewrect().centerx(),this.get_mapcontrol().get_mapview().get_viewrect().centery());}else{var b=new TripzoomLib.Element.Rect();b.set_rect(this.get_mapcontrol().get_mapview().get_viewrect().toString());b.Expand(1);this.get_mapview().set_viewrect(b);}var d=this.get_mapcontrol().get_mapview().get_mppixX()/this.get_mapview().get_mppixX();var c=this.get_mapcontrol().get_mapview().get_mppixY()/this.get_mapview().get_mppixY();var a=this._viewframe;a.style.border="1px solid blue";a.style.width=Math.round(this.get_mapcontrol().get_mapview().get_viewrect().Width()/this.get_mapview().get_mppixX())+"px";a.style.height=Math.round(this.get_mapcontrol().get_mapview().get_viewrect().Height()/this.get_mapview().get_mppixY())+"px";a.style.left=(this.get_mapcontrol().get_mapview().get_viewrect().left-this.get_mapview().get_viewrect().left)/this.get_mapview().get_mppixX()+d+"px";a.style.top=(this.get_mapview().get_viewrect().top-this.get_mapcontrol().get_mapview().get_viewrect().top)/this.get_mapview().get_mppixY()+c+"px";this._request.CreateMap($create(TripzoomLib.Net.RequestSettings,{rect:this.get_mapview().get_viewrect(),width:this.get_width(),height:this.get_height(),layers:"STANDARD"}));}},getTileLayer:function(){return this._maplayer;},setVisible:function(a){if(this.isVisible!=a){this.isVisible=a;animator=new cFadeAnimator(this.get_element(),90);if(this.isVisible){animator.FadeIn();}else{animator.FadeOut();}this.Update(this.get_mapcontrol().get_mapview().get_viewrect().centerx(),this.get_mapcontrol().get_mapview().get_viewrect().centery());}},_mouseOver:function(a){document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/openhand.cur'), auto";},_mouseOut:function(a){document.body.style.cursor="pointer";},_mouseDown:function(a){document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/closedhand.cur'), auto";this.startX=a.clientX;this.startY=a.clientY;this.isPressed=true;},_mouseMove:function(b){if(!this.isPressed){return;}dx=this.startX-b.clientX;dy=this.startY-b.clientY;if(Math.abs(dx)>10||Math.abs(dy)>10){var a=this._viewframe;var c=Sys.UI.DomElement.getLocation(this._viewframe);Sys.UI.DomElement.setLocation(this._viewframe,c.x-dx,c.y-dy);this.startX=b.clientX;this.startY=b.clientY;this.isDragging=true;}},_mouseUp:function(a){if(!this.isPressed){return;}if(this.isDragging){this.isDragging=false;}this.isPressed=false;document.body.style.cursor="url('"+TripzoomLib.Constants.IMAGE_URL+"cursors/openhand.cur'), auto";}};TripzoomLib.GUI.Map.OverviewMap.registerClass("TripzoomLib.GUI.Map.OverviewMap",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");Type.registerNamespace("TripzoomLib.GUI.Map.Controls");

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.Controls.AreaHotspot=function(){TripzoomLib.GUI.Map.Controls.AreaHotspot.initializeBase(this);this._type=TripzoomLib.GUI.Map.Controls.HotspotType.INFO;this._layer=null;this._layerobject=null;this._mouseMoveDelegate=null;this._position=null;this._clickEventEnabled=false;};TripzoomLib.GUI.Map.Controls.AreaHotspot.prototype={initialize:function(){TripzoomLib.GUI.Map.Controls.AreaHotspot.callBaseMethod(this,"initialize");var a=this._layer.get_mapcontrol().get_mapcontrol().get_mapcontrol();if(!this._mouseMoveDelegate){this._mouseMoveDelegate=Function.createDelegate(this,this._mouseMove);$addHandler(a.get_navigation().get_element(),"mousemove",this._mouseMoveDelegate);}},dispose:function(){if(this._layerobject){this._layerobject.dispose();}var a=this._layer.get_mapcontrol().get_mapcontrol().get_mapcontrol();if(this._mouseMoveDelegate){$removeHandler(a.get_navigation().get_element(),"mousemove",this._mouseMoveDelegate);this._mouseMoveDelegate=null;}TripzoomLib.GUI.Map.Controls.AreaHotspot.callBaseMethod(this,"dispose");},_mouseMove:function(b){var a=this._layer.get_mapcontrol().get_mapcontrol().get_mapcontrol();if(this._layerobject.get_geometry().isWithin(new TripzoomLib.Element.Point(b.clientX-a.get_left(),b.clientY-a.get_top()))){document.body.style.cursor="pointer";this._layer.get_layermanager().set_activeAreaHotspot(this);}else{if(this._layer.get_layermanager().get_activeAreaHotspot()==this){this._layer.get_layermanager().set_activeAreaHotspot(null);}}},get_position:function(){return this._position;},set_position:function(a){this._position=a;},get_layerobject:function(){return this._layerobject;},set_layerobject:function(a){this._layerobject=a;},get_type:function(){return this._type;},set_type:function(a){this._type=a;},get_layer:function(){return this._layer;},set_layer:function(a){this._layer=a;}};TripzoomLib.GUI.Map.Controls.AreaHotspot.registerClass("TripzoomLib.GUI.Map.Controls.AreaHotspot",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.Controls.HotspotType=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.GUI.Map.Controls.HotspotType.prototype={NONE:-1,INFO:0,PIN:1,LINK:2};TripzoomLib.GUI.Map.Controls.HotspotType.registerEnum("TripzoomLib.GUI.Map.Controls.HotspotType");TripzoomLib.GUI.Map.Controls.MarkerHotspot=function(){TripzoomLib.GUI.Map.Controls.MarkerHotspot.initializeBase(this);this._type=TripzoomLib.GUI.Map.Controls.HotspotType.INFO;this._position=null;this._marker=null;this._layerobject=null;this._parent=null;this._element=null;this._hotspotbrowser=null;this._mouseClickDelegate=null;this.onclick=null;this._mouseOverDelegate=null;this._mouseOutDelegate=null;this._mouseDownDelegate=null;};TripzoomLib.GUI.Map.Controls.MarkerHotspot.prototype={initialize:function(){TripzoomLib.GUI.Map.Controls.MarkerHotspot.callBaseMethod(this,"initialize");this.add_propertyChanged(this._onPropertyChanged);this._element=document.createElement("DIV");this._element.style.position="absolute";this._element.style.textAlign="center";this._element.style.zIndex=2;this._marker=document.createElement("IMG");this._marker.src=(this.get_layerobject().get_bitmap().toLowerCase().indexOf("http://")!=-1)?this.get_layerobject().get_bitmap():TripzoomLib.Constants.IMAGE_URL+"markers/"+this.get_layerobject().get_bitmap();this._marker.alt="";this._element.appendChild(this._marker);if((this.get_layerobject().get_text())&&parseInt(this._type)==parseInt(TripzoomLib.GUI.Map.Controls.HotspotType.PIN)){markertext=this._element.appendChild(document.createElement("DIV"));markertext.className="markertext";markertext.innerHTML=this.get_layerobject().get_text();}this._hotspotbrowser=$create(TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser,{},{},null,this._element);this._hotspotbrowser.add(this);this._element.onmouseup=function(){return false;};if(!this._mouseClickDelegate){this._mouseClickDelegate=Function.createDelegate(this,this._mouseClick);$addHandler(this._element,"click",this._mouseClickDelegate);}if(this.onclick){this.add_click(this.onclick);}if(!this._mouseOverDelegate){this._mouseOverDelegate=Function.createDelegate(this,this._mouseOver);$addHandler(this._element,"mouseover",this._mouseOverDelegate);}if(!this._mouseOutDelegate){this._mouseOutDelegate=Function.createDelegate(this,this._mouseOut);$addHandler(this._element,"mouseout",this._mouseOutDelegate);}if(!this._mouseDownDelegate){this._mouseDownDelegate=Function.createDelegate(this,this._mouseDown);$addHandler(this._element,"mousedown",this._mouseDownDelegate);}},dispose:function(){if(this.get_element()&&this.get_element().parentNode){this.get_element().parentNode.removeChild(this.get_element());}this._layerobject.dispose();if(this._hotspotbrowser){this._hotspotbrowser.dispose();}$clearHandlers(this._element);this._mouseClickDelegate=null;this._mouseOverDelegate=null;this._mouseOutDelegate=null;this._mouseDownDelegate=null;TripzoomLib.GUI.Map.Controls.MarkerHotspot.callBaseMethod(this,"dispose");},show:function(){this._parent.appendChild(this._element);this.update();},update:function(){this._hotspotbrowser.show();Sys.UI.DomElement.setLocation(this._element,Math.round(this._position.x-(this.get_element().offsetWidth/2)),Math.round(this._position.y-(this._marker.offsetHeight/2)));},_onPropertyChanged:function(a,b){switch(b.get_propertyName()){case"position":if(a.get_element()&&a.get_element().parentNode){Sys.UI.DomElement.setLocation(a._element,Math.round(a._position.x-(a.get_element().offsetWidth/2)),Math.round(a._position.y-(a._marker.offsetHeight/2)));}break;}},_mouseDown:function(a){a.stopPropagation();},_mouseClick:function(b){var a=this.get_events().getHandler("click");if(a){a(this,b);}b.stopPropagation();},_mouseOver:function(b){this.get_element().style.cursor="pointer";var a=this.get_events().getHandler("mouseover");if(a){a(this,b);}return false;},_mouseOut:function(b){var a=this.get_events().getHandler("mouseout");if(a){a(this,Sys.EventArgs.Empty);}},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);},add_mouseover:function(a){this.get_events().addHandler("mouseover",a);},remove_mouseover:function(a){this.get_events().removeHandler("mouseover",a);},add_mouseout:function(a){this.get_events().addHandler("mouseout",a);},remove_mouseout:function(a){this.get_events().removeHandler("mouseout",a);},add_hotspot:function(a){this._hotspotbrowser.add(a);},get_hotspots:function(){return this._hotspotbrowser.get_hotspots();},get_element:function(){return this._element;},set_element:function(a){this._element=a;},get_position:function(){return this._position;},set_position:function(a){if(this._position!=a){this._position=a;this.raisePropertyChanged("position");}},get_layerobject:function(){return this._layerobject;},set_layerobject:function(a){this._layerobject=a;},get_parent:function(){return this._parent;},set_parent:function(a){this._parent=a;},get_type:function(){return this._type;},set_type:function(a){if(this._type!=a){this._type=a;}},get_marker:function(){return this._marker;}};TripzoomLib.GUI.Map.Controls.MarkerHotspot.registerClass("TripzoomLib.GUI.Map.Controls.MarkerHotspot",Sys.Component);TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser=function(a){TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser.initializeBase(this,[a]);this._browser=null;this._display=null;this._hotspots=[];};TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser.prototype={initialize:function(){TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser.callBaseMethod(this,"initialize");this._browser=this._element.appendChild(document.createElement("DIV"));this._browser.className="hotspot_browser";this._browser.style.display="none";this._display=this._browser.appendChild(document.createElement("span"));},dispose:function(){if(this._hotpots){for(var a=0;a<this._hotspots.length;a++){if(this._hotspots[a]){this._hotspots[a].dispose();this._hotspots[a]=null;}}}this._hotspots=null;TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser.callBaseMethod(this,"dispose");},add:function(a){Array.add(this._hotspots,a);},clear:function(){Array.clear(this._hotspots);},get_hotspots:function(){return this._hotspots;},show:function(){if(this._hotspots.length>1){this._display.innerHTML=this._hotspots.length;this._browser.style.display="block";}},hide:function(){this._browser.style.display="none";}};TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser.registerClass("TripzoomLib.GUI.Map.Controls.MarkerHotspotBrowser",Sys.UI.Behavior);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.Controls.Popup=function(a){TripzoomLib.GUI.Map.Controls.Popup.initializeBase(this,[a]);this._width=300;this._caption=null;this._content=null;this._close=null;this._prev=null;this._next=null;this._title=null;this._mouseOverDelegate=null;this._mouseOutDelegate=null;this._closePopupDelegate=null;this._nextClickDelegate=null;this._prevClickDelegate=null;this._pointers=new Object();this._sides=new Object();this._browser=null;this._request=null;};TripzoomLib.GUI.Map.Controls.Popup.prototype={initialize:function(){TripzoomLib.GUI.Map.Controls.Popup.callBaseMethod(this,"initialize");element=this.get_element();element.className="popup";element.style.position="absolute";element.style.zIndex=1000;element.onselect=function(){return false;};var a=null;elem=element.appendChild(document.createElement("DIV"));elem.className="tl";this._sides.tl=elem;if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png";}a.style.position="absolute";a.style.left="0px";a.style.top="0px";a.style.width="600px";a.style.height="600px";elem=element.appendChild(document.createElement("DIV"));elem.className="tr";this._sides.tr=elem;if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png";}a.style.position="absolute";a.style.top="0px";a.style.right="0px";a.style.width="600px";a.style.height="600px";elem=element.appendChild(document.createElement("DIV"));elem.className="bl";this._sides.bl=elem;if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png";}a.style.position="absolute";a.style.left="0px";a.style.bottom="0px";a.style.width="600px";a.style.height="600px";elem=element.appendChild(document.createElement("DIV"));elem.className="br";this._sides.br=elem;if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_blank.png";}a.style.position="absolute";a.style.right="0px";a.style.bottom="0px";a.style.width="600px";a.style.height="600px";elem=element.appendChild(document.createElement("DIV"));elem.className="pointer-left";if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_left.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_left.png";}a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.width="16px";a.style.height="16px";this._pointers.left=elem;elem=element.appendChild(document.createElement("DIV"));elem.className="pointer-top";if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_top.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_top.png";}a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.width="16px";a.style.height="16px";this._pointers.top=elem;elem=element.appendChild(document.createElement("DIV"));elem.className="pointer-right";if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_right.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_right.png";}a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.width="16px";a.style.height="16px";this._pointers.right=elem;elem=element.appendChild(document.createElement("DIV"));elem.className="pointer-bottom";if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){a=elem.appendChild(document.createElement("DIV"));a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_bottom.png', sizingMethod='scale');";}else{a=elem.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"/map/popup_pointer_bottom.png";}a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.width="16px";a.style.height="16px";this._pointers.bottom=elem;this._caption=element.appendChild(document.createElement("DIV"));this._caption.className="caption";this._browser=this._caption.appendChild(document.createElement("span"));this._browser.style.visibility="hidden";this._counter=this._browser.appendChild(document.createElement("span"));this._counter.style.marginRight="5px";this._prev=this._browser.appendChild(document.createElement("span"));this._prev.innerHTML=TripzoomLib.Resources.Resource.previous;this._prev.className="link";sep=this._browser.appendChild(document.createElement("span"));sep.innerHTML="|";sep.style.marginRight="4px";this._next=this._browser.appendChild(document.createElement("span"));this._next.innerHTML=TripzoomLib.Resources.Resource.next;this._next.className="link";this._close=this._caption.appendChild(document.createElement("span"));this._close.innerHTML="[x]";this._close.className="link";this._title=this._caption.appendChild(document.createElement("DIV"));this._title.className="title";this._content=element.appendChild(document.createElement("DIV"));this._content.className="content";this._content.style.backgroundColor="white";if(!this._mouseOverDelegate){this._mouseOverDelegate=Function.createDelegate(this,this._mouseOver);}$addHandler(this._element,"mouseover",this._mouseOverDelegate);if(!this._mouseOutDelegate){this._mouseOutDelegate=Function.createDelegate(this,this._mouseOut);}$addHandler(this._element,"mouseout",this._mouseOutDelegate);$addHandler(this._element,"click",this._mouseClick);$addHandler(this._element,"mousedown",this._mouseDown);$addHandler(this._element,"mouseup",this._mouseUp);$addHandler(this._element,"dblclick",this._mouseDown);if(!this._closePopupDelegate){this._closePopupDelegate=Function.createDelegate(this,this._closePopup);}$addHandler(this._close,"click",this._closePopupDelegate);if(!this._nextClickDelegate){this._nextClickDelegate=Function.createDelegate(this,this._nextClick);}$addHandler(this._next,"click",this._nextClickDelegate);if(!this._prevClickDelegate){this._prevClickDelegate=Function.createDelegate(this,this._prevClick);}$addHandler(this._prev,"click",this._prevClickDelegate);this.set_visible(false);this._request=new TripzoomLib.Net.Request(this._RequestCompleted);this._request.set_sender(this);this._request.initialize();},dispose:function(){if(this._mouseOverDelegate){$removeHandler(this._element,"mouseover",this._mouseOverDelegate);}this._mouseOverDelegate=null;if(this._mouseOutDelegate){$removeHandler(this._element,"mouseout",this._mouseOutDelegate);}this._mouseOutDelegate=null;if(!this._nextClickDelegate){$removeHandler(this._next,"click",this._nextClickDelegate);}this._nextClickDelegate=null;if(!this._prevClickDelegate){$removeHandler(this._prev,"click",this._prevClickDelegate);}this._prevClickDelegate=null;$removeHandler(this._element,"click",this._mouseClick);$removeHandler(this._element,"mousedown",this._mouseDown);$removeHandler(this._element,"mouseup",this._mouseUp);$removeHandler(this._element,"dblclick",this._mouseDown);$addHandler(this._close,"click",this._closePopupDelegate);TripzoomLib.GUI.Map.Controls.Popup.callBaseMethod(this,"dispose");},_reset:function(b){this._title.innerHTML="";this._content.innerHTML="";if(b){var a=document.createElement("img");a.src=TripzoomLib.Constants.IMAGE_URL+"spinner.gif";a.alt="";this._content.appendChild(a);}},show:function(a){this.set_visible(false);this._hotspot=a;if(TripzoomLib.GUI.Map.Controls.MarkerHotspot.isInstanceOfType(a)){this._currentHotspotIndex=0;if(this._hotspot.get_hotspots().length>1){this._browser.style.visibility="visible";this._counter.innerHTML="1/"+this._hotspot.get_hotspots().length;}else{this._browser.style.visibility="hidden";}}if(this._hotspot.get_layerobject().get_async()){this._reset(true);this._request.GetLayerObject($create(TripzoomLib.Net.RequestSettings,{parameters:[this._hotspot.get_layerobject().get_refid()],name:this._hotspot.get_layerobject().get_layer().get_id(),language:this._hotspot.get_layerobject().get_layer().get_language()}));}else{this._RequestCompleted(this,"getlayerobject");this.set_visible(true);}},get_requestHandler:function(a){return this._request;},_RequestCompleted:function(f,j,a){try{var g=f._request.get_responseData();if(g){switch(j.toLowerCase()){case"getlayerobject":var d=f._hotspot.get_layerobject();if(TripzoomLib.GUI.Map.Controls.MarkerHotspot.isInstanceOfType(f._hotspot)){d=f._hotspot.get_hotspots()[f._currentHotspotIndex].get_layerobject();}d.set_title(g.Title);d.set_text(g.Description);d.set_url(g.Link);d.set_async(false);f._request.clear();break;}}}catch(i){}var h=f._hotspot;if(TripzoomLib.GUI.Map.Controls.MarkerHotspot.isInstanceOfType(h)){h=h.get_hotspots()[f._currentHotspotIndex];}if(h.get_layerobject().get_title()){f._title.style.display="block";f._title.innerHTML=h.get_layerobject().get_title();}else{f._title.style.display="none";}f.set_visible(true);f._content.innerHTML=h.get_layerobject().get_text();var c=Sys.UI.DomElement.getBounds(f.get_element());f._sides.bl.style.height=c.height+"px";f._sides.br.style.height=c.height+"px";f._reposition();},hide:function(){this._title.innerHTML="";this._content.innerHTML="";this.set_visible(false);},_reposition:function(){var e=Sys.UI.DomElement.getBounds(this.get_element());var f=Sys.UI.DomElement.getBounds(this.get_element().parentNode);this._pointers.left.style.display=this._pointers.top.style.display=this._pointers.right.style.display=this._pointers.bottom.style.display="none";var c=this._hotspot.get_position().x;var d=this._hotspot.get_position().y;var a=20;if(c+e.width>f.width){a=c;a-=(e.width+20);}if(d<parseInt(f.height)-parseInt(e.height)){this._pointers.top.style.display="block";this._pointers.top.style.left=20+"px";if(c+e.width>f.width){c=c-e.width+50;this._pointers.top.style.left=(e.width-30)+"px";}}else{if(d-e.height+60>0){d-=(e.height+60);this._pointers.bottom.style.display="block";this._pointers.bottom.style.left=20+"px";if(c+e.width>f.width){c=c-e.width+50;this._pointers.bottom.style.left=(e.width-30)+"px";}}else{if(c+e.width<f.width-20){this._pointers.left.style.display="block";this._pointers.left.style.top=(d-30)+"px";d=0;c+=2*a;}else{this._pointers.right.style.display="block";this._pointers.right.style.top=(d-30)+"px";d=0;c=a;}}}if(Sys.Browser.agent==Sys.Browser.InternetExplorer){Sys.UI.DomElement.setLocation(this.get_element(),c,d+30);}else{Sys.UI.DomElement.setLocation(this.get_element(),c-10,d+30);}},get_width:function(){return this._width;},set_width:function(a){if(this._width!=a){this._width=a;this.get_element().style.width=this._width+"px";}},show_close:function(a){this._close.style.display=(a)?"block":"none";},set_title:function(a){if(this._title.innerHTML!=a){this._title.innerHTML=a;this._title.display=(a)?"block":"none";}},get_caption:function(){return this._caption;},_nextClick:function(a){if(this._currentHotspotIndex<this._hotspot.get_hotspots().length-1){this._currentHotspotIndex++;}else{this._currentHotspotIndex=0;}this._counter.innerHTML=(this._currentHotspotIndex+1)+"/"+this._hotspot.get_hotspots().length;var b=this._hotspot.get_hotspots()[this._currentHotspotIndex];this._hotspot.get_marker().src=(b.get_layerobject().get_bitmap().toLowerCase().indexOf("http://")!=-1)?b.get_layerobject().get_bitmap():TripzoomLib.Constants.IMAGE_URL+"markers/"+b.get_layerobject().get_bitmap();if(b.get_layerobject().get_async()){this._reset(true);this._request.GetLayerObject($create(TripzoomLib.Net.RequestSettings,{parameters:[b.get_layerobject().get_refid()],name:b.get_layerobject().get_layer().get_id(),language:b.get_layerobject().get_layer().get_language()}));}else{this._RequestCompleted(this,"getlayerobject");}},_prevClick:function(a){var c=0;if(this._currentHotspotIndex==0){this._currentHotspotIndex=this._hotspot.get_hotspots().length-1;}else{--this._currentHotspotIndex;}this._counter.innerHTML=(this._currentHotspotIndex+1)+"/"+this._hotspot.get_hotspots().length;var b=this._hotspot.get_hotspots()[this._currentHotspotIndex];this._hotspot.get_marker().src=(b.get_layerobject().get_bitmap().toLowerCase().indexOf("http://")!=-1)?b.get_layerobject().get_bitmap():TripzoomLib.Constants.IMAGE_URL+"markers/"+b.get_layerobject().get_bitmap();if(b.get_layerobject().get_async()){this._reset(true);this._request.GetLayerObject($create(TripzoomLib.Net.RequestSettings,{parameters:[b.get_layerobject().get_refid()],name:b.get_layerobject().get_layer().get_id(),language:b.get_layerobject().get_layer().get_language()}));}else{this._RequestCompleted(this,"getlayerobject");}},_closePopup:function(a){this.hide();},_mouseDown:function(a){a.stopPropagation();},_mouseUp:function(a){},_mouseClick:function(a){if(a.target.tagName.toLowerCase()!="a"){a.preventDefault();}a.stopPropagation();},_mouseOver:function(b){this.set_visible(true);var a=this.get_events().getHandler("mouseover");if(a){a(this,Sys.EventArgs.Empty);}b.stopPropagation();},_mouseOut:function(b){var a=this.get_events().getHandler("mouseout");if(a){a(this,Sys.EventArgs.Empty);}b.stopPropagation();},add_mouseover:function(a){this.get_events().addHandler("mouseover",a);},remove_mouseover:function(a){this.get_events().removeHandler("mouseover",a);},add_mouseout:function(a){this.get_events().addHandler("mouseout",a);},remove_mouseout:function(a){this.get_events().removeHandler("mouseout",a);}};TripzoomLib.GUI.Map.Controls.Popup.registerClass("TripzoomLib.GUI.Map.Controls.Popup",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
TripzoomLib.GUI.Map.Controls.ShapeType=function(){if(arguments.length!==0){throw Error.parameterCount();}throw Error.notImplemented();};TripzoomLib.GUI.Map.Controls.ShapeType.prototype={POINT:0,LINE:1,RECT:2,POLYGON:3,CIRCLE:4,UNKNOWN:-1};TripzoomLib.GUI.Map.Controls.ShapeType.registerEnum("TripzoomLib.GUI.Map.Controls.ShapeType");TripzoomLib.GUI.Map.Controls.ShapeStyle=function(){this.lineWidth=5;this.strokeStyle="blue";this.fillStyle="green";this.fill=false;};TripzoomLib.GUI.Map.Controls.ShapeStyle.registerClass("TripzoomLib.GUI.Map.Controls.ShapeStyle");TripzoomLib.GUI.Map.Controls.CircleShapeStyle=function(){this.radius=10;};TripzoomLib.GUI.Map.Controls.CircleShapeStyle.registerClass("TripzoomLib.GUI.Map.Controls.CircleShapeStyle",TripzoomLib.GUI.Map.Controls.ShapeStyle);TripzoomLib.GUI.Map.Controls.Shape=function(){TripzoomLib.GUI.Map.Controls.Shape.initializeBase(this);this._type=TripzoomLib.GUI.Map.Controls.ShapeType.UNKNOWN;this._position=null;this._coords=null;this._canvas=null;this._style=null;this._type=null;};TripzoomLib.GUI.Map.Controls.Shape.prototype={initialize:function(){TripzoomLib.GUI.Map.Controls.Shape.callBaseMethod(this,"initialize");},dispose:function(){TripzoomLib.GUI.Map.Controls.Shape.callBaseMethod(this,"dispose");},CoordsToPosition:function(a,c){var d,b;d=Math.round((parseInt(a)-_Map.get_mapview().get_viewrect().left)/_Map.get_mapview().get_mppixX());b=Math.round((_Map.get_mapview().get_viewrect().top-parseInt(c))/_Map.get_mapview().get_mppixY());return new TripzoomLib.Element.Point(d,b);},update:function(){var e=this._canvas.getContext("2d");if(this._style){e.strokeStyle=this._style.strokeStyle;e.lineWidth=this._style.lineWidth;}else{e.strokeStyle="blue";e.lineWidth=5;}switch(this._type){case TripzoomLib.GUI.Map.Controls.ShapeType.POINT:var g=this.CoordsToPosition(this._coords.x,this._coords.y);e.rect(g.x,g.y,3,3);if(this._style.fill){e.fill();}else{e.stroke();}break;case TripzoomLib.GUI.Map.Controls.ShapeType.LINE:e.beginPath();var g=this.CoordsToPosition(this._coords[0].x,this._coords[0].y);e.moveTo(g.x,g.y);for(var d=1;d<this._coords.length;d++){g=this.CoordsToPosition(this._coords[d].x,this._coords[d].y);e.lineTo(g.x,g.y);}e.stroke();break;case TripzoomLib.GUI.Map.Controls.ShapeType.POLYGON:e.beginPath();var g=this.CoordsToPosition(this._coords[0].x,this._coords[0].y);e.moveTo(g.x,g.y);for(var d=1;d<this._coords.length;d++){g=this.CoordsToPosition(this._coords[d].x,this._coords[d].y);e.lineTo(g.x,g.y);}e.closePath();if(this._style.fill){e.fill();}else{e.stroke();}break;case TripzoomLib.GUI.Map.Controls.ShapeType.RECT:var f=this.CoordsToPosition(this._coords[0].x,this._coords[0].y);var c=this.CoordsToPosition(this._coords[1].x,this._coords[1].y);e.fillStyle=this._style.fillStyle;e.fillRect(f.x,f.y,c.x-f.x,c.y-f.y);e.fill();break;case TripzoomLib.GUI.Map.Controls.ShapeType.CIRCLE:e.beginPath();var g=this.CoordsToPosition(this._coords.x,this._coords.y);var a=this.CoordsToPosition(this._coords.x,this._coords.y+this._style.radius);var b=Math.abs(a.y-g.y);e.arc(g.x,g.y,b,0,2*Math.PI,true);if(this._style.fill){e.fill();}else{e.stroke();}break;}},_mouseClick:function(b){var a=this.get_events().getHandler("click");if(a){a(this,b);}b.stopPropagation();},_mouseOver:function(b){var a=this.get_events().getHandler("mouseover");if(a){a(this,b);}return false;},_mouseOut:function(b){var a=this.get_events().getHandler("mouseout");if(a){a(this,Sys.EventArgs.Empty);}},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);},add_mouseover:function(a){this.get_events().addHandler("mouseover",a);},remove_mouseover:function(a){this.get_events().removeHandler("mouseover",a);},add_mouseout:function(a){this.get_events().addHandler("mouseout",a);},remove_mouseout:function(a){this.get_events().removeHandler("mouseout",a);},get_coords:function(){return this._coords;},set_coords:function(a){this._coords=a;},get_canvas:function(){return this._canvas;},set_canvas:function(a){this._canvas=a;},get_style:function(){return this._style;},set_style:function(a){this._style=a;},get_type:function(){return this._type;},set_type:function(a){if(this._type!=a){this._type=a;}}};TripzoomLib.GUI.Map.Controls.Shape.registerClass("TripzoomLib.GUI.Map.Controls.Shape",Sys.Component);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("TripzoomLib");Type.registerNamespace("TripzoomLib.GUI");Type.registerNamespace("TripzoomLib.GUI.Map");TripzoomLib.GUI.Map.Spinner=function(a){TripzoomLib.GUI.Map.Spinner.initializeBase(this,[a]);};TripzoomLib.GUI.Map.Spinner.prototype={initialize:function(){TripzoomLib.GUI.Map.Spinner.callBaseMethod(this,"initialize");element=this.get_element();element.className="spinnerLayer";var a=element.appendChild(document.createElement("IMG"));a.src=TripzoomLib.Constants.IMAGE_URL+"map/spinner.gif";},dispose:function(){TripzoomLib.GUI.Map.Spinner.callBaseMethod(this,"dispose");}};TripzoomLib.GUI.Map.Spinner.registerClass("TripzoomLib.GUI.Map.Spinner",TripzoomLib.GUI.Map.BaseControl);

// Locatienet.script, Version=1.2.3478.23000, Culture=neutral, PublicKeyToken=null
//
Type.registerNamespace("LocatienetLib");LocatienetLib.MapEvent=function(){};LocatienetLib.MapEvent.prototype={zoom:0,pan:1,other:2};LocatienetLib.MapEvent.registerEnum("LocatienetLib.MapEvent");LocatienetLib.MapToolbar=function(){};LocatienetLib.MapToolbar.prototype={mapstyle:0,navigation:1,overview:2};LocatienetLib.MapToolbar.registerEnum("LocatienetLib.MapToolbar");LocatienetLib.MapZoomLevel=function(){};LocatienetLib.MapZoomLevel.prototype={street:500,block:1000,neighbourhood:5000,city:10000,region:20000,province:50000,state:100000,country:500000,continent:2000000};LocatienetLib.MapZoomLevel.registerEnum("LocatienetLib.MapZoomLevel");LocatienetLib.MapViewMode=function(){};LocatienetLib.MapViewMode.prototype={MAP:0,AERIAL:1,HYBRID:2};LocatienetLib.MapViewMode.registerEnum("LocatienetLib.MapViewMode");LocatienetLib.MapLayerStyle=function(){};LocatienetLib.MapLayerStyle.prototype={PIN:1,INFO:2,LINK:3};LocatienetLib.MapLayerStyle.registerEnum("LocatienetLib.MapLayerStyle");LocatienetLib.MapShapeType=function(){};LocatienetLib.MapShapeType.prototype={POINT:0,LINE:1,RECT:2,POLYGON:3,CIRCLE:4,UNKNOWN:-1};LocatienetLib.MapShapeType.registerEnum("LocatienetLib.MapShapeType");LocatienetLib.CoordFormat=function(){};LocatienetLib.CoordFormat.prototype={MERCATOR:0,GEODECIMAL:3};LocatienetLib.CoordFormat.registerEnum("LocatienetLib.CoordFormat");var g_map=null;LocatienetLib.MapControl=function(c,d,e){LocatienetLib.MapControl.initializeBase(this,[c]);this._coordformat=LocatienetLib.CoordFormat.GEODECIMAL;this._viewmode=LocatienetLib.MapViewMode.MAP;var a=Sys.UI.DomElement.getBounds(this.get_element());this._width=a.width;this._height=a.height;this._tiled=(null!=d)?d:false;this._kickstart=(null!=e)?e:true;this._rect=new TripzoomLib.Element.Rect(319871,7061126,1014271,6669126);this._changedDelegate=Function.createDelegate(this,this._raiseChanged);this.onchanged=null;this._loadDelegate=Function.createDelegate(this,this._raiseLoad);this.onload=null;this._resizeDelegate=Function.createDelegate(this,this._raiseResize);this.onresize=null;this._errorDelegate=Function.createDelegate(this,this._raiseError);this.onerror=null;};LocatienetLib.MapControl.prototype={initialize:function(){LocatienetLib.MapControl.callBaseMethod(this,"initialize");date=new Date();this._includeCSS(TripzoomLib.Constants.BASE_URL+"css/Locatienetlib.css?d="+date.toUTCString());if(this.onchanged){this.add_changed(this.onchanged);}if(this.onload){this.add_load(this.onload);}if(this.onresize){this.add_resize(this.onresize);}if(this.onerror){this.add_error(this.onerror);}g_map=$create(TripzoomLib.GUI.Map.Map,{parent:this.get_element(),tiled:this._tiled,viewmode:this._viewmode},{changed:this._changedDelegate,load:this._loadDelegate,resize:this._resizeDelegate,error:this._errorDelegate});if(this._kickstart){g_map.set_rect(this._rect);}},dispose:function(){LocatienetLib.MapControl.callBaseMethod(this,"dispose");},CreateLayer:function(a,c,b){layer=$create(LocatienetLib.MapLayer,{mapcontrol:this,title:a,type:c,style:b});return layer;},getMapObject:function(){return g_map;},set_coordformat:function(a){this._coordformat=a;},get_coordformat:function(a){return this._coordformat;},get_width:function(){return this._width;},set_width:function(a){this._width=a;},get_height:function(){return this._height;},set_height:function(a){this._height=a;},get_viewmode:function(){return this._viewmode;},set_viewmode:function(a){this._viewmode=a;},set_kickstart:function(a){this._kickstart=a;},get_rect:function(){return TripzoomLib.Gis.Utils.TransformRect(g_map.get_mapview().get_viewrect(),LocatienetLib.CoordFormat.MERCATOR,this.get_coordformat());},set_rect:function(a){if(!TripzoomLib.Element.Rect.isInstanceOfType(a)){throw Error.argumentType("value",Object.getType(a),TripzoomLib.Element.Rect,"set_rect");}if(this._rect!=a){this._rect=a;if(this._coordformat!=LocatienetLib.CoordFormat.MERCATOR){this._rect=TripzoomLib.Gis.Utils.TransformRect(this._rect,this.get_coordformat(),LocatienetLib.CoordFormat.MERCATOR);}g_map.set_rect(this._rect);g_map.Update();}},get_language:function(){return g_map.get_language();},set_language:function(a){g_map.set_language(a);},set_center:function(b,a){if(!TripzoomLib.Element.Point.isInstanceOfType(b)){throw Error.argumentType("point",Object.getType(b),TripzoomLib.Element.Point,"set_center");}if(this.get_coordformat()!=LocatienetLib.CoordFormat.MERCATOR){b=TripzoomLib.Gis.Utils.TransformPoint(b,this.get_coordformat(),LocatienetLib.CoordFormat.MERCATOR);}g_map.set_center(b,(null!=a)?parseInt(a):null);},show_toolbar:function(a){switch(a){case LocatienetLib.MapToolbar.mapstyle:g_map.get_mapstyletoolbar().set_visible(true);break;case LocatienetLib.MapToolbar.navigation:g_map.get_toolbar().set_visible(true);break;case LocatienetLib.MapToolbar.overview:g_map.get_overviewtoolbar().set_visible(true);break;}},hide_toolbar:function(a){switch(a){case LocatienetLib.MapToolbar.mapstyle:g_map.get_mapstyletoolbar().set_visible(false);break;case LocatienetLib.MapToolbar.navigation:g_map.get_toolbar().set_visible(false);break;case LocatienetLib.MapToolbar.overview:g_map.get_overviewtoolbar().set_visible(false);break;}},update:function(){g_map.Update();},_raiseChanged:function(a,b){handler=this.get_events().getHandler("changed");if(handler){handler(this,Sys.EventArgs.Empty);}},add_changed:function(a){this.get_events().addHandler("changed",a);},remove_changed:function(a){this.get_events().removeHandler("changed",a);},_raiseLoad:function(a,b){handler=this.get_events().getHandler("load");if(handler){handler(this,Sys.EventArgs.Empty);}},add_load:function(a){this.get_events().addHandler("load",a);},remove_load:function(a){this.get_events().removeHandler("load",a);},_raiseResize:function(a,b){handler=this.get_events().getHandler("resize");if(handler){handler(this,Sys.EventArgs.Empty);}},add_resize:function(a){this.get_events().addHandler("resize",a);},remove_resize:function(a){this.get_events().removeHandler("resize",a);},_raiseError:function(a,b){handler=this.get_events().getHandler("error");if(handler){handler(a,b);}},add_error:function(a){this.get_events().addHandler("error",a);},remove_error:function(a){this.get_events().removeHandler("error",a);},_includeCSS:function(a){var b=document.createElement("link");b.rel="stylesheet";b.type="text/css";b.href=a;document.getElementsByTagName("head")[0].appendChild(b);}};LocatienetLib.MapControl.registerClass("LocatienetLib.MapControl",Sys.UI.Control);LocatienetLib.MapLayer=function(){LocatienetLib.MapLayer.initializeBase(this);this._title;this._type=LocatienetLib.MapLayerStyle.INFO;this._style=null;this._mapcontrol=null;this._control=null;this.onclick=null;};LocatienetLib.MapLayer.prototype={initialize:function(){LocatienetLib.MapLayer.callBaseMethod(this,"initialize");layermanager=g_map.get_layermanager();this._control=layermanager.Add(this._title);this._control.set_static(true);this._control.set_type(this._type);this._control.set_style(this._style);if(this.onclick){this.add_click(this.onclick);}this._control.add_click(this._raiseClick);},dispose:function(){g_map.get_layermanager().Remove(this._title);LocatienetLib.MapLayer.callBaseMethod(this,"dispose");},Add:function(a){point=TripzoomLib.Gis.Utils.TransformPoint(a._point,this.get_mapcontrol().get_coordformat(),LocatienetLib.CoordFormat.MERCATOR);return this._control.Add($create(TripzoomLib.Element.LayerObject,{layer:this._control,geometry:point,title:a._title,text:a._text,bitmap:a._bitmap}));},AddShape:function(c,a,b){var a=this._TransformCoords(a);return this._control.AddShape(c,a,b);},_TransformCoords:function(a){var c=a;var b=this.get_mapcontrol().get_coordformat();if(b!=LocatienetLib.CoordFormat.MERCATOR){if(TripzoomLib.Utils.isArray(a)){for(var d=0;d<a.length;d++){var e=TripzoomLib.Gis.Utils.TransformPoint(a[d],b,LocatienetLib.CoordFormat.MERCATOR);c[d]=e;}}else{var e=TripzoomLib.Gis.Utils.TransformPoint(a,b,LocatienetLib.CoordFormat.MERCATOR);c=e;}}return c;},get_title:function(){return this._title;},set_title:function(a){if(this._title!=a){this._title=a;}},get_type:function(){return this._type;},set_type:function(a){if(a&&this._type!=a){this._type=a;if(this.get_control()){this.get_control().set_type(this._type);}}},get_style:function(){return this._style;},set_style:function(a){if(this._style!=a){this._style=a;if(this.get_control()){this.get_control().set_style(this._style);}}},set_mapcontrol:function(a){this._mapcontrol=a;},get_mapcontrol:function(){return this._mapcontrol;},get_control:function(){return this._control;},get_rect:function(){return TripzoomLib.Gis.Utils.TransformRect(this.get_control().get_rect(),LocatienetLib.CoordFormat.MERCATOR,this.get_mapcontrol().get_coordformat());},_raiseClick:function(a,b){handler=this.get_events().getHandler("click");if(handler){handler(this,Sys.EventArgs.Empty);}},add_click:function(a){this.get_events().addHandler("click",a);},remove_click:function(a){this.get_events().removeHandler("click",a);}};LocatienetLib.MapLayer.registerClass("LocatienetLib.MapLayer",Sys.Component);LocatienetLib.MapLayerObject=function(a,b,d,c){this._point=new TripzoomLib.Element.Point(a,b);this._bitmap=(c)?c:"standard.gif";this._text=d;this._type=null;this._url=null;};LocatienetLib.MapLayerObject.prototype={get_url:function(){return this._url;},set_url:function(a){this._url=a;},get_bitmap:function(){return this._bitmap;},set_bitmap:function(a){this._bitmap=a;},get_text:function(){return this._text;},set_text:function(a){if(this._text!=a){this._text=a;}},get_type:function(){return this._type;},set_type:function(a){this._type=a;}};LocatienetLib.MapLayerObject.registerClass("LocatienetLib.MapLayerObject");LocatienetLib.GeoXml=function(a,b){LocatienetLib.GeoXml.initializeBase(this);this._layer=a;this._url=b;this._json=null;this._completeDelegate=Function.createDelegate(this,this._onComplete);this.oncomplete=null;};LocatienetLib.GeoXml.prototype={initialize:function(){LocatienetLib.GeoXml.callBaseMethod(this,"initialize");if(this.oncomplete){this.add_complete(this.oncomplete);}this._update();},dispose:function(){LocatienetLib.GeoXml.callBaseMethod(this,"dispose");},_update:function(){showMapSpinner(true);this._json=new TripzoomLib.Net.GeoJSONRequest(this._url,this._completeDelegate);this._json.set_sender(this);this._json.initialize();},get_url:function(){return this._url;},set_url:function(a){if(this._url!=a){this._url=a;this._update();}},_onComplete:function(a,c){showMapSpinner(true);var e=a._layer.get_control();e.Clear();data=this._json.get_responseData();if(data){for(var d=0;d<data.length;d++){text=(data[d].Description)?data[d].Description:"";bitmap=(data[d].Marker)?data[d].Marker:"standard.gif";switch(data[d].Type){case LocatienetLib.MapShapeType.POINT:Sys.Debug.fail("");e.Add($create(TripzoomLib.Element.LayerObject,{layer:e,geometry:new TripzoomLib.Element.Point(data[d].Point.point.x,data[d].Point.point.y),title:data[d].Title,text:text,bitmap:bitmap,url:data[d].Link}));break;case LocatienetLib.MapShapeType.CIRCLE:var b=new LocatienetLib.MapCircleShapeStyle();b.radius=data[d].Style.Radius;b.fill=data[d].Style.Fill;b.fillColor=data[d].Style.FillColor;b.strokeStyle=data[d].Style.StrokeStyle;b.lineWidth=data[d].Style.LineWidth;e.AddShape(data[d].Type,{x:data[d].Point.point.x,y:data[d].Point.point.y},b);break;case LocatienetLib.MapShapeType.POLYGON:case LocatienetLib.MapShapeType.LINE:e.AddShape(data[d].Type,data[d].LineString.lineString.wrappedPoints);break;}}}showMapSpinner(false);this._raiseComplete(c);},_raiseComplete:function(a){handler=this.get_events().getHandler("complete");if(handler){handler(this,a);}},add_complete:function(a){this.get_events().addHandler("complete",a);},remove_complete:function(a){this.get_events().removeHandler("complete",a);}};LocatienetLib.GeoXml.registerClass("LocatienetLib.GeoXml",Sys.Component);Type.registerNamespace("LocatienetLib.Element");LocatienetLib.Element.Point=function(a,b){LocatienetLib.Element.Point.initializeBase(this,[a,b]);};LocatienetLib.Element.Point.registerClass("LocatienetLib.Element.Point",TripzoomLib.Element.Point);LocatienetLib.Element.Rect=function(c,b,d,a){LocatienetLib.Element.Rect.initializeBase(this,[c,b,d,a]);};LocatienetLib.Element.Rect.prototype={toString:function(){return this.left+"_"+this.top+"_"+this.right+"_"+this.bottom;}};LocatienetLib.Element.Rect.registerClass("LocatienetLib.Element.Rect",TripzoomLib.Element.Rect);LocatienetLib.MapShapeStyle=function(){this.lineWidth=5;this.strokeStyle="blue";};LocatienetLib.MapShapeStyle.registerClass("LocatienetLib.MapShapeStyle",TripzoomLib.GUI.Map.Controls.ShapeStyle);LocatienetLib.MapCircleShapeStyle=function(){this.radius=1000;};LocatienetLib.MapCircleShapeStyle.registerClass("LocatienetLib.MapCircleShapeStyle",TripzoomLib.GUI.Map.Controls.CircleShapeStyle);
if(/MSIE/.test(navigator.userAgent)&&!window.CanvasRenderingContext2D){(function(){var n=Math,a=n.round,q=n.sin,r=n.cos,c=10,u=c/2,e={init:function(i){var j=i||document;if(/MSIE/.test(navigator.userAgent)&&!window.opera){var m=this;j.attachEvent("onreadystatechange",function(){m.r(j);});}},r:function(i){if(i.readyState=="complete"){if(!i.namespaces.s){i.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml");}var j=i.createStyleSheet();j.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}";var m=i.getElementsByTagName("canvas");for(var y=0;y<m.length;y++){if(!m[y].getContext){this.initElement(m[y]);}}}},q:function(i){var j=i.outerHTML,m=i.ownerDocument.createElement(j);if(j.slice(-2)!="/>"){var y="/"+i.tagName,z;while((z=i.nextSibling)&&z.tagName!=y){z.removeNode();}if(z){z.removeNode();}}i.parentNode.replaceChild(m,i);return m;},initElement:function(i){i=this.q(i);i.getContext=function(){if(this.l){return this.l;}return this.l=new p(this);};i.attachEvent("onpropertychange",h);i.attachEvent("onresize",k);var j=i.attributes;if(j.width&&j.width.specified){i.style.width=j.width.nodeValue+"px";}else{i.width=i.clientWidth;}if(j.height&&j.height.specified){i.style.height=j.height.nodeValue+"px";}else{i.height=i.clientHeight;}return i;}};function h(i){var j=i.srcElement;switch(i.propertyName){case"width":j.style.width=j.attributes.width.nodeValue+"px";j.getContext().clearRect();break;case"height":j.style.height=j.attributes.height.nodeValue+"px";j.getContext().clearRect();break;}}function k(i){var j=i.srcElement;if(j.firstChild){j.firstChild.style.width=j.clientWidth+"px";j.firstChild.style.height=j.clientHeight+"px";}}e.init();var f=[];for(var v=0;v<16;v++){for(var w=0;w<16;w++){f[v*16+w]=v.toString(16)+w.toString(16);}}function o(){return[[1,0,0],[0,1,0],[0,0,1]];}function x(j,m){var y=o();for(var z=0;z<3;z++){for(var A=0;A<3;A++){var B=0;for(var i=0;i<3;i++){B+=j[z][i]*m[i][A];}y[z][A]=B;}}return y;}function s(i,j){j.fillStyle=i.fillStyle;j.lineCap=i.lineCap;j.lineJoin=i.lineJoin;j.lineWidth=i.lineWidth;j.miterLimit=i.miterLimit;j.shadowBlur=i.shadowBlur;j.shadowColor=i.shadowColor;j.shadowOffsetX=i.shadowOffsetX;j.shadowOffsetY=i.shadowOffsetY;j.strokeStyle=i.strokeStyle;j.d=i.d;j.e=i.e;}function t(j){var m,y=1;j=String(j);if(j.substring(0,3)=="rgb"){var z=j.indexOf("(",3),A=j.indexOf(")",z+1),B=j.substring(z+1,A).split(",");m="#";for(var i=0;i<3;i++){m+=f[Number(B[i])];}if(B.length==4&&j.substr(3,1)=="a"){y=B[3];}}else{m=j;}return[m,y];}function g(i){switch(i){case"butt":return"flat";case"round":return"round";case"square":default:return"square";}}function p(i){this.a=o();this.m=[];this.k=[];this.c=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=c*1;this.globalAlpha=1;this.canvas=i;var j=i.ownerDocument.createElement("div");j.style.width=i.clientWidth+"px";j.style.height=i.clientHeight+"px";j.style.overflow="hidden";j.style.position="absolute";i.appendChild(j);this.j=j;this.d=1;this.e=1;}var b=p.prototype;b.clearRect=function(){this.j.innerHTML="";this.c=[];};b.beginPath=function(){this.c=[];};b.moveTo=function(i,j){this.c.push({type:"moveTo",x:i,y:j});this.f=i;this.g=j;};b.lineTo=function(i,j){this.c.push({type:"lineTo",x:i,y:j});this.f=i;this.g=j;};b.bezierCurveTo=function(i,j,m,y,z,A){this.c.push({type:"bezierCurveTo",cp1x:i,cp1y:j,cp2x:m,cp2y:y,x:z,y:A});this.f=z;this.g=A;};b.quadraticCurveTo=function(j,m,y,z){var A=this.f+0.666666666666667*(j-this.f),B=this.g+0.666666666666667*(m-this.g),C=A+(y-this.f)/3,i=B+(z-this.g)/3;this.bezierCurveTo(A,B,C,i,y,z);};b.arc=function(y,z,A,B,C,E){A*=c;var F=E?"at":"wa",i=y+r(B)*A-u,j=z+q(B)*A-u,m=y+r(C)*A-u,D=z+q(C)*A-u;if(i==m&&!E){i+=0.125;}this.c.push({type:F,x:y,y:z,radius:A,xStart:i,yStart:j,xEnd:m,yEnd:D});};b.rect=function(i,j,m,y){this.moveTo(i,j);this.lineTo(i+m,j);this.lineTo(i+m,j+y);this.lineTo(i,j+y);this.closePath();};b.strokeRect=function(i,j,m,y){this.beginPath();this.moveTo(i,j);this.lineTo(i+m,j);this.lineTo(i+m,j+y);this.lineTo(i,j+y);this.closePath();this.stroke();};b.fillRect=function(i,j,m,y){this.beginPath();this.moveTo(i,j);this.lineTo(i+m,j);this.lineTo(i+m,j+y);this.lineTo(i,j+y);this.closePath();this.fill();};b.createLinearGradient=function(i,j,m,y){var z=new l("gradient");return z;};b.createRadialGradient=function(j,m,y,z,A,B){var i=new l("gradientradial");i.n=y;i.o=B;i.i.x=j;i.i.y=m;return i;};b.drawImage=function(M,N){var O,P,Q,S,H,J,K,L,R=M.runtimeStyle.width,I=M.runtimeStyle.height;M.runtimeStyle.width="auto";M.runtimeStyle.height="auto";var A=M.width,C=M.height;M.runtimeStyle.width=R;M.runtimeStyle.height=I;if(arguments.length==3){O=arguments[1];P=arguments[2];H=(J=0);K=(Q=A);L=(S=C);}else{if(arguments.length==5){O=arguments[1];P=arguments[2];Q=arguments[3];S=arguments[4];H=(J=0);K=A;L=C;}else{if(arguments.length==9){H=arguments[1];J=arguments[2];K=arguments[3];L=arguments[4];O=arguments[5];P=arguments[6];Q=arguments[7];S=arguments[8];}else{throw"Invalid number of arguments";}}}var D=this.b(O,P),E=[],F=10,G=10;E.push(" <g_vml_:group",' coordsize="',c*F,",",c*G,'"',' coordorigin="0,0"',' style="width:',F,";height:",G,";position:absolute;");if(this.a[0][0]!=1||this.a[0][1]){var U=[];U.push("M11='",this.a[0][0],"',","M12='",this.a[1][0],"',","M21='",this.a[0][1],"',","M22='",this.a[1][1],"',","Dx='",a(D.x/c),"',","Dy='",a(D.y/c),"'");var m=D,i=this.b(O+Q,P),j=this.b(O,P+S),T=this.b(O+Q,P+S);m.x=Math.max(m.x,i.x,j.x,T.x);m.y=Math.max(m.y,i.y,j.y,T.y);E.push("padding:0 ",a(m.x/c),"px ",a(m.y/c),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",U.join(""),", sizingmethod='clip');");}else{E.push("top:",a(D.y/c),"px;left:",a(D.x/c),"px;");}E.push(' ">','<g_vml_:image src="',M.src,'"',' style="width:',c*Q,";"," height:",c*S,';"',' cropleft="',H/A,'"',' croptop="',J/C,'"',' cropright="',(A-H-K)/A,'"',' cropbottom="',(C-J-L)/C,'"'," />","</g_vml_:group>");this.j.insertAdjacentHTML("BeforeEnd",E.join(""));};b.stroke=function(P){var Q=[],R=t(P?this.fillStyle:this.strokeStyle),S=R[0],T=R[1]*this.globalAlpha,V=10,K=10;Q.push("<g_vml_:shape",' fillcolor="',S,'"',' filled="',Boolean(P),'"',' style="position:absolute;width:',V,";height:",K,';"',' coordorigin="0 0" coordsize="',c*V," ",c*K,'"',' stroked="',!P,'"',' strokeweight="',this.lineWidth,'"',' strokecolor="',S,'"',' path="');var M={x:null,y:null},N={x:null,y:null};for(var O=0;O<this.c.length;O++){var U=this.c[O];if(U.type=="moveTo"){Q.push(" m ");var L=this.b(U.x,U.y);Q.push(a(L.x),",",a(L.y));}else{if(U.type=="lineTo"){Q.push(" l ");var L=this.b(U.x,U.y);Q.push(a(L.x),",",a(L.y));}else{if(U.type=="close"){Q.push(" x ");}else{if(U.type=="bezierCurveTo"){Q.push(" c ");var L=this.b(U.x,U.y),A=this.b(U.cp1x,U.cp1y),E=this.b(U.cp2x,U.cp2y);Q.push(a(A.x),",",a(A.y),",",a(E.x),",",a(E.y),",",a(L.x),",",a(L.y));}else{if(U.type=="at"||U.type=="wa"){Q.push(" ",U.type," ");var L=this.b(U.x,U.y),F=this.b(U.xStart,U.yStart),G=this.b(U.xEnd,U.yEnd);Q.push(a(L.x-this.d*U.radius),",",a(L.y-this.e*U.radius)," ",a(L.x+this.d*U.radius),",",a(L.y+this.e*U.radius)," ",a(F.x),",",a(F.y)," ",a(G.x),",",a(G.y));}}}}}if(L){if(M.x==null||L.x<M.x){M.x=L.x;}if(N.x==null||L.x>N.x){N.x=L.x;}if(M.y==null||L.y<M.y){M.y=L.y;}if(N.y==null||L.y>N.y){N.y=L.y;}}}Q.push(' ">');if(typeof this.fillStyle=="object"){var I={x:"50%",y:"50%"},J=N.x-M.x,Z=N.y-M.y,m=J>Z?J:Z;I.x=a(this.fillStyle.i.x/J*100+50)+"%";I.y=a(this.fillStyle.i.y/Z*100+50)+"%";var i=[];if(this.fillStyle.p=="gradientradial"){var j=this.fillStyle.n/m*100,W=this.fillStyle.o/m*100-j;}else{var j=0,W=100;}var X={offset:null,color:null},Y={offset:null,color:null};this.fillStyle.h.sort(function(y,z){return y.offset-z.offset;});for(var O=0;O<this.fillStyle.h.length;O++){var H=this.fillStyle.h[O];i.push(H.offset*W+j,"% ",H.color,",");if(H.offset>X.offset||X.offset==null){X.offset=H.offset;X.color=H.color;}if(H.offset<Y.offset||Y.offset==null){Y.offset=H.offset;Y.color=H.color;}}i.pop();Q.push("<g_vml_:fill",' color="',Y.color,'"',' color2="',X.color,'"',' type="',this.fillStyle.p,'"',' focusposition="',I.x,", ",I.y,'"',' colors="',i.join(""),'"',' opacity="',T,'" />');}else{if(P){Q.push('<g_vml_:fill color="',S,'" opacity="',T,'" />');}else{Q.push("<g_vml_:stroke",' opacity="',T,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',g(this.lineCap),'"',' weight="',this.lineWidth,'px"',' color="',S,'" />');}}Q.push("</g_vml_:shape>");this.j.insertAdjacentHTML("beforeEnd",Q.join(""));this.c=[];};b.fill=function(){this.stroke(true);};b.closePath=function(){this.c.push({type:"close"});};b.b=function(i,j){return{x:c*(i*this.a[0][0]+j*this.a[1][0]+this.a[2][0])-u,y:c*(i*this.a[0][1]+j*this.a[1][1]+this.a[2][1])-u};};b.save=function(){var i={};s(this,i);this.k.push(i);this.m.push(this.a);this.a=x(o(),this.a);};b.restore=function(){s(this.k.pop(),this);this.a=this.m.pop();};b.translate=function(i,j){var m=[[1,0,0],[0,1,0],[i,j,1]];this.a=x(m,this.a);};b.rotate=function(i){var j=r(i),m=q(i),y=[[j,m,0],[-m,j,0],[0,0,1]];this.a=x(y,this.a);};b.scale=function(i,j){this.d*=i;this.e*=j;var m=[[i,0,0],[0,j,0],[0,0,1]];this.a=x(m,this.a);};b.clip=function(){};b.arcTo=function(){};b.createPattern=function(){return new d;};function l(i){this.p=i;this.n=0;this.o=0;this.h=[];this.i={x:0,y:0};}l.prototype.addColorStop=function(i,j){j=t(j);this.h.push({offset:1-i,color:j});};function d(){}G_vmlCanvasManager=e;CanvasRenderingContext2D=p;CanvasGradient=l;CanvasPattern=d;})();}function JSONScriptRequest(a){this._initialize_all();if(typeof a!="undefined"){if(typeof a.callback_param!="undefined"){this._callback_param=a.callback_param;}}}JSONScriptRequest.VERSION=0.03;JSONScriptRequest._extends=function(a,c,g){if(typeof g=="undefined"||g==null){g={};}if(a.prototype.constructor==Object.prototype.constructor){a.prototype.constructor=a;}var b=function(){};b.prototype=a.prototype;c.prototype=new b();for(var d in g){c.prototype[d]=g[d];}var f=["constructor","hasOwnProperty","isPrototypeOf","toLocaleString","toString","valueOf"];for(var e=0;e<f.length;e++){var d=f[e];if(g.hasOwnProperty(d)){c.prototype[d]=g[d];}}c.prototype.constructor=c;c.prototype.base=a;return c;};JSONScriptRequest._Exception=JSONScriptRequest._extends(Object,function(a,b){this.name=a;this.message=b;},{toString:function(){return this.name+": "+this.message+" [JSONScriptRequest]";}});JSONScriptRequest.SYNTAX_ERR=JSONScriptRequest._extends(JSONScriptRequest._Exception,function(a){this.base("SYNTAX_ERR",a);});JSONScriptRequest.SECURITY_ERR=JSONScriptRequest._extends(JSONScriptRequest._Exception,function(a){this.base("SECURITY_ERR",a);});JSONScriptRequest.INVALID_STATE_ERR=JSONScriptRequest._extends(JSONScriptRequest._Exception,function(a){this.base("INVALID_STATE_ERR",a);});JSONScriptRequest._RE={method:/^(?:OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|[\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5A\x5E-\x7A\x7C\x7E]+)$/,"field-name":/^[\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5A\x5E-\x7A\x7C\x7E]+$/,"http_URL-custom":/^.+$/,userinfo:/^([A-Za-z0-9\-\._~]|%[0-9A-F][0-9A-F]|[!$&\x27\(\)\*\+,;=]|:)*$/,"username-value":/^\x22(?:[\x20\x21\x23-\x7E\x80-\xFF]|(?:\x0D\x0A)?[\x20\x09]+|\\[\x00-\x7F])*\x22$/,"username-value-custom":/^(?:[\x20\x21\x23-\x7E\x80-\xFF]|(?:\x0D\x0A)?[\x20\x09]+|\\[\x00-\x7F])*$/,"field-value":/^(?:(?:(?:[\x20\x21\x23-\x7E\x80-\xFF]|(?:\x0D\x0A)?[\x20\x09]+)*|(?:[\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5A\x5E-\x7A\x7C\x7E]+|[\x22\x28\x29\x2C\x2F\x3A-\x40\x5B-\x5D\x7B\x7D]| (?:\x22(?:[\x20\x21\x23-\x7E\x80-\xFF]|(?:\x0D\x0A)?[\x20\x09]+|\\[\x00-\x7F])*\x22))*)|(?:\x0D\x0A)?[\x20\x09]+)*$/};JSONScriptRequest._toSourceHelper=function(c){if(typeof c=="undefined"){return"undefined";}else{if(c==null){return"null";}else{if(c.constructor==String){return'"'+c+'"';}else{if(c.constructor==Number){return c;}else{if(c.constructor==Array){var a=[];for(var d=0,b=c.length;d<b;d++){a.push(JSONScriptRequest._toSourceHelper(c[d]));}return"["+a.join(", ")+"]";}else{if(c.constructor==Object){var a=[];for(var d in c){a.push(d+":"+JSONScriptRequest._toSourceHelper(c[d]));}return"{"+a.join(", ")+"}";}}}}}}};JSONScriptRequest._toSource=function(a){if(a&&a.constructor==Object){return"("+JSONScriptRequest._toSourceHelper(a)+")";}else{return JSONScriptRequest._toSourceHelper(a);}};JSONScriptRequest._dispatchers=[];JSONScriptRequest.prototype={addEventListener:function(){throw new JSONScriptRequest.SYNTAX_ERR("addEventListener is not implemented");return;},removeEventListener:function(){throw new JSONScriptRequest.SYNTAX_ERR("removeEventListener is not implemented");return;},dispatchEvent:function(){throw new JSONScriptRequest.SYNTAX_ERR("dispatchEvent is not implemented");return false;},addEventListenerNS:function(){throw new JSONScriptRequest.SYNTAX_ERR("addEventListenerNS is not implemented");return;},removeEventListenerNS:function(){throw new JSONScriptRequest.SYNTAX_ERR("removeEventListenerNS is not implemented");return;},open:function(a,c,d,f,b){if(this.readyState==4){this._initialize_all();}if(typeof a=="undefined"||a==null||!a.match(JSONScriptRequest._RE.method)){throw new JSONScriptRequest.SYNTAX_ERR("method: "+a);}var g=a.toUpperCase();if(g!="GET"&&(g=="POST"||g=="HEAD"||g=="PUT"||g=="DELETE"||g=="PROPFIND"||g=="PROPPATCH"||g=="MKCOL"||g=="COPY"||g=="MOVE"||g=="LOCK"||g=="UNLOCK"||g=="VERSION-CONTROL"||g=="REPORT"||g=="CHECKOUT"||g=="CHECKIN"||g=="UNCHECKOUT"||g=="MKWORKSPACE"||g=="UPDATE"||g=="LABEL"||g=="MERGE"||g=="BASELINE-CONTROL"||g=="MKACTIVITY"||g=="ORDERPATCH"||g=="ACL")){throw new JSONScriptRequest.SYNTAX_ERR(a+" is not supported");}if(g!="GET"){throw new JSONScriptRequest.SYNTAX_ERR(a+" is not supported");}if(g=="GET"||g=="POST"||g=="HEAD"||g=="PUT"||g=="DELETE"){a=g;}if(typeof c=="undefined"||c==null||!c.match(JSONScriptRequest._RE["http_URL-custom"])){throw new JSONScriptRequest.SYNTAX_ERR("url: "+c);}if(0){throw new JSONScriptRequest.SECURITY_ERR("url: "+c+" is cross-site");}if(c.match(new RegExp("^[^:]+://([^@]*)@[^/]+"))){throw new JSONScriptRequest.SYNTAX_ERR(RegExp.$1+" is not supported");var e=RegExp.$1;if(!e.match(JSONScriptRequest._RE.userinfo)){throw new JSONScriptRequest.SYNTAX_ERR("userinfo: "+e);}e=(e.indexOf(":")!=-1)?e.split(/:/):[e];if(2<e.length){throw new JSONScriptRequest.SYNTAX_ERR("userinfo: "+e);}if(typeof f=="undefined"){f=e[0];}if(typeof b=="undefined"){b=e[1];}}if(f!=null&&typeof f!="undefined"&&!f.match(JSONScriptRequest._RE["username-value-custom"])){throw new JSONScriptRequest.SYNTAX_ERR("user: "+f);}this._method=a;this._url=c;this._async=typeof d=="undefined"?true:d;this._user=typeof f=="undefined"?null:f;this._password=typeof b=="undefined"?null:b;this.responseText=null;this.responseXML=null;this.status=0;this.statusText="";this._requestHeaders={};this._readystatechange(1);return;},setRequestHeader:function(c,a){if(this.readyState!=1){throw new JSONScriptRequest.INVALID_STATE_ERR("readyState: "+this.readyState+" is other than 1");}if(typeof c=="undefined"||c==null||!c.match(JSONScriptRequest._RE["field-name"])){throw new JSONScriptRequest.SYNTAX_ERR("header: "+c);}if(!a.match(JSONScriptRequest._RE["field-value"])){throw new JSONScriptRequest.SYNTAX_ERR("value: "+a);}if(c.match(new RegExp("Accept-Charset|Accept-Encoding|Content-Length|Expect|Date|Host|Keep-Alive|Referer|TE|Trailer|Transfer-Encoding|Upgrade","i"))){return;}if(c.match(new RegExp("Authorization|Content-Base|Content-Location|Content-MD5|Content-Range|Content-Type|Content-Version|Delta-Base|Depth|Destination|ETag|Expect|From|If-Modified-Since|If-Range|If-Unmodified-Since|Max-Forwards|MIME-Version|Overwrite|Proxy-Authorization|SOAPAction|Timeout","i"))){this._requestHeaders[c]=a;}else{if(c in this._requestHeaders){if(typeof this._requestHeaders[c]=="string"){var b=this._requestHeaders[c];this._requestHeaders[c]=[];this._requestHeaders[c].push(b);this._requestHeaders[c].push(a);}else{this._requestHeaders[c].push(a);}}else{this._requestHeaders[c]=a;}}return;},send:function(d){if(this.readyState!=1){throw new JSONScriptRequest.INVALID_STATE_ERR("readyState: "+this.readyState+" is other than 1");}var a=this._url;if(a.indexOf("http://")==-1){if(typeof window.document.baseURI!="undefined"&&window.document.baseURI.match(new RegExp("(.*/)[^/]*$"))){a=RegExp.$1+a;}else{}}this._create_dispatcher();a+=(a.indexOf("?")==-1?"?":"&")+this._callback_param+"="+encodeURIComponent("JSONScriptRequest._dispatchers["+this._id+"]");if(typeof d=="undefined"){d=null;}if(d!=null){if(typeof d=="string"){}else{if(typeof d=="object"&&"nodeType" in d&&d.nodeType==9){if("xmlEncoding" in d){}else{}}else{d=d.toString();}}a+="&"+d;}if(this._user!=null||this._password!=null){var c=(this._user!=null?this._user:"")+":"+(this._password!=null?this._password:"");a.replace(new RegExp("(https?://)(.+)","i"),RegExp.$1+c+"@"+RegExp.$2);}var b=document.createElement("script");b.src=a;b.type="text/javascript";b.charset="UTF-8";this._readystatechange(2);document.documentElement.appendChild(b);return;},abort:function(){var a=this._id;this._initialize_all();if(a!=null){JSONScriptRequest._dispatchers[a]=function(b){delete JSONScriptRequest._dispatchers[a];};}return;},getAllResponseHeaders:function(){if(this.readyState!=3&&this.readyState!=4){throw new JSONScriptRequest.INVALID_STATE_ERR("readyState: "+this.readyState+" is other than 3 or 4");}var a="";for(var b in this._responseHeaders){a+=b+": "+this._responseHeaders[b].toString()+"\x0D\x0A";}return a;},getResponseHeader:function(b){if(!b.match(JSONScriptRequest._RE["field-name"])){throw new JSONScriptRequest.SYNTAX_ERR("header: "+b);}if(this.readyState!=3&&this.readyState!=4){throw new JSONScriptRequest.INVALID_STATE_ERR("readyState: "+this.readyState+" is other than 3 or 4");}b=b.toUpperCase();var c=[];for(var a in this._responseHeaders){if(a.toUpperCase()==b){c.push(this._responseHeaders[a]);}}if(c.length==0){return null;}else{return c.join(", ");}},_initialize:function(){this.onreadystatechange=null;this.readyState=0;this.responseText=null;this.responseJSON=null;this.status=0;this.statusText="";this._readystatechange(0);},_initialize_dispatcher:function(){if(this._id!=null){delete JSONScriptRequest._dispatchers[this._id];this._id=null;}},_initialize_all:function(){this._initialize();this._initialize_dispatcher();this._callback_param="callback";this._method=null;this._url=null;this._async=true;this._user=null;this._password=null;this._requestHeaders={};this._responseHeaders={};},_readystatechange:function(a){if(this.readyState==a){}this.readyState=a;if(this.readyState!=4&&this.responseJSON!=null){throw new JSONScriptRequest.INVALID_STATE_ERR("readyState: "+this.readyState+" is other than 4, butresponseJSON: "+this.responseJSON+" has a value");}if(this.readyState!=3&&this.readyState!=4&&this.responseText!=null){throw new JSONScriptRequest.INVALID_STATE_ERR("readyState: "+this.readyState+" is other than 3 or 4, butresponseText: "+this.responseText+" has a value");}if((this.readyState==3||this.readyState==4)&&(this.status==0||this.statusText=="")){throw new JSONScriptRequest.INVALID_STATE_ERR("status and statusText must be available when readyState is 3 or 4");}if(this.onreadystatechange){this.onreadystatechange();}return;},_create_dispatcher:function(){this._initialize_dispatcher();for(this._id=0;this._id<JSONScriptRequest._dispatchers.length;this._id++){if(!this.id in JSONScriptRequest._dispatchers){break;}}var a=this;JSONScriptRequest._dispatchers[this._id]=(function(){return function(b){a._initialize_dispatcher();a._dispatcher(b);};})();return;},_dispatcher:function(a){if(typeof a=="undefined"||a==null){this.status=400;this.statusText="Bad Request";}else{this.status=200;this.statusText="OK";}this.responseText="";this._readystatechange(3);if(this._method=="HEAD"){this._readystatechange(4);}else{this.responseText=JSONScriptRequest._toSource(a).replace(/^\(/,"").replace(/\)$/,"");this._readystatechange(3);this.responseJSON=a;this._readystatechange(4);}return;}};