window.onload=set_t();
var counter=0;
var agt=navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));



  function set_t()
  { 
	t_string="none";	
  var now=new Date();
	var t=now.getHours();
	if(t>=0&&t<=5) t_string="night";
	else if(t>5&&t<=10) t_string="morn";
	else if(t>10&&t<=17) t_string="cloudy";
	else if(t>17&&t<=21) t_string="sset";
	else if(t>21&&t<=24) t_string="night";
	else t_string="none";
	return "1";
  }//function

  function say_t()
  {
  	document.write(t_string);
  }//function

  function change_img(element)
  {
  	if(element.name!=t_string)
	{
	  element.name=t_string;
	  element.src=element.src.replace(/none/,t_string);
	}//if
	return "1";
  }//function

  function change_email(element)
  { 
	  my_var01='webmaster@';
    my_var02='oxpal.com';
    element.href="mailto:"+my_var01+my_var02;
	return "1";
  }//function change_email



  function checkActiveX(){
    result= 1
    
    try {
      a = new ActiveXObject("Shell.UIHelper");
    } catch (e) { 
      result= 0
    }
    return result
  }




  function makeTrans()
  { 
    if (document.all && is_ie) 
    {
      if (checkActiveX()) 
      {
        document.images.normal1.src="images/spacer.gif";
        document.images.normal2.src="images/spacer.gif";
        document.images.normal3.src="images/spacer.gif";
        document.images.normal4.src="images/spacer.gif";
        document.images.normal5.src="images/spacer.gif";
        document.images.normal6.src="images/spacer.gif";
      }
    }//if
  return "1"
  }//function makeTrans
