// Google Code // alert ("http://maps.google.com/maps?file=api&v=3&key=ABQIAAAAMNex53tbcSHIwETJb443sxQnvHCJV20J7DXJWfwNnXovNUg8JBQSYfG3f8aJotQbSMtmxPl52-r64Q"); // document.write (''); var sidemnt = 09; var sideyr = 2010; /* ~~~~~~~~~~~~~~~ START OF franchisitejs.js ~~~~~~~~~~~~~~~~~~~~~~ */ var pgnojs; var loginBoxFlag = false; var sideDateString = " " + sideyr + "-" + sidemnt; var pgno = 0; var totalpages; var mainimageflag = 0; var answeredflag = 0; var latestflag = 0; var idx = 0; jQuery(document).ready (function () { loadMapOntoScreen(); //Event/Article flip thingy // alert(pgno); // alert ("691"); jQuery.post ('/ajax/usersiteajax.php', { content : "events", page : pgno, siteid : "691" } , function (json){ detailsToPage(json); // alert ("Adding Clicky"); jQuery('#leftclick').click (function () { // alert ("leftclicky"); }); }); // Bang up the calender jQuery.post ('/ajax/usersiteajax.php', { content : "sitecal", date : "sideDateString", siteid : "691" } , function (json) { monthToCalender (json); }); var flag = 1; var comm = 10; //alert(comm); var commcopy = comm; var t = 1; //tempory fix for clamshell comments var flag1 = 1; var flag2 = 1; var flag3 = 1; var flag4 = 1; var flag5 = 1; var flag6 = 1; var flag7 = 1; var flag8 = 1; var flag9 = 1; var flag10 = 1; var flag11 = 1; var flag12 = 1; var flag13 = 1; var flag14 = 1; jQuery('#showcomment' + 1).click(function () { if(flag == 1){ jQuery('#hidecomment' + 1).show("slow");{ }flag = 0; }else{ jQuery('#hidecomment' + 1).hide("slow");{ } flag = 1;}}); jQuery('#showcomment' + 2).click(function () { if(flag1 == 1){ jQuery('#hidecomment' + 2).show("slow");{ }flag1 = 0; }else{ jQuery('#hidecomment' + 2).hide("slow");{ } flag1 = 1;}}); jQuery('#showcomment' + 3).click(function () { if(flag2 == 1){ jQuery('#hidecomment' + 3).show("slow");{ }flag2 = 0; }else{ jQuery('#hidecomment' + 3).hide("slow");{ } flag2 = 1;}}); jQuery('#showcomment' + 4).click(function () { if(flag3 == 1){ jQuery('#hidecomment' + 4).show("slow");{ }flag3 = 0; }else{ jQuery('#hidecomment' + 4).hide("slow");{ } flag3 = 1;}}); jQuery('#showcomment' + 5).click(function () { if(flag4 == 1){ jQuery('#hidecomment' + 5).show("slow");{ }flag4 = 0; }else{ jQuery('#hidecomment' + 5).hide("slow");{ } flag4 = 1;}}); jQuery('#showcomment' + 6).click(function () { if(flag5 == 1){ jQuery('#hidecomment' + 6).show("slow");{ }flag5 = 0; }else{ jQuery('#hidecomment' + 6).hide("slow");{ } flag5 = 1;}}); jQuery('#showcomment' + 7).click(function () { if(flag6 == 1){ jQuery('#hidecomment' + 7).show("slow");{ }flag6 = 0; }else{ jQuery('#hidecomment' + 7).hide("slow");{ } flag6 = 1;}}); jQuery('#showcomment' + 8).click(function () { if(flag7 == 1){ jQuery('#hidecomment' + 8).show("slow");{ }flag7 = 0; }else{ jQuery('#hidecomment' + 8).hide("slow");{ } flag7 = 1;}}); jQuery('#showcomment' + 9).click(function () { if(flag8 == 1){ jQuery('#hidecomment' + 9).show("slow");{ }flag8 = 0; }else{ jQuery('#hidecomment' + 9).hide("slow");{ } flag8 = 1;}}); jQuery('#showcomment' + 10).click(function () { if(flag9 == 1){ jQuery('#hidecomment' + 10).show("slow");{ }flag9 = 0; }else{ jQuery('#hidecomment' + 10).hide("slow");{ } flag9 = 1;}}); jQuery('#showcomment' + 11).click(function () { if(flag10 == 1){ jQuery('#hidecomment' + 11).show("slow");{ }flag10 = 0; }else{ jQuery('#hidecomment' + 11).hide("slow");{ } flag10 = 1;}}); jQuery('#showcomment' + 12).click(function () { if(flag11 == 1){ jQuery('#hidecomment' + 12).show("slow");{ }flag11 = 0; }else{ jQuery('#hidecomment' + 12).hide("slow");{ } flag11 = 1;}}); jQuery('#showcomment' + 13).click(function () { if(flag12 == 1){ jQuery('#hidecomment' + 13).show("slow");{ }flag12 = 0; }else{ jQuery('#hidecomment' + 13).hide("slow");{ } flag12 = 1;}}); jQuery('#showcomment' + 14).click(function () { if(flag13 == 1){ jQuery('#hidecomment' + 14).show("slow");{ }flag13 = 0; }else{ jQuery('#hidecomment' + 14).hide("slow");{ } flag13 = 1;}}); jQuery('#showcomment' + 15).click(function () { if(flag14 == 1){ jQuery('#hidecomment' + 15).show("slow");{ }flag14 = 0; }else{ jQuery('#hidecomment' + 15).hide("slow");{ } flag14 = 1;}}); 1 //left click on events window in content jQuery('#mainpageleft').click (function (){ //alert('clicked left'); pgno = pgno - 1; mainimageflag = 0; if(pgno < 0){ pgno++;}else{ jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "events", page : pgno, title : "", siteid : "691" } , function (json){ detailsToPage(json); jQuery("#mainpagetop").fadeIn("normal"); }); }); } }); // alert ("Special Feature"); jQuery('#dirtitle').click (function (){ jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "directory", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#alphadirtitle').click (function (){ jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "browsehelp", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); //alert ("Special Feature"); jQuery('#calendertitle').click (function (){ jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "calender", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#questiontitle').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "questionhelp", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#directorymodule').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "directorymodule", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#adverthelp').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "adverthelp", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#emailmodule').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "emailmodule", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#latestblogmodule').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "latestblogmodule", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#recentquestionshelp').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "recentquestionshelp", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#latestnewsmodule').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "latestnewsmodule", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); }); jQuery('#myquestions').click (function (){ //alert ("Special Feature"); jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "myquestions", siteid : "691", date : "" }, function (rtn) { //alert (rtn); jQuery("#mainpagetop").html(rtn); jQuery("#mainpagetop").fadeIn("normal"); }); }); });1 //right click on events window in content var testvar; jQuery('#mainpageright').click (function (){ //alert(pgno); pgno = pgno + 1; mainimageflag = 0; if(pgno >= 6){ pgno--;}else{ jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery("#mainpagetop").html (" Loading .."); jQuery.post ('/ajax/usersiteajax.php', { content : "events", page : pgno, title : "", siteid : "691" } , function (json){ detailsToPage(json); jQuery("#mainpagetop").fadeIn("normal"); }); }); } }); //answered questions js jQuery('#answeredquestions').click(function () { if(answeredflag == 1){ jQuery('#answered').show("fast");{ }answeredflag = 0; }else{ jQuery('#answered').hide("fast");{ } answeredflag = 1;}}); //latest questions clamshell jQuery('#recentquestions').click(function () { if(latestflag == 1){ jQuery('#latest').show("fast");{ }latestflag = 0; }else{ jQuery('#latest').hide("fast");{ } latestflag = 1;}}); // jQuery('#calenderdaysafterevent').click (function (){ // alert ("Special Feature"); // jQuery('#mainSearchBox').html (" Loading .."); // jQuery.post ('/ajax/usersiteajax.php', { content : "calender", siteid : "691", date : "" }, function (rtn) { // alert (rtn); //jQuery('#mainSearchBox').html(rtn); //}); // }); //alert (sideyr + "-" + sidemnt); Math.floor(sidemnt); jQuery('#sidecalpremonth').click (function (){ //if (sidemnt == 08) sidemnt = 8; //if (sidemnt == 09) sidemnt = 9; sidemnt = parseInt(sidemnt, 10) - 1; if (sidemnt == 0) { sidemnt = 12; sideyr = sideyr - 1; } if (sidemnt < 10) sidemnt = "0" + sidemnt; var newdate = " " + sideyr + "-" + sidemnt + " "; // alert (newdate); jQuery.post ('/ajax/usersiteajax.php', { content : "sitecal", date : newdate, siteid : "691" } , function (json) { monthToCalender (json); }); }); jQuery('#sidecalnextmonth').click (function (){ //alert("moo"); var newdate = " " + sideyr + "-" + sidemnt + " "; //if (sidemnt == 08) sidemnt = 8; //if (sidemnt == 09) sidemnt = 9; sidemnt = parseInt(sidemnt, 10) + 1; newdate = " " + sideyr + "-" + sidemnt + " "; // alert (newdate); if (sidemnt == 13) { sidemnt = 1; sideyr = sideyr + 1; } if (sidemnt < 10) sidemnt = "0" + sidemnt; newdate = " " + sideyr + "-" + sidemnt + " "; // alert (newdate); jQuery.post ('/ajax/usersiteajax.php', { content : "sitecal", date : newdate, siteid : "691" } , function (json) { //alert (json); monthToCalender (json); }); }); }); function monthToCalender (json) { // alert (json); myString = "test"; // Empty the calender jQuery('#sidecalarea').empty(); jQuery('#sidecalarea').html ("\"loading\""); var json = eval ('(' + json + ')'); jQuery('#sidecaltitle').html("" + json.monthname + ""); // Create the outertable outerTable = jQuery('
'); takenup = json.numdays + (json.dow - 1) numSpacesLeft = 7 - (takenup % 7); //assign events eventdays = json.eventdays; //alert(eventdays[1]); var numdays = json.numdays; if (numSpacesLeft == 7){ numSpacesLeft = 0; } numRows = (numSpacesLeft + takenup) / 7; var lflag = false; var nflag = false; var counter = json.calstart; //alert (json.numdays); var currentday = 10; var currentmonth = "September"; //var currentmonthnum = "9"; //alert (currentmonth); var flag = false; daysoftheweek = jQuery(' SMTWTF S'); var z = 0; //alert (currentmonthnum); outerTable.append (daysoftheweek); // alert(eventdays); for (x=0; x < numRows; x++) { startingRow = jQuery(''); for (y=0; y < 7; y++) { flag = false; // alert(counter); //function here if((counter > json.numdaysinpreviousmonth)&&(x == 0)){counter = 1;} if((counter > numdays)&&(x!=0)){counter = 1;} //if(counter > numdays){counter = 1;} addtd(counter, currentday, currentmonth, numdays); //tableData.append (counter); tableData.appendTo (startingRow); counter++; z++; } outerTable.append (startingRow); } function passDate (passedday, passedmonth, passedyear) { jQuery("#mainpagetop").html (" Loading .."); jQuery("#mainpagetop").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "calenderevents", clickedday : passedday, clickedmonth: passedmonth, clickedyear: passedyear, siteid : "691" } , function (json){ calenderDateToPage(json); jQuery("#mainpagetop").fadeIn("normal"); }); }); jQuery("#caldate").html (" Loading .."); //jQuery("#caldate").fadeOut("normal", function (){ jQuery.post ('/ajax/usersiteajax.php', { content : "calenderevents", clickedday : passedday, clickedmonth: passedmonth, baseurl: "", clickedyear: passedyear, siteid : "691" } , function (json){ calenderDateToPage(json); jQuery("#caldate").fadeIn("normal"); }); //}); } function addtd(counter, currentday, currentmonth, numdays) { var tdid = "calenderdaysbefore"; //alert(counter + " hi"); if((counter < currentday) && (x == 1)){tdid = "calenderdaysbefore"; } else if(counter > currentday){tdid = "calenderdaysafter";} while(z < 32){ if((counter == eventdays[z - 1]) && (counter > currentday)){tdid = "calenderdaysafterevent";} else if((counter == eventdays[z - 1]) && (counter < currentday)){tdid = "calenderdaysbeforeevent";} else if((counter == currentday) && (counter == eventdays[z])){tdid = "calenderdayseventtoday";} if ((currentmonth != json.monthname) && (counter == eventdays[z - 1])) { if(((x < 1)&&(counter > 20))||((x > 2 ) && (counter < 7))){ tdid = "calenderdaysout"; }else{ tdid = "calenderdaysoutevent"; var t = eventdays[z - 1]} } z++; } z = 0; if((x < 2) && (counter > 21) && (currentmonth == json.monthname)){tdid = "calenderdays"; } if((x > 3) && (counter < 7) && (currentmonth == json.monthname)){tdid = "calenderdays";} //alert(counter); if ((currentmonth != json.monthname) && (counter != t)){ tdid = "calenderdaysout"; } tableData = jQuery(''); // if (!lflag) { //if ((y + 1) == json.dow) //{ // lflag = true; // counter = 1; // } // } else if (!nflag) { // if (counter > numdays) // { // nflag = true; // counter = 1; //} // } //alert (counter); var passedday = counter; var passedmonth = json.passedmonthnum; var passedyear = json.passedyearnum; var links = jQuery('') .click(function (){ //alert ("Connecftion"); passDate (passedday, passedmonth, passedyear); }) .append(counter); tableData.append(links); } jQuery('#sidecalarea').empty(); jQuery('#sidecalarea').append (outerTable); return null; } function calenderDateToPage(json) { //alert(json); //alert ("halt js"); var json = eval ('(' + json + ')'); //alert(json.eventarray); var maincontent = "
Events

