function cal_currency() {
  var tds = $$('#content table td');
  for(i=0;i<tds.length;i++){
	  if(tds[i].innerHTML.search('CHF') != -1){
  		var s = tds[i].innerHTML;
  		var occurrences = s.length - s.replace(new RegExp('CHF','g'), '').length;
  		occurrences = occurrences / 3;
  		var currency = '';
  		for(occ = 0;occ<occurrences;occ++){
  			var s = tds[i].innerHTML;
  			var j = s.search('CHF');
  			if (j >= 0) {
  				s = s.substring(j + 3);
  			}
  			k = s.search('.-');
  			if (k >= 0) {
  				s = s.substring(0, k);
  			}
  			$('euro').className = 'currency';
  			$('schweizerfranken').className = 'current_currency';
  			$('usd').className = 'currency';
  			if(currency == 'eur'){
  				var new_price = parseFloat(s) * 0.69;
  				new_pricetag = tds[i].innerHTML.replace('CHF', 'EUR');
  				$('euro').className = 'current_currency';
  				$('schweizerfranken').className = 'currency';
  				$('usd').className = 'currency';
  			}
  			if(currency == 'usd'){
  				var new_price = parseFloat(s) * 0.94;
  				new_pricetag = tds[i].innerHTML.replace('CHF', 'USD');
  				$('euro').className = 'currency';
  				$('schweizerfranken').className = 'currency';
  				$('usd').className = 'current_currency';
  			}
  			if(currency == 'eur' || currency == 'usd'){
  				new_price = Math.round(new_price);
  				tds[i].innerHTML = new_pricetag.replace(s, ' ' + new_price);
  			}
  		}
  	}
  }
}