function ChCtg(Num){
	TargetID = 'ctg'+Num;
	MenuID = document.getElementById("pnv");
	n = MenuID.getElementsByTagName('LI').length;
	for(i=0; i<n; i++){
		var IDName = 'ctg'+i;
		BlockID = document.getElementById(IDName); 
		if(IDName == TargetID){
			BlockID.style.display = 'block';
			MenuID.getElementsByTagName('LI').item(i).firstChild.style.color = '#FFF';
			MenuID.getElementsByTagName('LI').item(i).firstChild.style.background = '#4B4A48';
		}else{
			BlockID.style.display = 'none';
			MenuID.getElementsByTagName('LI').item(i).firstChild.style.color = '#808080';
			MenuID.getElementsByTagName('LI').item(i).firstChild.style.background = 'none';
		}
	}
}

var ua = navigator.userAgent.toLowerCase(); 
var is_pc_ie  = ( (ua.indexOf('msie') != -1 ) && ( ua.indexOf('win') != -1 ) && ( ua.indexOf('opera') == -1 ) && ( ua.indexOf('webtv') == -1 ) );

function Copy(Str){
	if (is_pc_ie) {
		copytext = Str;
		clipboardData.setData('Text',copytext);
	}else{
		document.getElementById('copy').innerHTML = "";
		var swf = "<embed src='/common/js/setClipboard.swf' FlashVars='code=" +encodeURIComponent(copytext) + "' width='0' height='0' type='application/x-shockwave-flash'></embed>";
		document.getElementById('copy').innerHTML = swf;
	}
}
