image1 = new Image();
image1.src = "tarot/Tarot-b.jpg";
<!--
///  This JavaScript incorporates the Fade-in and Fade-out
///  effects to an HTML document.

/// Usage:
/// Paste this snippet into the <HEAD> section of the HTML document.
/// To activate the fadein effect uncomment the last line in the script,
/// to activate the fadeout effect add “onUnLoad="fadeout()"“ in the
/// <body..> tag of the document.
///



// these values controls the FadeIn and FadeOut transition speed.
// Min: 2 (fastest) , Max: 255 (slowest)
var fadeInSpeed = 3 ; var fadeOutSpeed = 3;

// this configures the colours used for FadeIn
var fadeInInRed = 0;   var fadeInInGrn = 0;   var fadeInInBlu = 0;
var fadeInOuRed = 255; var fadeInOuGrn = 255; var fadeInOuBlu = 255;

// this configures the colours used for FadeOut
var fadeOuInRed = 255; var fadeOuInGrn = 255; var fadeOuInBlu = 255;
var fadeOuOuRed = 0;   var fadeOuOuGrn = 0;   var fadeOuOuBlu = 0;

function makearray(n)
{
	this.length = n;
	for(var i = 1; i <= n; i++)
		this[i] = 0;
	return this;
}

hexa = new makearray(16);

for(var i = 0; i < 10; i++)
	hexa[i] = i;

hexa[10] = "a"; hexa[11] = "b"; hexa[12] = "c";
hexa[13] = "d"; hexa[14] = "e"; hexa[15] = "f";

function hex(i)
{
	if (i < 0)
		return "00";
	else if (i > 255)
		return "ff";
	else
		return "" + hexa[Math.floor(i / 16)] + hexa[i % 16];
}

function setbgColor(r, g, b)
{
	// sets the background color for the document
	var hr = hex(r); var hg = hex(g); var hb = hex(b);
	document.bgColor = "#"+hr+hg+hb;
}

function fade(sr, sg, sb, er, eg, eb, step)
{
	// slowly render the background colour transition from
	// rgb(sr, sg, sb) to rgb(er, eg, eb)

	for(var i = 0; i <= step; i++)
	{
		setbgColor(
			Math.floor(sr * ((step - i) / step) + er * (i / step)),
			Math.floor(sg * ((step - i) / step) + eg * (i / step)),
			Math.floor(sb * ((step - i) / step) + eb * (i / step)));
	}
}

// Usage:
//   fade(inr, ing, inb, outr, outg, outb, step);
// example.
//   fade(0, 0, 0, 255, 255, 255, 255);
// fade from black to white with very slow speed.
//
//   fade(255, 0, 0, 0, 0, 255, 50);
//   fade(0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 50); // same as above
// fade from red to blue with fast speed.
//
// step 2 is fastest and step 255 slowest
//

function fadein()
{
	fade(fadeInInRed, fadeInInGrn, fadeInInBlu, fadeInOuRed, fadeInOuGrn, fadeInOuBlu, fadeInSpeed);
}

function fadeout()
{
	fade(fadeOuInRed, fadeOuInGrn, fadeOuInBlu, fadeOuOuRed, fadeOuOuGrn, fadeOuOuBlu, fadeOutSpeed);
}

// Commenting the next line deactivates the FadeIn effect.
fadein()

// Remember to add “onUnLoad="fadeout()"“ to the BODY tag
// to activate the FadeOut effect.

/// End of Script.
// -->



<!--
function go_to(url) {
window.location=url;
}
function rand_link() {
var a;
a = 1+Math.round(Math.random()*22);   // a = random number between 1-3
if (a==1) go_to("tarot/TheFool-TarotCards.htm");
if (a==2) go_to("tarot/TheMagician-TarotCards.htm");
if (a==3) go_to("tarot/TheEmperor-TarotCards.htm");
if (a==4) go_to("tarot/TheHighPriestess-TarotCards.htm");
if (a==5) go_to("tarot/TheHierophant-TarotCards.htm");
if (a==6) go_to("tarot/TheLovers-TarotCards.htm");
if (a==7) go_to("tarot/TheChariot-TarotCards.htm");
if (a==8) go_to("tarot/TheEmpress-TarotCards.htm");
if (a==9) go_to("tarot/Justice-TarotCards.htm");
if (a==10) go_to("tarot/Temperance-TarotCards.htm");
if (a==11) go_to("tarot/TheHermit-TarotCards.htm");
if (a==12) go_to("tarot/Strength-TarotCards.htm");
if (a==13) go_to("tarot/TheWheelofFortune-TarotCards.htm");
if (a==14) go_to("tarot/TheHangedMan-TarotCards.htm");
if (a==15) go_to("tarot/TheDevil-TarotCards.htm");
if (a==16) go_to("tarot/TheStar-TarotCards.htm");
if (a==17) go_to("tarot/TheMoon-TarotCards.htm");
if (a==18) go_to("tarot/TheWorld-TarotCards.htm");
if (a==19) go_to("tarot/Death-TarotCards.htm");
if (a==20) go_to("tarot/Judgement-TarotCards.htm");
if (a==21) go_to("tarot/TheSun-TarotCards.htm");
if (a==22) go_to("tarot/TheTower-TarotCards.htm");


}
// End -->




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

