// CEA.com.au 'Acadia' / 2008 - All Rights Reserved - CEA Technologies Pty Limited
// Website Developed By Creeight (services@creeight.com.au)

// Script: http://www.jehiah.cz/
// Command Line: '<img src="Image0001.gif" ImageSwap="Image0002.gif">'

function SimpleSwap(el,which){

el.src=el.getAttribute(which || "origsrc");

}

function SimpleSwapSetup(){

var x = document.getElementsByTagName("img");

for (var i=0;i<x.length;i++){

var ImageSwap = x[i].getAttribute("ImageSwap");

if (!ImageSwap) continue;

x[i].ImageSwap_img = new Image();

x[i].ImageSwap_img.src=ImageSwap;

x[i].onmouseover = new Function("SimpleSwap(this,'ImageSwap');");

x[i].onmouseout = new Function("SimpleSwap(this);");

x[i].setAttribute("origsrc",x[i].src);

}

}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};

window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}