" + json.clickedday + json.dayext + " " + json.clickedmonthname + " " + json.clickedyear + "

"; var halfpast = "00"; var flag = 1; var color = "ebeef9"; var time; var lineborder; var minifont; var eventarray = []; var tdflag; var bugfix; var timecompare; for(var y = 0; y < json.numrows; y++){ eventarray.push(json.eventarray[y]); } for(var hour = 0; hour < 25; hour++){ if(hour < 10){ hour = "0" + hour; } var time = hour + ":" + halfpast + ":" + "00"; if (flag == 0){ // alert(hour); flag = 1; hour--; if((hour < 08) || (hour > 16)){ color = "d7ddf3"; }else{ color = "ebeef9"; } //alert(hour +"1"); halfpast = "30"; minifont = "font-size:9px;"; if((time == "0000-00-00 08:00:00") || (time == "0000-00-00 17:00:00")) { lineborder = "1px #768299 solid"; }else{ lineborder = "1px #abb8f1 solid"; } if(hour < 10){ hour = "0" + hour; } }else{ // alert(hour +"2"); if(hour == 24){break;} halfpast = "00"; minifont = "font-size:12px;"; //alert(hour +"3"); flag = 0; if((hour < 08) || (hour > 16)){ color = "e0e7f3"; }else{ color = "fbfbfb"; } lineborder = "1px #fbfbfb solid"; if (hour!=0){ //hour--; } } // alert(json.eventarray[0][2]); // each cell of the calender..... maincontent += ""; } maincontent += "
" + hour + ":" + halfpast +""; bugfix = json.key; for(var x = 0; json.numrows > x; x++){ time = hour + ":" + halfpast + ":00"; if(json.eventarray[x][2].substr( 11, 8) == time){ // alert(hour + halfpast); // alert(time); maincontent += ""; } else { maincontent += " "; } } maincontent += "
 
