//bVer =  parseInt(navigator.appVersion);
bVer = navigator.appVersion.substring(0,1);

if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("Windows", 0) != -1 && bVer >=4 )
{
	//Internet Explorer 4.0 &above on Windows.        
	document.writeln("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=user-defined\">");
}
else
{
	//Netscape or other versions of IE.	
        document.writeln("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">");
}

if (bVer >= 4)
{
	if (navigator.appName == "Netscape")
	{
		//If Netscape, then we use PFR files.
		document.write ("<link rel=fontdef src=\"barahakannew.pfr\">\n");
		document.write ("<link rel=fontdef src=\"barahavijay.pfr\">\n");
		document.write ("<link rel=fontdef src=\"kaibaraha.pfr\">\n");
	}
	else
	{
		//If IE, then we use the EOT files.		

		//Baraha Kan
		document.write ("<style type=\"text/css\">");

		document.write (" @font-face {");
		document.write (" font-family: Baraha Kan New;");
		document.write (" font-style: normal;");
		document.write (" font-weight: normal;");
		document.write (" src: url(\"barahakannew.eot\")");
		document.write ("}");
		document.write ("<BR>");

		//Baraha Vijay
		document.write (" @font-face {");
		document.write (" font-family: Baraha Vijay;");
		document.write (" font-style: normal;");
		document.write (" font-weight: normal;");
		document.write (" src: url(\"barahavijay.eot\")");
		document.write ("}");
		document.write ("<BR>");
	
		//Kai Baraha
		document.write (" @font-face {");
		document.write (" font-family: Kai Baraha;");
		document.write (" font-style: normal;");
		document.write (" font-weight: normal;");
		document.write (" src: url(\"kaibaraha.eot\")");
		document.write ("}");

		document.write ("</style>");
	}
}
else
{
	//refer to some information
	location.href="http://www.baraha.com/fonts/fonthelp.htm";
}


