/* SAtelier.js 2010.05 */

function initiate(){
	var fMenu= document.getElementById("fMenu"),
		fContent= document.getElementById("fContent"),
		fMailSend= document.getElementById("mailSend"),
		fMailAddr,
		sa= "satelier",
		d= ".",
		fOffset= 1;
	var fAddr= sa + "@" + sa + d + "com" + d + "br";

	if ( fMailSend != null ) fMailSend.href= "mai" + "lto:" + fAddr;
	for (i= 0; i < 4; i++){ // my cheap array
		fMailAddr= document.getElementById("mailAddr" + i.toString() );
		if ( fMailAddr != null ) fMailAddr.innerHTML= fAddr;
	}
	if (( fMenu != null ) && ( fContent != null )){
		if ( navigator.appVersion.indexOf('MSIE 6.0') > 0 ) { // el unico antiguo que tengo a mano
			fMenu.style.width= '200px';
			document.getElementById("fSeparator").style.backgroundColor= document.body.bgColor;
			fOffset= 11;
			fContent.style.position= 'absolute';
			fContent.style.top= '140px';
		}
		fContent.style.left= ( fMenu.offsetLeft + fMenu.offsetWidth + fOffset ) + 'px';
	}
}
//-----
function showScreenShot( cTitle, cImage ){
	var ss= window.open("./screenshot.htm#" + cImage, "ScreenShot" + cTitle, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=240, height=200'),
		oImg;

	if (ss != null ){
		oImg= ss.document.getElementById("screenshot");
		if ( oImg != null ){
			oImg.alt= "oGif's screenshot";
		}
	}
}

