// JavaScript Document

var title = 'The HHC Foundation’s Third Annual Breakfast Benefit Raises A Record $600,000';

var description = new Array(); 
description[description.length] = 'Cipriani 42nd';
description[description.length] = 'Martin Levesque, Ron Javorsky and Robert Hayes of Momentum Resource Solutions';
description[description.length] = 'Alan Aviles, HHC President, Edward Rappa, HHCF Board Chairman, and Dr. Daniel Ricciardi, Breakfast Chairman';
description[description.length] = 'Dr. Daniel Ricciardi, Breakfast Chairman, Frank Cirillo, HHC Senior VP, Dr. Luis Marcos, former HHC President, Charlynn Goins, HHC Chairperson, and Edward Rappa, HHCF Board Chairman';
description[description.length] = 'Alan Aviles, HHC President and Robert Glickman, Honorary Event Chair and former Dean of NYU School of Medicine';
description[description.length] = 'Networking Session at HHC Foundation Third Annual Breakfast Benefit';
description[description.length] = 'Honoree Thomas Harrison, CEO, Diversified Agency Services and Larry Gage, President, National Association of Public Hospitals and Health Systems';
description[description.length] = 'Alan Aviles, HHC President, Charlynn Goins, HHC Chairperson, and Honoree Thomas Harrison, CEO, Diversified Agency Services';
description[description.length] = 'Dr. Ramanathan Raju, HHC Executive VP and Corporate Chief Medical Officer, and John Palmer, Executive Director, Harlem Hospital';
description[description.length] = 'Chet Bijoor, Warren & Panzer Engineers, and Keecha Gardner, National Stroke Association';
description[description.length] = 'Barbara Mosbacher, Honoree Barbara Gimbel and Dr. Claire Gaudiani, Clinical Professor of Philanthropy at The George H. Heyman, Jr. Center for Philanthropy and Fundraising at New York University';
description[description.length] = 'Guests at the JP Morgan Chase Table from left to right: Rodney Bolden, Genieve Cameron, John McAuley, Miguel Calderon';
description[description.length] = 'Lynda Curtis, Executive Director, Bellevue Hospital, Ethan Ayer, Jennifer Acker, HHCF Board Member, and Honoree Barbara Gimbel';
description[description.length] = 'HHCF Board Chairman Edward Rappa';
description[description.length] = 'HHC President Alan Aviles and Honoree Thomas Harrison';
description[description.length] = 'HHC Foundation Third Annual Breakfast Benefit';
description[description.length] = 'Edie Holbrook and Judy Mendelsund';
description[description.length] = 'HHCF Board Member Jennifer Acker, HHC President Alan Aviles and David Gould, United Hospital Fund';
description[description.length] = 'Celeste Johnson, New York State Department of Health, and LaRay Brown, HHC Senior VP';
description[description.length] = 'Breakfast Chair Dan Ricciardi presents Honoree Thomas Harrison';
description[description.length] = '2007 Humanitarian Award Recipient Thomas Harrison';
description[description.length] = 'HHC President Alan Aviles';
description[description.length] = '2007 Community Service Award Recipient Barbara Gimbel';
description[description.length] = 'Dr. Ronnie Swift, Generations+, Honorable Christine Quinn, City Council Speaker, Howard Nelson, New York Medical College, Brian Fisch, Ann Frisch, Executive Director HHC Home & Health Care, Dr. Richard McCarrick, New York Medical College, and Dr. Richard Stone, Metropolitan Hospital Center ';
//description[description.length] = '';

var smallimages = new Array();
smallimages[smallimages.length] = 'gallery2/1_sm.jpg';
smallimages[smallimages.length] = 'gallery2/2_sm.jpg';
smallimages[smallimages.length] = 'gallery2/3_sm.jpg';
smallimages[smallimages.length] = 'gallery2/4_sm.jpg';
smallimages[smallimages.length] = 'gallery2/5_sm.jpg';
smallimages[smallimages.length] = 'gallery2/6_sm.jpg';
smallimages[smallimages.length] = 'gallery2/7_sm.jpg';
smallimages[smallimages.length] = 'gallery2/8_sm.jpg';
smallimages[smallimages.length] = 'gallery2/9_sm.jpg';
smallimages[smallimages.length] = 'gallery2/10_sm.jpg';
smallimages[smallimages.length] = 'gallery2/11_sm.jpg';
smallimages[smallimages.length] = 'gallery2/12_sm.jpg';
smallimages[smallimages.length] = 'gallery2/13_sm.jpg';
smallimages[smallimages.length] = 'gallery2/14_sm.jpg';
smallimages[smallimages.length] = 'gallery2/15_sm.jpg';
smallimages[smallimages.length] = 'gallery2/16_sm.jpg';
smallimages[smallimages.length] = 'gallery2/17_sm.jpg';
smallimages[smallimages.length] = 'gallery2/18_sm.jpg';
smallimages[smallimages.length] = 'gallery2/19_sm.jpg';
smallimages[smallimages.length] = 'gallery2/20_sm.jpg';
smallimages[smallimages.length] = 'gallery2/21_sm.jpg';
smallimages[smallimages.length] = 'gallery2/22_sm.jpg';
smallimages[smallimages.length] = 'gallery2/23_sm.jpg';
smallimages[smallimages.length] = 'gallery2/24_sm.jpg';
//smallimages[smallimages.length] = '';

