function runSakura() {
		$('#ratings').html('<span style="text-decoration: underline; color: blue; cursor: pointer;" id="ratingsPopupLink">Movie Ratings Guide</span>');
		$('#ratingsPopup').dialog({
			bgiframe: true,
			width: 700,
			title: 'Movie Ratings',
			show: 'blind',
			hide: 'scale',
			autoOpen: false,
			modal: true,
			buttons: {'Close': function(){$(this).dialog('close');}}
		});
                $('#conduct').html('<span style="text-decoration: underline; color: blue; cursor: pointer;" id="conductPopupLink">Theater Code of Conduct</span>');
		$('#conductPopup').dialog({
			bgiframe: true,
			width: 700,
			title: 'Theater Code of Conduct',
			show: 'blind',
			hide: 'scale',
			autoOpen: false,
			modal: true,
			buttons: {'Close': function(){$(this).dialog('close');}}
		});
		$('#loader').dialog({
				bgiframe: true, 
				title: "Loading...",
				autoOpen: false,
				modal: true,
				zindex: 9999,
				closeOnEscape: false
			});
		$('#ratingsPopupLink').click(function(){
                        if($.browser.msie && $.browser.version.substring(0,$.browser.version.indexOf('.')) == 6 ){
                            $(window).scrollTop(0);
                            $('#ratingsPopup').dialog('open');
                            $(window).scrollTop(0);
                        }else{
                            $('#ratingsPopup').dialog('open');
                        }
			});
                 $('#conductPopupLink').click(function(){
                        if($.browser.msie && $.browser.version.substring(0,$.browser.version.indexOf('.')) == 6 ){
                            $(window).scrollTop(0);
                            $('#conductPopup').dialog('open');
                            $(window).scrollTop(0);
                        }else{
                            $('#conductPopup').dialog('open');
                        }
			});
		$('#reservation').html('<span style="text-decoration: underline; color: blue; cursor: pointer;" id="reservationLink">Sakura Theater Reservations</span>');
		$('#reservationLink').click(function(){
			//hack for IE6
			$(window).scrollTop(0);
			$('#reservationPopup').dialog('open');
			//hack for IE6
			$(window).scrollTop(0);
		});
		$('#reservationPopup > form, .validateTips').removeClass('padlr5px');
		$('#submitButton').css('display', 'none');
		var Rank = $('#Rank'),
			Name = $('#Name'),
			Attendees = $('#Attendees'),
			Unit = $('#Unit'),
			EmailAddress = $('#EmailAddress'),
			Phone = $('#Phone'),
			DateRequested = $('#DateRequested'),
			TimeRequested = $('#TimeRequested'),
			AlternateDate = $('#AlternateDate'),
			AlternateTime = $('#AlternateTime'),
			allFields = $([])
							.add(Rank)
							.add(Name)
							.add(Attendees)
							.add(Unit)
							.add(EmailAddress)
							.add(Phone)
							.add(DateRequested)
							.add(TimeRequested)
							.add(AlternateDate)
							.add(AlternateTime);

		$('#reservationPopup').dialog({
			bgiframe: true,
			title: 'Sakura Theater Reservation Request Form',
			show: 'blind',
			width: 550,
			hide: 'scale',
			autoOpen: false,
			modal: true,
			zindex: 1003,
			buttons: {"Submit": function()
								{
								var bValid = true;
								allFields.removeClass('ui-state-error');
								bValid = bValid && checkLength(Rank,"rank",3,25);
								bValid = bValid && checkLength(Name,"name",6,45);
								bValid = bValid && checkLength(Attendees,"attendees",1,4);
								bValid = bValid && checkLength(Unit,"unit",4,45);
								bValid = bValid && checkLength(EmailAddress,"email address",10,45);
								bValid = bValid && checkLength(Phone,"phone",8,13);
								bValid = bValid && checkLength(DateRequested,"date requested",6,45);
								bValid = bValid && checkLength(TimeRequested,"time requested",4,20);
								bValid = bValid && checkLength(AlternateDate,"alternate date",6,45);
								bValid = bValid && checkLength(AlternateTime,"alternate time",4,20);
								bValid = bValid && checkRegexp(EmailAddress,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"ie. username@domain.com");
								if (bValid){
									$('#loader').dialog('open');
									$.ajax({
										url: 'sakura/contactsign.php',
										data: $('#reservationPopup > form').serialize(),
										cache: false,
										success: function(data, text, xhr){
												alert('Your request has been submitted. Thank you.');
												$('#loader').dialog('close');
												$('#reservationPopup').dialog('close');
												},
										error: function(xhr, text, errThrown){
													alert('We are sorry but an error has occurred. Please try again later.');
													$('#loader').dialog('close');
													$('#reservationPopup').dialog('close');
													},
									    type: 'POST'
										});
									}
			},
					'Cancel': function(){
									$(this).dialog('close');
				}
			},
			close: function(){
						allFields.val('').removeClass('ui-state-error');
						$('.validateTips').text('All form fields are required.');
				}
		});
	}
		function updateTips(t) {
			$('.validateTips')
				.text(t)
				.addClass('ui-state-highlight');
			setTimeout(function() {
				$('.validateTips').removeClass('ui-state-highlight', 1500);
			}, 500);
		}
		function checkLength(o,n,min,max) {

			if ( o.val().length > max || o.val().length < min ) {
				o.addClass('ui-state-error');
				updateTips("Length of " + n + " must be between "+min+" and "+max+".");
				return false;
			} else {
				return true;
			}
		}
		function checkRegexp(o,regexp,n) {

			if ( !( regexp.test( o.val() ) ) ) {
				o.addClass('ui-state-error');
				updateTips(n);
				return false;
			} else {
				return true;
			}
		}
