
function _changeCurrency() {
	_blurCurrency();
	current_currency = jQuery("#change_currency option:selected").attr("value"); 

	jQuery.ajax({
		async:false,
		type: 'post',
		dataType: 'json',
		url: HTTP_HOST_S+'api_smarty.php?callback=?',
		data: {'current_currency':current_currency},  
		success: function(AllData){
		},
		beforeSend: function(a){
			jQuery.modal("<div><h4>изменение курса будет заметно только после перезагрузки</h4></div>", { closeHTML:"", containerCss:{ backgroundColor:"#fff", borderColor:"#fff", height:100, padding:0, width:130 }, overlayClose:true});
		},
		complete: function(a,b){
			jQuery.modal.close(); 
		}
	});
	
	if( location.hash.indexOf("categoryID")>0 ) //for to ajax categoryID
	  SmartyAjax.category('main_content_template', HTTP_HOS_S+'/ajax_smarty.php', 'get', 'categoryID:0,changeURL:1,search_in_subcategory:1,main_content_template:category.tpl.html,f:show_prod_ajax');
	else
	  redirectPage(0);
	
//	document.ChangeCurrencyForm.submit();
}

function _blurCurrency() {
	jQuery("#change_currency :not(option:selected)").css("font-size","12px");
	jQuery("#change_currency :not(option:selected)").css("font-weight","300");
	jQuery("#change_currency :not(option:selected)").css("color","black");

	jQuery("#change_currency option:selected").css("font-size","12px");
	jQuery("#change_currency option:selected").css("font-weight","300");
	jQuery("#change_currency option:selected").css("color","red");
	
	jQuery("#change_currency").css("font-size","14px");
	jQuery("#change_currency").css("font-weight","900");
	jQuery("#change_currency").css("color","red");

}

jQuery(document).ready(function(){
	_blurCurrency();
});