Cache =	{
	
	started			:	false,
	class_name		:	"country-select-list",
	select_country	:	function() {
		return;
		if(this.started) return; else this.started	=	true;

		$.ajax( { type: "get", url: "/no-cache/country.code.php", success: Cache.eval_country } );
	} ,
	eval_country	:	function(response) {
		var myResult = response.split('*');
		$("."+Cache.class_name).each(function() {
			$(this).val(myResult[0]);
			$("#tel-input-1").val( myResult[1] );
		} );
	},
	open_account_show		:	function() {
		$("#open-account-block , #open-account, #create-account, #menu-855 , #menu-192,#open-account-455, #open-account-521").css("display", "block");
	}
}

function initCache(name, id, code) {
	//if(name == -1) return;
	//if(!code) return;
	
	Cache.eval_country(id+"*"+code);
	
	if(name != "IL") {
		Cache.open_account_show();
	}
}

/* /trade/cacheSolver.js */
$(document).ready(function() {
	$.post("check-country", function(data){
		if(typeof(data) !== "object") data = eval("(" + data + ')');
		if(true == data.result) {
			$("#open-account-block , #open-account , #menu-855 , #menu-192,#open-account-455, #open-account-521").css("display", "block");
		}
	});
});
