function showLogin(message,target,returl){location.assign('https://hooddesign.com/index.php?page=login');}function processLogin(username,password,perpetual,returl,target){var message = 'this is depricated';}function showLogOut(message,target,returl){var message = 'this is depricated';}function showCreateAccount(target,query){var message = 'this is depricated';}function processNewAccount(query,target){var message = 'this is depricated';}function showLostpw(target){var message = 'this is depricated';}function processLostpw(email_address,target){var message = 'this is depricated';}function mainboxHeight(factor){var cHi = $(document).height();var hHi = $('#header').height();var fHi = $('#footer').innerHeight();var nHi = cHi-hHi-fHi-factor;$('#mainbox').css('height',nHi+'px');var mbhi = $('#mainbox').innerHeight();return mbhi;}function mainHeight(factor){var cHi = $(document).height();var hHi = $('#header').height();var fHi = $('#footer').innerHeight();var nHi = cHi-hHi-fHi-factor;$('#main').css('height',nHi+'px');}function moveMenubox(){var dWi = $(document).width();var cWi = $('#container').width();var sideW = Math.round((dWi-cWi)/2)-2;$('#container #usermenu').css('right',(0-sideW)+'px');}function cookieNotice(prefix){$('#container').append('
');$('#cookienoticewrap').load('/common/cookies/index.php', {'prefix' : prefix }, function(){$('#cookiebutton').click( function(){$('#cookienotice').load('/common/cookies/index.php', {'cookie_okay' : 1, 'prefix' : prefix }, function(){$('#cookienoticewrap').remove();location.reload();});});$('#nocookiebutton').click( function(){$('#cookienotice').load('/common/cookies/index.php', {'cookie_not_okay' : 1, 'prefix' : prefix }, function(){$('#cookienoticewrap').remove();location.reload();});});});}$(document).ready( function(){$('#loginbutton').html('admin');$('a#loginbutton').css('cursor','pointer');$('a#loginbutton').click(function(e){e.preventDefault();var returl = $('#slab_returl').html();var message = encodeURI('Please enter your username and password. If you would like to create a new account, click the appropriate button below.');showLogin(message,'#loginWindow',returl);});});