/**
* main javascript
*
* @name			AttributesHelper
* @author 		Stefan Mattenberger <mattenberger@digvis.ch>
* @package		SAdmin - V. 1.0
* @copyright	Copyright (c) 2008 digvis.ch
*/

function unCrypt(o,a,x){
	o.onmouseover = '';
	addr = '';
	a = unescape(a);
	for(c =0; c < a.length; ++c){
		addr+=String.fromCharCode(a.charCodeAt(c) - x);
	}
	o.setAttribute('href', 'mailto:' + addr);
 }
 function toggleContainer(id){
	if($('container_' + id)){
		Effect.toggle($('container_' + id), 'blind', { duration: 0.4 });
		window.setTimeout("toggleContainerImg('" + id + "')", 500);
	}
}
function toggleContainerImg(id){
	if($('container_' + id).style.display == 'none'){
		$('image_' + id).src = '/_files/images/www/arrow_c.png';
	} else {
		$('image_' + id).src = '/_files/images/www/arrow_o.png';
	}
}
