/**
 * © All rights reserved • Tous droits réservés • Zyros
 * You aren't allowed to use, copy or modify this script.
 * 
 * www.zyros.ca
 * 
 * -Web Hosting, Web Design, Software Engineering
 * -Hébergement, Design Web, Conception logicielle
 */
function SwapImages(img,type){
	img.src=img.getAttribute(type || "origsrc");
}
function SwapImagesSetup(){
	var x = document.getElementsByTagName("img");
	for (var i=0;i<x.length;i++){
		var oversrc = x[i].getAttribute("o");
		if(!oversrc) continue;
		x[i].oversrc_img = new Image();
		x[i].oversrc_img.src=oversrc;

		x[i].onmouseover = new Function("SwapImages(this,'o');");
		x[i].onmouseout = new Function("SwapImages(this);");
		x[i].setAttribute("origsrc",x[i].src);
	}
}
function ChangeDisplay(ID, display){
	if(document.getElementById(ID) != null)
		document.getElementById(ID).style.display = display;
}
function isArray(obj){
	if(obj.constructor.toString().indexOf("Array") == -1)
		return false;
	else
		return true;
}
function ShowDiv(ShowID,HideID){
	if(HideID != null){
		if(isArray(HideID)){
			for(var i=0; i<HideID.length; i++)
				ChangeDisplay(HideID[i], "none");
		}else
			ChangeDisplay(HideID, "none");
	}
	if(ShowID != null){
		if(isArray(ShowID)){
			for(var i=0; i<ShowID.length; i++)
				ChangeDisplay(ShowID[i], "block");
		}else
			ChangeDisplay(ShowID, "block");
	}
}
function ChangeContent(id,content){
	document.getElementById(id).innerHTML = content;
}
var SwapImagesOnload =(window.onload)? window.onload : function(){};
window.onload = function(){SwapImagesOnload();SwapImagesSetup();}

var message="Copyright © Zyros 2007. All rights reserved.";
document.oncontextmenu=new Function("alert(sMessageRC);return false");