// JavaScript Document
			$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements.
				/*$('a[@rel*=lightbox]').colorbox({transition:"fade"});*/
				$("a[rel='example1']").colorbox({transition:"fade"});
				$(".colorbox").colorbox({iframe:true, width:500, height:500});
				
				/*
				$(".show_img_a").hover(function() {
						$(".show_imga").show();
						$(".show_img_a").css({'background-image': 'url(/images/sipka3.gif)','color':'#ffffff'});
						$(".show_imgb").hide();
						$(".show_img_b").css({'background-image': 'url(/images/bg_topnews.gif)','color':'#787878'});
						$(".show_imgc").hide();	
						$(".show_img_c").css({'background-image': 'url(/images/bg_topnews.gif)','color':'#787878'});
				});		
				
				$(".show_img_b").hover(function() {
						$(".show_imga").hide();
						$(".show_img_a").css({'background-image': 'url(/images/bg_topnews.gif)','color':'#787878'});
						$(".show_imgb").show();
						$(".show_img_b").css({'background-image': 'url(/images/sipka3.gif)','color':'#ffffff'});
						$(".show_imgc").hide();	
						$(".show_img_c").css({'background-image': 'url(/images/bg_topnews.gif)','color':'#787878'});
				});
				$(".show_img_c").hover(function() {
						$(".show_imga").hide();
						$(".show_img_a").css({'background-image': 'url(/images/bg_topnews.gif)','color':'#787878'});
						$(".show_imgb").hide();
						$(".show_img_b").css({'background-image': 'url(/images/bg_topnews.gif)','color':'#787878'});
						$(".show_imgc").show();		
						$(".show_img_c").css({'background-image': 'url(/images/sipka3.gif)','color':'#ffffff'});
				});	
				
				//pocatecni stav
				$(".show_img_a").css({'background-image': 'url(/images/sipka3.gif)','color':'#ffffff'});				
				*/
				$(".news_article_a").click(function() {
						$(".news_article").show();
						$(".news_comments").hide();	
						$(".special_content").show();	
						return false;
				});		
				
				$(".news_comments_a").click(function() {
						$(".news_article").hide();
						$(".news_comments").show();	
						$(".special_content").hide();							
						return false;
				});					
				
				$(".header_explore_button").click(function() {
						$(".header_explore").slideToggle('slow');				
				});				
						
				$("#regions").change(function(){
					$("#countries").empty();
					$("#countries").load('/inc/country_change.php?region_id='+$("#regions").val());
				}) 
				
				//onclick reset input value
				$('.header_search_input').focus(
					function() {
						if (this.value == this.defaultValue) {
							this.value = '';
						}
					}
					);
				$('.header_search_input').blur(
					function() {
						if (this.value == '') {
							this.value = this.defaultValue;
						}
					}
				);	
				
				$("#dail_top_first").click(function() {
						if ($("#daily_first").is(':visible')) {
							$("#daily_first").slideUp('slow');
						}
						else{
							$("#daily_first").slideDown('slow');
						}
						$(".first_minus").toggleClass('first_plus');
						
				});	
				$("#dail_top_next").click(function() {
						if ($("#daily_next").is(':visible')) {
							$("#daily_next").slideUp('slow');
						}
						else{
							$("#daily_next").slideDown('slow');
						}
						$(".next_minus").toggleClass('next_plus');						
				});		
			});	

		
