Deprecated: Assigning the return value of new by reference is deprecated in /home/sp/public_html/wp-includes/cache.php on line 35

Deprecated: Assigning the return value of new by reference is deprecated in /home/sp/public_html/wp-includes/query.php on line 15

Deprecated: Assigning the return value of new by reference is deprecated in /home/sp/public_html/wp-includes/theme.php on line 505

Warning: Cannot modify header information - headers already sent by (output started at /home/sp/public_html/wp-includes/cache.php:35) in /home/sp/public_html/wp-includes/functions.php on line 846

Warning: Cannot modify header information - headers already sent by (output started at /home/sp/public_html/wp-includes/cache.php:35) in /home/sp/public_html/wp-includes/functions.php on line 847

Warning: Cannot modify header information - headers already sent by (output started at /home/sp/public_html/wp-includes/cache.php:35) in /home/sp/public_html/wp-includes/functions.php on line 848
var ajax = new sack(); var articleListObj; var activeArticle = false; var clickedArticle = false; var contentObj // Reference to article content
function mouseoverArticle() // Highlight article { if(this==clickedArticle)return; if(activeArticle && activeArticle!=this){ if(activeArticle==clickedArticle) activeArticle.className='articleClick'; else activeArticle.className=''; } this.className='articleMouseOver'; activeArticle = this; // Storing reference to this article } function showContent() // Displaying content in the content
{ contentObj.innerHTML = ajax.response; // ajax.response is a variable that contains the content of the external file } function showWaitMessage() { contentObj.innerHTML = '





loading...
'; } function getAjaxFile(fileName) { ajax.requestFile = fileName; // Specifying which file to get ajax.onCompletion = showContent; // Specify function that will be executed after file has been found ajax.onLoading = showWaitMessage; // Action when AJAX is loading the file ajax.runAJAX(); // Execute AJAX function } function selectArticle() // User have clicked on an article { getAjaxFile('http://strengthplanet.com/ajaxcats/?cat=' + this.id); // used to be: getAjaxFile(this.id + '.html'); if(clickedArticle && clickedArticle!=this)clickedArticle.className='articleMouseOver'; this.className='articleClick'; clickedArticle = this; } function initAjaxDemo() { articleListObj = document.getElementById('articleList'); var articles = articleListObj.getElementsByTagName('LI'); for(var no=0;no