// Fellowship of the Lard - http://studiocyen.net/exchange
// A modified version of
/****
* Banner Ad Rotater v3.02
* Anarchos > anarchos3@hotmail.com
* http://anarchos.xs.mw/bannerad.phtml
**/

function goto_URL(object) {
    open(object.options[object.selectedIndex].value)
};

function Banner(refreshTime, width, height, altText, start, random){
	this.objName = "bannerAd" + (Banner.count++);
	eval(this.objName + "=this");
	if (!refreshTime) this.refreshTime = 50000; else this.refreshTime = refreshTime*1000;
	if (!width) this.width = 200; else this.width = width;
	if (!height) this.height = 40; else this.height = height;
	if (random == null) this.random = 1; else this.random = random;
	this.altText = altText;
	this.ads = [];
	if (start) this.currentAd = start-1; else start = null;
	this.mySize = 0;

	this.Ad = function(src, href, target, mouseover) {
		var tempImage = new Image();
		tempImage.src = src;
		this.ads[this.mySize] = new Object();
		var ad = this.ads[this.mySize];
		ad.src = src;
		if (typeof(target) == "undefined" || target == null) ad.target = "_blank"; else ad.target = target;
		ad.href = href;
		ad.mouseover = mouseover;
		this.mySize++;
	}

	this.link = function(){
		var	ad = this.ads[this.currentAd];
		if (ad.target == "_self"){
			location.href = ad.href;
		}
		else if (ad.target == "_blank" || ad.target == "_blank"){
			open(ad.href,this.objName + "Win");
		}
		else top.frames[ad.target].location.href = ad.href;
	}

	this.showStatus = function(){
		var ad = this.ads[this.currentAd];
		if (ad.mouseover) status = ad.mouseover;
		else status = ad.href;
	}

	this.randomAd = function(){
		var n;
		do { n = Math.floor(Math.random() * (this.mySize)); } 
		while(n == this.currentAd);
		this.currentAd = n;
	}

	this.output = function(){
		var tempCode = "";
		if (this.mySize > 1){
			if (this.currentAd == null) this.randomAd();
			if (this.currentAd >= this.mySize) this.currentAd = this.mySize - 1;
			tempCode = '<a href="javascript:'+this.objName+'.link();"';
			tempCode += ' onMouseOver="' + this.objName + '.showStatus(); return true"';
			tempCode += ' onMouseOut="status=\'\';return true">';
			tempCode += '<img src="' + this.ads[this.currentAd].src + '" width="' + this.width;
			tempCode += '" name="' + this.objName + 'Img" height="' + this.height + '" ';
			if (this.altText) tempCode += 'alt="'+this.altText + '" ';
			tempCode += 'border="0" /></a>';
			document.write(tempCode);
			this.nextAd();
		} else document.write("Error: two banners must be defined for the script to work.");
	}

	this.newAd = function(){
		if (!this.random){	
			this.currentAd++;
			if (this.currentAd >= this.mySize)
			   this.currentAd = 0;
		}
		else {
			this.randomAd();
		}
		this.nextAd();
	}

	this.nextAd = function(){
		document.images[this.objName+ 'Img'].src = this.ads[this.currentAd].src;
		setTimeout(this.objName+'.newAd()',this.refreshTime)
	}
}
Banner.count = 0;
document.writeln('<table width="202" border="0" cellpadding="1" cellspacing="0" bgcolor="#006666">');
document.writeln('<tr align="center"><td bgcolor="#006666">');

