var ca_item,ca_item2,ca_list;onload_functions[onload_functions.length]="ca_resize_images();";
function ca_resize_images(){var a,b;b=600;(ca_item=document.getElementById("contentrow"))&&ca_item.clientWidth&&(b=ca_item.clientWidth-200);b<500&&(b=500);document.body.clientWidth&&document.body.clientWidth<b+200&&document.body.clientWidth>800?b=document.body.clientWidth-200:window.innerWidth&&window.innerWidth<b+200&&window.innerWidth>800&&(b=window.innerWidth-200);!window.XMLHttpRequest&&b>1500&&(b=800);ca_main_width&&ca_main_width.indexOf("%")==-1&&(ca_main_width.replace(/px/,""),ca_main_width>
0&&(b=ca_main_width-200));ca_list=ca_item?ca_item.getElementsByTagName("img"):document.getElementsByTagName("img");for(a=0;a<ca_list.length;a++)if(ca_item=ca_list[a],ca_item.width>b)ca_item.style.cursor=document.all?"hand":"pointer",ca_item.style.width=b-50+"px",ca_item.onclick=function(){window.open(this.src,"image","width=700,height=500,resizable=1,scrollbars=1")}}var gmlb_width=640,gmlb_height=480,gmOverlay,gmContainer,gmMap,gmLabel,gmMapObject=null,gm_zoom,gm_mapType,gm_close,gm_marker=null;
function gmLb_init(){var a=document.getElementsByTagName("a");for(i=0;i<a.length;i++)a[i].getAttribute("rel")=="gmap"&&gmLbAddClickEvent(a[i],function(){gm_ShowMap(this);return!1});gmOverlay=document.createElement("div");gmOverlay.setAttribute("id","gmlb_overlay");gmOverlay.style.display="none";gmOverlay.style.position=document.all?"absolute":"fixed";gmOverlay.style.top="0px";gmOverlay.style.left="0px";gmOverlay.style.width=gmlb_width+"px";gmOverlay.style.height=gmlb_height+"px";gmOverlay.style.width=
getFrameWidth();gmOverlay.style.height=getFrameHeight();gmContainer=document.createElement("div");gmContainer.setAttribute("id","gmlb_container");gmContainer.style.width=gmlb_width+"px";gmContainer.style.position="absolute";gmContainer.style.display="inline";gmLabel=document.createElement("div");gmLabel.setAttribute("id","gmlb_label");gmLabel.setAttribute("class","gmlb_label");gmLabel.style.display="block";gmLabel.innerHTML="test";gmClose=document.createElement("div");gmClose.setAttribute("id","gmlb_close");
gmClose.setAttribute("class","gmlb_close");gmClose.style.display="block";gmClose.onclick=function(){gmOverlay.style.display="none";gmLbOnClose()};gmMap=document.createElement("div");gmMap.setAttribute("id","gmlb_map");gmMap.style.width=gmlb_width+"px";gmMap.style.height=gmlb_height+"px";gmMap.style.display="block";gmMap.style.cssFloat="left";gmMap.onclick=function(){return!1};gmContainer.appendChild(gmMap);gmContainer.appendChild(gmLabel);gmContainer.appendChild(gmClose);gmOverlay.appendChild(gmContainer);
document.documentElement.ownerDocument.body.appendChild(gmOverlay)}
function gm_ShowMap(a){if(document.all)gmOverlay.style.top=getScrollHeight()+"px",gmOverlay.style.left=getScrollWidth()+"px";gmOverlay.style.width=getFrameWidth()+"px";gmOverlay.style.height=getFrameHeight()+"px";gmLabel.innerHTML=a.title?a.title:"Google Map";gmContainer.style.visibility="hidden";document.getElementById("gmlb_overlay").style.display="";gmContainer.style.left=(getFrameWidth()-gmContainer.offsetWidth)/2+"px";gmContainer.style.top=(getFrameHeight()-gmContainer.offsetHeight)/2+"px";gmContainer.style.visibility=
"";a=parseGmapLink(a.href);gm_setMap(a);gmLbOnShow()}function gmLbOnShow(){}function gmLbOnClose(){}function getFrameWidth(){if(self.innerWidth)return self.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)return document.documentElement.clientWidth;else if(document.body)return document.body.clientWidth}
function getFrameHeight(){if(self.innerWidth)return self.innerHeight;else if(document.documentElement&&document.documentElement.clientWidth)return document.documentElement.clientHeight;else if(document.body)return document.body.clientHeight}function getScrollWidth(){var a=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft;return a?a:0}function getScrollHeight(){var a=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;return a?a:0}
function gm_setMap(a){GBrowserIsCompatible()&&(gmMapObject||(gmMapObject=new GMap2(gmMap),gmMapObject.addControl(new GLargeMapControl),gmMapObject.addControl(new GMapTypeControl)),gm_mapType=G_NORMAL_MAP,gm_zoom=10,a.t=="k"?(gm_mapType=G_SATELLITE_MAP,gm_zoom=parseInt(a.z)):a.t==""||a.t==null?(gm_mapType=G_NORMAL_MAP,gm_zoom=parseInt(a.z)):a.t=="h"&&(gm_mapType=G_HYBRID_MAP,gm_zoom=parseInt(a.z)),a.lat==null&&a["long"]==null&&a.q!=null&&a.q.indexOf("http://")==-1?(new GClientGeocoder).getLatLng(unescape(a.q.replace(/\+/g,
" ")),function(a){gmMapObject.setCenter(a,gm_zoom,gm_mapType);gm_addMarker(a)}):a.q!=null&&a.q.indexOf("http://")!=-1||(a=new GLatLng(a.lat,a["long"]),gmMapObject.setCenter(a,gm_zoom,gm_mapType),gm_addMarker(a)))}function gm_addMarker(a){gm_marker!=null&&gmMapObject.removeOverlay(gm_marker);gm_marker=new GMarker(a)}function gm_addXMLMarker(a){gm_marker!=null&&gmMapObject.removeOverlay(gm_marker);gm_marker=a;gmMapObject.addOverlay(gm_marker)}
function parseGmapLink(a){a=a.split("?");if(a.length<2)return[];var a=a[1].split("&"),b=[];for(i=0;i<a.length;i++)if(keyValue=a[i].split("="),keyValue[0]!="ll")b[keyValue[0]]=keyValue[1];else{var c=keyValue[1].split(",");b.lat=c[0];b["long"]=c[1]}return b}function showAddress(a){(new GClientGeocoder).getLatLng(a,function(b){b?gmSetCenter(b):alert(a+" not found")})}function gmSetCenter(a){alert(a);document.gmCenter=a}
function gmLbAddLoadEvent(a){var b=window.onload;window.onload=typeof window.onload!="function"?a:function(){b();a()}}function gmLbAddClickEvent(a,b){var c=a.onclick;a.onclick=typeof a.onclick!="function"?b:function(){c();b()}}gmLbAddLoadEvent(gmLb_init);

