function CreateBookmarkLink() {
	var title = document.title; 
	var url = location.href;
	if (window.sidebar) { window.sidebar.addPanel(title, url,"");}
	else if(window.external){ window.external.AddFavorite( url, title);}
	else if(window.opera && window.print){ return true; };
 };

$(document).ready(function(){
//$(function() {
		//Sportlerslide
    $(".slider").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 6
    });
		//newsticker
		$("ul#ticker01").liScroll({travelocity: 0.05});
		//toolTipps
    //$('.tTip').betterTooltip();
		simple_tooltip("#sportlermenu a","tip");

		
		//Lightbox
		$('#bildgalerie a').nyroModal();
		
		//TagCloud
		/*$("p.dynacloud").dynaCloud();
		$('#text').dynaCloud('#tagCloud');
		$.merge($.dynaCloud.stopwords, [ "der", "die", "das" ]);
		//standard = 20
		$.dynaCloud.max = 42;
		$.dynaCloud.sort = false;
		$.dynaCloud.wordStats = false;*/
		
		//banner außen
		$.ajax({
		   type: "POST",
		   url: "ajax.asp",
		   data: 'banner=1&a=' + Math.random(),
		   success: function(msg, msgtxt){
			 		if(msg){
						if(1185 < $(window).width()){/*wenn platz genug*/
							var noway=msg.indexOf("swf");
							//Flash - brauch ma ah net
							if(noway>10000){
									$('#banner_top').flash( 
										{ 
											// test_flashvars.swf is the flash document 
											swf: msg
										} 
									);
							}
							else {
									$('#banner_top').append(msg);
							}
						}
					}
		   }
		 });
		
		 //banner oben
		 $.ajax({
			 type: "POST",
		   url: "ajax.asp",
		   data: 'banner=2&b=' + Math.random(),
		   success: function(msg, msgtxt){
			 		if(msg){
						$('#banner_oben').append(msg);
						$('#banner_oben').append('<div style="width: 180px; position: relative; height: 30px;clear: both;"><img src="img/leer.gif" width="180" height="30" alt="" title=""></div>');
					}
		   }
			});
			 
			//banner unten
			$.ajax({
			 type: "POST",
		   url: "ajax.asp",
		   data: 'banner=3&c=' + Math.random(),
		   success: function(msg, msgtxt){
			 		if(msg){
						$('#banner_unten').append(msg);
					}
		   }
			});
		
		function doSomeAjax(){
		 $('#banner_top').empty();
		 $.ajax({
		   type: "POST",
		   url: "ajax.asp",
		   data: 'banner=1&a=' + Math.random(),
		   success: function(msg, msgtxt){
			 		if(msg){
						if(1185 < $(window).width()){/*wenn platz genug*/
						$('#banner_top').append(msg);
						}
					}
		   }
		 });
		}
		 
		var resizeTimer = null;
		$(window).bind('resize', function() {
			if (resizeTimer) clearTimeout(resizeTimer);
					resizeTimer = setTimeout(doSomeAjax, 100);
		});
		 
});

/*Captify - brauch ma net
$(document).ready(function(){
    $('img.captify').captify({
    // all of these options are... optional
    // speed of the mouseover effect
    speedOver: 'fast',
    // speed of the mouseout effect
    speedOut: 'normal',
    // how long to delay the hiding of the caption after mouseout (ms)
    hideDelay: 500,
    // 'fade', 'slide', 'always-on'
    animation: 'slide',
    // text/html to be placed at the beginning of every caption
    prefix: '',
    // opacity of the caption on mouse over
    opacity: '0.7',
    // the name of the CSS class to apply to the caption box
    className: 'caption-bottom',
    // position of the caption (top or bottom)
    position: 'bottom',
    // caption span % of the image
    spanWidth: '100%'
    });
});*/
