/*
This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Michael Stransky :: http://www.stransky-webdesigns.com/
*/

var adblockPremier=new Array()
adblockPremier[0]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/LjlcA" target="_blank"><img src="http://www.mygreenlake.com/ads/140/turnpike-pizza-delivers.gif" width="140" height="140" border="0" alt="Turnpike Pizza" /></a></div>'
adblockPremier[1]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/9d9xPu" target="_blank"><img src="http://www.mygreenlake.com/ads/140/lifestyle-chiropractic.gif" width="140" height="140" border="0" alt="Lifestyle Chiropractic" /></a></div>'
adblockPremier[2]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/diNxX5" target="_blank"><img src="http://www.mygreenlake.com/ads/140/lakeside-dental.jpg" width="140" height="140" border="0" alt="Lakeside Dental Center" /></a></div>'
adblockPremier[3]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/9RXFXl" target="_blank"><img src="http://www.mygreenlake.com/ads/140/spt2.gif" width="140" height="140" border="0" alt="Dying City at Seattle Public Theater at the Bathhouse" /></a></div>'

var adblockStandard=new Array()
adblockStandard[0]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/4TOQv2" target="_blank"><img src="http://www.mygreenlake.com/ads/140/relay-for-life.gif" width="140" height="140" border="0" alt="2010 Green Lake Relay For Life" /></a></div>'
adblockStandard[1]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/B4jRR" target="_blank"><img src="http://www.mygreenlake.com/ads/140/bedrooms-and-more.gif" width="140" height="140" border="0" alt="Bedrooms and More" /></a></div>'
adblockStandard[2]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/40edbC" target="_blank"><img src="http://www.mygreenlake.com/ads/140/scarecrow-video.gif" width="140" height="140" border="0" alt="Scarecrow Video" /></a></div>'
adblockStandard[3]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/UY9nU" target="_blank"><img src="http://www.mygreenlake.com/ads/140/debris-free.gif" width="140" height="140" border="0" alt="Debris Free Seattle" /></a></div>'
adblockStandard[4]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/8qoZHt" target="_blank"><img src="http://www.mygreenlake.com/ads/140/kirchoff-fitness.jpg" width="140" height="140" border="0" alt="Kirchoff Fitness" /></a></div>'
adblockStandard[5]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/82tpdc" target="_blank"><img src="http://www.mygreenlake.com/ads/140/green-cleaning.gif" width="140" height="140" border="0" alt="Green Cleaning Seattle" /></a></div>'
adblockStandard[6]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://www.mygreenlake.com/advertise-on-mygreenlake/" target="_blank"><img src="http://www.mygreenlake.com/ads/140/your-ad-here.gif" width="140" height="140" border="0" alt="Your ad here" /></a></div>'
adblockStandard[7]='<div style="display:inline;float:left;width:140px;margin:0 5px 10px 0;"><a href="http://bit.ly/75bxTQ" target="_blank"><img src="http://www.mygreenlake.com/ads/140/jj-house-cleaning.jpg" width="140" height="140" border="0" alt="JJ House Cleaning" /></a></div>'

function randomorderPremier(targetarray) {
	var randomorder=new Array()
	var the_one
	var z=1
	var adverts_shown=4
	for (i=0;i<targetarray.length;i++)
	randomorder[i]=i

	while (z<adverts_shown+1) {
		the_one=Math.floor(Math.random()*targetarray.length)
		if (targetarray[the_one]!="_selected!"){
			document.write(targetarray[the_one])
			targetarray[the_one]="_selected!"
			z++
		}
	}
}

function randomorderStandard(targetarray) {
	var randomorder=new Array()
	var the_one
	var z=1
	var adverts_shown=8
	for (i=0;i<targetarray.length;i++)
	randomorder[i]=i

	while (z<adverts_shown+1) {
		the_one=Math.floor(Math.random()*targetarray.length)
		if (targetarray[the_one]!="_selected!"){
			document.write(targetarray[the_one])
			targetarray[the_one]="_selected!"
			z++
		}
	}
}