/*
* Document ready functions 
*/
	var $ = jQuery;
	jQuery(document).ready(function(){
	"use strict";	
		
		/*
		* Media Upload Function
		*/
		jQuery('#upload_image_button').click(function(){
			wp.media.editor.send.attachment = function(props, attachment){
				jQuery('#upload_image').val(attachment.url);
			}
		
		wp.media.editor.open(this);
		return false;
		});
		/*
		* End Media Upload Function
		*/	
		
	});
/*
* End Document ready functions 
*/	
	
	