AjaMyAjax.apply(this);
function init(){try{var b=document.referrer,a=new AjaMyAjax;if(b){b=escape(b);a.ajaxRequest("ajalog.php?uid=ajamyajax&ref="+b+"&pg=","mainmenu","logo","php",null,null,null,null,null,false)}else a.ajaxRequest("ajalog.php?uid=ajamyajax&pg=","mainmenu","logo","php",null,null,null,null,null,false)}catch(c){alert("Browser upgrade probably needed to run this");return}a=new AjaMyAjax;a.ajaxRequest("rssfeed.xml",null,"rssfeedID","XSL");aja_reveal("rssfeedID");aja_reveal("realtimeID")}
function cloak_submenu(){aja_cloak("submenuID");aja_cloak("rssfeedID");aja_cloak("ajaxfeedID");aja_cloak("rcornerID3");aja_cloak("rcornerID4");aja_empty("infotextID");aja_empty("botmsgID")}
function display_empty(){aja_cloak("displayID2");aja_cloak("displayID3");aja_cloak("displayID4");aja_cloak("displayID5");aja_cloak("displayID6");aja_cloak("displayID7");aja_cloak("rssfeedID");aja_cloak("ajaxfeedID");aja_cloak("rcornerID3");aja_cloak("rcornerID4");aja_empty("rssfeedID");aja_empty("displayID1");aja_empty("infotextID");aja_empty("botmsgID")}
function aja(b){if(b){switch(b){case "Download":cloak_submenu();display_empty();var a=new AjaMyAjax;a.ajaxRequest("download.html",null,"displayID1","html");break;case "Examples":display_empty();aja_reveal("submenuID");example1();break;case "Resources":cloak_submenu();display_empty();a=new AjaMyAjax;a.ajaxRequest("resources.xml",null,"displayID1","xml",null,null,null,null,true,true);aja_fill("botmsgID","Checked for updates recently?");break;case "Sample Feed":cloak_submenu();display_empty();a=new AjaMyAjax;
a.ajaxRequest("rssfeed.xml",null,"rssfeedID","XSL");aja_reveal("rssfeedID");aja_reveal("ajaxfeedID");break;case "Feedback":cloak_submenu();display_empty();a=new AjaMyAjax;a.ajaxRequest("feedback.html",null,"displayID1","html",null,null,null,null,true,true);break;default:alert(b+" details not available yet")}a=new AjaMyAjax;a.ajaxRequest("ajalog.php?uid=ajamyajax&pg=",b,"logo","php",null,null,null,null,null,false)}}
function example1a(){display_empty();(new AjaMyAjax).ajaxRequest("desserts.xml",null,"displayID2","xml",null,null,16706,null,true,true);aja_reveal("displayID2");aja_fill("infotextID","(basic XML table)")}
function example1(){display_empty();(new AjaMyAjax).ajaxRequest("expenses.xml",null,"displayID3","XML","HTable",null,6449);aja_reveal("rcornerID3");aja_reveal("displayID3");aja_fill("infotextID","(XML in horizontal table format)");aja_fill("botmsgID","(Everything you see here runs on AjaMyAjax)")}
function example2(){display_empty();(new AjaMyAjax).ajaxRequest("complang.xml",null,"displayID4","XML","HTable",null,7157);aja_reveal("rcornerID4");aja_reveal("displayID4");aja_fill("infotextID","(Another XML file in horizontal table format)")}function example3(){display_empty();(new AjaMyAjax).ajaxRequest("hybrids.xml",null,"displayID1","XSL");aja_fill("infotextID","(XML with eXtensible Stylesheet Language Transformation)")}
function example4(){display_empty();(new AjaMyAjax).ajaxRequest("geniuses.json",null,"displayID5","JSON",null,null,54080);aja_reveal("displayID5");aja_fill("infotextID","(JSON data into formatted text)")}function example5(){display_empty();(new AjaMyAjax).ajaxRequest("desserts.json",null,"displayID6","JSON",null,"Cake");aja_reveal("displayID6");aja_fill("infotextID","(JSON data with added search)")}
function example6(){display_empty();(new AjaMyAjax).ajaxRequest("rssfeed.xml",null,"rssfeedID","XSL");aja_reveal("ajaxfeedID");aja_reveal("rssfeedID");aja_fill("infotextID","(RSS Feed using XSLT template)")}function example7(){display_empty();(new AjaMyAjax).ajaxRequest("contactsdemo.php",null,"displayID1","PHP");aja_fill("infotextID","(PHP retrieving selected table data)")}
function example8(){display_empty();(new AjaMyAjax).ajaxRequest("worldpop.xml",null,"displayID7","XML","Chart");aja_reveal("displayID7");aja_fill("infotextID","(world population XML chart)")}function aja_datetime(){var b=new Date,a=b.getHours(),c=b.getMinutes(),d=b.getSeconds(),e=a<12?"AM":"PM";if(a>12)a-=12;if(c<10)c="0"+c;if(d<10)d="0"+d;b=b.getMonth()+1+"-"+b.getDate()+"-"+b.getFullYear();aja_fill("realtimeID","["+b+" "+(a+":"+c+":"+d+" "+e)+"]")}
function showwhatsnew(){(new AjaMyAjax).ajaxRequest("whatsnew.html",null,"rolloverID","HTML",null,null,null,null,false);aja_reveal("rolloverID")}function hidewhatsnew(){aja_cloak("rolloverID");aja_empty("rolloverID")};
