function rm(addr)
{
  while(addr.indexOf("/") >= 0) 
  {
    addr = addr.replace("/","");
  }
  while(addr.indexOf("#") >= 0) 
  {
    addr = addr.replace("#","@");
  }
  while(addr.indexOf(",") >= 0) 
  {
    addr = addr.replace(",",".");
  }
  document.write('<a href="m'+'a'+'i'+'l'+'t'+'o:' + addr + '\">' + addr + '<\/a>');
}

function rm2(addr, link)
{
  while(addr.indexOf("/") >= 0) 
  {
    addr = addr.replace("/","");
  }
  while(addr.indexOf("#") >= 0) 
  {
    addr = addr.replace("#","@");
  }
  while(addr.indexOf(",") >= 0) 
  {
    addr = addr.replace(",",".");
  }
  document.write('<a href="m'+'a'+'i'+'l'+'t'+'o:' + addr + '\">' + link + '<\/a>');
}

jQuery(function( $ ){
	$.easing.backout = function(x, t, b, c, d){
		var s=1;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	};
	  		
	$('#screen').scrollShow({
		view:'#view',
		content:'#images',
		easing:'backout',
		wrappers:'',
		navigators:'a[id]',
		navigationMode:'s',
		circular:false,
		start:0
	});
});

function changeImage(img_name, img_src, img_title) {
	document[img_name].src = img_src;
	if (img_title != null) {
		document[img_name].title = img_title;
	}
	else {
		document[img_name].title = '';
	}
};

function changeUrl(url_name, url) {
	if (document.getElementById){
		obj = document.getElementById(url_name);
		obj.href = url;
	}
};

function changeProcessImage(img_name, img_src, img_src_over) {
	var img = document[img_name];
	
	if (img != null) {
		img.src = img_src;
		
		img.onmouseover = function() {
			this.src = img_src_over;
		}
		
		img.onmouseout = function() {
			this.src = img_src;
		}
	}
};
