function imClearDiv(){var A=new Array();A.push('<div style="clear:both"></div>');return A.join("");}function imEmptyMap(A){var B=new Object();B.mapId=null;B.beenTo=null;B.livedIn=null;B.wantToVisit=null;B.contentLocked=null;B.countryCount=null;B.cityCount=null;B.reviewCount=null;B.photoCount=null;B.userName=A;
B.vtUserIdHex=null;return B;}function getParam(C){var B=window.location.href;var A=B.indexOf(C);if(A==-1){return"";}var F=B.indexOf("&",A);if(F==-1){F=B.length;}var E=B.substring(A,F);var D=E.indexOf("=");if(D==-1){return"";}return E.substring(D+1);}if("undefined"==typeof UTIL){UTIL={};}UTIL.EventDispatchManager=function(){this.eventDispatchers={};
this.initialize=function(){};this.createNewDispatcher=function(A){this.eventDispatchers[A]={listeners:[]};};this.getListeners=function(A){var B;if(this.eventDispatchers[A]){B=this.eventDispatchers[A].listeners;}else{B=[];}return B;};this.fireListeners=function(B,D){var C=this.getListeners(B);for(var A=0;
A<C.length;A++){C[A](D);}};this.addListener=function(A,C){var B=this.getListeners(A);B[B.length]=C;};this.removeListener=function(B,D){var C=this.getListeners(B);for(var A=0;A<C.length;A++){if(C[A]==D){C.splice(A,1);break;}}};this.initialize();};UTIL.resize=function(D,E,B){var C,A;if(UTIL.ua.gecko){if(E){D.style.width=E+"px";
}else{if(B){D.style.height=B+"px";}}}else{A=D.offsetWidth;C=D.offsetHeight;if(!E&&B){E=A*B/C;}else{if(E&&!B){B=C*E/A;}}if(E&&B){D.style.width=E+"px";D.style.height=B+"px";}}};UTIL.addHover=function(A,B){(function(){var C=A;var D=B?B:A;Event.observe(C,"mouseover",function(){D.className+=" hover";});Event.observe(C,"mouseout",function(){D.className=D.className.replace(/\s*hover\s*/," ");
});})();};UTIL.fixIePngs=function(C){var B;if(UTIL.ua.ie>=5.5&&UTIL.ua.isWin32){for(var A=0;A<C.length;A++){poElement=C[A];pngEl=document.createElement("div");pngEl.style.width=poElement.width;pngEl.style.height=poElement.height;pngEl.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+poElement.src+"', sizingMethod='scale')";
pngEl.className=poElement.className;Element.insert(poElement,{after:pngEl});poElement.removeNode(false);}}};UTIL.ua=function(){var D={isWin32:false,ie:0,opera:0,gecko:0,webkit:0};var C=navigator.userAgent,A;var B=C.toLowerCase();D.isWin32=(B.indexOf("win")!=-1)&&(B.indexOf("95")!=-1||B.indexOf("98")!=-1||B.indexOf("nt")!=-1||B.indexOf("win32")!=-1||B.indexOf("32bit")!=-1||B.indexOf("xp")!=-1);
if((/KHTML/).test(C)){D.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){D.webkit=parseFloat(A[1]);}if(!D.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){D.opera=parseFloat(A[1]);}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){D.ie=parseFloat(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){D.gecko=1;
A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){D.gecko=parseFloat(A[1]);}}}}}return D;}();(function(){var A=Class.create();A.prototype={initialize:function(){var G=[];var D=false;var F;var E=function(){if(!D){D=true;F=setInterval(B,200);}};var C=function(){if(D){clearInterval(F);D=false;}};var B=function(){var H,I;
for(H=0;H<G.length;H++){I=G[H];if(I.el.complete){G.splice(H,1);I.callBack();}}if(G.length<=0){C();}};this.addElementLoadCheck=function(H){if(H.el&&H.callBack){G.push(H);E();}};},notifyOnload:function(B,C){if(B.complete){C();}else{var D={el:B,callBack:C};this.addElementLoadCheck(D);}}};UTIL.Onload=new A();
})();
