// png
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter =
	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}

// flash
function swfView(src,w,h){
var html = '';
html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" VIEWASTEXT>';
html +=  '<param name="movie" value="'+src+'" />';
html +=  '<param name="wmode" value="transparent" />';
html +=  '<param name="quality" value="high" />';
html +=  '<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="transparent">';
html +=  '</embed> ';
html +=  '</object>';
document.write(html);
}

//popup
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
    win = window.open(mypage,myname,settings)
	win.focus();
}

// FAQ
function isView(divName,num){
	var ele = document.getElementById(divName);
	var titleEle=ele.getElementsByTagName('dt');
	var contEle=ele.getElementsByTagName('dd');

	for(var i=0;i<titleEle.length;i++){
		if(i==num){
			if(contEle[i].className=="onCont"){
				//titleEle[i].className="";
				contEle[i].className="";
			}else{
				//titleEle[i].className="";
				contEle[i].className="onCont";
			}
		}else{
			titleEle[i].className="";
			contEle[i].className="";
		}
	}
}
