
function layerPosition(){
	
	//var scH=$('curent_height').offsetHeight;
	//alert(scH);
	var qqTop=function(){
	var qqlayer=$('onLineQQ');
	var top_google = document.body.scrollTop;  //¹È¸è
    var  topIE = document.documentElement.scrollTop; //IEºÍfirefox
	var S_top=0;
   if(top_google==0){
	 S_top = document.documentElement.scrollTop; 
	 }else{
	  S_top=top_google;
		}
			//qqlayer.style.top=S_top+220+"px";
			if(!isIE6()){
			qqlayer.style.top='';
			qqlayer.style.bottom="0px";
			qqlayer.style.position='fixed'
			}else{
				qqlayer.style.top=S_top+360+"px";
				}
			qqlayer.style.right="2px";
			 setTimeout(qqTop,50);	
		}
	qqTop();
	}


function showqq(){
  var showObj=$('show_qq');
  var smallObj=$('small_qq');
  showObj.style.display='block';
	
	}
var timeout01;	
function hiddenqq(){
	var show=function()

{$('show_qq').style.display='none'};
	timeout01=setTimeout(show,100);
	}
function keepqq(){
 clearTimeout(timeout01);
 $('show_qq').style.display='block';	
 }	
function offqq(){
  $('show_qq-01').style.display='none';	//show_img
  $('show_img').style.display='block';
  
	}	
$('small_qq').onmouseover=function(){
	  showqq();
	}
$('small_qq').onmouseout=function(){
	  hiddenqq();
	}	
	$('show_qq').onmouseover=function(){
	  keepqq();
	}	
	$('show_qq').onmousemove=function(){
	  keepqq();
	}	
	
	$('show_qq').onmouseout=function(){
	  hiddenqq();
	}	
	$('off_qq').onclick=function(){
	  offqq();
	}
	
	layerPosition();
//

/*var qbox=$('qbox').offsetWidth;
var qqLine=$("onLineQQ").offsetWidth;
if(qbox>qqLine){
	  $('onLineQQ').style.width=qbox+"px";
	}
alert([qqLine,qbox]);
*/
