// JavaScript Document

var url_root = "http://www.irf-asia.com/korea";

// section 1
var NS4   = (document.layers);
var NS60  = (navigator.userAgent.indexOf("Netscape6/6.0")!=-1);
var Opera = (navigator.userAgent.indexOf('Opera')!=-1)||(navigator.appName.indexOf('Opera')!=-1)||(window.opera);
var IE4   = (document.all&&!Opera) ;
var mac   = ((IE4)&&(navigator.appVersion.indexOf ("Mac")!=-1));
var DOM   = document.documentElement&&!NS4&&!IE4&&!Opera;
var mswnd = (navigator.appVersion.indexOf("Windows")!=-1||navigator.appVersion.indexOf("WinNT")!=-1);

if(IE4)	{
	av=navigator.appVersion;
	avi=av.indexOf("MSIE");
	if (avi==-1)
		version = parseInt (av) ;
	  else
		version = parseInt(av.substr(avi+4)) ;
}

// section 2

if(NS4||IE4||DOM||Opera){
	imgFolder = url_root;
	maxlev = 2;
	popAlign = 0;
	bVarWidth = 0;
	bShowDel = 500;
	popupWidth = 160;
	levelOffset = 20;
	bord = 0;
	vertSpace = 1;
	sep = 0;
	sepFrame = false;
	openSameFrame = false;
	cntFrame = "content";
	contentFrame = "content";
	mout = true;
	iconSize = 8;
	closeDelay = 1000;
	tlmOrigBg = "Black";
	tlmOrigCol = "White";
	bBitmapScheme = false;
	popupOpacity = 95;
	bBitmapPopups = false;
	popupOpenHeight = 5;
	popupLeftPad = 5;
	popupRightPad = 2;
	tlmHlBg = "Black";
	tlmHlCol = "#CC0000";
	borderCol = "Black";
	menuHorizontal = true;
	scrollHeight=6;
}
	
//section 3

var lev0 = new Array ("12px",false,false,"White","Black","#CC0000","","Black");
var lev1 = new Array ("12px",false,false,"White","Black","#CC0000","","Black");
var lev2 = new Array ("12px",false,false,"White","Black","#CC0000","","Black");

var mn1 = new Array (
"<!--_blank-->&#51228;&#54408;&#51333;&#47448;","http://www.irf.com/search/product_line.html",0
,"<!--_blank-->&#51312;&#44148;&#44160;&#49353;","http://www.irf.com/search/product_line.html",0
,"<!--_blank-->HEXFET &#54028;&#50892; MOSFETs","http://www.irf.com/product-info/hexfet/",0
,"<!--_blank-->&#51665;&#51201;&#54924;&#47196;(IC)","http://www.irf.com/product-info/cic/",0
,"<!--_blank-->&#44256;&#51204;&#50517; &#44172;&#51060;&#53944; &#46300;&#46972;&#51060;&#48260;","http://www.irf.com/product-info/cic/fsgatedriverics.html",0
,"<!--_blank-->G5 HVICs","http://www.irf.com/product-info/hvic/g5hvic.html",0
,"<!--_blank-->IGBTs","http://www.irf.com/product-info/igbt/",0
,"<!--_blank-->&#45796;&#51060; &#51228;&#54408;","http://www.irf.com/product-info/die/",0
,"<!--_blank-->&#54637;&#44277; &#50864;&#51452; &#48143; &#48169;&#50948;&#49328;&#50629;","http://www.irf.com/product-info/hi-rel/",0
);

var mn1_8 = new Array (
"<!--_blank-->&#45796;&#51060;&#50724;&#46300;","http://www.irf.com/product-info/diodes/",0
,"<!--_blank-->&#48652;&#47532;&#51648;","http://www.irf.com/product-info/bridges/",0
,"<!--_blank-->&#49324;&#51060;&#47532;&#49828;&#53552;","http://www.irf.com/product-info/thyristor/",0
);

var mn2 = new Array (
"<!--_blank-->&#51228;&#54408; &#44396;&#51077; &#48169;&#48277;","http://ec.irf.com/v6/en/US/adirect/ir?cmd=HowToBuyProducts",0
,"<!--_blank-->&#48512;&#54408; &#44160;&#49353;","http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame",1
,"<!--_blank-->&#53356;&#47196;&#49828; &#47112;&#54140;&#47088;&#49828;","http://ec.irf.com/v6/en/US/adirect/ir?cmd=NewCrossRef",0
,"<!--_blank-->PCN","http://www.irf.com/technical-info/pcn.html",0
,"<!--_blank-->&#51228;&#51312;&#49444;&#48708;","http://www.irf.com/aboutir-info/manufact.htm",0
,"&#50689;&#50629;&#49324;&#47924;&#49892;", "http://www.irf-asia.com/korea/lianxi.php",0
,"<!--_blank-->&#45824;&#47532;&#51216;", "http://www.irf.com/whoto-call/distributors/korea.html",0
);

var mn2_2 = new Array (
"<!--_blank-->Inventory/Availability","http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame",0
,"<!--_blank-->Part Status","http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame",0
,"<!--_blank-->Datasheets","http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame",0
);

