/* start :: flash call */
function swf_obj (src, w, h, swfid) {
	swf_html='';
	swf_html+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+swfid+'">';
	swf_html+='<param name="allowScriptAccess" value="always">';
	swf_html+='<param name="movie" value="'+src+'">';
	swf_html+='<param name="quality" value="high">';
	swf_html+='<param name="bgcolor" value="#FFFFFF">';
	swf_html+='<PARAM NAME="wmode" VALUE="transparent">';
	swf_html+='<embed src="'+src+'" quality="high" bgcolor="#FFFFFF" width="'+w+'" height="'+h+'" name="'+swfid+'" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	swf_html+='</object>';
	document.write(swf_html);
}
/* end :: flash call */

/* start :: tab01 */
function tab01(value) {
	for (var i=1; i<4; i++) {
		if (i==value) {
			document.getElementById("tab0"+i).src="/images/tab_mn0"+i+"_on.gif";
			document.getElementById("post0"+i).style.display="";
		}
		else {
			document.getElementById("tab0"+i).src="/images/tab_mn0"+i+"_off.gif";
			document.getElementById("post0"+i).style.display="none";
		}
	}
}
/* end :: tab01 */

/* start :: pop_up */
function pop_up (url, width, height, scroll) {
	var top=(screen.height-height)/2; 
	var left=(screen.width-width)/2; 

	var sample="left="+left+",top="+top+",width="+width+",height="+height+",toolbar=0,location=0,status=0,menubar=0,scrollbars="+scroll+",resizable=0";
	window.open (url, "", sample);
}
/* end :: pop_up */

function auto (value) {
	if (value=="1") {
		document.getElementById("postauto01").style.display="";
		document.getElementById("postCH01").style.display="";
		document.getElementById("postCH02").style.display="none";

		document.getElementById("post01").src="/images/img_radio_on.gif";
		document.getElementById("post02").src="/images/img_radio_off.gif";
		document.getElementById("post03").src="/images/img_radio_off.gif";
		document.getElementById("post04").src="/images/img_radio_off.gif";
	}
	else {
		document.getElementById("postauto01").style.display="none";
		document.getElementById("postCH01").style.display="none";
		document.getElementById("postCH02").style.display="";

		document.getElementById("post01").src="/images/img_radio_off.gif";
		document.getElementById("post02").src="/images/img_radio_off.gif";
		document.getElementById("post03").src="/images/img_radio_off.gif";
		document.getElementById("post04").src="/images/img_radio_on.gif";
	}
}

function tabcl(value, where) {
	if (value=="1") {
		if (where=="b") {
			document.getElementById("tabcl").src="/images/tabbl_01_on.gif";
		}
		else {
			document.getElementById("tabcl").src="/images/tab_cl01_on.gif";
		}
		document.getElementById("cl01").style.display="";
		document.getElementById("cl02").style.display="none";
	}
	else {
		if (where=="b") {
			document.getElementById("tabcl").src="/images/tabbl_02_on.gif";
		}
		else {
			document.getElementById("tabcl").src="/images/tab_cl02_on.gif";
		}
		document.getElementById("cl01").style.display="none";
		document.getElementById("cl02").style.display="";
	}
}

function icons(value) {
	document.getElementById("tables02").style.marginTop="30px";
	for (var i=1; i<11; i++) {
		if (value==i) { 
			document.getElementById("tables00"+i).style.display="";
		}
		else {
			document.getElementById("tables00"+i).style.display="none";
		}
	}
}
function icons_sub(value) {
//	document.getElementById("tables02").style.marginTop="30px";
	for (var i=1; i<11; i++) {
		if (value==i) { 
			document.getElementById("tables00"+i).style.filter = "alpha(opacity=100)";
		}
		else {
			document.getElementById("tables00"+i).style.filter = "alpha(opacity=80)";
		}
	}
}