function displayAmount(amount,per_jax,conversion_ratio,rate_conversion_symbol){var converted_amount=amount*per_jax*conversion_ratio;converted_amount=(Number(converted_amount)/100).toFixed(3);var cs="";var display=function(){return cs+converted_amount};switch(rate_conversion_symbol){case"DZD":cs="DA";break;case"AUD":cs="$";break;case"BDT":cs="&#2547;";break;case"BRL":cs="R$";break;case"GBP":cs="&#163;";break;case"CAD":cs="$";break;case"CNY":cs="&#165;";break;case"EGP":cs="&#163;";break;case"EUR":cs="&#8364;";break;case"GHC":cs="&#162;";break;case"INR":cs="Rs.";break;case"KES":cs="KSh";break;case"MYR":cs="RM";break;case"NOK":cs="kr";break;case"PKR":cs="Rs.";break;case"SAR":cs="SR";break;case"SGD":cs="S $";break;case"USD":cs="$";break;case"MAD":cs="&#1583;&#1585;&#1575;&#1607;&#1605;";break;case"PHP":cs="&#8369;";break;case"THB":cs="&#3647;";break;case"VND":cs="&#8363;";break;case"JAX":cs="jax";display=function(){return amount+" jax"};break}return display()}$(document).ready(function(){var h="";var currencyarray=currencyso.list;for(var i=0;i<currencyarray.length;i++){if(currencyarray[i].symbol=="USD"){h+='<option value="'+currencyarray[i].symbol+'" selected="selected">'+currencyarray[i].name+" ("+currencyarray[i].symbol+")</option>"}else{h+='<option value="'+currencyarray[i].symbol+'">'+currencyarray[i].name+" ("+currencyarray[i].symbol+")</option>"}}$("#currency").html(h);$("#currency").change(function(){var currency=$(this).val();$.each(currencyso.list,function(){if(currency==this.symbol){$("#rate_us_payg").html(displayAmount(1,1.25,this.ratio,this.symbol));$("#rate_in_payg").html(displayAmount(3,1.25,this.ratio,this.symbol));$("#rate_us_premium").html(displayAmount(1,0.8,this.ratio,this.symbol));$("#rate_in_premium").html(displayAmount(3,0.8,this.ratio,this.symbol))}})});$(".modal_window").click(function(){$(".modal_window").bgiframe();$(".modal_window").fadeOut()});$("#link_premium").click(function(e){e.preventDefault();$(".modal_window").bgiframe();$(".modal_window").fadeOut();$("#premium_window").bgiframe();$("#premium_window").fadeIn();return false})});