function InsertHeader(customhdrflag,sizemode,headerwidth, headerheight,bgcolor,seperatorcolor,menucolor,logourl, seperatorheight, autofit, l1url, l1title,l2url, l2title,l3url, l3title,l4url, l4title,l5url, l5title,l6url, l6title,enablehdrbgcolor) {
	if (!customhdrflag) {
		if (sizemode == "pixels") {
			localheaderwidth = headerwidth+"px";
			}
		else {		
			localheaderwidth = headerwidth+"%";

			}
		if (enablehdrbgcolor) hdrbgcolor = 'bgcolor="'+bgcolor+'"';
		else hdrbgcolor="";
		
		//document.write('<table align="center" border=0 valign="middle" width="'+localheaderwidth+'" height="'+headerheight+'"'+hdrbgcolor+'" style="border:0px;border-width:0px;border-spacing:0px;border-top:0px; border-bottom:'+seperatorheight+' solid '+seperatorcolor+';" ID="table1">');
		document.write('<table align="center" border=0 width="'+localheaderwidth+'" height="'+headerheight+'"'+hdrbgcolor+'" style="border:0px;border-width:0px;border-spacing:0px;border-top:0px; border-bottom:'+seperatorheight+'; border-collapse:collapse; margin: 0px;" ID="table1">');
		if (logourl!= "") {
				document.write('<td align="left" valign="top" width="200" cellpadding=0 cellspacing=0 style="margin:0px;">');
				document.write('	<div id="sitename" style="margin:0px;">&nbsp;&nbsp;&nbsp;<img src="http://www.ooieric.com/site/favicon_40.jpg">&nbsp;<img src="'+logourl+'" border="0"></div>'); 
				document.write('</td>');
	  }
		document.write('<td>');
		document.write('	<table align="center" ID="table2">');
		document.write('		<tr>		');
		document.write('			<td width="60" valign="bottom"><a id="headerlinks" style="color:#ffffff;" href="http://www.ooieric.com" title="home"><b>home</b></a></td>');
		document.write('			<td width="65" valign="bottom"><a id="headerlinks" style="color:#ffffff;" href="http://www.ooieric.com/awards.html" title="awards"><b>awards</b></a></td>');
		document.write('			<td width="75" valign="bottom"><a id="headerlinks" style="color:#ffffff;" href="http://www.ooieric.com/weddings.html" title="weddings"><b>weddings</b></a></td>');
		document.write('			<td width="70" valign="bottom"><a id="headerlinks" style="color:#ffffff;" href="http://www.ooieric.com/portraits.html" title="portraits"><b>portraits</b></a></td>');
		document.write('			<td width="50" valign="bottom"><a id="headerlinks" style="color:#ffffff;" href="http://www.ooieric.com/home" title="blog"><b>blog</b></a></td>');
		document.write('			<td width="70" valign="bottom"><a id="headerlinks" style="color:#ffffff;" href="http://www.ooieric.com/contact.html" title="contact"><b>contact</b></a></td>');

//		if (l1title!= "") document.write('			<td width="60" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l1url+'" title="'+l1title+'"><b>'+l1title+'</b></a></td>');
//		if (l2title!= "") document.write('			<td width="60" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l2url+'" title="'+l2title+'"><b>'+l2title+'</b></a></td>');
//		if (l3title!= "") document.write('			<td width="70" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l3url+'" title="'+l3title+'"><b>'+l3title+'</b></a></td>');
//		if (l4title!= "") document.write('			<td width="80" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l4url+'" title="'+l4title+'"><b>'+l4title+'</b></a></td>');
//		if (l5title!= "") document.write('			<td width="70" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l5url+'" title="'+l5title+'"><b>'+l5title+'</b></a></td>');
//		if (l6title!= "") document.write('			<td width="70" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l6url+'" title="'+l6title+'"><b>'+l6title+'</b></a></td>');

		//if (l6title!= "") document.write('			<td width="80"><a id="headerlinks" style="color:'+menucolor+';" href="'+l6url+'" title="'+l6title+'"><b>'+l6title+'</b></a></td>');
		// document.write('			<td width="80"><a id="headerlinks" style="color:'+menucolor+';" href="'+l5url+'" title="'+l5title+'"><b>'+l5title+'</b></a></td>');
		// document.write('			<td width="40" valign="bottom"><a id="headerlinks" style="color:'+menucolor+';" href="'+l6url+'" title="'+l6title+'"><b>'+l6title+'</b></a></td>');

		document.write('		<td align="right" valign="top" style="padding-right: 6px;"><!-- AddThis Button BEGIN --><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;username=ooieric"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=ooieric"></script><!-- AddThis Button END --></td>');
/*		
document.write('<td><script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981) no-repeat top left; }</style><a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.ooieric.com" onclick="return fbs_click()" target="_blank" class="fb_share_link"></a></td>');
*/
		document.write('		</tr>');
		document.write('	</table>');	
		document.write('</td>');
		document.write('</tr></table>');
		
	}

	if (autofit == "Y") {
		window.onresize = resizeContent;
		window.onload = resizeContent;	
	}

}



