/*
* Author:      Marco Kuiper (http://www.marcofolio.net/)
*/


$(document).ready(function(){

$wh1 = "<iframe src=\"http://player.vimeo.com/video/29783530?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1\" width=\"600\" height=\"338\" frameborder=\"0\" webkitAllowFullScreen allowFullScreen></iframe>"


					   
    $('#vid_but').click(function(){
	$(this).popUp($wh1);
	});
	
	$('#xxx').click(function(){	
	$(this).popDown();
	});
	
});

// JavaScript Document
$.fn.popUp = function ($inHtml) {	
$("#pop_cont").html($inHtml);
$bheight  = $(window).height();
$bwidth = $("body").width();
$cheight  = $("#popup").height();
$cwidth = $("#popup").width();
$ptop = ($bheight/2) - ($cheight/2); 
$pleft = ($bwidth/2)-($cwidth/2);
pop_up_pos($ptop, $pleft);
$("#overlay").fadeIn();
$("#popup").fadeIn();
$popUpTest = true;
}
$.fn.popDown = function () {
if($popUpTest == true){	
$("#overlay").fadeOut();
$("#popup").fadeOut();
$("#pop_cont").html('');
$popUpTest = false;
}
}

function pop_up_pos($ptop, $pleft){
$("#popup").css({"top":$ptop});
$("#popup").css({"left":$pleft});	
}

$(document).ready(function() {
	
	$('#top_read').click(function(){
		$(this).css('display','none');
		$('#top_priv').fadeIn();
	});
	$('#bot_read').click(function(){
		$(this).css('display','none');
		$('#bot_priv').fadeIn();
	});
	
	$(function() {
    $('tr:nth-child(2n+1)').addClass('even');
});
		
	

/*var quotes = [
                                    { "body" : "<div class=\"f_triangle-isosceles\"><p>\"LEADERSHIP Philadelphia plays a key role in creating ambassadors to serve the City.  I am proud to be an alumnus of this program, which raises awareness, connects, and issues a call to action to the region’s emerging leaders.\"</p></div><div id = \"attr_hold\"><p>Mayor Michael Nutter<br />Core Class of 1989</p></div></div>"},
									
									
                                 	{ "body" : "<div class=\"f_triangle-isosceles\"><p>\"We are here to engage, inform, and inspire Philadelphia's best and brightest to serve the community.  This work is a calling for the staff and a game-changer for participants.\"</p></div><div id = \"attr_hold\"><p>Liz Dow<br />President<br />LEADERSHIP Philadelphia<br />Core Class of 1986</p></div></div>"},
									
									
									{ "body" : "<div class=\"f_triangle-isosceles\"><p>\"LEADERSHIP Philadelphia encouraged me to think big, never take no for an answer, and realize that through hard-work, collaboration, and creativity much can be accomplished. LEADERSHIP makes Philadelphia a place where leading means giving and giving means making tangible changes occur.\"</p></div><div id = \"attr_hold\"><p>Jane Golden<br />Executive Director<br />City of Philadelphia Mural Arts Program<br />The Lincoln Financial Mural Arts Center</p></div></div>"},
									
									
									{ "body" : "<div class=\"f_triangle-isosceles\"><p>\"LEADERSHIP creates an extraordinary opportunity for executives to unleash their desire to give back to the community. I know first-hand the value LEADERSHIP Philadelphia brings to the city and the surrounding area by providing regional executives with an experience of growth, connection, and passion for community service.\"</p></div><div id = \"attr_hold\"><p>Craig Adams<br />Chief Operating Officer<br />PECO Energy<br />Core Class of 2000</p></div></div>"},
									
									
									{ "body" : "<div class=\"f_triangle-isosceles\"><p>\"The Philadelphia Police Department has a long history of partnering with LEADERSHIP.  The participant ride-alongs give executives the opportunity to \"walk a  mile in our shoes\" and learn about community policing up close.  We put someone through class each year to build a bridge to the private sector.\"</p></div><div id = \"attr_hold\"><p>Richard Ross<br />Deputy Commissioner of Field Operations<br />Philadelphia Police Department<br />Core Class of 2005</p></div></div>"},
									
                                  ];         */                        

});
