//状态栏特效.start
   var MESSAGE  = 
   '\u6b22\u8fce\u5149\u4e34\u7d22\u666e\u745e\u739b'
   +" "+"\u6cd5\u62c9\u683c\u7f51\u7ad9\uff0c"
   +"\u6b22\u8fce\u6765\u4eba\u6765\u7535\u6d3d\u8c08\uff1a"
   +"025-84513234/85088323"+" "
   +"\u8c22\u8c22\uff01";
   //"欢迎光临索普瑞玛 法拉格网站，欢迎来人来电洽谈：025-84513234/85088323 谢谢!"

   var POSITION = 150;

   var DELAY = 10;

   var scroll = new statusMessageObject();

function statusMessageObject(p,d) 
 {

  this.msg = MESSAGE;

  this.out = " ";

  this.pos = POSITION;

  this.delay = DELAY;

  this.i = 0;

  this.reset = clearMessage;
 }

function clearMessage() 
{
  this.pos = POSITION;
}

function scroller() 
{
  for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++)
  {
     scroll.out += " ";
  }

  if (scroll.pos >= 0)

   scroll.out += scroll.msg;

  else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length)

  window.status = scroll.out;

  scroll.out = " ";

  scroll.pos--;

  if (scroll.pos < -(scroll.msg.length)) 
  {
   scroll.reset();
  }

  setTimeout ('scroller()',scroll.delay);
}

function snapIn(jumpSpaces,position) 
{

  var msg = scroll.msg;

  var out = "";

  for (var i=0; i<position; i++) 
    {
    	out += msg.charAt(i);
    }

  for (i=1;i<jumpSpaces;i++) 
    {
    	out += " ";
    }

  out += msg.charAt(position);

  window.status = out;

  if (jumpSpaces <= 1) 
  {
   	position++;

    if (msg.charAt(position) == ' ') 
      {
      	position++ ;
      }

    jumpSpaces = 100-position;

  } else if (jumpSpaces >  3)
    {
      jumpSpaces *= .75;
    }
  else
    {
      jumpSpaces--;
    }

  if (position != msg.length) 
  {
    var cmd = "snapIn(" + jumpSpaces + "," + position + ")";

    scrollID = window.setTimeout(cmd,scroll.delay);

  } else 
  {  
  	window.status="";

    jumpSpaces=0;

    position=0;

    cmd = "snapIn(" + jumpSpaces + "," + position + ")";

    scrollID = window.setTimeout(cmd,scroll.delay);

    return false 
  }
    return true;
  }
//状态栏特效.end

//跟随鼠标的星星.start。。。。。。。。。。。。。。。。。。todo
/*
Scrolling Image Map/Text Link Tooltip Script- 
Special Thanks to: Rob(http://rob.yeah.net)
                   Miss Ann(http://annworld.126.com)
*/
var yyns4;
var yy_mt;
var yy_ml;
function showStartsInit() 
{
  if (!document.layers&&!document.all)
     event="test";
     showStarts();
}

function showtip2(current,e,text)
{
if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
document.all.tooltip2.style.visibility="visible"
}else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}


function hidetip2()
{
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}

function scrolltip()
{
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}

function YY_Layerfx(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep)
{
 if ((document.layers)||(document.all)){
  with (Math) {yynextx= eval(yyfnx)}
  with (Math) {yynexty= eval(yyfny)}
  yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep;
  if (document.layers){
    eval(yydiv+".top="+(yynexty+yytop))
    eval(yydiv+".left="+(yynextx+yyleft))
  }
  if (document.all){
    eval("yydiv=yydiv.replace(/.layers/gi, '.all')");
    eval(yydiv+".style.pixelTop="+(yynexty+yytop));
    eval(yydiv+".style.pixelLeft="+(yynextx+yyleft));
  }
  argStr='YY_Layerfx('+yyleft+','+yytop+',"'+yyfnx+'","'+yyfny+'","'+yydiv+'",'+yybilder+','+yyloop+','+yyto+','+yycnt+','+yystep+')';
  if (yycnt<=yystep*yybilder){eval(yydiv+".yyto=setTimeout(argStr,yyto)");}
 }
}


