

//////////////////////////////////// Popup

function popitup(url,winname,params) {
	newwindow=window.open(url,winname,params);
	if (window.focus) {newwindow.focus()}
	return false;
}



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

hs.graphicsDir = '/inc/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.showCredits = false;
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
//hs.allowMultipleInstances = false;
hs.numberOfImagesToPreload = 0;

// Add the controlbar
if(typeof(hsgroups) == "undefined" || hsgroups.length == 0){hsgroups = 'hsgal';}else{hsgroups.push('hsgal');}

hs.addSlideshow({
	//slideshowGroup: 'hsgroup1',
	//slideshowGroup: ['group1','group2','group3','group4'],
	slideshowGroup: hsgroups,
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
	}/*,
		thumbstrip: {
			position: 'above',
			mode: 'horizontal',
			relativeTo: 'expander'
		}*/
});


//////////////////////////////////// Show / Hide

function showhide(hidewhat){
	hideobject = document.getElementById(hidewhat);
	hideobject.style.display = hideobject.style.display == "none" ? "" : "none";
}

function show(){
	for (var i=0; i < arguments.length; i++ ){
		document.getElementById(arguments[i]).style.display = "";
	}
}

function hide(){
	for (var i=0; i < arguments.length; i++ ){
		document.getElementById(arguments[i]).style.display = "none";
	}
}


//////////////////////////////////// changeClass

function changeClass(objID, newclass)
{
   document.getElementById(objID).setAttribute("class", newclass);
}


//////////////////////////////////// onClick

function clickother(objID)
{
   document.getElementById(objID).onclick();
}


