 
 function go_url(a){
	var url = '/';
	
	if(a==100) url = '/intro/intro.html';
	if(a==200) url = '/ansan/board.html?id=ansan_news';
	if(a==300) url = '/government/board.html?id=government_pds';
	if(a==400) url = '/media/board.html?id=media_news';
	if(a==500) url = '/community/board.html?id=community_vote';
	if(a==600) url = '/support/support.html'
  

	if(a==110) url = '/intro/intro.html';
	if(a==120) url = '/intro/profile.html';
	if(a==130) url = '/intro/activity.html';  
	if(a==140) url = '/intro/diary.html';

	if(a==210) url = '/ansan/board.html?id=ansan_news';
	if(a==220) url = '/ansan/intro_ansan.html';
	
	if(a==310) url = '/government/board.html?id=government_pds';
	if(a==320) url = '/government/board.html?id=government_research';


	if(a==410) url = '/media/board.html?id=media_news'; 
	if(a==420) url = '/media/board.html?id=media_movie';
	if(a==430) url = '/media/board.html?id=media_photo';
 

	if(a==510) url = '/community/board.html?id=community_vote';
	if(a==520) url = '/community/board.html?id=community_board';
	if(a==530) url = '/community/board.html?id=community_proposal';


	if(a==610) url = '/support/support.html'
	if(a==620) url = '/support/support.html'




	if(url!='') location.href=url; 
	
}

 

function flashWrite(url,w,h,id,bg,win,flashvars){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<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='"+id+"' align='middle'>"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='flashvars' value='"+flashvars+"' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' wmode='"+win+"'   flashvars='"+flashvars+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

} 
 
 
 


function overTab(obj) {
    var tab_id = obj.id;

    var cObj = obj.parentNode.firstChild;
    while(cObj) {
        if(cObj.nodeName == "DIV" && cObj.id) {
            var cTabID= cObj.id;
            if(cTabID.indexOf('tab')<0) continue;
            var cContentID = cTabID.replace(/^tab/,'content');

            if(tab_id == cTabID) {
                cObj.className = "tab on";
                xGetElementById(cContentID).className = "tabContent show";
            } else {
                cObj.className = "tab";
                xGetElementById(cContentID).className = "tabContent hide";
            }
        }
        cObj = cObj.nextSibling;
    }
 
}

function xGetElementById(e)
{
  if(typeof(e)!='string') return e;
  if(document.getElementById) e=document.getElementById(e);
  else if(document.all) e=document.all[e];
  else e=null;
  return e;
}

