var currency_data='ADP,0.00514025,1|AED,0.176134,0.25|AFA,1.312E-5,1|AFN,0.01312,1|ALL,0.006111,0.1|AMD,0.001665,0.2|ANG,0.361,0.01|AOA,0.006825,0.1|ARS,0.1486,0.01|ATS,0.0621546,1|AUD,0.693683,0.05|AWG,0.36139,0.01|AZM,1.648E-4,10|AZN,0.8242,0.01|BAM,0.4355,0.5|BBD,0.323,0.01|BDT,0.007881,0.01|BEF,0.0212015,0.5|BGL,4.3771E-4,10|BGN,0.43771,0.01|BHD,1.72035,0.05|BIF,4.9444E-4,1|BMD,0.646851,0.01|BND,0.515748,0.01|BOB,0.0936,0.1|BRC,1.37266E-4,0.01|BRL,0.377481,0.01|BSD,0.647,0.01|BTC,2.82,0.0001|BTN,0.013136,0.20|BWP,0.0888773,0.01|BYR,7.8122E-5,1|BZD,0.33805,0.01|CAD,0.649434,0.01|CDF,7.006E-4,0.01|CHF,0.707482,0.05|CLF,30.12679,0.01|CLP,0.00134151,1|CNH,0.1028,0.5|CNY,0.10274,0.5|COP,3.63438E-4,100|CRC,0.0012678,0.01|CSD,0.007849,0.5|CUC,0.646851,0.01|CUP,0.647,0.01|CVE,0.007728,0.01|CYP,1.455,0.01|CZK,0.0343248,0.5|DEM,0.437291,0.01|DJF,0.0036036,10|DKK,0.11502,0.25|DOP,0.01661,1|DZD,0.00867587,0.05|ECS,2.59E-5,100|EEK,0.05438,0.05|EGP,0.10712,0.25|ERN,0.04317,0.01|ESP,0.00514025,1|ETB,0.037162,0.01|EUR,0.855266,0.01|FIM,0.143845,1|FJD,0.36755,0.01|FKP,1.02215,0.01|FRF,0.130384,0.01|GBP,1.02215,0.01|GBX,0.0102215,1|GEL,0.3917,0.01|GHC,3.803E-5,0.1|GHS,0.3803,0.01|GIP,1.021,0.01|GMD,0.0212,0.01|GNF,9.1106E-5,1|GRD,0.00250995,0.5|GTQ,0.082882,0.01|GYD,0.0031833,1|HKD,0.083414,0.1|HNL,0.03394,0.01|HRK,0.11302,0.01|HTG,0.01603,0.05|HUF,0.00298997,1|IDR,7.15148E-5,25|IEP,1.08596,0.01|ILS,0.173047,0.01|INR,0.0131795,0.1|IQD,5.55E-4,500|IRR,5.27611E-5,5|ISK,0.00523512,1|ITL,4.41708E-4,1|JEP,1.02215,0.01|JMD,0.007483,0.01|JOD,0.91167,0.05|JPY,0.00811302,1|KES,0.007779,0.01|KGS,0.01389,1|KHR,1.6071E-4,100|KMF,0.0017409,0.05|KPW,7.1872E-4,0.01|KRW,5.745E-4,1|KWD,2.33057,0.001|KYD,0.78883,0.01|KZT,0.00436737,1|LAK,8.0831E-5,500|LBP,4.2966E-4,50|LKR,0.00545545,1|LRD,0.008785,0.05|LSL,0.08373,0.01|LTL,0.24827,0.01|LUF,0.0212015,0.5|LVL,1.2302,0.01|LYD,0.517491,0.001|MAD,0.076758,0.2|MDL,0.054748,0.01|MGA,2.946E-4,1|MGF,5.892E-5,50|MKD,0.01392,0.5|MMK,0.0994,50|MNT,4.8727E-4,1|MOP,0.080983,0.1|MRO,0.0022109,0.2|MTL,1.99223,0.01|MUR,0.0222677,0.01|MVR,0.04206,0.01|MWK,0.0038715,5|MXN,0.0506418,0.05|MXP,5.06418E-5,0.01|MXV,0.2407457,1|MYR,0.213941,0.01|MZM,2.389E-5,1|MZN,0.02389,1|NAD,0.08372,0.05|NGN,0.004107,1|NIO,0.02796,0.05|NLG,0.388103,0.5|NOK,0.113732,0.5|NPR,0.0082192,0.05|NZD,0.543225,0.10|OMR,1.68232,0.005|PAB,0.647,0.01|PEN,0.2413,0.01|PGK,0.31391,0.01|PHP,0.0152207,0.01|PKR,0.00711636,0.01|PLN,0.205428,0.01|PTE,0.00426605,0.05|PYG,1.4887E-4,1|QAR,0.177706,1|ROL,1.9695E-5,0.01|RON,0.19695,0.01|RSD,0.007849,0.5|RUB,0.0217213,0.01|RUR,2.17213E-5,10|RWF,0.0010685,1|SAR,0.172494,1|SBD,0.09167,0.05|SCR,0.045888,0.05|SDD,0.0024164,0.01|SDG,0.24164,0.01|SDP,2.4164E-4,0.01|SDR,1.0,0.01|SEK,0.0972226,0.01|SGD,0.515748,0.01|SHP,1.021,0.01|SIT,0.00356896,0.1|SKK,0.0283896,0.5|SLL,1.4785E-4,10|SOS,3.9904E-4,1|SRD,0.1962,0.01|SRG,1.962E-4,5|STD,3.4776E-5,0.5|SVC,0.0739258,0.05|SYP,0.01126,0.25|SZL,0.08373,0.01|THB,0.0210392,0.25|THO,0.02102,0.25|TJS,0.1361,0.05|TMM,4.544E-5,1|TMT,0.2272,1|TND,0.430173,0.005|TOP,0.38517,0.01|TRL,3.692E-7,5000|TRY,0.3692,0.01|TTD,0.100946,0.01|TWD,0.021885,1|TZS,4.0682E-4,0.05|UAH,0.08074,0.01|UGX,2.7675E-4,50|USD,0.646851,0.01|UYU,0.03315,0.1|UZS,3.557E-4,0.01|VEB,1.50806E-4,1|VEF,0.150806,1|VND,3.1061E-5,200|VUV,0.007326,1|WST,0.28879,0.05|XAF,0.00130384,1|XAG,21.736,0.001|XAL,0.03989,0.01|XAU,1136.6,0.001|XCD,0.24,0.01|XCP,0.1527,0.01|XEU,0.855266,0.01|XOF,0.00130384,1|XPD,448.06,0.001|XPF,0.00716713,1|XPT,1063.2,0.001|YER,0.0029502,0.005|YUM,0.4355,0.5|ZAR,0.0836958,0.05|ZMK,1.2412E-4,0.01|ZRN,7.006E-7,10|ZWD,6.46851E-30,0.01|ZWL,6.46851E-5,0.01|ZWN,6.46851E-30,5|ZWR,6.46851E-17,0.01';
var currency_sdrPer=new Array(),currency_Unit=new Array()
currency_make_arrays()
function currency_make_arrays(){
var t=currency_data.split('\|')
for (var d in t){
var a=t[d].split(','),c=a[0]
currency_sdrPer[c]=a[1]
currency_Unit[c]=a[2]}}
function currency_rnd(n,su){
n=Math.round(n/su)*su+'.'
var sx=(su+'.').split('.'),nx=n.split('.'),
nm=nx[1],sl=sx[1].length,nl=nm.length
if(nl>sl)nm=nm.substring(0,sl)
for(var i=0;i<sl-nl;i++)nm+='0'
return nx[0]+(sl==0?'':'.'+nm)}
function currency_convert(n,a,b){
var s=currency_sdrPer
if(!s[a]||!s[b])return''
return currency_format(n*(s[a]/s[b]),currency_Unit[b])}
function currency_format(n,sm){
var ts=typeof currency_thousandsSeparator=='string'?currency_thousandsSeparator:'',
ds=typeof currency_decimalSeparator=='string'?currency_decimalSeparator:'.',
sm=(typeof currency_decimalDigits=='number')?(1/Math.pow(10,currency_decimalDigits)):(typeof sm=='number'?sm:.01),
tn=typeof currency_thousandsSeparatorMin=='number'?currency_thousandsSeparatorMin:3
if(typeof currency_round=='boolean'&&currency_round)n=currency_rnd(n,sm)
var x=(''+n).split('.'),d=x[0],m=x.length>1?ds+x[1]:'',r=/(\d+)(\d{3})/
if(ts!='')while (r.test(d)&&d.length>tn)d=d.replace(r,'$1'+ts+'$2')
return d+m}
function currency_show_conversion(n,a,b){
document.write(currency_convert(n,a,b))}
function currency_getRateHTML(a,b){
var rd=currency_convert(1,a,b)
if (rd=='')return ''
var link=a+'_'+b+'.html'
if (b<a)link=b+'_'+a+'.html'
link='http:/'+'/coinmill.com/'+link
var t='<a href=\"$link\">$from_the_name is worth <b>$rate</b> $to_plural_name</a><br>'
if (typeof currency_template!='undefined')t=currency_template
return t.replace('$link',link).replace('$rate',rd).replace('$from_abbrev',a).replace('$from_name',a).replace('$from_plural_name',a+"s").replace('$from_the_name',"the "+a).replace('$to_abbrev',b).replace('$to_name',b).replace('$to_plural_name',b+"s").replace('$to_the_name',"the "+b)}
function currency_showRate(a,b){
document.write(currency_getRateHTML(a,b))}
function currency_showRates(){
for (var i=0;i<currency_rate_list.length;i++){
var a=currency_rate_list[i]
i++
if (i<currency_rate_list.length){
var b=currency_rate_list[i]
currency_showRate(a,b)}}}
if (typeof currency_rate_list!='undefined'){
currency_showRates()}

