jQuery.noConflict();

jQuery(document).ready(function(){

	/* onchange submit */
	jQuery('#column_right').find('div.select_city').find('select').change(function(){
	
       var current_form = jQuery(this).parent();

       current_form.submit();
		
	});



	/* find the date for the city and display the info-box in a different color, if date is in next season */
	
	function set_info_bgcolor(title) {
	
		var past_event = false;
	
		/* next seasons starts at 1.10.2010 */
		var next_season = Date.UTC(2010, 10, 1, 0, 0, 0);
		
		var strich = -1;
		var strich_zwei = -1;
		var subtitle = '';
		
		var datum = '';
		
		// ermittelt den ersten strich
        if (title != undefined)
        {
            strich = title.indexOf('|');
            
            // ermittelt den zweiten strich
            strich_zwei = title.lastIndexOf('|');
		}
        
        
		/*
		if (strich_zwei > -1)
		{
			alert('strich zwei:' + strich_zwei);
		}
		*/
		
		// subtitle beinhaltet das datum der show
		
		if ((strich != strich_zwei) && (strich_zwei != -1))
		{
			// datum zwischen strich 1 und strich 2
			subtitle = title.substring(parseInt(strich + 1), parseInt(strich_zwei));
			
			// leerzeichen raus
			subtitle = subtitle.replace(/ /g, '');
		}
		else
		{
			
			// nur max. ein strich
			if (strich != -1)
			{
				subtitle = title.substr(0,strich);
			}
			else
			{
				subtitle = title;
			}		
			
		}
		
		
		//alert(subtitle);
		
		
		/* if date like 21./22.10.2010 */
		if (subtitle.length > 10 && subtitle != undefined)
		{
			/* z.B.: 21./22.11.2009 */
			var slash = -1;
			slash = subtitle.indexOf('/');
			if (slash > -1)
			{
				subtitle = subtitle.substr((slash + 1),10); 
			}
			
			/* z.B.: 24.-26.12.2009 */
			var minus = -1;
			minus = subtitle.indexOf('-');
			if (minus > -1)
			{
				subtitle = subtitle.substr((minus + 1),10);
			}
			
		}
        else
        {
            subtitle = '';
        }
		
		//alert(subtitle);
		
		var jahr = parseInt(subtitle.substr(6,4));
		var monat = parseInt(subtitle.substr(3,2));
		var tag = parseInt(subtitle.substr(0,2));
				
		var datum = Date.UTC(jahr, monat, tag, 0, 0, 0);
		
		
		if (datum < next_season)
		{
			// wenn das datum kleiner als der start der naechsten saison ist
			
			// standard
			jQuery('#city_info').css('background-color', '#D84B19');
			//jQuery('#city_info').css('background-image', 'url(fileadmin/apassionata/design_2010/tickets/info_bg_rot.jpg)');	
			
			past_event = true;
			
		}
		else
		{
			// wenn das datum groesser als der start der naechsten saison ist oder gar kein datum gefunden wurde
			
			jQuery('#city_info').css('background-color', '#091F5A');
			//jQuery('#city_info').css('background-image', 'url(fileadmin/apassionata/design_2010/tickets/info_bg_blau.jpg)');
				
			past_event = false;
			
		}
		
		return past_event;
	
	} // set_info_bgcolor
	
	
	
	
	
	// lege die farbe fuer den link und den stern fest
	
	function set_color(li) {
		
		var city_title = li.find('a').attr('title');
		
		//alert(test_title);
		
		var past_event = set_info_bgcolor(city_title);
		
		//alert(past_event);
		
		// !next season: rot
		if( past_event ) 
		{
			
			//li.find('a').css('background-image', 'url(fileadmin/apassionata/design_2010/tickets/stern_neu.png)');
			//li.find('a').css('color', '#a91300');
			
			//li.css('background-image', 'url(fileadmin/apassionata/design_2010/tickets/city_bg_rot.gif)');
			li.css('background', '#091F5A');
			
		}
			
	} // set_color




	/* alles auf start */
	
	jQuery('#city_map').find('ul').css('background', 'url(fileadmin/apassionata/design_2010/de/map.jpg) no-repeat top left');
	
	jQuery('#city_map').find('li').find('a').css('border', '0px');
	jQuery('#city_map').find('li').find('a').css('padding', '5px 5px 5px 25px');
	jQuery('#city_map').find('li').find('a').css('margin', '0px 0px 0px -10px');
	
	var z_index_start = 10;

	// fuer alle staedte den z-index festlegen
	jQuery('#city_map').find('ul').find('li').each(function(){
	
		li = jQuery(this);
		
		li.css('position', 'absolute');
		li.css('margin', '0px');
		li.css('z-index', z_index_start);
		
		z_index_start++;
		
	});
	
	jQuery('#city_info').hide();
	
	var prefix = ''; 
	
	
	
	/* einzelne staedte */
	
		
	/* amsterdam*/
	jQuery('#city_amste').css('margin', '105px 0px 0px 70px');
	
	set_color(jQuery('#city_amste'));	
		
	jQuery('#city_amste').mouseover(function(){
		jQuery('#city_info').css('margin', '55px 0px 0px 70px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		
		jQuery('#city_info').show();
	});
	
	jQuery('#city_amste').mouseout(function(){
		jQuery('#city_info').hide();
	});


	/* antwerpen*/
	jQuery('#city_antwe').css('margin', '285px 0px 0px 30px');
	
	set_color(jQuery('#city_antwe'));
	
	jQuery('#city_antwe').mouseover(function(){
		jQuery('#city_info').css('margin', '235px 0px 0px 30px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		
		jQuery('#city_info').hide();
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_antwe').mouseout(function(){
		jQuery('#city_info').hide();
	});


	/* barcelona */
	jQuery('#city_barce').css('margin', '500px 0px 0px 20px');
		
	set_color(jQuery('#city_barce'));	
		
	jQuery('#city_barce').mouseover(function(){
		jQuery('#city_info').css('margin', '450px 0px 0px 30px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_barce').mouseout(function(){
		jQuery('#city_info').hide();
	});



	/* Basel */
	jQuery('#city_basel').css('margin', '525px 0px 0px 120px');

	set_color(jQuery('#city_basel'));
	
	jQuery('#city_basel').find('a').css('background-position', 'right');
	jQuery('#city_basel').find('a').css('margin', '0px -15px 0px 0px');
	jQuery('#city_basel').find('a').css('padding', '5px 25px 5px 5px');
	
	jQuery('#city_basel').mouseover(function(){
		jQuery('#city_info').css('margin', '475px 0px 0px 120px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_basel').mouseout(function(){
		jQuery('#city_info').hide();
	});



	/* Berlin */
	jQuery('#city_berli').css('margin', '155px 0px 0px 455px');

	set_color(jQuery('#city_berli'));
	
	jQuery('#city_berli').mouseover(function(){
		jQuery('#city_info').css('margin', '105px 0px 0px 455px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_berli').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Bielefeld */
	jQuery('#city_biele').css('margin', '195px 0px 0px 210px');

	set_color(jQuery('#city_biele'));
	
	jQuery('#city_biele').mouseover(function(){
		jQuery('#city_info').css('margin', '145px 0px 0px 210px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_biele').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* Bremen */
	jQuery('#city_breme').css('margin', '110px 0px 0px 225px');

	set_color(jQuery('#city_breme'));

	jQuery('#city_breme').mouseover(function(){
		jQuery('#city_info').css('margin', '65px 0px 0px 225px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_breme').mouseout(function(){
		jQuery('#city_info').hide();
	});
	

	/* Chemnitz */
	jQuery('#city_chemn').css('margin', '290px 0px 0px 440px');
	
	set_color(jQuery('#city_chemn'));
	
	//jQuery('#city_chemn').find('a').css('background-position', 'right');
	//jQuery('#city_chemn').find('a').css('margin', '0px -10px 0px 0px');
	//jQuery('#city_chemn').find('a').css('padding', '0px 25px 5px 5px');
	
	jQuery('#city_chemn').mouseover(function(){
		jQuery('#city_info').css('margin', '240px 0px 0px 450px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_chemn').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Duesseldorf */
	jQuery('#city_duess').css('margin', '245px 0px 0px 15px');
	
	set_color(jQuery('#city_duess'));
	
	jQuery('#city_duess').find('a').css('background-position', 'right');
	jQuery('#city_duess').find('a').css('margin', '0px -15px 0px 0px');
	jQuery('#city_duess').find('a').css('padding', '5px 25px 5px 5px');
	
	jQuery('#city_duess').mouseover(function(){
		jQuery('#city_info').css('margin', '195px 0px 0px 15px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_duess').mouseout(function(){
		jQuery('#city_info').hide();
	});



	/* Dortmund */
	jQuery('#city_dortm').css('margin', '225px 0px 0px 145px');

	set_color(jQuery('#city_dortm'));
	
	jQuery('#city_dortm').mouseover(function(){
		jQuery('#city_info').css('margin', '175px 0px 0px 155px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_dortm').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* Erfurt */
	jQuery('#city_erfur').css('margin', '285px 0px 0px 345px');
	
	set_color(jQuery('#city_erfur'));
	
	jQuery('#city_erfur').mouseover(function(){
		jQuery('#city_info').css('margin', '235px 0px 0px 355px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_erfur').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	
	/* Frankfurt */
	jQuery('#city_frank').css('margin', '335px 0px 0px 220px');
	
	set_color(jQuery('#city_frank'));
	
	jQuery('#city_frank').mouseover(function(){
		jQuery('#city_info').css('margin', '285px 0px 0px 230px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_frank').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* genf */
	/*
	jQuery('#city_genf').css('margin', '580px 0px 0px 135px');
		
	set_color(jQuery('#city_genf'));
	
	jQuery('#city_genf').mouseover(function(){
		jQuery('#city_info').css('margin', '530px 0px 0px 145px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_genf').mouseout(function(){
		jQuery('#city_info').hide();
	});
	*/
	
		
	/* Hamburg */
		
	jQuery('#city_hambu').css('margin', '75px 0px 0px 285px');
	
	set_color(jQuery('#city_hambu'));
	
	jQuery('#city_hambu').mouseover(function(){
		jQuery('#city_info').css('margin', '25px 0px 0px 295px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_hambu').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	
	/* Hannover */
	jQuery('#city_hanno').css('margin', '145px 0px 0px 260px');

	set_color(jQuery('#city_hanno'));
	
	jQuery('#city_hanno').mouseover(function(){
		jQuery('#city_info').css('margin', '95px 0px 0px 270px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
	
		jQuery('#city_info').show();
	});
	
	jQuery('#city_hanno').mouseout(function(){
		jQuery('#city_info').hide();
	});	
		
		
		
	/* helsinki */
	jQuery('#city_helsi').css('margin', '-50px 0px 0px 490px');
	
	set_color(jQuery('#city_helsi'));
	
	jQuery('#city_helsi').mouseover(function(){
		jQuery('#city_info').css('margin', '-100px 0px 0px 490px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_helsi').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* Kassel */
	jQuery('#city_kasse').css('margin', '245px 0px 0px 260px');

	set_color(jQuery('#city_kasse'));
	
	jQuery('#city_kasse').mouseover(function(){
		jQuery('#city_info').css('margin', '195px 0px 0px 270px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_kasse').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* Kiel */
	
	jQuery('#city_kiel').css('margin', '25px 0px 0px 290px');
	
	set_color (jQuery('#city_kiel'));
	
	jQuery('#city_kiel').mouseover(function(){
		jQuery('#city_info').css('margin', '-25px 0px 0px 300px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_kiel').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* Koeln */
	jQuery('#city_koeln').css('margin', '270px 0px 0px 140px');
	
	set_color(jQuery('#city_koeln'));
	
	jQuery('#city_koeln').mouseover(function(){
		jQuery('#city_info').css('margin', '220px 0px 0px 150px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_koeln').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Leipzig */
	jQuery('#city_leipz').css('margin', '245px 0px 0px 355px');
	
	set_color(jQuery('#city_leipz'));
	
	jQuery('#city_leipz').find('a').css('background-position', 'right');
	jQuery('#city_leipz').find('a').css('margin', '0px -15px 0px 0px');
	jQuery('#city_leipz').find('a').css('padding', '5px 25px 5px 5px');
	
	jQuery('#city_leipz').mouseover(function(){
		jQuery('#city_info').css('margin', '195px 0px 0px 355px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_leipz').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* lissabon */
	jQuery('#city_lissa').css('margin', '450px 0px 0px 20px');
		
	set_color(jQuery('#city_lissa'));	
		
	jQuery('#city_lissa').mouseover(function(){
		jQuery('#city_info').css('margin', '400px 0px 0px 30px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_lissa').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* London */
	jQuery('#city_londo').css('margin', '190px 0px 0px 20px');
		
	set_color(jQuery('#city_londo'));	
				
	jQuery('#city_londo').mouseover(function(){
		jQuery('#city_info').css('margin', '140px 0px 0px 30px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_londo').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* mailand */
	jQuery('#city_maila').css('margin', '570px 0px 0px 320px');
		
	set_color(jQuery('#city_maila'));	
		
	jQuery('#city_maila').mouseover(function(){
		jQuery('#city_info').css('margin', '520px 0px 0px 330px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_maila').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Muenster */
	jQuery('#city_muens').css('margin', '175px 0px 0px 100px');
	
	set_color(jQuery('#city_muens'));
	
	jQuery('#city_muens').find('a').css('background-position', 'right');
	jQuery('#city_muens').find('a').css('margin', '0px -15px 0px 0px');
	jQuery('#city_muens').find('a').css('padding', '5px 25px 5px 5px');
	
	jQuery('#city_muens').mouseover(function(){
		jQuery('#city_info').css('margin', '125px 0px 0px 100px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_muens').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Muenchen */
	jQuery('#city_muenc').css('margin', '470px 0px 0px 370px');
	
	set_color(jQuery('#city_muenc'));
	
	jQuery('#city_muenc').mouseover(function(){
		jQuery('#city_info').css('margin', '420px 0px 0px 380px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_muenc').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Nuernberg */
	jQuery('#city_nuern').css('margin', '390px 0px 0px 330px');
	
	set_color(jQuery('#city_nuern'));
	
	jQuery('#city_nuern').mouseover(function(){
		jQuery('#city_info').css('margin', '340px 0px 0px 340px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_nuern').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	/* Paris */
	jQuery('#city_paris').css('margin', '380px 0px 0px 20px');
		
	set_color(jQuery('#city_paris'));	
		
	jQuery('#city_paris').mouseover(function(){
		jQuery('#city_info').css('margin', '330px 0px 0px 30px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_paris').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Prag */
	jQuery('#city_prag').css('margin', '345px 0px 0px 520px');
	
	set_color(jQuery('#city_prag'));
	
	jQuery('#city_prag').mouseover(function(){
		jQuery('#city_info').css('margin', '295px 0px 0px 530px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_prag').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	
	/* Riesa */
	jQuery('#city_riesa').css('margin', '245px 0px 0px 450px');

	set_color(jQuery('#city_riesa'));
	
	jQuery('#city_riesa').mouseover(function(){
	
		jQuery('#city_info').css('margin', '195px 0px 0px 460px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_riesa').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	
	/* Saarbruecken */
	jQuery('#city_saarb').css('margin', '395px 0px 0px 130px');
	
	set_color(jQuery('#city_saarb'));
	
	jQuery('#city_saarb').mouseover(function(){
		jQuery('#city_info').css('margin', '345px 0px 0px 140px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_saarb').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Stuttgart */
	jQuery('#city_stutt').css('margin', '435px 0px 0px 245px');
	
	set_color(jQuery('#city_stutt'));
	
	jQuery('#city_stutt').mouseover(function(){
		jQuery('#city_info').css('margin', '385px 0px 0px 255px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_stutt').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	
	/* Wien */
	jQuery('#city_wien').css('margin', '470px 0px 0px 520px');
	
	set_color(jQuery('#city_wien'));	
		
	jQuery('#city_wien').find('a').css('background-position', 'right');
	jQuery('#city_wien').find('a').css('margin', '0px -15px 0px 0px');
	jQuery('#city_wien').find('a').css('padding', '5px 25px 5px 5px');
	
	jQuery('#city_wien').mouseover(function(){
		jQuery('#city_info').css('margin', '420px 0px 0px 520px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_wien').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
	/* Zuerich */
	jQuery('#city_zueri').css('margin', '545px 0px 0px 210px');
		
	set_color(jQuery('#city_zueri'));	
		
	jQuery('#city_zueri').mouseover(function(){
		jQuery('#city_info').css('margin', '495px 0px 0px 220px');
		jQuery('#city_info').find('h4').html(jQuery(this).find('a').html());	
		jQuery('#city_info').find('p').html(prefix + jQuery(this).find('a').attr('title').replace('|', '<br />').replace('|', '<br />'));	
		set_info_bgcolor(jQuery(this).find('a').attr('title'));
		jQuery('#city_info').show();
	});
	
	jQuery('#city_zueri').mouseout(function(){
		jQuery('#city_info').hide();
	});
	
	
	
});
