function EditMenu(id,heading,pageID)	
{
$("#MenuID").val(id);
$("#heading").val(heading);
$("#btnMenu").val('Update Menu Item');
$("#pageID").val(pageID);
$('#addMenuItem').modal();
}

function getInfo()
{

var domainData =document.frmLookUp.domain.value.toLowerCase();

var chkDomain = domainData.split(".");
if(chkDomain.length == 1) domainData = domainData + '.com';

window.location = domainData;

return false;
}

$(document).ready(function () {
							
	$('#iBox td').mouseover(function() {
							
         $(this).removeClass('xBox');
		 $(this).addClass('xBox2');
      }).mouseout(function() {
         $(this).removeClass('xBox2');
		  $(this).addClass('xBox');
      });
   

							
  $("#gridStyle tr:even").css("background-color", "#dddddd");
  $("#gridStyle tr:odd").css("background-color", "#ffffff");
  $('.t1').corners('20px'); 
	$('#basicModal input.signup, #basicModal a.signup').click(function (e) {
		e.preventDefault();
		$('#signup').modal();
	});
	$('#basicModal input.login, #basicModal a.login').click(function (e) {
		e.preventDefault();
		$('#login').modal();
	});
	$('#basicModal input.addMenuItem, #basicModal a.addMenuItem').click(function (e) {
		e.preventDefault();
		$("#MenuID").val('');
		$("#heading").val('');
		$("#pageID").val('');
		$("#btnMenu").val('Create Menu Item');
		$('#addMenuItem').modal();
	});
	

	
	$('img.resize')
		//mouseOver effect
		.hover(function(){
			//take the currently targeted img
			$(this)
				//stops the event from happening in case of an abrupt mouseOut
				.stop()
				//custom animation effect to change the width and height of the img
				.animate({
					//take the original width/height X multipler and tag on the 'px'
					width: '100px',
					height: '90px'
				//space the animation out over 1 sec (deals in milliseconds)
				},600);
		},
		//this is just like a mouseOut effect to take the img back to the original size
		function(){
			$(this)
				//stops the event from happening in case of an abrupt mouseOut
				.stop()
				.animate({
					width: '70px',
					height: '50px'
				},600);
		});
	
	
	$('#LoginShow').click(function (e) {
		$('#xsignup').fadeOut(function () {$('#xlogin').fadeIn();});
		
	});
	
	$('#SignupShow').click(function (e) {
		$('#xlogin').fadeOut(function () {$('#xsignup').fadeIn();});
		
	});
	
});

