var aFbzImages = [
	'http://assets.feedblitz.com/images/customers/gizmodo.png',
	'http://assets.feedblitz.com/images/customers/lifehacker.png',
	'http://assets.feedblitz.com/images/customers/jezebel.png',
	'http://assets.feedblitz.com/images/customers/gawker.png',
	'http://assets.feedblitz.com/images/customers/copyblogger.png',
	'http://assets.feedblitz.com/images/customers/toprank.png',
	'http://assets.feedblitz.com/images/customers/psfk.png',
	'http://assets.feedblitz.com/images/customers/valleywag.png',
	'http://assets.feedblitz.com/images/customers/metacafe.jpg',
	'http://assets.feedblitz.com/images/customers/di.png',
	'http://assets.feedblitz.com/images/customers/make.png',
	'http://assets.feedblitz.com/images/customers/avc.png',
	'http://assets.feedblitz.com/images/customers/moviejuice.png',
	'http://assets.feedblitz.com/images/customers/recipes.png',
	'http://assets.feedblitz.com/images/customers/biteofthebest.png',
	'http://assets.feedblitz.com/images/customers/politicalwire.png',
	'http://assets.feedblitz.com/images/customers/redcounty.png',
	'http://assets.feedblitz.com/images/customers/opendemocracy.png'
	];
var aFbzLinks=  [
	'http://gizmodo.com',
	'http://lifehacker.com',
	'http://jezebel.com',
	'http://gawker.com',
	'http://www.copyblogger.com',
	'http://www.toprankresults.com',
	'http://www.psfk.com',
	'http://www.valleywag.com',
	'http://www.metacafe.com',
	'http://www.labnol.org',
	'http://www.makezine.com',
	'http://www.avc.com',
	'http://www.moviejuice.com',
	'http://www.simplyrecipes.com',
	'http://www.biteofthebest.com',
	'http://www.politicalwire.com',
	'http://www.redcounty.com',
	'http://www.opendemocracy.org'
	];
	
// preload customer images
var picarray=new Array;
var pFbz=0;
for(pFbz=0;pFbz<aFbzImages.length;pFbz++)
{
	var pic=new Image(180,60);
	pic.src=aFbzImages[pFbz];
	picarray[pFbz]=pic;
}
	
var vFbz=0;

function appear_later()
{
	Effect.Appear('logos',{duration: 0.5});
	setTimeout("wait()",500)
}

function appear()
{
	vFbz=vFbz%aFbzImages.length;
	var i=document.getElementById('logos');
	i.src=aFbzImages[vFbz];
	var i=document.getElementById('logolink');
	i.href=aFbzLinks[vFbz];
	vFbz=vFbz+1;

	// ff needs a little time to reliably display the images - 1/6 s whitespace here
	setTimeout("appear_later()",250)
}

function wait()
{
	setTimeout("fade()",1000)
}

function fade()
{
	Effect.Fade('logos',{duration: 0.5});
	setTimeout("appear()",500)
}

function RUSure(v)
{
var ans=confirm("Are you sure you want to do this?  It is not possible to stop or undo if you press OK.");
if(ans==true)
{
	document.location=v;
}
}
function RUSure_Generic(v)
{
var ans=confirm("Are you sure you want to do this?  It is not possible to stop or undo if you press OK.");
if(ans==true)
{
	eval(v);
}
}

function pf()
{

var h=document.body.innerHTML;
var s=h.indexOf("<!-- fbz_main_content_start -->");
var e=h.indexOf("<!-- fbz_main_content_end -->");
var b=h.substring(s,e);

h=document.body.innerHTML;
var s=h.indexOf("<he"+"ad>");
var e=h.indexOf("</he"+"ad>");
var c=h.substring(s,e);

var s=h.indexOf("<!-- fbz_start_footer -->");
var e=h.indexOf("<!-- fbz_end_footer -->");
var f=h.substring(s,e);

b="<img src=\"http://assets.feedblitz.com/images/feedblitz_logo_med_new.jpg\" ><hr class=\"dottedline\"><table><tr><td>"+b+"</tr></td></table>"+f;
document.body.innerHTML=b;

}
