function jafafa(selectID, addClassName){
	var selectBox = jQuery(document.getElementById(selectID));
	var parent = selectBox.parent();
	var selectOption = selectBox.children('option');
	var className = "";
	if(addClassName){ className = addClassName; };
	var jafafaWrapper;
	var jafafaSelect;
	var jafafaOption;
	var jafafaOptionShow = false;

	jQuery(document).click(function(){
		if(jafafaOptionShow == true){
			closeOptions();
		}
	});
	
	selectBox.css('display', 'none');
	
	parent.addClass("jafafa-" + selectID);
	parent.append('<div id="jafafa-select-wrapper-' + selectID + '" class="jafafa-wrapper ' + selectID + ' ' + className + '" style="position: relative;"></div>');
	jafafaWrapper = jQuery(document.getElementById('jafafa-select-wrapper-' + selectID));
	jafafaWrapper.append('<div id="jafafa-select-' + selectID + '" class="jafafa-select ' + selectID + '"><p>' + selectBox.children('option:selected').text() + '</p></div>');
	jafafaSelect = jQuery(document.getElementById('jafafa-select-' + selectID));
	jafafaWrapper.append('<div id="jafafa-select-options-' + selectID + '" class="jafafa-options ' + selectID + '" style="display: none; position: absolute;"></div>');
	jafafaOption = jQuery(document.getElementById('jafafa-select-options-' + selectID));
	
	//Get all options from select
	selectOption.each(function(){
		jafafaOption.append('<p value="' + jQuery(this).attr('value') + '">' + jQuery(this).html() + '</p>');
	});
	
	//Bind click event on Div to show Options
	jafafaSelect.bind('click', function(e){
		e.stopPropagation()
		if(jafafaOptionShow == true){
			closeOptions();
		}else{
			openOptions();	
		}
	});
	//Bind click event on Option
	jafafaOption.children('p').bind('click', function(e){
		//e.stopPropagation()
		closeOptions();
		jafafaSelect.children('p').html(jQuery(this).html());
		jQuery(document.getElementById(selectID)).attr('value', jQuery(this).attr('value'));
		jQuery(document.getElementById(selectID)).change();
		jafafaOption.children('p').each(function(){
			jQuery(this).removeClass('selected');
		});
		jQuery(this).addClass('selected');
	});

	//Open Options
	function openOptions(){
		jafafaOption.show();
		jafafaSelect.addClass('open');
		jafafaOptionShow = true;
	}

	//Close Options
	function closeOptions(){
		jafafaOption.hide();
		jafafaSelect.removeClass('open');
		jafafaOptionShow = false;
	}

}