function YY_Mousetrace(evnt) 
{
 if (yyns4)
  {if (evnt.pageX) {yy_ml=evnt.pageX;  yy_mt=evnt.pageY;}  }
 else{
   yy_ml=(event.clientX + document.body.scrollLeft);
   yy_mt=(event.clientY + document.body.scrollTop);
 }
 if (yy_tracescript)eval(yy_tracescript)
}

function showStarts()
{
 yyns4=window.Event?true:false; yy_mt = 0; yy_ml = 0;
document.onmousemove = YY_Mousetrace;
yy_tracescript = '';

if (yyns4){ document.captureEvents(Event.MOUSEMOVE);
YY_Mousetrace('',',document.YY_Mousetrace1')}

YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/39.83007847812662))+0)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/34.224861639800686))+0)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd0\']',2000,true,80,0,1);

YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/27.66510707209673))+30)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/9.240632767417667))+30)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd1\']',2000,true,80,0,1);

YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/16.45318944579641))+60)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/16.0564452288292))+60)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd2\']',2000,true,80,0,1);

YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/6.95348954836835))+90)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/44.13697049887155))+90)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd3\']',2000,true,80,0,1);

YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/33.90077294583733))+120)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/2.2378828869411587))+120)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd4\']',2000,true,80,0,1);

YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/37.858312521039835))+150)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/18.083839795990098))+150)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd5\']',2000,true,80,0,1);
}
//跟随鼠标的星星.end



function a(x,y,color)
{
	document.write("<img border='0' style='position: absolute; left: "+(x+300)+"; top: "+(y+200)+";background-color: "+color+"' src='px.gif' width=1 height=1>");
}


//页面背景花瓣效果.start
function flower()
{
for(t=1;t<=360;t++){
lo=200 * Math.sin(2 * (Math.PI / 180) * t);
x = lo * Math.cos((Math.PI / 180) * t);
y = lo * Math.sin((Math.PI / 180) * t); 
a(x,y,"#000000");
lo=200 * Math.cos(2 * (Math.PI / 180) * t);
x = lo * Math.cos((Math.PI / 180) * t);
y = lo * Math.sin((Math.PI / 180) * t); 
a(x,y,"#ff0000");
}
}
//页面背景花瓣效果.end

//页面立体效果.start
function showSolid()
{
  if (document.all)
  {
    document.body.style.cssText="border:25 ridge red";
  }
}
//页面立体效果.end

//页面打开效果.start
var speed=20;
var temp=new Array();
var temp2=new Array();
var clipright;

function openInit()
{
	if (document.layers){
		for (i=1;i<=2;i++){
			temp[i]=eval("document.i"+i+".clip")
	temp2[i]=eval("document.i"+i)
	temp[i].width=window.innerWidth/2
	temp[i].height=window.innerHeight
	temp2[i].left=(i-1)*temp[i].width
}
}
else if (document.all)
{
  clipright=document.body.clientWidth/2,clipleft=0
for (i=1;i<=2;i++)
{
	temp[i]=eval("document.all.i"+i+".style")
	temp[i].width=document.body.clientWidth/2
	temp[i].height=document.body.offsetHeight
	temp[i].left=(i-1)*parseInt(temp[i].width)
}
}
  gogo();
}

function openit()
{
	window.scrollTo(0,0)
	if (document.layers){
		temp[1].right-=speed
		temp[2].left+=speed
	if (temp[2].left>window.innerWidth/2)
		clearInterval(stopit)
	}
	else if (document.all){
		clipright-=speed
		temp[1].clip="rect(0 "+clipright+" auto 0)"
		clipleft+=speed
		temp[2].clip="rect(0 auto auto "+clipleft+")"
		
	if (clipright<=0)
		clearInterval(stopit);
	}
}

function gogo(){
	stopit=setInterval("openit()",100);
}

//页面打开效果.end
