﻿/*============================| common.js vol|===================================/

	프로젝트 : KOFA 대한민국 식재료수출협회
	작성일 : 
	수정일 :

===============================================================================*/



/*팝업*/
function popup(url,w,h){

  strop = "width="+w+" height="+h+",scrollbars=no,toolbar=0,resizable=0";
  window.open(url, "Searchid", strop); 
}


/*swf파일*/
function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="best">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=best width="'+w+'" height="'+h+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function i_flash(s,w,h){
        return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+w+"\" height=\""+h+"\" id=\"main\" align=\"middle\"param name=\"allowScriptAccess\" value=\"always\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\""+s+"\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\""+s+"\" quality=\"high\" bgcolor=\"#000000\" width=\""+w+"\" height=\""+h+"\" name=\"main\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\" /></object>";
}

/*메인 TAB*/
function LayerChange(id){
		if(id=="newstab01"){
			document.getElementById("newstab01").style.display="block";
			document.getElementById("newstab02").style.display="none";
		}else if(id=="newstab02"){
			document.getElementById("newstab01").style.display="none";
			document.getElementById("newstab02").style.display="block";
		}
	}




