$(document).ready(function() {
			
			$.get("referenzen.html",function(d){
				$('#Referenzen').html(d);
			});
			
			$.get("referenzen-portale.html",function(d){
				$('#Referenzen-Portale').html(d);
			});
			
			$.get("agb.html",function(d){
				$('#AGB').html(d);
			});
			
			$.get("urlaub.php",function(d){
				$('#Urlaub').html(d);
			});


			$('#selectBookmark').bookmark({sites: 
				['delicious', 'digg', 'yigg', 'facebook', 'google', 'twitthis', 'orkut' ,'misterwong', 'myspace' , 'yahoo' ]
			});
			
			$("#nav ul").tabs("#panes > div", {effect: 'fade', fadeOutSpeed: 400},function(){
				$("div > div").show();
			});
			//TabMenu erzeugen zum Startzeitpunkt!			
			
			$("div.scrollable-visitenkarten").scrollable({size:2,speed: 700}); 
			//$("div.scrollable").scrollable({size:3,speed: 700}); 
			
			
			$(".demo img[title]").tooltip({tip:'#demotip', effect: 'fade', position: "bottom center"}); //auf div #demotip umleiten
			$(".tooltip[title]").tooltip({tip:'#demotip', effect: 'fade', position: "bottom center"}); //auf div #demotip umleiten
			

			$("#nav img").jScale({w:'75px', h:'75px', speed:10});
			$("#nav img").mouseenter(function(){                                    //Tab-Icon skalieren, mouser-enter
				$(this).jScale({w:'85px', h:'85px',  speed:300}, function(){ 
					//mache was	
				});
			});
			$("#nav img").mouseout(function(){
				$(this).jScale({w:'75px', h:'75px', speed:300});
			});
			
			$(".bookmark_icons").css({'opacity': '0.5'});
			$(".bookmark_icons").mouseenter(function(){                                     //aktuelle Bild wieder auf 1.0 setzen, wenn mouse-over
				$(this).css({'opacity': '1.0'});
			});
			$(".bookmark_icons").mouseout(function(){
				$(".bookmark_icons").css({'opacity': '0.5'});
			});
			
			$('.link2overlay').overlay({start:{top: 'center'}, finish:{top:'center'}, expose: '#789' });
			
			/*
			$('#go').click(function() { 
				$url = $('#sb_art option:selected').val();
				//alert($url);
				window.location.href = $url;
				return false;
			});	*/

			
			
			//hinweis für IE6,7 User
			//29.10.09
			if($.browser.msie && jQuery.browser.version<= 7){
			   $(function() { var ol = $("#bad_browser").overlay({api: true, start:{top: 0}, finish:{top:350} }); ol.load(); });
			}
			
			$("div.panel_button").click(function(){
					$("div#panel").animate({
						height: "400px"
					})
					.animate({
						height: "450px"
					}, "fast");
					$("div.panel_button").toggle();
			});	
				
			$("div#hide_button").click(function(){
				$("div#panel").animate({
					height: "0px"
				}, "fast");
				
			});	
});
