



function validateRegisterForm()
{
	jQuery("div.input input#EmailAddress").hide();
}

function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

function get_cookie ( cookie_name )
{
  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

  if ( results )
    return ( unescape ( results[2] ) );
  else
    return null;
}

function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
  var cookie_string = name + "=" + escape ( value );

  if ( exp_y )
  {
    var expires = new Date ( exp_y, exp_m, exp_d );
    cookie_string += "; expires=" + expires.toGMTString();
  }

  if ( path )
        cookie_string += "; path=" + escape ( path );

  if ( domain )
        cookie_string += "; domain=" + escape ( domain );
  
  if ( secure )
        cookie_string += "; secure";
  
  document.cookie = cookie_string;
}

jQuery(document).ready(function(){

if ( $.browser.msie ) {
  if((document.location.href!="https://eatfitfood1.worldsecuresystems.com/javascript-disabled.htm") && (document.location.href!="https://eatfitfood1.digitalofficebuilder.com.au/javascript-disabled.htm") && (document.location.href!="http://eatfitfood.com.au/javascript-disabled.htm")){
	  if(parseInt($.browser.version, 10)<7){
		window.location.href = "https://eatfitfood1.worldsecuresystems.com/javascript-disabled.htm";
	  }
  }
}


var adminStatus = get_cookie("admin_status");
if(adminStatus=="true")
{
	jQuery("#admin-mode-info").show();
}
else
{
	jQuery("#admin-mode-info").hide();
}

jQuery("#admin-quit").click(function(){
   delete_cookie("admin_status");
   location.reload(true);
});

jQuery("#newsletter img").hover(function(){
	jQuery(this).attr("src","/img/subscribebutton-hover.jpg");
},function(){
	jQuery(this).attr("src","/img/subscribebutton.jpg");
});

jQuery("#announcement div:first-child img").hover(function(){
	jQuery(this).attr("src","/img/facebook-hover2.jpg");
},function(){
	jQuery(this).attr("src","/img/facebook.jpg");
});

jQuery("#announcement div:nth-child(2) img").hover(function(){
	jQuery(this).attr("src","/img/twitter-hover.jpg");
},function(){
	jQuery(this).attr("src","/img/twitter.jpg");
});


jQuery("#contact-form #catwebformbutton").hover(function(){
	jQuery(this).css("background-image","url(/img/submitbutton-hover.jpg)");
},function(){
	jQuery(this).css("background-image","url(/img/submitbutton.jpg)");
});

jQuery(".backbut_catalog img").hover(function(){
	jQuery(this).attr("src","/img/back-button-hover.jpg");
},function(){
	jQuery(this).attr("src","/img/back-button.jpg");
});




jQuery(".nextbut_catalog img").hover(function(){
	jQuery(this).attr("src","/img/next-button-hover.jpg");
},function(){
	jQuery(this).attr("src","/img/next-button.jpg");
});

jQuery(".nextweekbut_catalog img").hover(function(){
	jQuery(this).attr("src","/img/next-week-button-hover.jpg");
},function(){
	jQuery(this).attr("src","/img/next-week-button.jpg");
});





});