"; mainimageflag = 1; //maincontent .= + imagecode; //return the content jQuery('#mainpagetop').html(maincontent); jQuery('#caldate').html(maincontent); } function detailsToPage (json) { // alert(json); //alert ("halt js"); jQuery('#mainpagetop').empty(); jQuery('#mainpagetop').html ("\"loading\""); jQuery('#mainpagetop').html ("

No Articles found on this Franchisite

"); var json = eval ('(' + json + ')'); ///////////////////////////////////////////////////// //output json to screen bug test //alert(json.content); ///////////////////////////////////////////////////// jQuery('#mainpagetop').empty(); if((json.images != json.baseurl) && (json.images != "/") && (json.imageurl != "/franchiimage/noimage.png")){ var imagecode = "
"; }else{ var imagecode = ""; } //alert(json.sizeofarray); var currentpage = 'photographer'; var maincontent = "

" + json.title + "

Author : " + json.credit + "Source : " + json.source + "
"; if(currentpage != 'franchisite'){ maincontent += json.stars; } maincontent += "
" + imagecode + json.content; //return the content if(json.title){ //alert("pass"); if(mainimageflag == 0){ jQuery('#mainpagetop').html(maincontent); } if(totalpages){ pgno++; jQuery('#pagenumber').html(pgno + " of " + totalpages); pgno--; }else{ pgno++; jQuery('#pagenumber').html(pgno + " of " + json.sizeofarray); pgno--; totalpages = json.sizeofarray; //alert('boo'); } }else{ //jQuery('#mainpagetop').html(maincontent); if(totalpages){ jQuery('#pagenumber').html(" No Articles "); }else{ jQuery('#pagenumber').html(" No Articles "); } } // check to see if the current page is a franchisite homepage if(currentpage != 'franchisite'){ // If not franchisite homepage check score of item if (json.thumbrating > 0){ //if positive display green json.thumbrating = "(" + json.thumbrating + ")"; }else if(json.thumbrating < 0){ //if negative display red json.thumbrating = "(" + json.thumbrating + ")"; }else{ //else if neithere display black json.thumbrating = "(" + json.thumbrating + ")"; } //print thumb up and down rating buttons if site is not homepage jQuery('#thumbrating').html ("" + json.thumbrating + "" + "  "); } return null; } jQuery(document).unload (function () { GUnload(); }); function testFunction () { } function loadMapOntoScreen () { if (document.getElementById ("listingmap")) { //if (GBrowserIsCompatible()) //{ // alert ("Loaded"); // // var map = new GMap2(document.getElementById("listingmap")); // var geocoder = new GClientGeocoder(); // map.setCenter(new GLatLng(37.4419, -122.1419), 13); //} } } var newwindow; /* ~~~~~~~~~~~~~~~~~~~~~~~~~ END OF franchisitejs.js ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ START OF loginArea.js ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ var sid = 691; var baseurl = "/"; // The Javascript for the loginArea at the top of the page // Works out if the login bos var loginBoxFlag; jQuery('document').ready (function () { // hide the login area jQuery('#loginarea').hide(); jQuery('#loginMenu').hide(); jQuery('#loginerrors').hide(); loginBoxFlag = false; jQuery.post (baseurl + "ajax/siteajax/siteLoginAjax.php", { siteid : sid, action : "normal" } , loadLoginArea); }); function setupLoginArea (stage) { // hide the form area jQuery('#loginarea').fadeOut (10); loginBoxFlag = false; // enter teh switch case switch (stage) { case ("userarea"): // When a user is logged in jQuery('#logoutBut').click (function () { buttonPress ("logout"); }); break; default: // Toggle the login form hidden fade-ness jQuery('#loginButton').click (function () { if (!loginBoxFlag) { // Is currently not shown, so show it jQuery('#loginarea').fadeIn(300); loginBoxFlag = true; } else { // Is currently shown, so hide it jQuery('#loginarea').fadeOut(300); loginBoxFlag = false; } }); // the login function.. jQuery('#submitLogin').click (function () { buttonPress ("login"); }); break; } } function buttonPress (nextAction) { //alert (nextAction); jQuery('#loginarea').fadeOut (300); jQuery('#loginMenu').fadeOut (300, function (){ if (nextAction == "login") { uname = document.forms.login.username.value; pword = document.forms.login.password.value; //alert (username + " : " + password); vars = { siteid : sid, action : nextAction, username : uname, password : pword }; } else { vars = { siteid : sid, action : nextAction }; } jQuery('#loginMenu') .html ("Loading...") .fadeIn(300, function () { jQuery.post (baseurl + "ajax/siteajax/siteLoginAjax.php", vars, loadLoginArea); }); }); } function manageErrors (errJson) { flag = false; if (errJson.length > 0) { flag = true; for (x = 0; x < errJson.length; x++) { tempArray = errJson[x]; jQuery('#loginerrors').empty().append ('

').append (tempArray.message); } } if (flag) { jQuery('#loginerrors') .fadeIn (500) .oneTime (3000, function () { jQuery('#loginerrors').slideUp (1000); }); } } function loadLoginArea (json) { jQuery('#loginMenu').fadeOut(1000, function () { //alert (json) // Generate the object var eJson = eval ("(" + json + ")"); // Stick the menu content in, and then any content below // the main menu jQuery('#loginMenu').html(eJson.loginmenu); jQuery('#loginarea').html(eJson.loginarea); //alert (eJson.stage); // now that the menu content is in place, we can fade in jQuery('#loginMenu').fadeIn(1000); // Set up any button events setupLoginArea (eJson.stage); //alert (eJson.errors); // Manage Errors manageErrors (eJson.errors); }); } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ END OF loginArea.js ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */