
function openPopupWindow(urlPath,name,width,height)
{var myWin=window.open(urlPath,name,'width='+width+',height='+height+',left=100,top=100,scrollbars=yes,resizable=no,status=no');myWin.focus();}
function textCounter(field,maxlimit)
{if(field.value.length>maxlimit)
{field.value=field.value.substring(0,maxlimit);}}
function showInMap(lang,city,zip,street,nr)
{if(!city)
{city="";}
else
{city="&city="+escape(city);}
if(!zip)
{zip="";}
else
{zip="&zip="+zip;}
if(!street)
{street="";}
else
{if(!nr)
{nr="";}
street="&street="+escape(street)+" "+nr;}
formAction='http://map.maponair.com/?client=11849&lang='+lang+'&country=CH'+city+zip+street;var myWin=window.open(formAction,'Maponair','scrollbars=no,menubar=no,height=700,width=650,resizable=yes,toolbar=no,location=no,status=no');myWin.focus();}
function switchFoldState(doCollapse,fullDataContainerId,partialDataContainerId,showMoreElementsLinkContainerId,showLessElementsLinkContainerId)
{var fullDataContainer=document.getElementById(fullDataContainerId);var partialDataContainer=document.getElementById(partialDataContainerId);var showMoreElementsLinkContainer=document.getElementById(showMoreElementsLinkContainerId);var showLessElementsLinkContainer=document.getElementById(showLessElementsLinkContainerId);if(doCollapse)
{fullDataContainer.className="hide_expanded";partialDataContainer.className="show_collapsed";showMoreElementsLinkContainer.className="show_link";showLessElementsLinkContainer.className="hide_link";}
else
{fullDataContainer.className="show_expanded";partialDataContainer.className="hide_collapsed";showMoreElementsLinkContainer.className="hide_link";showLessElementsLinkContainer.className="show_link";}}
function log(text){if(jQuery.browser.mozilla){console.log(text);}}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
jQuery.easing.easeOutQuart=function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;};