jQuery(document).ready(function() {

	$(function() {
		$(".initiativeRechts div.clearer").remove();
		$(".initiativeRechts").wrapInner("<div id='accordion'></div>");
		
		$(function() {
			$("#accordion").accordion({ header: 'h2', fillSpace: true});
		});

		//$('#accordion').accordion({ 
		//	header: 'h2', 
		//	fillSpace: true
		//});
		
	});
	$(function() {
		$('.branchennavigator').css('display','block');
	});
	
    $('#mycarousel').jcarousel({
        vertical: true,
        scroll: 1
    });
	

	// Deutschlandkarte
	var mapImgPath = "/bmwa/images/kuk/dmap";
	var mapImgPrePath =  "/bmwa/images/kuk/dmap";
	
	var arrAreas = new Array("stuttgart","eschborn", "bochum","hannover","munchen", "dresden", "berlin", "hamburg");
		
	if($("#dtlmap").length > 0) {
		if($("#continentCard").attr("class") != undefined) {
			$("#dtlmap").attr("src",mapImgPrePath + $("#continentCard").attr("class")); 
		} else {
			$("#dtlmap").attr("src",mapImgPrePath + "welt");
		}    
    }	
	 
	$("area").mouseover(function(){		

		$("#maps img").attr("src",mapImgPrePath + "_"+arrAreas[$(this).attr("id").substring(5)-1] + ".gif");		
	    }).mouseout(function(){
	      
			$("#maps img").attr("src",mapImgPrePath + ".gif");
		  
	  });
	
	
	var map = null;

	
});


			
