
/* 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++hcn.ads.js - */
// http://www.hcn.org/portal_javascripts/++resource++hcn.ads.js?original=1
function createAds(){if(jq(".ad-spot")){adspots=jq(".ad-spot");if(adspots.length){adspots.each( function(e){id='iframe-'+jq(this).attr("id");zone=jq(this).attr("id").split("-",2);zone=zone[1];src="http://www.hcn.org/a/www/delivery/afr.php?zoneid="+zone+"&cb=%n&ct0=%c";jq(this).append("<iframe id='"+id+"' name='"+id+"' src='"+src+"' framespacing='0' frameborder='no' scrolling='no' allowtransparency='true'></iframe>")})}}}
jq(document).ready(function(){createAds()});

/* - ++resource++carousel.js - */
// http://www.hcn.org/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)})})}


