var sponsorArr = [	{ alt:"Alaska Airlines", path:"/images/sponsors/alaska_airlines.gif", url:"www.alaskaair.com" },
				  	{ alt:"Arscentia", path:"/images/sponsors/arscentia.gif", url:"www.arscentia.com" },
					{ alt:"Bigink", path:"/images/sponsors/big_ink.gif", url:"www.bigink.biz" },
					{ alt:"Clatter&Din", path:"/images/sponsors/clatter_din.gif", url:"www.clatterdin.com" },
					{ alt:"Creative Circle", path:"/images/sponsors/creative_circle.gif", url:"www.creativecircle.com" },
					{ alt:"Dubs, Inc.", path:"/images/sponsors/dubs.gif", url:"www.dubsinc.com" },
					{ alt:"Emerald City Graphics", path:"/images/sponsors/ecg_logo.gif", url:"www.emeraldcg.com" },
					{ alt:"Filter", path:"/images/sponsors/filter_talent.gif", url:"www.filtertalent.com" },
					{ alt:"Lustre", path:"/images/sponsors/lustre.gif", url:"www.lustrecommunications.com" },
					{ alt:"Olympic Press", path:"/images/sponsors/olympic_press_web.gif", url:"www.olypress.com" },
					{ alt:"Publicis", path:"/images/sponsors/publicis.gif", url:"www.publiciswest.com" },
					{ alt:"Puget Sound Bindery", path:"/images/sponsors/puget_bindery.gif", url:"www.pugetbindery.com" },
					{ alt:"Remy Haynes", path:"/images/sponsors/remy_haynes.gif", url:"www.remygirl.com" },
					{ alt:"Studio 3", path:"/images/sponsors/studio_3.gif", url:"www.studio3.com" },
					{ alt:"School of Visual Concepts", path:"/images/sponsors/svc.gif", url:"www.svcseattle.com" },
					{ alt:"Wongdoody", path:"/images/sponsors/wong_doody.gif", url:"www.wongdoody.com" },
					{ alt:"XpedX", path:"/images/sponsors/xpedx.gif", url:"www.xpedx.com" } ];

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];}
}

function displayWebBanner()
{
	//var arr = [];
	
	//for( var i = 0; i < sponsorArr.length; i++ )
	//{
	//	arr.push( i );
	//}
	
	sponsorArr = shuffle( sponsorArr );
	//arr = shuffle( arr );

	var i1 = sponsorArr[ 0 ];
	var i2 = sponsorArr[ 1 ];

	writeWebBanner( i1 );
	writeWebBanner( i2 );
}

function writeWebBanner( img )
{
	document.write( '<div class=\"sponsorsDiv\">' );
	document.write( '<a href=\"http://' + img.url + '\" target=\"_blank\"><img src=\"' + img.path + '\" width=\"140\" height=\"128\" border=\"0\" alt=\"' + img.alt + '\" /></a>' );
	document.write( '</div>' );
}

function shuffle( $array )
{
	var a = $array.slice();
	var array = [];
	var i;
	
	while( a.length > 0 )
	{
		i = Math.floor( Math.random() * a.length );
		
		array.push( a[ i ] );

		a.splice( i, 1 );
	}
	
	return array;
}