function GoGo(exch,statx,staty){
   window.open('http://magnetic-money.org/go.php?x=' + exch +'&from='+statx+'&to='+ staty, '_blank');
   _gaq.push(['_trackPageview', '/outgoing/change']);
}

function GoEx(exch,lang,e){
   if (!e) {e=window.event;} 
   else {e.cancelBubble=true;}
   if (e.stopPropagation) {e.stopPropagation();}
   else {e.cancelBubble = true;}
   if(e.preventDefault) {e.preventDefault();}
   else {e.cancelBubble = true;}
   window.open('http://magnetic-money.org/'+lang+'/exchanger_'+exch+'.html'); 

}

function SL(obj){
    $('input:radio').val([obj]);    
}

function HideR(obj){
    $(obj).toggle("slow"); 
    
}

function so(u,t) {
   for (i=0; i< s.length; i=i+2) document.write(
      '<a target="_blank" rel="nofollow" title="Add to '+s[i]+'" href="http://'+s[i]+'/'+s[i+1].replace('{u}',u).replace('{t}',t)+'">'+
      '<img src="../i/s/'+s[i]+'.ico" border="0" hspace="1" vspace="1" width="16" height="16" alt="Add to '+s[i]+'"></a>'
      );
}
var s=new Array(
   
   "twitter.com","home?status={t}: {u}",
   "www.facebook.com","sharer.php?u={u}",
   "www.myspace.com","Modules/PostTo/Pages/?u={u}&t={t}",
   "www.google.com", "buzz/post?url={u}",
   "google.com","bookmarks/mark?op=edit&bkmk={u}&title={t}",
   "myweb2.search.yahoo.com","myresults/bookmarklet?u={u}&t={t}",
   "stumbleupon.com","submit?url={u}&title={t}",
   "del.icio.us","post?url={u}&title={t}"
   
);

$(document).ready(function(){	

    $('div[id=xmlblock],div[id=valsblock]').toggle("hide");    

    $('tr[id=listing]').hover(
      function () {
        $(this).addClass("listout");
      },
      function () {
        $(this).removeClass("listout");
      }
    );
 $("#checkform,#feedback").validationEngine({scroll:false});
 
});




