
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++carousel.js - */
// http://www.janya.com/portal_javascripts/++resource++carousel.js?original=1
var carousel_interval;if(jq('#carousel')){var carousel_rotate=function(){features=jq('.carousel-banner');if(features.length<2)
return;jq('.carousel-banner:visible').fadeOut(300);jq('.carousel-button.selected').removeClass('selected');next=jq('.carousel-banner:visible').next('.carousel-banner');if(next.length){next.fadeIn(300);jq('#carousel-button-'+next.attr('id').substr(16)).addClass('selected')} else{jq('#carousel-banner-0').fadeIn(300);jq('.carousel-button:first').addClass('selected')}};jq(function(){carousel_interval=setInterval(carousel_rotate,8000);setTimeout(function(){jq('#carousel .link-https, #carousel .link-external').each( function(){jq(this).replaceWith(jq(this).html())})},1000);jq('#carousel').hover(
function(){clearInterval(carousel_interval)},
function(){carousel_interval=setInterval(carousel_rotate,8000)})})}


/* - atgooglemaps.js - */
// http://www.janya.com/portal_javascripts/atgooglemaps.js?original=1
function createMap(map_id,lat,lng,zoom,mapType,typeCtl,navCtl){var options={zoom:zoom,center:new google.maps.LatLng(lat,lng)};options.mapTypeId=eval("google.maps.MapTypeId."+mapType);if(typeCtl!=null){if(typeCtl=="hide"){options.mapTypeControl=false}
else{options.mapTypeControl=true;options.mapTypeControlOptions={};options.mapTypeControlOptions.style=eval("google.maps.MapTypeControlStyle."+typeCtl)}}
if(navCtl!=null){if(navCtl=="hide"){options.navigationControl=false}
else{options.navigationControl=true;options.navigationControlOptions={};options.navigationControlOptions.style=eval("google.maps.NavigationControlStyle."+navCtl)}}
return new google.maps.Map(document.getElementById(map_id),options)}
var visibleInfoWindow=null;
function createMarker(map,lat,lng,index,title,draggable){var shape={coord:[9,34,10,34,13,20,20,12,20,7,13,0,6,0,0,7,0,12,6,20],type:'poly'};var icon=new google.maps.MarkerImage("http://www.janya.com/gmap_marker.png",new google.maps.Size(20,34),new google.maps.Point(0,0),new google.maps.Point(10,34));var shadow=new google.maps.MarkerImage("http://www.janya.com/gmap_shadow.png",new google.maps.Size(37,34),new google.maps.Point(0,0),new google.maps.Point(10,34));if(draggable==null){draggable=false}
var marker=new google.maps.Marker({position:new google.maps.LatLng(lat,lng),map:map,title:title,icon:icon,shadow:shadow,shape:shape,draggable:draggable});if(index){var content=document.getElementById('infowindow_html_'+index).innerHTML;var infoWindow=new google.maps.InfoWindow({content:content});google.maps.event.addListener(marker,'click', function(){if(visibleInfoWindow){visibleInfoWindow.close()}
infoWindow.open(map,marker);visibleInfoWindow=infoWindow});var link=document.getElementById("infowindow_link_"+index);link.onclick=function(){google.maps.event.trigger(marker,"click")}}
return marker}


