if(typeof $ != "undefined"){
	$(function(){
		$("body").addClass("hasjquery");
		var elmBannerlist = $("#banner .bannerlist");
		if(elmBannerlist.length > 0){
			elmBannerlist
				.after('<div class="navigation">')
				.cycle({
					fx: "scrollLeft"
					,pager: "#banner .navigation"
			});
		}
	});
}
if(typeof hs != "undefined"){
	hs.graphicsDir = '/scripts/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.outlineType = 'rounded-white';
//	hs.wrapperClassName = 'no-move-close';
	hs.captionEval = 'this.a.title';
//	hs.numberPosition = 'caption';
//	hs.useBox = true;
	hs.width = 656;
	hs.height = 420;
	hs.showCredits = false;
	hs.dimmingOpacity = 0.7;
//	hs.enableKeyListener = false;
	hs.registerOverlay({
		html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
		position: 'top right',
		fade: 2, // fading the semi-transparent overlay looks bad in IE
		useOnHtml: true
	});
	hs.Expander.prototype.onInit = function(sender){
		if(sender.objectType == "ajax"){
			sender.src += ((sender.src.indexOf("?") > -1)? "&":"?") + "ajaxcall=1";
		}else if(sender.objectType == "iframe"){
			sender.src += ((sender.src.indexOf("?") > -1)? "&":"?") + "highslideframe=1";
		}
	}
}
