//MAIN SCRIPTS

//INCLUDE PROTOTYPE AND SMARTY IF NEEDED
document.writeln('<script src="/scripts/prototype.js" type="text/javascript" language="javascript" ></script>');
document.writeln('<script src="/scripts/scriptaculous/scriptaculous.js" type="text/javascript" language="javascript" ></script>');

document.writeln('<script src="/scripts/mycms_admin.js" type="text/javascript" language="javascript" ></script>');

//SITE SPECIFIC FUNCTIONS
document.writeln('<script src="/scripts/plugins.js" type="text/javascript" language="javascript" ></script>');

/* HIGHSLIDE */
document.writeln('<script src="/scripts/highslide/highslide.js" type="text/javascript" language="javascript" ></script>');

function highslide(hsobj,caption)
{
	var param = new Array;
	param["captionId"]= caption;

	return hs.expand(hsobj,param);
}
/* END HIGHSLIDE */

// Enlarge: Img-Projector

function enlarge(name, target) {
//alert('?');
parts = name.split('_');
anz = parts.length;
no = parts[anz-1].split('.')[0];
//alert(parts[0]+" --- "+parts[1]+" --- "+parts[anz-1]+" ..."+no);
//name = name.split('_50.').join('_281.');
name = no == '75' ? name.split('_75.').join('_370.') : name.split('_112.').join('_550.');

//alert(name);

// change the large image
// imageName=id + ".jpg";
imageName=name;
document.getElementById(target).src=name;
// set the style of the previous thumbnail back to the default
// document.getElementById("show").id=oldID;
// make note of the id before we change it
// oldID=id
// mark the thumbnail as current with the current style
// document.getElementById(id).id="show";
} 
