/* <!--  */
 window.onload = function(){
     setInterval("setnav()", 100);
   }
  
  function setnav() {
  var navtop=document.documentElement.scrollTop;
  if (navtop>158) {
 	  document.getElementById("leftnav").style.top =158+(navtop-158)*xishu+"px";
  }
  else {
  	document.getElementById("leftnav").style.top = "158px";
  }
  }
     
  function toshl(){
  send1="abuse@isc.org.cn"; 
  send1=send1.substr(5,1);
  send1="mai"+"lto"+":be"+"ijing"+send1+"lvp"+"u.n"+"et?subject=在线订购宿根花卉";
  //alert(send1);
  window.location.href=send1;
  }

  function tooffice(){
  send2="abuse@isc.org.cn"; 
  send2=send2.substr(5,1);
  send2="mai"+"lto"+":of"+"fice"+send2+"lv"+"pu.ne"+"t";
  window.location.href=send2;
 }
  
  function prtdate() {
  	todayDate = new Date();
  	date = todayDate.getDate();
  	month= todayDate.getMonth() +1;
  	year= todayDate.getYear();
  	document.write("今天是");
  	document.write("<br>");
  	if(navigator.appName == "Netscape")
  	{
  		document.write(1900+year);
  		document.write("年");
  		document.write(month);
  		document.write("月");
  		document.write(date);
  		document.write("日");
  		document.write("<br>");
  	}
  	if(year<200) year=year+1900; /* for opera browser */
  	if(navigator.appVersion.indexOf("MSIE") != -1)
  	{
  	document.write(year);
  	document.write("年");
  	document.write(month);
  	document.write("月");
  	document.write(date);
  	document.write("日");
  	document.write("<br>");
  	}
  	if (todayDate.getDay() == 5) document.write("星期五");
  	if (todayDate.getDay() == 6) document.write("星期六");
  	if (todayDate.getDay() == 0) document.write("星期日");
  	if (todayDate.getDay() == 1) document.write("星期一");
  	if (todayDate.getDay() == 2) document.write("星期二");
  	if (todayDate.getDay() == 3) document.write("星期三");
  	if (todayDate.getDay() == 4) document.write("星期四");
  }
  
  function addmsite() {
    addBookmark("北京绿普花卉科技有限公司-供应宿根花卉，地被植物","http://www.lvpu.net");
  }  

  function addBookmark(title,myurl) {  
  	  //alert(title);
  	  //alert(myurl);
      if (window.sidebar)  
      {  
          window.sidebar.addPanel(title, myurl, "");  
      }  
      else if(document.all)  
      {  
          window.external.AddFavorite(myurl, title);  
      }  
      else  
      {  
          return   true;  
      }  
  }  

  //onclick="this.style.behavior='url(#default#homepage)';&#10;this.sethomepage('http://www.lvpu.net');"
  function sethomepg(curobj) {
  	//alert(curobj.name);
    curobj.style.behavior="url(#default#homepage)";
    curobj.sethomepage("http://www.lvpu.net");
  }
  
  
  function getTxtinHtmlObj(obj) {
    if(document.all){
       return obj.innerText;
     } 
    else{
      return obj.textContent;
    }   	
  }  
  

  function logoout(ig) {
    imgout(ig);     
  }   
  
  function testx() {
 
  		if (document.all) {
  			//alert("testx,sethomepage");
  			//sethomepg(document.getElementById("logonavto"));
  		}
  		else {
  		alert("本功能只对IE有效。\n您使用的不是IE浏览器，\n请您自己在浏览器中把我们的网址:'http://www.lvpu.net'设置为主页");	
  		}
  	// return true;  	
  }

  function hideme() {
  	document.getElementById("bvista").style.zIndex=0;
  }
  
  function tovista(a) {
  	a="http://www.lvpu.net"+a;
  	document.getElementById("vista").src=a;
  	document.getElementById("bvista").style.zIndex=3;
  	//document.getElementById("mask").style.zIndex=0;
  } 
  function vistaw(w) {
  	document.getElementById("vista").style.width=w+"px";
  }
  function vistawh(w,h) {
  	s=document.getElementById("vista").style;
  	s.width=w+"px";
  	s.height=h+"px";
  }  
/*  -->  */
