// JavaScript Document
/*
	Magi's Javascript Library v.1.0.0
	Directory Of ./
	
	Copyrightύ Magi 2006-2007 All Rights Reserved.
*/
/*	XpΞτ	*/
function SpamAgainst(Type)
	{
	var Mail = new QooMail();
	Mail.ElmId = "Spam"; 
	Mail.Elm();
	switch(Type)
		{
		case "Top":
			Mail.ElmId = Type + Mail.ElmId;
			Mail.Elm();
			break;
		default:
			break;
		}Mail.MAC();
	Mail.MAC("Decoration Desire","de-de.jp","hozumi","HSpam");
	Mail.Elm();
	}
/*	Άρ:eMailAhXπ¦΅ά·	*/
function QooMail()
	{
	this.Add = this.AccountName + "@" + this.DomainName;
	}
	QooMail.prototype =
		{
		//	Qoo
		AdminName : "WebAdmin_Qoo",
		DomainName : "de-de.jp",
		AccountName : "webadmin",
		type : "Qoo's eMail-Add Object",
		MAC : MailAddChenge,
		toString : SpamAgainstString,
		ElmId : null,
		Elm : ElmSpam
		};
function SpamAgainstString()
	{
	//	mailto:Name<ex*@abc.com>ΕΤ΅ά·
	return("mailto:" + this.AdminName + "<" + this.Add + ">");
	}
function MailAddChenge(AdminName,DomainName,AccountName,ElmId)
	{
	this.AdminName = AdminName;
	this.DomainName = DomainName;
	this.AccountName = AccountName;
	this.Add = AccountName + "@" + DomainName;
	this.ElmId = ElmId;
	return(this);
	}
function ElmSpam()
	{
	ElmNum = this.ElmId;
	MAdd = this;
	if(document.all)
		{
		document.all(ElmNum).href = MAdd;
		}
	else
		if(document.getElementById)
			{
			document.getElementById(ElmNum).href = MAdd;
			}
	}


/*	_\¦ ΐ	*/
function TopRand(AllImgNum)
	{
	this.Max = AllImgNum;
	var tag1 = '<object alt="topC[W" standby="Now Loading..." type="image/jpeg" data="';
	var tag2 = '" class="decora_top_img" id="top_rand"><img alt="topC[W" src="';
	var tag3 = '" class="decora_top_img" id="top_rand2" /></object>';
	this.src = TopMainRand();
	this.tag = tag1 + this.src + tag2 + this.src + tag3;
	document.write(this.tag);
	}
function TopMainRand()
	{
	AllImgNum = this.Max;
	var TopRandNum = Math.floor(Math.random() * AllImgNum);
	if(TopRandNum == 0)
		{
		var ImgSrc = "images/decora.jpg";
		}
	else
		{
		TopRandNum ++;
		var ImgSrc = "images/decora" + TopRandNum + ".jpg";
		}
	return(ImgSrc);
	}

