jQuery(function($){
	
	jQuery('#employment').dropkick({width:130,
				change: function (value, label) {
				$(this).dropkick('cleartext');
			}
			
			});
	jQuery('#status').dropkick({width:200,
			change: function (value, label) {
			
				fill_income();
				jQuery('#annual_income').dropkick('alert');
				$(this).dropkick('cleartext');
			}
			
			});
	jQuery('#annual_income').dropkick({width:120,
			change: function (value, label) {
				$(this).dropkick('cleartext');
			}	
				
				});
			
	$('select#annual_income').siblings('div').children('.dk_options').children('ul').remove();
			
		$("a.plan_name").click(function () {
			$(this).parents('.plan_block').toggleClass("info_close");
			return false;
		});
		$("a.info_close_btn").click(function () {
			$(this).parents('.plan_block').toggleClass("info_close");
			return false;
		});
		
	if (!$.browser.msie) {		
		$("#dk_container_employment").focus(function () {
	        jQuery('#employment').dropkick('openList');
	    });
	
		$("#dk_container_status").focus(function () {
	        jQuery('#status').dropkick('openList');
	    });
		
		
		$("#dk_container_annual_income").focus(function () {
	        jQuery('#annual_income').dropkick('openList');
	    });
	}
		
		$("a.parametr").click(function () {
                    $(this).parent('.section').toggleClass("open");
					  return false;
                }); 
		
       $('input.zip_code, input#inp_blog')
                .focus(function(){if ($(this).val() == $(this).attr('title')) {$(this).val('');}})
                .blur(function(){if ($(this).val() == '') {$(this).val($(this).attr('title'));}})
				
	
	   if (typeof(jQuery.fn.colorbox) != 'undefined')
				{		
				jQuery("#pop_dialog").colorbox({inline:true, 
															href:"#popup_help"
												  });
			    }
				
			jQuery('.close_window').click(function() {

			jQuery("#pop_dialog").colorbox.close();
			return false;
		});
		
});


