var u='undefined';

if(typeof(ssn)==u)ssn=0;
if(typeof(sss)==u)
{
	ssn=0;
	sss=new Array(ssn);
	sss[ssn++]=
		'"Lisa Fritsch is an inquisitive, provacative writer who has a point of view but never clubs a reader with it.'
		+' She is witty and engaging in a field where the first thing discarded is a sense of humor.'
		+'<p class="by_line">Arnold Garcia, <i>Editorial Page Editor</i><br/>'
		+'The Austin American-Statesman</p>'
		;
	sss[ssn++]=
		'"Lisa is special because she speaks her mind in a manner that is breathtakingly honest.'
		+" She's not afraid of bending people's sensibility to point out the truths that others would deny."
		+" There are very few writers like her and that's a shame"+'."'
		+'<p class="by_line">David Almasi, <i>Director</i><br/>'
		+'National Center for Public Policy<br/>'
		+'Research, Project 21</p>'
		;
	sss[ssn++]=
		'"...we need articulate voices...'
		+" especially black American women with [Lisa Fritsch's] message"+'..."'
		+'<p class="by_line">Mychal Massie<br/>'
		+'Syndicated Columnist</p>'
		;
	sss[ssn++]=
		'"Lisa is an asset to St. David'+"'s"+' Foundation.'
		+' Lisa always thinks of her community first.'
		+' She makes a difference."'
		+'<p class="by_line">Luke Doyle, <i>Former Vice President</i><br/>'
		+"St. David's Foundation</p>"
		;
	sss[ssn++]=
		'"Lisa created a regular newsletter for our Teen Parenting Services Program at LifeWorks that realized their need for relationships with adults and a sense of belonging to a wider community.'
		+' Lisa has a great skill in creating a sense of family and support."'
		+'<p class="by_line">Susan McDowell, <i>Executive Director</i><br/>'
		+'LifeWorks</p>'
		;
	sss[ssn++]=
		'"Lisa always brings a spark to KLBJ-AM! She is passionate, provocative and always compelling."'
		+'<p class="by_line">Mark Caesar, <i>Program Director</i><br/>'
		+'KLBJ AM</p>'
		;
}

function emO(){
	document.write("<" + "a href=\"mailto:"+"lisa"+"\u0040"+"lisafritsch"+"\u002E"+"com"+"\">email<"+"/a>");
}

function ssL(){
	ssRn(ssn);
	for(i=1;i<=3;i++){
		d='Home_Quote'+i;
		if((q=document.getElementById(d))!=null){
			changeOpac(0,d);
			q.innerHTML=sss[i];
		}
	}
	d='Home_RadioBlurb';
	if((q=document.getElementById(d))!=null){
		changeOpac(0,d);
		q.innerHTML='';
	}
	d='Home_PromoBlurb';
	if((q=document.getElementById(d))!=null){
		changeOpac(0,d);
		q.innerHTML=" ";
	}
	d='Home_FaceBook';
	if((q=document.getElementById(d))!=null){
		changeOpac(0,d);
	}
	d='Contact_Quote1';
	if((q=document.getElementById(d))!=null){
		q.innerHTML=sss[i];
	}
	return;
}

function ssRn(n){
	if(n<=1)return 0;
	for(i=0;i<n;i++){
		r=Math.floor(Math.random()*n);
		if(r!=i){
			t=sss[i];
			sss[i]=sss[r];
			sss[r]=t;
		}
	}
}

var slideAmount=420;
var slideSpeed=2;

var photo1X0=375; var photo1Y0=-420;
var photo2X0=661; var photo2Y0=120;
var photo3X0=375; var photo3Y0=658;

var photo1dX=0; var photo1dY=2;
var photo2dX=-2; var photo2dY=0;
var photo3dX=0; var photo3dY=-2;

function startSlidesAndFades(){
	window.setTimeout('slideInPhotos();', 1000);
}

function slideInPhotos()
{
	if(slideAmount>0){
		nudgePhotos();
		slideAmount-=slideSpeed;
		if(slideAmount>0){
			window.setTimeout('slideInPhotos();', 0);
		}else{
			fadeInRadioBlurb();
		}
	}
}

function fadeInRadioBlurb(){
	opacity('Home_RadioBlurb', 0, 100, 100);
	window.setTimeout('fadeIn_PromoBlurb();');
}

function fadeIn_PromoBlurb(){
	opacity('Home_PromoBlurb', 0, 100, 100);
	window.setTimeout('fadeInQ1();', 100);
}

function fadeInQ1(){
	opacity('Home_Quote1', 0, 100, 700);
	window.setTimeout('fadeInQ2();', 700);
}

function fadeInQ2(){
	opacity('Home_Quote2', 0, 100, 700);
	window.setTimeout('fadeInQ3();', 700);
}

function fadeInQ3(){
	opacity('Home_Quote3', 0, 100, 700);
	window.setTimeout('fadeInFaceBook();', 700);
}

function fadeInFaceBook(){
	opacity('Home_FaceBook', 0, 100, 700);
}

function nudgePhotos(){
	if((q=document.getElementById('Home_PhotoD1'))!=null)photo1X0+=photo1dX; photo1Y0+=photo1dY; q.style.left=photo1X0+'px'; q.style.top=photo1Y0+'px';
	if((q=document.getElementById('Home_PhotoD2'))!=null)photo2X0+=photo2dX; photo2Y0+=photo2dY; q.style.left=photo2X0+'px'; q.style.top=photo2Y0+'px';
	if((q=document.getElementById('Home_PhotoD3'))!=null)photo3X0+=photo3dX; photo3Y0+=photo3dY; q.style.left=photo3X0+'px'; q.style.top=photo3Y0+'px';
}

function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
}