HeartBarTextOut = "FFFFFF"
HeartBarTextOver = "F989B9"
LinkTracker=0



function Heart08MenuItem(LinkName,LinkURL) {

	LinkTracker=LinkTracker+1
	
	if (LinkTracker != PageID) {
		ImageCalled = ""
	} else {
		ImageCalled = "on"
	}
	

	return '<td><a href="'+LinkURL+'" class="Heart08Nav'+ImageCalled+'" id=HeartBar'+LinkTracker+' name=HeartBar'+LinkTracker+'>'+LinkName+'</a></td>'

}


function WriteHeaderContent() {

	HeaderContent = '<map name="LadyInPink"><area alt="" coords="181,11,221,29" href="heart_home_08.html"></map>'

	HeaderContent += '<br>'
	HeaderContent += ''
	HeaderContent += '<div align="center">'
	HeaderContent += '<table width=852 border=1 bordercolor=232A3C cellpadding=0 cellspacing=0>'
	HeaderContent += '<td>'
	HeaderContent += '<table width=850 border=0 bordercolor=232A3C cellpadding=0 cellspacing=0>'
	// Branding row - logos and date
	HeaderContent += '<tr><td width=850 height=92 colspan=2 valign=top>'
	HeaderContent += '<img src="../../images/template/heart08_header_face.gif" width="171" height="92" alt="" border="0" align=left hspace=0 vspace=0><img src="../../images/template/heart09_header_date.gif" width="256" height="92" alt="" border="0" hspace=0 vspace=0 align=left><img src="../../images/template/heart08_header_logos.gif" width="423" height="92" alt="" border="0" hspace=0 vspace=0></td></tr>'
	HeaderContent += '<tr><td width=850 height=32 colspan=2 valign=top>'
	//<!-- Funky line - above nav -->
	HeaderContent += '<img src="../../images/template/heart08_funkyline_abovenav.gif" width="850" height="32" alt="" border="0" align=left hspace=0 vspace=0>'
	HeaderContent += '</td></tr>'
	//<!-- nav row -->
	HeaderContent += '<tr><td width=850 height=27 colspan=2 valign=top>'
	HeaderContent += '<img src="../../images/template/heart08_nav_ladies-neck.gif" width="103" height="27" alt="" border="0" align=left hspace=0 vspace=0>'
	
		HeaderContent += '<table cellpadding=0 cellspacing=0 align=right border=0>'
		HeaderContent += '<tr>'
		
				// IMPORTANT !!
				// Each page has an index attached to it to dictate which navigation
				// item should be highlighted as the current page.
				// This index is set at the top of each code (PageID = #).
				
				// So EVERY TIME YOU EDIT THESE LINKS you need to adjust this index on each page 
				//HeaderContent += Heart08MenuItem("Tickets","https://secure.e2rm.com/registrant/startup.aspx?eventid=28916")
				HeaderContent += Heart08MenuItem("Video","heart_media_08.html")
				HeaderContent += Heart08MenuItem("Sponsors","heart_sponsors_08.html")
				HeaderContent += Heart08MenuItem("Gallery","heart_gallery_08.html")
				HeaderContent += Heart08MenuItem("Tickled Pink","heart_press_08.html")
				//HeaderContent += Heart08MenuItem("Online Auction","http://www.nyghauctions.com")
		HeaderContent += '</tr>'
		HeaderContent += '</table>'
	
	HeaderContent += '</td></tr>'
	HeaderContent += '<tr><td width=850 height=25 colspan=2 valign=top><!-- Funky line - below nav -->'
	HeaderContent += '<img src="../../images/template/heart08_funkyline_belownav.gif" width="850" height="25" alt="" border="0" align=left hspace=0 vspace=0>'
	HeaderContent += '</td></tr>'
	HeaderContent += '<tr><td width=362 height=591 rowspan=2 valign=top><!-- Lady on left -->'
	HeaderContent += '<img name="lady-in-pink" id="lady-in-pink" src="../../images/template/heart08_lady-in-pink_whome.gif" width="362" height="591" alt="" border="0" align=left hspace=0 vspace=0 usemap="#LadyInPink">'
	HeaderContent += '</td><td width=488 height=537 valign=top>'

	return HeaderContent;

}

function WriteFooterContent() {

	FooterContent = '';
	
	FooterContent += '</td>'
	FooterContent += '</tr>'
	FooterContent += '<tr><td width=488 height=54>'
	FooterContent += '<img src="../../images/template/heart08_footer_skirt.gif" width="488" height="54" alt="" border="0" align=left hspace=0 vspace=0>'
	FooterContent += '</td></tr>'
	FooterContent += '</table>'

	FooterContent += '</td>'
	FooterContent += '</table></div>'


	//here we just loop through all the links and make sure external links and pdfs open in new windows
for (LinkLoop = 0; LinkLoop < document.links.length; LinkLoop ++) {
	
	CurrentLink = document.links[LinkLoop].href + ""
	if (CurrentLink.indexOf(".pdf") != -1 ) {
		document.links[LinkLoop].target = "new_p"
			//alert(document.links[LinkLoop].href); // for development - 
	}
	
	if (CurrentLink.indexOf("http") != -1 ) {  
		if ((CurrentLink.indexOf("205.189.13.234") == -1 ) && (CurrentLink.indexOf("nygh.on.ca") == -1 ) && (CurrentLink.indexOf("workopolis") == -1 )) {
	    //alert(CurrentLink); // for development - 
		document.links[LinkLoop].target = "new_p"
			//alert(document.links[LinkLoop].href); // for development - 
		}
	}
	
	
}

	return FooterContent;

}