var mn3 = new Array (
"<!--_blank-->&#44592;&#49696;&#44368;&#50977;&#50504;&#45236;","http://www.irf.com/technical-info/guide/",0
,"<!--_blank-->&#50528;&#54540;&#47532;&#52992;&#51060;&#49496; &#45432;&#53944;", "http://www.irf.com/technical-info/appnotes.htm",0
,"<!--_blank-->&#44592;&#49696;&#51088;&#47308;","http://www.irf.com/technical-info/papers.html",0
//,"TAC in Korea","http://www.irf-asia.com/korea/technical-info/",0
);

var mn4 = new Array (
"<!--_blank-->&#46356;&#51088;&#51064; &#49468;&#53552;","http://www.irf.com/design-center/",0
,"&#50528;&#54540;&#47532;&#52992;&#51060;&#49496;","",1
,"<!--_blank-->myPower","http://www.irf.com/design-center/mypower/",0
,"<!--_blank-->&#47112;&#54140;&#47088;&#49828; &#46356;&#51088;&#51064;","http://www.irf.com/technical-info/refdesigns/",0
,"<!--_blank-->&#47784;&#45944;","http://www.irf.com/product-info/models/",0
,"&#46356;&#51088;&#51064; &#54017;","http://www.irf-asia.com/korea/technical-info/documents.php",0
,"<!--_blank-->&#54056;&#53412;&#51669;","http://www.irf.com/package/",0
,"<!--_blank-->&#47924;&#50672;","http://www.irf.com/ehs/",0
,"<!--_blank-->&#49888;&#47280;&#49457; ","http://www.irf.com/product-info/reliability/",0
);

var mn4_2 = new Array (
"<!--_blank-->AC-DC","http://www.irf.com/product-info/smps/",0
,"<!--_blank-->&#51221;&#48372;&#44592;&#44592;","http://www.irf.com/product-info/appliance/",0
,"<!--_blank-->&#50724;&#46356;&#50724;","http://www.irf.com/product-info/audio/",0
,"<!--_blank-->&#51088;&#46041;&#52264;","http://www.irf.com/product-info/auto/",0
,"<!--_blank-->DC-DC","http://www.irf.com/product-info/dc-dc/",0
,"<!--_blank-->Desktop/Server","http://www.irf.com/product-info/server/",0
,"<!--_blank-->HiRel","http://www.irf.com/product-info/hi-rel/",0
,"<!--_blank-->&#46972;&#51060;&#54021;","http://www.irf.com/product-info/lighting/",0
,"<!--_blank-->Motor Control","http://www.irf.com/product-info/imotion/",0
,"<!--_blank-->NetCom","http://www.irf.com/product-info/netcom/",0
,"<!--_blank-->Portables","http://www.irf.com/product-info/portables/",0
);

absPath="";
if (sepFrame && !openSameFrame)
	{
	if (document.URL.lastIndexOf("\\")>document.URL.lastIndexOf("/")) {sepCh = "\\" ;} else {sepCh = "/" ;}
	absPath = document.URL.substring(0,document.URL.lastIndexOf(sepCh)+1);
	}
popupOffset = 4;
if(Opera) document.write("<"+"script language='JavaScript1.2' src='js/menu_opera.js'><"+"/"+"script>");
else if (NS4) document.write("<"+"script language='JavaScript1.2' src='js/menu_ns4.js'><"+"/"+"script>");
else if (document.getElementById) document.write("<"+"script language='JavaScript1.2' src='js/menu_dom.js'><"+"/"+"script>");
else document.write("<"+"script language='JavaScript1.2' src='js/menu_ie4.js'><"+"/"+"script>");
document.write("<style type='text/css'>\n");
document.write(".CL0 {text-decoration:none;color:White; }\n");
if(!IE4&&!DOM) document.write(".topFold {position:relative}\n");
document.write(((NS4&&!bBitmapScheme)?".mm2":".mit")+" {padding-left:0px;padding-right:0px;}\n");
document.write("</style>\n");

//section rollover

 function movepic(img_name,img_src) {
 document[img_name].src=img_src;
 }
 
 // search_form
 
 	String.prototype.trim = function()
  	{
  	  return( this.replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,'$1') );
	}

function CheckInput()
{
	var f = document.SearchForm;
	if ( f.q.value.length == 0 || f.q.value.trim().length == 0 )
	{
		alert("Please enter a search word!");
		f.q.focus();
		return;
	}
	if ( f.SearchMethod ) // ir part search
	{
		//document.location.href = "http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame&domSendTo=byID&domProductQueryName=" + f.q.value.trim();
		window.open ("http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame&domSendTo=byID&domProductQueryName=" + f.q.value.trim());

	}

	return;
}


/* // action for search with 2 radio bullet buttons
function CheckInput()
{
	var f = document.SearchForm;
	if ( f.q.value.length == 0 || f.q.value.trim().length == 0 )
	{
		alert("Please enter a search word!");
		f.q.focus();
		return;
	}
	if ( f.SearchMethod[0].checked ) // ir part search
	{
		document.location.href = "http://ec.irf.com/v6/en/US/adirect/ir?cmd=catSearchFrame&domSendTo=byID&domProductQueryName=" + f.q.value.trim();

	}
	else    // google search
	{
		document.location.href ="http://search.irf.com/search?&btnG=Search+IRF.COM&site=IRF_search&client=IRF_search&proxystylesheet=IRF_search&output=xml_no_dtd&q=" + f.q.value.trim();
	}
	return;
}
*/