//È¸»ç¼Ò°³ ¿ì¸®ÀÇ ¾à¼Ó
function Promise(obj) {
	var ph = document.getElementById("companypromise").style;
	if (obj==2) {
	ph.height = 350 + "px";
	} else if (obj==3) {
	ph.height = 570 + "px";
	}
}
//±¤°í ÀÌ¾ß±â
function AdStory(obj) {
	alert(obj);
}
//¿ª»ç ÀÌ¾ß±â url : AboutCocacola/history_01
function HistoryView(mm,obj) {

	var historybtn = document.getElementById("historybtn");
	//¼­ºê¹öÆ° °¹¼ö ºÒ·¯¿À±â, ÃÊ±âÈ­
	var link = historybtn.getElementsByTagName("a");
	for (var i=0;i<link.length;i++) {
		var cnt = i + 1
		var btns2 = document.getElementById("btn"+cnt);
		var source2 = "../Images/AboutCocacola/bt_tab_"+mm+cnt+"_off.gif";
		btns2.setAttribute("src",source2);
	}
	//¼­ºê¹öÆ° ÀÌ¹ÌÁö º¯°æ
	var btns = document.getElementById("btn"+obj);
	var source = "../Images/AboutCocacola/bt_tab_"+mm+obj+"_on.gif";
	btns.setAttribute("src",source);

	//¸ÞÀÎ ÀÌ¹ÌÁö º¯°æ
	var imgs = document.getElementById("historyimg");
	var source2 = "../Images/AboutCocacola/img_history_"+mm+obj+".gif";
	imgs.setAttribute("src",source2);

	//ÅØ½ºÆ® ³»¿ë º¯°æ
	document.getElementById("historymm").style.display="block";

	var txt = document.getElementById("txt"+obj);
	var text = txt.getAttribute("title");
	var txts = document.getElementById("memo");
	txts.firstChild.nodeValue = "";
	if (txts.firstChild.nodeType == 3) {
		txts.firstChild.nodeValue = text;
	}

}

// ¹é°ú»çÀü
function DictionaryView(obj) {
	var dicimg = document.getElementById("dic");
	//ÀüÃ¼ °¹¼ö ºÒ·¯¿À±â, ÃÊ±âÈ­
	var link = dicimg.getElementsByTagName("p");
	for (var i=0;i<link.length;i++) {
		var cnt = i + 1
		var menu = document.getElementById("dic"+cnt).style;
		var imgs = document.getElementById("dic"+cnt+"img").style;
		menu.display = 'none';
		imgs.display = 'block';
	}

	var imgs = document.getElementById("dic"+obj+"img").style;
	var menu = document.getElementById("dic"+obj).style;

	if (menu.display=='block')
	{
	imgs.display = 'block';
	menu.display = 'none';
	} else {
	imgs.display = 'none';
	menu.display = 'block';
	}
}

function DictionaryClose() {
	var dicimg = document.getElementById("dic");
	//ÀüÃ¼ °¹¼ö ºÒ·¯¿À±â, ÃÊ±âÈ­
	var link = dicimg.getElementsByTagName("p");
	for (var i=0;i<link.length;i++) {
		var cnt = i + 1
		var menu = document.getElementById("dic"+cnt).style;
		var imgs = document.getElementById("dic"+cnt+"img").style;
		menu.display = 'none';
		imgs.display = 'block';
	}
}


function FlashInc(f_name,f_value,f_width,f_height,f_align){
	document.write('<object id="'+f_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="movie" value="'+f_value+'.swf" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	document.write('<param name="wmode" value="transparent" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<embed src="'+f_value+'.swf" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28893361-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