var medimages = new Array();
medimages[medimages.length] = 'gallery2/1_med.jpg';
medimages[medimages.length] = 'gallery2/2_med.jpg';
medimages[medimages.length] = 'gallery2/3_med.jpg';
medimages[medimages.length] = 'gallery2/4_med.jpg';
medimages[medimages.length] = 'gallery2/5_med.jpg';
medimages[medimages.length] = 'gallery2/6_med.jpg';
medimages[medimages.length] = 'gallery2/7_med.jpg';
medimages[medimages.length] = 'gallery2/8_med.jpg';
medimages[medimages.length] = 'gallery2/9_med.jpg';
medimages[medimages.length] = 'gallery2/10_med.jpg';
medimages[medimages.length] = 'gallery2/11_med.jpg';
medimages[medimages.length] = 'gallery2/12_med.jpg';
medimages[medimages.length] = 'gallery2/13_med.jpg';
medimages[medimages.length] = 'gallery2/14_med.jpg';
medimages[medimages.length] = 'gallery2/15_med.jpg';
medimages[medimages.length] = 'gallery2/16_med.jpg';
medimages[medimages.length] = 'gallery2/17_med.jpg';
medimages[medimages.length] = 'gallery2/18_med.jpg';
medimages[medimages.length] = 'gallery2/19_med.jpg';
medimages[medimages.length] = 'gallery2/20_med.jpg';
medimages[medimages.length] = 'gallery2/21_med.jpg';
medimages[medimages.length] = 'gallery2/22_med.jpg';
medimages[medimages.length] = 'gallery2/23_med.jpg';
medimages[medimages.length] = 'gallery2/24_med.jpg';
//medimages[medimages.length] = '';

var largeimages = new Array();
largeimages[largeimages.length] = 'gallery2/1_lg.jpg';
largeimages[largeimages.length] = 'gallery2/2_lg.jpg';
largeimages[largeimages.length] = 'gallery2/3_lg.jpg';
largeimages[largeimages.length] = 'gallery2/4_lg.jpg';
largeimages[largeimages.length] = 'gallery2/5_lg.jpg';
largeimages[largeimages.length] = 'gallery2/6_lg.jpg';
largeimages[largeimages.length] = 'gallery2/7_lg.jpg';
largeimages[largeimages.length] = 'gallery2/8_lg.jpg';
largeimages[largeimages.length] = 'gallery2/9_lg.jpg';
largeimages[largeimages.length] = 'gallery2/10_lg.jpg';
largeimages[largeimages.length] = 'gallery2/11_lg.jpg';
largeimages[largeimages.length] = 'gallery2/12_lg.jpg';
largeimages[largeimages.length] = 'gallery2/13_lg.jpg';
largeimages[largeimages.length] = 'gallery2/14_lg.jpg';
largeimages[largeimages.length] = 'gallery2/15_lg.jpg';
largeimages[largeimages.length] = 'gallery2/16_lg.jpg';
largeimages[largeimages.length] = 'gallery2/17_lg.jpg';
largeimages[largeimages.length] = 'gallery2/18_lg.jpg';
largeimages[largeimages.length] = 'gallery2/19_lg.jpg';
largeimages[largeimages.length] = 'gallery2/20_lg.jpg';
largeimages[largeimages.length] = 'gallery2/21_lg.jpg';
largeimages[largeimages.length] = 'gallery2/22_lg.jpg';
largeimages[largeimages.length] = 'gallery2/23_lg.jpg';
largeimages[largeimages.length] = 'gallery2/24_lg.jpg';
//largeimages[largeimages.length] = '';

//no need to edit below this line /////////////////////////////////////////////////////////////////////////////////////////////////////////

var nrImages = smallimages.length;

function setpreview(j) {
	var medphoto = '<a href="javascript:popImage(\''+largeimages[j]+'\',\'large\');">';
	medphoto += '<img src="'+medimages[j]+'" height="261" style="border:#02394d 2px solid"></a>';
	medphoto += '<div style="width:400px; padding-top:4px; padding-bottom:16px; text-align:right; padding-right:2px">';
	medphoto += '<a href="javascript:popImage(\''+largeimages[j]+'\',\'large\');">';
	medphoto += '<img src="images/but_enlarge.jpg" border="0" /></a></div>';
	document.getElementById("photo1").innerHTML = medphoto;
	document.getElementById("description").innerHTML = description[j];
	for (k=0; k<nrImages; k++) {
		elemk = "Image"+k;
		document.getElementById(elemk).className = 'thumbs';
		document.getElementById(elemk).style.borderWidth = '1px';
		document.getElementById(elemk).style.borderStyle = 'solid';
		document.getElementById(elemk).style.borderColor = '#269dc7';
		document.getElementById(elemk).style.margin = '5px';
		}
	var elemid = 'Image'+j;
	document.getElementById(elemid).style.borderWidth = '2px';
	document.getElementById(elemid).style.borderStyle = 'solid';
	document.getElementById(elemid).style.borderColor = '#02394d';
	document.getElementById(elemid).style.margin = '4px';
	/*
	*/
	return;
}

function setcontent() {
document.getElementById("title").innerHTML = title;
setpreview(0);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////
// SCRIPT FOR IMAGES OPENING IN A POPUP AT THEIR ACTUAL SIZE ///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////

// Set the horizontal and vertical position for the popup
PositionX = 0;
PositionY = 0;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)
defaultWidth  = 800;
defaultHeight = 600;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = false;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars,resizable,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars,resizable,width=150,height=100,left='+PositionX+',top='+PositionY;

function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');
writeln('if (isNN){');       
writeln('window.innerWidth=document.images["guide"].width;');
writeln('window.innerHeight=document.images["guide"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('</sc'+'ript>');
if (!AutoClose) 
writeln('</head><body bgcolor=000000 onload="reSizeToImage();doTitle();self.focus()">')
else 
writeln('</head><body bgcolor=000000 onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="guide" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

