<!--

function openwindow(filename){window.open(filename,"","width=680,height=520,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}

//计算屏幕位置
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 640, yMax=480;
var xOffset = (xMax - 720)/2, yOffset = (yMax)/2;
//alert(yMax);

	if (document.all)
	{
		var IEBrowser=true;
	}else{
		var IEBrowser=false;
	}


//计算结束

function open_custom(filename,width,height){
viewpic=window.open(filename,"viewpic","width="+width+",height="+height+",left="+xOffset+",top="+((yMax-height)/2-4)+",resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
//viewpic.window.resizeBy(0,0);
}

function open_pic(filename){
viewpic=window.open(filename,"viewpic","width=680,height=430,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
viewpic.focus();
}

function open_cart(filename,width,height){
myNum=Math.round((9999-1)*Math.random()+1); 
//filename=filename+"&number="+myNum;
cartorder=window.open(filename,"cartwindow","width="+width+",height="+height+",resizable=yes,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function ChangeBgcolor(id)
{
	document.all.page_left_top.src="images/page_left_top_"+id+".gif";
	document.all.page_left_bottom.src="images/page_left_bottom_"+id+".gif";
	document.all.page_left_middle.background="images/page_left_middle_"+id+".gif";
	document.all.page_right_top.className="page_right_top_"+id;


}

var pro_menutime;

function menumove(whichdiv,scrollspeed,num,position){   
	
	tdiv=eval(whichdiv); 
	//alert(tdiv.id);
	if (tdiv.style.posLeft>=position){ 
		//tdiv.style.pixelTop-=num ;
		return ;
	}   
	//status=tdiv.style.pixelTop;
	tdiv.style.posLeft+=num ;
	tdiv.filters.alpha.opacity+=20;
	setTimeout("menumove("+tdiv.id+","+scrollspeed+","+num+","+position+")",scrollspeed) ; 
}  
function menustart(whichdiv,scrollspeed,num,position,startnum,opacitynum) // 层，移动速度，移动步长，停止位置，透明度
{

	tdiv=eval(whichdiv); 	
	if(tdiv.style.visibility=='hidden')
	{
		MM_showHideLayers(whichdiv,'','show');
		//menuon=true;
		tdiv.style.posLeft=position-startnum;
		tdiv.filters.alpha.opacity=opacitynum;			
		setTimeout("menumove("+whichdiv+","+scrollspeed+","+num+","+position+")",scrollspeed) ; 
		/*
		*/
	}
	return;
	
}
function menuend(whichdiv,latertimes)
{
	//MM_showHideLayers(whichdiv,'','hide');
	pro_menutime=setTimeout("MM_showHideLayers('"+whichdiv+"','','hide')",latertimes);
	//return;
	//menuon=false;
}
function CountWidth(whichdiv)
{
	tdiv=eval(whichdiv);
	return tdiv.offsetLeft+tdiv.offsetWidth;
}
function gourl(url)
{
	//window.href="abc.htm";
	window.location.href=url
}


function reflash(value){
	//alert(value);
	
	if(IEBrowser)
	{
	temp1="myFlash";
	}else{
	temp1="flash2";	
	}

	document.getElementById(temp1).height=value;
	//document.getElementById("flash2").height=value;
	/*
	if(document.getElementById(temp1).height!=value)
	{
		var flash_st=setTimeout("reflash("+value+")",100);
	}else{
		clearTimeout(flash_st);
	}
	*/
}
function alertlist(value){
	alert(value);
}

/*
window.onload=function()
{
for(var i=0; i<document.links.length; i++)
document.links[i].onfocus=function(){this.blur()}
//document.links[i].hidefocus=function(){return true;}
//alert(document.links[i].hidefocus.value);
}
*/
var flash_st;
var test111=1;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args) {

	var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
　  //alert (args);
	//myFlashObj.height=args;
	document.getElementById("myFlash").height=args;
	//test111=args;
	//flash_st=setTimeout("myFlash_DoFSCommand('"+command+"','"+args+"')",100);
	if(myFlashObj.height!=args)
	{

	}else{
		//clearTimeout(flash_st);	
		//window.status="over";
	}
	//window.status=myFlashObj.height+" "+args+" "+test111;
	//test111++;
}
if (navigator.appName && navigator.appName.indexOf("Microsoft")!= -1 &&  navigator.userAgent.indexOf("Windows")!= -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
//document.write(' alert "123"\n');
document.write(' call myFlash_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
function hid(sid){
	whichEl = eval(sid);
	whichEl.style.display = "none";
}
-->