$.noConflict();
jQuery(document).ready(function($) {
	
//Search field
	var srch = jQuery('.srch');
	
	if(srch){
		srch.click(function(){
			if(srch.val() == "Поиск"){
				srch.val("");
				srch.css({"color": "#000", "font-style": "normal"});
			}
		});
		
		srch.blur(function(){
			if(srch.val() == ""){
				srch.val("Поиск");
				srch.css({"color": "#7B7B7B", "font-style": "italic"});
			}
		});
	}
	
	var srch_en = jQuery('.srch_en');
	
	if(srch_en){
		srch_en.click(function(){
			if(srch_en.val() == "Search"){
				srch_en.val("");
				srch_en.css({"color": "#000", "font-style": "normal"});
			}
		});
		
		srch_en.blur(function(){
			if(srch_en.val() == ""){
				srch_en.val("Search");
				srch_en.css({"color": "#7B7B7B", "font-style": "italic"});
			}
		});
	}


	jQuery("a.out[rel='line']").colorbox({transition:"fade"});
	jQuery(".out").colorbox();

	jQuery("a#appform").click(function(){
		jQuery("#blackout_block").css("display","block");
		return(false);
	});
	
	jQuery("div.close").click(function(){
		jQuery("#blackout_block").css("display","none");
	});
	
	jQuery(".search_button").click(function(){
		var sstr = jQuery(".srch").val();
		if(sstr == "Поиск") return false;
	});

	jQuery(".search_button_en").click(function(){
		var sstr = jQuery(".srch_en").val();
		if(sstr == "Search") return false;
	});

});
