
var $j = jQuery.noConflict();
	
$j(document).ready(function(){

	/* heavily based on Derek Harvey's code.
	please visit his site at www.lotsofcode.com
	Licensed under the GNU General Public License.	
	*/
	$j('p.skin-select, span.skin-select').each(function(i) {
    
		the_select = $j(this).children('select');

        $j(this).addClass('skinned');
        
		// Find the select box
		$j(the_select).before('<div class="select-text"></div>').each(function() {
			the_selected_option = $j(the_select).children('option:selected').text();
			$j(the_select).prev().text(the_selected_option);
		});

        // Store the parent object
		var parentTextObj = $j(this).children().prev();
		
		// As we click on the options
		$j(this).children().click(function() {
      	// Set the value of the html
			parentTextObj.text(this.options[this.selectedIndex].innerHTML);
		});
  });
	
	
	
	
	
	
});