/* AUTHOR: mathieu simons */
/* Creation date: 25/04/2002 */
//   if (parent.location.href == self.location.href) {
//   window.location.href = 'http://www.always4you.com/index.html';
//   }
//  End -->
function stopError() { return true; }
window.onerror=stopError; 
//end
function reloadPage(init) { 
  if (init==true) with (navigator) 
  {
    if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
    {
      document.pgW=innerWidth;
      document.pgH=innerHeight;
      onresize=reloadPage; 
    }
  }
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) {location.reload();}
}
reloadPage(true);
// no right click
//document.oncontextmenu = function(){return false}
//function clickIE() {if (document.all) {(message);return false;}}
//function clickNS(e) {if 
//(document.layers||(document.getElementById&&!document.all)) {
//if (e.which==2||e.which==3) {(message);return false;}}}
//if (document.layers) 
//{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
//else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
//document.oncontextmenu=new Function("return false")
//
// create a new window and center
//to load javascript:newWindow('YOUR.html') and link lol <A></A>
function newWindow(URL){
var top = Math.ceil((screen.height/2)-300); // middle
var left = Math.ceil((screen.width/2)-320); // center
window.open(URL,"","toolbars=no,resizable=yes,scrollbars=yes,top="+top+",left="+left+",width=620,height=700")
}
// calculate the available windowsize
 var width, height;
  if (document.layers) {
    width  = window.innerWidth - 20;
    height = window.innerHeight - 40;
  }
  else if (document.all) {
    width  = document.body.clientWidth - 20;
    height = document.body.clientHeight - 40;
  }
  else {
    width  = 500;
	height = 400;
  }
//  document.writeln('what to do like eg:<applet code="Tail.class" width=' + width + ' height=' + height + '></applet>');
//end

// glowwhite syntax: <span id="glow"><FONT SIZE=5 color="#000000"><b>Welcome</b></FONT></span>
// this sets the style
//document.write("<style>"+"#glow{ filter:glow(color=#ffffff,strength=7);"+"width:100%;}"+"</style> ");
//end writing

    var titletext="Always 4 YOU!! Supermall 25/24 - 7/7 We add stores, every day."
    var thetext=""
    var started=false
    var step=0
    var times=1
    function welcometext()
    {
      times--
      if (times==0)
      {
        if (started==false)
        {
          started = true;
          document.title = titletext;
          setTimeout("anim()",1);
        }
        thetext = titletext;
      }
    }

    function showstatustext(txt)
    {
      thetext = txt;
      setTimeout("welcometext()",4000)
      times++
    }
    function anim()
    {
      step++
      if (step==7) {step=1}
      if (step==1) {document.title='*---'+thetext+'---*'}
      if (step==2) {document.title=' *--'+thetext+'--* '}
      if (step==3) {document.title='*-*-'+thetext+'-*-*'}
      if (step==4) {document.title=' *-*'+thetext+'*-* '}
      if (step==5) {document.title=' -*-'+thetext+'-*- '}
      if (step==6) {document.title=' --*'+thetext+'*-- '}
      setTimeout("anim()",300);
    }
if (document.title)
window.onload=onload=welcometext
//end
function loadSource(id,url) {
    if(document.getElementById) {
	document.getElementById('bufferFrame').src = url;
	}
}
// end load source

function showit2me(when,what){
var date = new Date(when);
var description = what;
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<FONT SIZE='2' COLOR='black'><B> ");
if (days > 1) {document.write(days+1 + " days left until " + description);}
else if (days == 1) {document.write("Only two more days until " + description);}
else if (days == 0) {document.write("Tomorrow is the BIG DAY " + description);}
else {document.write("It's THE BIG DAY!!!! " + description);}
document.write("!</FONT></center></B>");
}