// JavaScript Document

var sPath = window.location.pathname;
//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
if(sPage == 'store_specials_search.php')	
    document.write('<div id="loading"><br><br>We are searching specials for you,Please wait...</div>');
// Created by: PP
function addLoadEvent(func) {
if(sPage == 'store_specials.php')	
{
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
      window.onload = func;
  }else {
      window.onload = function() {
    if (oldonload) {
        oldonload();
       }
       func();
      }
    }
  }
}

addLoadEvent(function() {
   document.getElementById("loading").style.display="none";
 });
