var jq = jQuery.noConflict();

jq(document).ready(function() {
	jq('.accordion').accordion({
		autoheight: false,
		header: 'div.accordionHeader'
	});
	
	jq('.accordionPic').each(function(){
		if(jq(this).attr('name') == '1'){
			jq(this).show();
		}else{							  	
			jq(this).hide();
		}
	});
	
	jq('.accordionHeader').click(function() {
		var headerValue = jq(this).attr('name');
		
		jq('.accordionPic').each(function(){
			if(jq(this).attr('name') == headerValue.toString()){
				jq(this).show();
			}else{							  	
				jq(this).hide();
			}
		});
	});


    jq('.accordionUl li').hover(function(){
         
    	 var name = jq(this).parent().parent().prev().attr('name');
         var did = jq(this).attr('id').replace('hotell','dot');
         var dot =  jq('.map'+name+' .'+did);
         
         dot.append('<span id="pin"></span>');
		 
    },
    function(){

           jq('#pin').remove();

    });

});
