			$(function(){
				var intErrors = 0;
			
				$('#divWrapper').corner("7px");
				$('#divMenu').corner("3px");
				$('#divBottom').corner("3px");
				$('#divPanoramic a.clsLightBox').lightBox();
			
				$("td.clsMenu").hover(function (){
				
					$(this).addClass("clsMenuHover");
					$(this).children("a").css("color","#FFFF63");
					$(this).css("cursor","pointer");
					$(this).corner("3px");
					
					
				},
				function (){
				
					$(this).removeClass("clsMenuHover");
					$(this).children("a").css("color","#000033");
					$(this).css("cursor","auto");
					
				}
				);
				
			
				
				//hover states on the static widgets
				$('#divContactUs, ul#icons li').hover(
					function() { $(this).addClass('ui-state-hover'); }, 
					function() { $(this).removeClass('ui-state-hover'); }
				);
				
				
				
				// Dialog			
				$('#divContactUs').dialog({
					autoOpen: false,
					width: 600,
					buttons: {
						"Email Us": function() { 
							if($('input[name=txtName]').val() == ""){
								$('.clsName').html('');
								$('.clsName').append('Name:<span class=clsError>You must enter a name</span>\n');
								intErrors += 1;
							
							}
							
							
							if($('input[name=txtEmail]').val() == ""){
								$('.clsEmail').html('')
								$('.clsEmail').append('Email:<span class=clsError>You must enter an email address</span>\n');
								intErrors += 1;
							}
							
							if($('#txtComment').val() == ""){
								$('.clsComment').html('');
								$('.clsComment').append('Comment:<span class=clsError>You must enter a comment</span>\n');
								intErrors += 1;
							}
							
							if(intErrors == 0){
							
								$('#frmContactUs').submit();
							
							}else{
							
								intErrors = 0;
							
							}
							
							 
						}, 
						"Cancel": function() { 
							$(this).dialog("close"); 
						} 
					}
				});
				
								
				// Dialog Link
				$('#mnuContactUs').click(function(){
					
					$('#divContactUs').dialog('open');
					
					return false;
				});

				// Dialog Link
				$('#btnContactUs').click(function(){
					
					$('#divContactUs').dialog('open');
					
					return false;
				});
			
			
			});
							
			
			
