/*$.fn.maphilight.defaults = {
	fill: true,
	fillColor: '1d4b66',
	fillOpacity: 0.9,
	stroke: false,
	strokeColor: 'ff0000',
	strokeOpacity: 1,
	strokeWidth: 1,
	fade: true,
	alwaysOn: false,
	neverOn: false,
	groupBy: false
}*/
function on_mapa(cislo) {
    if (document.images) {
        document.images.mapaKraje.src = "/img/kraje/" + cislo + ".gif";
    }
}

Cufon.replace('.cta');		

DD_roundies.addRule('.hp-sloupek-obal', '10px', true);
//DD_roundies.addRule('input', '5px', true);

$(document).ready(function() {
	
	$('div#GoogleSearchRound input').focus(function(){$(this).attr('value', '')});
	$('div#GoogleSearchRound input').blur(function(){
		if($('div#GoogleSearchRound input').attr('value')=='') {
			$(this).attr('value', 'Vyhledat');
		}
	});

	$('div#prihlaseni input#login').attr('value', 'Uživatelské jméno');
	$('div#prihlaseni input#login').focus(function(){
			$(this).attr('value', '')
			//alert('Omlouváme se, ale přihlášovací formulář je dočasně mimo provoz. Děkujeme za pochopení.');
	});	
	$('div#prihlaseni input#login').blur(function(){
		if($('div#prihlaseni input#login').attr('value')=='') {
			$(this).attr('value', 'Uživatelské jméno')}
		}
	);

	$('div#prihlaseni input#password').attr('value', 'Heslo');
	$('div#prihlaseni input#password').focus(function(){		
		//alert('Omlouváme se, ale přihlášovací formulář je dočasně mimo provoz. Děkujeme za pochopení.');
		$(this).attr('value', '');		
	});	
	$('div#prihlaseni input#password').blur(function(){
		if($('div#prihlaseni input#password').attr('value')=='') {	
			$(this).attr('value', 'Heslo');
		}
	});
	$('div#prihlaseni input.login').attr('value', '');

	
	$("a[rel=external]").attr('target', '_blank');
  /*	
    $('ul#mnu1 ul').hide();
  	$('ul#mnu1 li.active > ul').show();
  	$('ul#mnu1 a').click(function() { 
  		var liRodic = $(this).parent('li');
  		if($(this).parent('li').find('ul').length>0) {
      $(this).parent('li').find('ul').toggle(100);	
  		  return false;
    }						
  	});
	$('ul#mnu1 a[href='+location.href+']').parents('ul').show();
	*/
	$('#map > area').qtip({
		position: {
			corner: {
		         target: 'topRight',
		         tooltip: 'bottomRight'
		    },
		    target: 'mouse'
		},
		content: {
			text: false
		},
		style: {
			border: {
			width: 5,
			radius: 10,
			color: '#E99A01'
		},		
		padding: 5, 
		tip: true, 
		//name: 'red' 
		color: '#fff',
		background: '#E99A01'
		}
	});
	
	if($(document).find('.tabs').length>0) {
		$('.tabs').tabs();
	}
});
