


jQuery(document).ready(function() {

jQuery('#rightcolbild').cycle();

jQuery('#animate').cycle();


jQuery('#pane1').jScrollPane({showArrows:true});

jQuery('#pane2').jScrollPane({showArrows:true});


jQuery(function($) {
	$('#nav li ul').hide();
	var path = location.pathname.substring(1);
	$('#nav a[@href$="' + path + '"]').addClass('active').siblings("ul").slideDown();
	$('#nav a[@href$="' + path + '"]').parents("ul").show();
});

				var gallery = $(document).galleriffic.init('#navigation', {
					delay:                2000,
					numThumbs:            10,
					imageContainerSel:    '#slideshow',
					controlsContainerSel: '#controls',
					titleContainerSel:    '#image-title',
					descContainerSel:     '#image-desc',
					downloadLinkSel:      'a#download-link'
				});
				
				gallery.onFadeOut = function() {
					$('#details').fadeOut('fast');
				};
				
				gallery.onFadeIn = function() {
					$('#details').fadeIn('fast');
				};

});


document.write("<style type='text/css'>div#navigation{width:200px;float:left;} div#content{display:block;}</style>");











/* -------------- */

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=1,statusbar=0,menubar=0,resizable=1,width=650,height=550,left = 315,top = 237');");
}


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


function toggleOn(id) {
	var el = document.getElementById(id);
	el.style.visibility = (el.style.visibility != 'visible' ? 'visible' : 'visible' );
}

function toggleOff(id) {
	var el = document.getElementById(id);
	el.style.visibility = (el.style.visibility != 'hidden' ? 'hidden' : 'hidden' );
}


