
var playButton=null;//Í¼Æ¬ÉÏµÄ²ã

function JM_cc(ob){
	
var obj=document.getElementById(ob); if (obj) { 
var text2copy=obj.value;
  if (window.clipboardData) {
    window.clipboardData.setData("Text",text2copy);
  } else {
    var flashcopier = 'flashcopier';
    if(!document.getElementById(flashcopier)) {
      var divholder = document.createElement('div');
      divholder.id = flashcopier;
      document.body.appendChild(divholder);
    }
    document.getElementById(flashcopier).innerHTML = '';
    var divinfo = '<embed src="_clipboard.swf" FlashVars="clipboard='+escape(text2copy)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
    document.getElementById(flashcopier).innerHTML = divinfo;
  }
 
    return true;

}
return false;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function SelectJump(targ,obj,page)
{
  eval(targ+".location='"+page+obj.options[obj.selectedIndex].value+"'");
}

function switchShow(element)
{
	var obj=document.getElementById(element);
	if(obj)
	{
		if(obj.style.display=="")
		{
			obj.style.display="none";
		}
		else
		{
			obj.style.display="";
		}
	}
}
//
function getX(elem){
    var x = 0;
    while(elem){
        x = x + elem.offsetLeft;
        elem = elem.offsetParent;
    }
    return x;
}
function getY(elem){
    var y = 0;
    while(elem){
        y = y + elem.offsetTop;
        elem = elem.offsetParent;
    }
    return y;
}
function showdiv(img,src,palysrc) 
{ 
if(playButton==null)
{
	playButton = document.createElement("div"); 
	playButton.style.cursor="pointer";
	playButton.style.width = "32px"; 
	playButton.style.Height = "32px"; 
	playButton.style.zIndex = "100"; 
	playButton.style.position = "absolute"; 
	playButton.innerHTML = " <img src='"+src+"' width=32 height=32  class='show_play_icon'/>"; 
	playButton.onmouseover=function(){playButton.style.display='';};
	document.body.appendChild(playButton); 
//playButton.className="show_play_icon"
}
else
{
	playButton.style.display='';
}
playButton.style.left = getX(img)+(img.offsetWidth-32)/2+"px"; 
playButton.style.top = getY(img)+(img.offsetHeight-32)/2+"px"; 
playButton.onclick=function(){window.location=palysrc;};


} 

function hidediv() 
{ 


	playButton.style.display='none';

} 
