// Colorbox
jQuery(document).ready(function(){jQuery('a[rel=lightbox]').colorbox({maxWidth:'90%',maxHeight:'90%'});});

// Tooltip
jQuery(document).ready(function() {
	jQuery('#navi-branding ul li').tooltip();
										
	jQuery(".iframe").colorbox({
		width:"640", 
		height:"60%", 
		iframe:true
	});
	
	// jQuery SmoothScroll | Version 10-04-30
	jQuery('a[href*=#]').click(function() {
		// get / set parameters
		var newHash=this.hash;
		var target=jQuery(this.hash).offset().top;
		var oldLocation=window.location.href.replace(window.location.hash, '');
		var newLocation=this;
		// make sure it's the same location      
		if(oldLocation+newHash==newLocation) {
			// animate to target and set the hash to the window.location after the animation
			jQuery('html:not(:animated),body:not(:animated)').animate({ 
				scrollTop: target 
			}, 800, function() {
				// add new hash to the browser location
				window.location.href=newLocation;
			});
			// cancel default click action
			return false;
		}
	});

});
