//flash
function flash_contents(file,width,height){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+width+"' HEIGHT='"+height+"' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME=allowScriptAccess VALUE=always />");
document.writeln("<PARAM NAME=movie VALUE='"+file+"' />");
document.writeln("<PARAM NAME=quality VALUE=high>");
document.writeln("<PARAM NAME=bgcolor VALUE=#FFFFFF>");
document.writeln("<PARAM NAME=wmode VALUE=transparent> ");
document.writeln("<PARAM NAME=base VALUE=.> ");
document.writeln("<embed base='.' src='"+file+"' quality='high' bgcolor='#FFFFFF' width='"+width+"' height='"+height+"' name='contents' align='middle' allowScriptAccess='always' swLiveConnect='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.writeln("</OBJECT>");
}

//window.open scrollbas = no
function popwindow01(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + "; top=30; left=50;")
}	

//window.open scrollbas = yes
function popwindow02(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + "; top=30; left=50;")
}

//tab btn
function chgTap(no){
	
	for(i=1;i<=2;i++){
		document.getElementById('tab0'+i).src = "/images/community/event_tab0"+ i + ".gif"
		document.getElementById('tabCon0'+i).style.display = "none";
	}
		document.getElementById('tab0'+no).src = "/images/community/event_tab0"+ no + "_on.gif"
		document.getElementById('tabCon0'+no).style.display = "block";

}

function chgTap2(no){
	
	for(i=1;i<=4;i++){
		document.getElementById('tab2_0'+i).src = "/images/community/experience_tab0"+ i + ".gif"
		document.getElementById('tabCon2_0'+i).style.display = "none";
	}
		document.getElementById('tab2_0'+no).src = "/images/community/experience_tab0"+ no + "_on.gif"
		document.getElementById('tabCon2_0'+no).style.display = "block";

}

function chgTap3(no){
	
	for(i=1;i<=2;i++){
		document.getElementById('tab0'+i).src = "/images/community/riverNews_tab0"+ i + ".gif"
		document.getElementById('tabCon0'+i).style.display = "none";
	}
		document.getElementById('tab0'+no).src = "/images/community/riverNews_tab0"+ no + "_on.gif"
		document.getElementById('tabCon0'+no).style.display = "block";

}

function example(no){
	
	for(i=1;i<=4;i++){
		document.getElementById('example_0'+i).src = "/images/dream/example_tab0"+ i + ".gif"
		document.getElementById('exampleCon_0'+i).style.display = "none";
	}
		document.getElementById('example_0'+no).src = "/images/dream/example_tab0"+ no + "_on.gif"
		document.getElementById('exampleCon_0'+no).style.display = "block";

}

function example2(no){
	
	for(i=1;i<=6;i++){
		document.getElementById('example2_0'+i).src = "/images/dream/example2_tab0"+ i + ".gif"
		document.getElementById('exampleCon2_0'+i).style.display = "none";
	}
		document.getElementById('example2_0'+no).src = "/images/dream/example2_tab0"+ no + "_on.gif"
		document.getElementById('exampleCon2_0'+no).style.display = "block";

}

function publicity(no){
	
	for(i=1;i<=4;i++){
		document.getElementById('publicity_0'+i).src = "/images/community/publicity_tab0"+ i + ".gif"
		document.getElementById('publicityCon_0'+i).style.display = "none";
	}
		document.getElementById('publicity_0'+no).src = "/images/community/publicity_tab0"+ no + "_on.gif"
		document.getElementById('publicityCon_0'+no).style.display = "block";

}