
//////////////////////////////////// Settings

hs.graphicsDir = '/inc/highslide/graphics/';
hs.outlineType = 'rounded-white';
//hs.outlineWhileAnimating = true;
hs.align = 'center';
hs.allowMultipleInstances = false;
//hs.enableKeyListener = false;
hs.showCredits = false;
/*hs.dimmingOpacity = 0.5;
hs.dimmingDuration = 0;*/
hs.expandDuration = 1;
hs.expandSteps = 1;
hs.restoreDuration = 1;
hs.restoreSteps = 1;
//hs.padToMinWidth = true;
hs.preserveContent = false;
//hs.dimmingGeckoFix = true;
//hs.objectLoadTime = 'after';
//hs.allowSizeReduction = false;
hs.allowHeightReduction = false;
//hs.dragByHeading = false;
hs.captionEval = 'this.a.title';
hs.captionOverlay.fade = 0;
hs.headingOverlay.fade = 0;
hs.fullExpandPosition = "top left";


//////////////////////////////////// Enable Custom Overlays

hs.Expander.prototype.onBeforeExpand = function() {
   if (this.custom && this.custom.overlays) {
      var overlays = this.custom.overlays;
      for (var i = 0; i < overlays.length; i++) {
         this.createOverlay(overlays[i]);
      }
   }
}



//////////////////////////////////// HighSlide

function hsload(hsid,hstype,hswidth,hsheight){
	hsobject = document.getElementById(hsid);
	hsrealheight = hsheight + 30;
	if(hstype == "img"){
		hs.expand(hsobject);
	}
	if(hstype == "html" && hswidth && hsheight){
		hs.htmlExpand(hsobject, {
			objectType: "iframe",
			width: hswidth,
			height: hsrealheight,
			contentId: 'popcontainer'
		});
	}
	if(hstype == "html" && !hswidth && !hsheight){
		hs.htmlExpand(hsobject, {
			objectType: "iframe",
			contentId: 'popcontainer'
		});
	}
	if(hstype == "flash" && hswidth && hsheight){
		var swfobj = this[hsid.split('link')[0] + 'flash'];
		hs.htmlExpand(hsobject, {
			swfObject: swfobj,
			width: hswidth,
			//height: hsrealheight,
			contentId: 'popcontainer'
		});
	}
	if(hstype == "flash" && !hswidth && !hsheight){
		var swfobj = this[hsid.split('link')[0] + 'flash'];
		hs.htmlExpand(hsobject, {
			swfObject: swfobj,
			contentId: 'popcontainer'
		});
	}
}



//////////////////////////////////// HighSlide

/*

hs.swfOptions = {
	version: "8",
	expressInstallSwfurl: "/inc/expressinstall.swf",
	flashvars: {},
	params: {},
	attributes: {}
};

hs.captionOverlay.position = "top left";
hs.captionOverlay.fade = 2;
hs.captionOverlay.opacity = 0.8;
hs.captionOverlay.hideOnMouseOut = true;

hs.registerOverlay({
	//useOnHtml: true,
	fade: 0,
	thumbnailId: null,
	overlayId: 'hs-banner',
	position: 'below',
	hideOnMouseOut: false,
	opacity: 1
});

hs.onSetClickEvent = function(sender, e){
	e.element.onclick = function(){
		return hs.expand(this, {
			slideshowGroup: this.parentNode.className,
			captionText: this.title,
			align:'center'
		});
	}
	// return false to prevent the onclick being set once again
	return false;
}

hs.addSlideshow({
	//slideshowGroup: ['gallery01', 'gallery02'],
	slideshowGroup: 'galcont',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: true,
	overlayOptions: {
		fade: 2,
		opacity: 0.8,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

hs.Expander.prototype.onAfterExpand = function (sender) {
	swfobject.embedSWF(hsbansrc, "hsban", "234", "60", "8.0.0", "/inc/expressinstall.swf", {clickTAG:hsbanlink}, {wmode:"transparent"}, {});
}


// Print function for iframe
hs.Expander.prototype.printIframe = function () {
   var name = this.iframe.name;
   frames[name].focus();
   frames[name].print();
   return false;
}


*/