// JavaScript Document
	var isIE=((document.all&&document.getElementById&&!window.opera)?true:false); 
	var isMozilla=((!document.all&&document.getElementById&&!window.opera)?true:false); 
	var isOpera=((window.opera)?true:false);
	var isNS4 = ((document.layers)?true:false);
	function getRef(id) {		
		if (isIE) return document.getElementById(id);
		if (isNS4) return document.layers[id];
		if (isMozilla) return document.getElementById(id);		
		if (isOpera) return document.getElementById(id);
	}
function showImg(id,o)
{
	var obj = getRef("imageCate" + id);
	var k = 0;
	if(id >= 7)
	{
		k = 7;	
	}
	if(o == 1)
		{
			for(var i=0;i<14;i++)
			{
				if ((k ==0 && i < 7) || (k==7 && i>=7))
				{
					if(id == i)
					{
						osrc = obj.src;
						obj.src = osrc.replace("b.jpg","a.jpg");
						contObj = getRef("cateCont" + id);
						contObj.className = 'dBlock';
					}
					else
					{
						tmpObj = getRef("imageCate" + i);
						tmpoSrc = tmpObj.src;
						tmpnSrc = tmpoSrc.replace("a.jpg","b.jpg");
						tmpObj.src = tmpnSrc;
						
						tmpContObj = getRef("cateCont" + i);
						tmpContObj.className = 'dNone';
					}
				}
			}
		}
}



function showImg1(id,o)
{
	var obj = getRef("imageCate1" + id);
	var k = 0;
	if(id >= 7)
	{
		k = 7;	
	}
	if(o == 1)
		{
			for(var i=0;i<14;i++)
			{
				if ((k ==0 && i < 7) || (k==7 && i>=7))
				{
					if(id == i)
					{
						osrc = obj.src;
						obj.src = osrc.replace("b.jpg","a.jpg");
						contObj = getRef("cateCont1" + id);
						contObj.className = 'dBlock';
					}
					else
					{
						tmpObj = getRef("imageCate1" + i);
						tmpoSrc = tmpObj.src;
						tmpnSrc = tmpoSrc.replace("a.jpg","b.jpg");
						tmpObj.src = tmpnSrc;
						
						tmpContObj = getRef("cateCont1" + i);
						tmpContObj.className = 'dNone';
					}
				}
			}
		}
}

function showImg2(id,o)
{
	var obj = getRef("imageCate2" + id);
	var k = 0;
	if(id >= 6)
	{
		k = 6;	
	}
	if(o == 1)
		{
			for(var i=0;i<12;i++)
			{
				if ((k ==0 && i < 6) || (k==6 && i>=6))
				{
					if(id == i)
					{
						osrc = obj.src;
						obj.src = osrc.replace("b.jpg","a.jpg");
						contObj = getRef("cateCont2" + id);
						contObj.className = 'dBlock';
					}
					else
					{
						tmpObj = getRef("imageCate2" + i);
						tmpoSrc = tmpObj.src;
						tmpnSrc = tmpoSrc.replace("a.jpg","b.jpg");
						tmpObj.src = tmpnSrc;
						
						tmpContObj = getRef("cateCont2" + i);
						tmpContObj.className = 'dNone';
					}
				}
			}
		}
}

function showImg3(id,o)
{
	var obj = getRef("imageCate3" + id);
	var k = 0;
	if(id >= 6)
	{
		k = 6;	
	}
	if(o == 1)
		{
			for(var i=0;i<12;i++)
			{
				if ((k ==0 && i < 6) || (k==6 && i>=6))
				{
					if(id == i)
					{
						osrc = obj.src;
						obj.src = osrc.replace("b.jpg","a.jpg");
						contObj = getRef("cateCont3" + id);
						contObj.className = 'dBlock';
					}
					else
					{
						tmpObj = getRef("imageCate3" + i);
						tmpoSrc = tmpObj.src;
						tmpnSrc = tmpoSrc.replace("a.jpg","b.jpg");
						tmpObj.src = tmpnSrc;
						
						tmpContObj = getRef("cateCont3" + i);
						tmpContObj.className = 'dNone';
					}
				}
			}
		}
}

function showImg4(id,o)
{
	var obj = getRef("imageCate4" + id);
	var k = 0;
	if(id >= 6)
	{
		k = 6;	
	}
	if(o == 1)
		{
			for(var i=0;i<12;i++)
			{
				if ((k ==0 && i < 6) || (k==6 && i>=6))
				{
					if(id == i)
					{
						osrc = obj.src;
						obj.src = osrc.replace("b.jpg","a.jpg");
						contObj = getRef("cateCont4" + id);
						contObj.className = 'dBlock';
					}
					else
					{
						tmpObj = getRef("imageCate4" + i);
						tmpoSrc = tmpObj.src;
						tmpnSrc = tmpoSrc.replace("a.jpg","b.jpg");
						tmpObj.src = tmpnSrc;
						
						tmpContObj = getRef("cateCont4" + i);
						tmpContObj.className = 'dNone';
					}
				}
			}
		}
}

function showConts(id,o)
{
	var obj = getRef("conts" + id);
	if(o == 1)
		{
			for(var i=1;i<5;i++)
			{
					if(id == i)
					{
						//osrc = obj.src;
						//obj.src = osrc.replace("b.gif","a.gif");
						obj.className = 'dBlock';
					}
					else
					{
						//tmpObj = getRef("imageCate" + i);
						//tmpoSrc = tmpObj.src;
						//tmpnSrc = tmpoSrc.replace("a.gif","b.gif");
						//tmpObj.src = tmpnSrc;
						
						tmpContObj = getRef("conts" + i);
						tmpContObj.className = 'dNone';
					}
			}
		}
}

function showCat(id)
{
	return;
}

var travel=true
var hotkey=17   /* hotkey即为热键的键值,是ASII码,这里99代表c键 */
if (document.layers)
document.captureEvents(Event.KEYDOWN)
function gogo(e)
{ if (document.layers) {
if (e.which==hotkey&&travel){
 //alert("操作错误.或许是您按错了按键!");  
 } 
 }
else if (document.all){
if (event.keyCode==hotkey&&travel){ 
	//alert("操作错误.或许是您按错了按键!"); 
}}
}

document.onkeydown=gogo
