//swfobject.embedSWF("swf/categories.swf", "swf-box", "1013", "476", "9.0.0", "flash/expressInstall.swf" ,null, { wmode:"transparent" });

$(document).ready(function(){
	//categories swf
	//alert(_currentCategory);
	var flashvars = {
		//xmlCategories: 'mysite/swf/data/categories.xml',
		xmlCategories: _xmlUrl,
		initCategory: _currentCategory,
		animate: _animate
	}
	var params = {
		wmode: 'transparent'
	}	
	swfobject.embedSWF("mysite/swf/categories.swf", "swf-box", "1000", "500", "9.0.0", null, flashvars, params, null, 
		function(e){
			if(!e.success) {
				$('#swf-box').html('<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>');
			}
		}
	);	
	
	//'Schnellzugriff' dropdown
	$('#access').change(function(){
		var URLSegment = $(this).val();
		if(URLSegment != '') {
			location.href = URLSegment;
		}
	});
    
    //Suchfeld
    $('#s').click(function(){
        var val = $(this).val();
        if(val == 'Suche' || val == 'Search') $(this).val('');
    });
    
    // open external links in a new window
    $('a[href^="http://"]').not('a[href^="' + $('head base').attr('href') + '"]').attr("target", "_blank");
});