myAd = new Banner(15,200,40,"",0,0);
// ClubHaus
myAd.Ad("http://studiocyen.net/exchange/chbanner.jpg","http://studiocyen.net/clubhaus","_blank","Club Haus");
// Be Mine
myAd.Ad("http://studiocyen.net/exchange/banner_afuji.gif","http://www.aoiyume.com/bemine/","_blank","Be Mine");
// StudioCyen
myAd.Ad("http://studiocyen.net/exchange/banner_cyen.jpg","http://studiocyen.net/comics","_blank","Comic Cafe @ SC");
// Detour
myAd.Ad("http://studiocyen.net/exchange/banner_yanwen.jpg","http://ick4fish.web1000.com/","_blank","Detours");
// AtomicToy
myAd.Ad("http://studiocyen.net/exchange/banner_andy.gif","http://www.atomictoy.org","_blank","Atomic Toy");
// Flipside
myAd.Ad("http://studiocyen.net/exchange/banner_brion.jpg","http://flipsidecomics.com","_blank","Flipside");
// FollowmyAd.Ad("http://studiocyen.net/exchange/banner_warm.jpg","http://tasr.keenspace.com","_blank","Follow");
// Judo Man
myAd.Ad("http://studiocyen.net/exchange/banner_c-ko.jpg","http://thevoid.zerobyzero.ca/~c-ko/judoweb/","_blank","Judo Man");
// MangaHome
myAd.Ad("http://studiocyen.net/exchange/banner_fiesan.gif","http://www.angelfire.com/anime3/manga_at_home/manga/MANGA.htm","_blank","Manga @ Home");
// MisAmel
myAd.Ad("http://studiocyen.net/exchange/banner_amel.gif","http://amelstyle.net","_blank","Amel Style");
// OMGWTF
myAd.Ad("http://studiocyen.net/exchange/banner_dave.jpg","http://www.hellacomics.com/","_blank","OMGWTF!!");
// Psychoteers
myAd.Ad("http://studiocyen.net/exchange/banner_psyann.jpg","http://www.psychoteers.com/","_blank","Psychoteers");
// Rhapsody
myAd.Ad("http://studiocyen.net/exchange/banner_maru.gif","http://rhapsody.mar-u.com/","_blank","Rhapsody");

myAd.output();

document.writeln('<\/td><\/tr><td bgcolor="#006666"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#006666"><tr><FORM><td>');
document.writeln('<SELECT NAME="selectName" onChange="goto_URL(this.form.selectName)">');
// Web Exchange Home
document.write('<OPTION VALUE="http://studiocyen.net/exchange">->Fellowship of the Lard<-<\/OPTION>');
// ClubHaus
document.write('<OPTION VALUE="http://studiocyen.net/clubhaus">Club Haus<\/OPTION>');
// Be Mine
document.write('<OPTION VALUE="http://www.aoiyume.com/bemine/">Be Mine<\/OPTION>');
// StudioCyen
document.write('<OPTION VALUE="http://studiocyen.net/comics">Comic Cafe @ SC<\/OPTION>');
// Yanwen
document.write('<OPTION VALUE="http://ick4fish.web1000.com/">Detours<\/OPTION>');
// AtomicToy
document.write('<OPTION VALUE="http://www.atomictoy.org">Atomic Toy<\/OPTION>');
// Flipside
document.write('<OPTION VALUE="http://flipsidecomics.com/">Flipside<\/OPTION>');
// Follow
document.write('<OPTION VALUE="http://tasr.keenspace.com">Follow<\/OPTION>');
// Judo Man
document.write('<OPTION VALUE="http://thevoid.zerobyzero.ca/~c-ko/judoweb/">Judo Man<\/OPTION>');
// MangaHome
document.write('<OPTION VALUE="http://www.angelfire.com/anime3/manga_at_home/manga/MANGA.htm">Manga @ Home<\/OPTION>');
// MisAmel
document.write('<OPTION VALUE="http://amelstyle.net">Amel Style<\/OPTION>');
// OMGWTF
document.write('<OPTION VALUE="http://www.hellacomics.com/">OMGWTF!!<\/OPTION>');
// Psychoteers
document.write('<OPTION VALUE="http://www.psychoteers.com/">Psychoteers<\/OPTION>');
// Rhapsody
document.write('<OPTION VALUE="http://rhapsody.mar-u.com/">Rhapsody<\/OPTION>');
document.writeln('<\/SELECT>');
document.writeln('<\/td><\/FORM><td align="right">');
document.writeln('<a href="http://www.studiocyen.net/exchange"><img src="http://studiocyen.net/exchange/lardbutton.gif" alt="Fellowship of the Lard" width="20" height="20" border="0"></a>&nbsp;<\/td>'); 
document.writeln('<\/tr><\/table><\/td><\/tr><\/table>');