$(document).ready(function() {
	
	// box
	$(".box").wrapInner("<div class=\"box-wrap-outer\"><div class=\"box-wrap\"><div class=\"box-wrap-inner\"></div></div></div>");
	$("legend").wrapInner("<span></span>");
	
	// ie hack to show focused input fields
	// if (jQuery.browser.msie === true) {
	//         jQuery('input')
	//                 .bind('focus', function() {
	//                         $(this).addClass('ie-focus-hack');
	//                 }).bind('blur', function() {
	//                         $(this).removeClass('ie-focus-hack');
	//                 });
	//     }
	
	
	
	// // button
	// $(".button").wrapInner("<div class=\"button-wrap-outer\"><div class=\"button-wrap\"><div class=\"button-wrap-inner\"></div></div></div>");
	
	// // Append a highlight div
	// 	$(".script-button").append("<div class=\"highlight\"></div>");		
	// 						
	// 	// add class on button hover
	// 	$(".script-button").hover(
	// 		function() {
	// 	      $(this).addClass("hover");
	// 	      },
	// 		function() {
	// 	      $(this).removeClass("hover");
	// 	      }
	// 	);	
	// 	// add class on script-box hover
	// 	$(".script-block").hover(
	// 		function() {
	// 	      $(this).addClass("block-hover");
	// 	      },
	// 		function() {
	// 	      $(this).removeClass("block-hover");
	// 	      }
	// 	);	
	// 	// Append a letter-question div
	// 	$(".question").append("<div class=\"letter-question\"></div>");
	// 	// Append a letter-statement div
	// 	$(".statement").append("<div class=\"letter-statement\"></div>");
	// 	// Append a start-statement div
	// 	$(".start").append("<div class=\"letter-start\"></div>");
	// 	// Append a close-box div
	// 	$(".script-block").append("<div class=\"close-box modalInput\" rel=\"#yesno-question\"></div>");
	// 	
	// 	// Wrap the .field-delete textarea with a div to give context to the delete button
	// 	//$(".field-delete").wrap("<div class=\"field-delete-button\"></div>");
	// 	// Append a delete div to the field-delete div above
	// 	$(".answer-wrap").append("<div class=\"delete modalInput\" title=\"Delete Answer\" rel=\"#yesno-answer\"></div>");
	// 
	// 
	// 
	// 	// overlays (modals)
	// 	var triggers = $(".modalInput").overlay({
	// 
	// 		// some expose tweaks suitable for modal dialogs
	// 		expose: {
	// 			color: '#fff',
	// 			loadSpeed: 200,
	// 			opacity: 0.8
	// 		},
	// 
	// 		closeOnClick: false
	// 	});
	// 
	// 
	// 	var buttons = $("#yesno-question").click(function(e) {
	// 
	// 		// get user input
	// 		var yes = buttons.index(this) === 0;
	// 
	// 		// do something with the answer
	// 		//triggers.eq(0).html("You clicked " + (yes ? "yes" : "no"));
	// 		
	// 	});
	// 	var buttons = $("#yesno-answer").click(function(e) {
	// 
	// 		// get user input
	// 		var yes = buttons.index(this) === 0;
	// 
	// 		// do something with the answer
	// 		//triggers.eq(0).html("You clicked " + (yes ? "yes" : "no"));
	// 		
	// 	});
	// 
	// 
	// 	$("#prompt form").submit(function(e) {
	// 
	// 		// close the overlay
	// 		triggers.eq(1).overlay().close();
	// 
	// 		// get user input
	// 		var input = $("input", this).val();
	// 
	// 		// do something with the answer
	// 		triggers.eq(1).html(input);
	// 
	// 		// do not submit the form
	// 		return e.preventDefault();
	// 	});
	

	
});
