var mission ={mission:"<b>Mission:</b><br/>The mission of Arts For Kids, Inc. is to "+
"development of each individual regardless of age, economic status,"+
"and developmental and/or physical disabilities through meaningful arts "+
"learning opportunities. AFK believes that all individuals can benefit "+
"from lifelong exposure to the beauty and power of the arts by sharing "+
"gifts of teaching, creating and performing. Playing a vital role in our "+
"social, emotional, physical, and mental development, Arts for Kids, "+
"Inc. was created to address and nurture those needs through high "+
"quality and culturally diverse arts education programming accessible to "+
"all. </b><br/>Founded in 2000 by two seasoned professional artists, Vincent Ector, "+
"Executive Director and Karen Ector, Artistic Director, Arts For Kids, "+
"Inc. is a not-for-profit arts organization that provides arts-in-education "+
"programs to many communities throughout New Jersey and New York. "+
"Artist residency programs, performance assemblies, and parent and "+
"teacher development training workshops offered by AFK assist the "+
"integration of the arts into standard-based classroom curriculum, while "+
"creating alternative approaches to teaching and learning that includes "+
"special needs and multi-cultural based programs. Our educational "+
"programs and assemblies have been presented in numerous schools, "+
"community centers, libraries, museums, and public areas throughout <br/>"+
"the state of New Jersey, New York as well as internationally.", 
history: "<br/><br/><br/><br/><b>History</b><br/>The motivation behind the creation of AFK came from inspired "+
"founders Vincent and Karen Ector. Their experiences working as "+
"professional artists and administrators in the community while "+
"traveling abroad have provided a deep understanding of the arts-in-"+
"education business. Both Mr. and Mrs. Ector felt strongly they could "+
"provide opportunities for highly qualified minority artists who were "+
"not represented in great numbers, or as established culturally diverse "+
"organizations in New Jersey. The AFK founders also knew that their "+
"professional work in the arts was so important to the demographic "+
"they were trying to serve. By experiencing the arts, a child could "+
"be provided an opportunity to recognize and relate to someone who "+
"looks like them and is working professionally as artists. Since AFK's "+
"inception in 2000, the organization has built a rainbow coalition of "+
"talented artists from all walks of life sharing their multi-cultural gifts of "+
"music, dance, visual art, drama and creative writing to under served"};

var missionStmt = {desc:"<b>Our Mission:</b><br/><br/>The mission of <b>Arts For Kids, Inc.</b> is to nurture the overall development of each individual regardless of age, socio-economic status, developmental and/or physical disabilities, through meaningful curriculum based arts learning opportunities. We are a 501(c)3 not-for-profit arts organization that specializes in Arts-In-Education Workshops, Residencies, Performances, Professional Staff Development and Parent Workshops. "+
" <br/><br/><b>Arts For Kids Inc.</b> believes that all individuals can benefit from lifelong exposure to the beauty and power of the arts by sharing gifts of teaching, creating and performing. Playing a vital role in our social, emotional, physical, and mental development, Arts for Kids, Inc. was created to address and nurture those needs through high quality and culturally diverse arts education programming accessible to all. "+
"<br/>"};

var index =0;
var slides =[];
slides[0] = [];
slides[1] = [];
slides[2] = [];
slides[3] = [];
slides[4] = [];
slides[5] = [];
slides[6] = [];
slides[7] = [];
slides[0][0]=["afk_student_dance.jpg"];
slides[1][0]=["Panther-nj_children.jpg"];
slides[2][0]=["afk_student_painting1b.jpg"];
slides[3][0]=["storyteller.jpg"];
slides[4][0]=["brazil.jpg"];
slides[5][0]=["brazil2.jpg"];
slides[6][0]=["ector_claudio_roditi_jam.jpg"];
slides[7][0]=["Lydia_childhood.jpg"];
slides[0][1]=["Arts for Kids students perform step dance at Summer Arts Camp 2011 "];
slides[1][1]=["Arts For Kids Students and panther masquerade "];
slides[2][1]=["Arts For Kids Student creating visual art"];
slides[3][1]=[" Multicultural storytelling performance by professional storytellers and musicians"];
slides[4][1]=["Dance performance from Brazil"];
slides[5][1]=["Dance performance from Africa"];
slides[6][1]=["Arts For Kids at The 2010 WBGO-FM Children's Concert Series, featuring Jazz Legend Claudio Roditi"];
slides[7][1]=["Early Childhood Assembly Programs (Ages 3-5)"];

//text background.png

$().ready(function(){
	missionStmt.display = displayMission;
	missionStmt.display();
	
	setInterval("nextPix()",8000);
});

function displayMission(){
	/*var imgelmt = document.getElementById("textAreaImg");*/
	var elmt = document.getElementById("missionStatement");
	
	/*if(imgelmt){
		imgelmt.setAttribute("src","images/"+this.imgLnk);*/
		elmt.innerHTML = this.desc;
	/*}*/
}


function nextPix(){
	var pTag = document.getElementById("sdesc");
	var curPix = document.getElementById("slideImg");
	
	if(index<slides.length){
		$('#slideImg').fadeOut(8000,function(){
			link = "images/"+slides[index][0];
			desc = slides[index][1];
			index++;
			if(index == slides.length){
				index=0;
			}
			curPix.setAttribute("src",link);
			curPix.setAttribute("height","140px");
			pTag.innerHTML = desc;
		});
		$('#slideImg').fadeIn(8000);
	}
}

function validateAmount(amount){
       if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){
               return true;
       }else{
               alert('You must enter a valid donation.');
               amount.focus();
               return false;
       }
}

/*
function showOverlay(){
				var twitterFeed = document.getElementById("twitterFeed");
				var overlay = document.getElementById("overlay");
			
				// dispaly overylay
                                overlay.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=70)";
				overlay.style.opacity = 0.7;
				overlay.style.zIndex= 20;

				
                                twitterFeed.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
				twitterFeed.style.opacity = 1;
				twitterFeed.style.zIndex = 30;
				
				
				// hide overlay when element is clicked
				overlay.onclick = function(){
                                        overlay.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=0)";
					overlay.style.opacity = 0;
					overlay.style.zIndex= -5;

                                        twitterFeed.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=0)";
					twitterFeed.style.opacity = 0;
					twitterFeed.style.zIndex = -5;
				}
}
*/

function showOverlay(){
     var twitterFeed = document.getElementById("twitterFeed");
     var overlay = document.getElementById("overlay");
     
     overlay.className = 'fadein';
     twitterFeed.className = 'fadein';

     overlay.onclick = function(){
          overlay.className = 'fadeout';
          twitterFeed.className = 'fadeout';
     }
}

function showFeed(){
      var a = document.createElement("a");
      a.setAttribute("href","https://twitter.com/ArtsForKidsInc");
      a.setAttribute("target","_blank");
}
