// Common JavaScript functions

/////////////////////////////////////////////////////////////////////
function DisplayHeader()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0' height='52' bgcolor='#FCFCFC' background='http://www.fwadkins.net/img08/header_orange.png'>");
    document.writeln("  <tr>");
    document.writeln("    <td width='200' height='80' valign='top' align='center' nowrap bgcolor='#FCFCFC' background='http://www.fwadkins.net/img08/header_orange.png''>");
    document.writeln("    <p style='text-indent: 0; margin: 0'>");
    document.writeln("    <a href='http://www.fwadkins.net/'><img border='0' src='http://www.fwadkins.net/img08/fwp2008.png' width='200' height='80'></a></p>");
    document.writeln("    </td>");
    document.writeln("    <td align='right'>");
    document.writeln("    <table border='0' cellpadding='0' cellspacing='0' width='100%'>");
    document.writeln("      <tr>");
    document.writeln("        <td style='PADDING-RIGHT: 0px; ' vAlign='bottom' align='right'>");
    document.writeln("        <table cellSpacing='0' cellPadding='0' border='0'>");



    document.writeln("          <form id='form1' name='form1' method='GET' action='http://www.fwadkins.net/empty.html'>");
    document.writeln("            <tr>");
    document.writeln("              <td align='right' width='0'>&nbsp;</td>");
    document.writeln("              <td width='0' align='right'>");
    document.writeln("              <td><font color='#ffffff'>");
    document.writeln("            <img border='0' src='http://www.fwadkins.net/img08/graphicdesign.png' width='384' height='80'>");
    document.writeln("              </td>");




    document.writeln("            </tr>");
    document.writeln("          </form>");
    document.writeln("          </tbody>");
    document.writeln("        </table>");
    document.writeln("        </td>");
    document.writeln("      </tr>");
    document.writeln("      <tr>");
    document.writeln("      </tr>");
    document.writeln("    </table>");
    document.writeln("    </td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function DisplayNavBar()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("<tr>");
    document.writeln("<td background='http://www.fwadkins.net/img07/bk1.gif'>");
    document.writeln("<div align='center'>");
    document.writeln("<center>");
    document.writeln("<script type='text/javascript' language='JavaScript1.2'>");
    document.writeln("<!--");
    document.writeln("stm_bm(['mainmenu',430,'','http://www.fwadkins.net/img07/sp.gif',0,'','',1,0,0,0,50,1,0,0,'','',0],this);");
    document.writeln("stm_bp('p0',[0,4,0,0,3,0,15,0,100,'progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.20)',-2,'http://www.fwadkins.net/img07/bk2.gif',-2,90,0,0,'#b4b4b4','#000000','http://www.fwadkins.net/img07/bk1.gif',3,0,0,'#000000']);");
    document.writeln("stm_ai('p0i0',[6,16,'transparent','http://www.fwadkins.net/img07/d2.gif',2,15,0]);");
    document.writeln("stm_ai('p0i1',[0,'Portfolio','','',-1,-1,0,'http://www.fwadkins.net/portfolio','_self','','','','',0,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',0,3,0,0,'#ffffff','#ffffff','#b4b4b4','#ffffff','bold 8pt Verdana','bold 8pt Verdana',0,0]);");
    document.writeln("stm_bp('p1',[1,4,-10,4,0,3,7,0,100,'',-2,'',-2,90,0,0,'#cccccc','http://www.fwadkins.net/img07/bk2.gif','',3,1,1,'#808080']);");
    document.writeln("stm_aix('p1i0','p0i1',[0,'Cartoons ','','',-1,-1,0,'http://www.fwadkins.net/portfolio/cartoons','_self','','','http://www.fwadkins.net/img07/a1.gif','http://www.fwadkins.net/img07/a1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#b4b4b4',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','11px Verdana','11px Verdana']);");
    document.writeln("stm_aix('p1i1','p0i0',[6,1,'#cccccc','',-1,-1]);");
    document.writeln("stm_aix('p1i2','p1i0',[0,'Illustrations','','',-1,-1,0,'http://www.fwadkins.net/portfolio/illustrations']);");
    document.writeln("stm_aix('p1i3','p1i1',[]);");
    document.writeln("stm_aix('p1i4','p1i0',[0,'Graphic Design  ','','',-1,-1,0,'http://www.fwadkins.net/portfolio/graphicdesign']);");
    document.writeln("stm_aix('p1i5','p1i1',[]);");
    document.writeln("stm_aix('p1i6','p1i0',[0,'Flash Animation','','',-1,-1,0,'http://www.fwadkins.net/portfolio/flash']);");

    document.writeln("stm_aix('p1i7','p1i1',[]);");
    document.writeln("stm_aix('p1i8','p1i0',[0,'Web Design','','',-1,-1,0,'http://www.fwadkins.net/portfolio/webdesign']);");

    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    document.writeln("stm_aix('p0i3','p0i1',[0,'Resources','','',-1,-1,0,'http://www.fwadkins.net/resources']);");
    document.writeln("stm_bpx('p2','p1',[1,4,-10,4,0,3,7,7]);");
    document.writeln("stm_aix('p2i0','p0i1',[0,'LEO Resources   ','','',-1,-1,0,'http://www.fwadkins.net/resources','_self','','','http://www.fwadkins.net/img07/a1.gif','http://www.fwadkins.net/img07/a1.gif',0,0,0,'http://www.fwadkins.net/img07/a2.gif','http://www.fwadkins.net/img07/a2.gif',7,7,0,0,1,'#f0f0f0',0,'#b4b4b4',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','bold 11px Verdana','bold 11px Verdana']);");
    document.writeln("stm_bpx('p3','p1',[1,4,107,-20]);");
    document.writeln("stm_aix('p3i0','p1i0',[0,'MyFonts.com','','',-1,-1,0,'http://www.myfonts.com','_blank']);");
    document.writeln("stm_aix('p3i1','p1i1',[]);");
    document.writeln("stm_aix('p3i2','p1i0',[0,'LetterHeadFonts.com   ','','',-1,-1,0,'http://www.letterheadfonts.com','_blank']);");
    document.writeln("stm_aix('p3i3','p1i1',[]);");
    document.writeln("stm_aix('p3i4','p1i0',[0,'FontHaus.com','','',-1,-1,0,'http://www.fonthaus.com','_blank']);");
    document.writeln("stm_aix('p3i5','p1i1',[]);");
    document.writeln("stm_aix('p3i6','p1i0',[0,'PSB Bracelet','','',-1,-1,0,'http://www.fwadkins.net/extra/']);");
    document.writeln("stm_aix('p3i7','p1i1',[]);");
    document.writeln("stm_aix('p3i8','p1i0',[0,'Coming Soon','','',-1,-1,0,'http://www.fwadkins.net/contact/']);");
    document.writeln("stm_aix('p3i9','p1i1',[]);");
    document.writeln("stm_aix('p3i10','p1i0',[0,'Coming Soon','','',-1,-1,0,'http://www.fwadkins.net/contact/']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p2i1','p1i1',[]);");
    document.writeln("stm_aix('p2i2','p1i0',[0,'Windows Live Space','','',-1,-1,0,'http://fwadkins.spaces.live.com','_blank']);");
    document.writeln("stm_aix('p2i3','p1i1',[]);");
    document.writeln("stm_aix('p2i4','p1i0',[0,'You Tube','','',-1,-1,0,'http://www.youtube.com/user/fwadkins','_blank']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i4','p0i0',[]);");
    document.writeln("stm_aix('p0i5','p0i1',[0,'Files','','',-1,-1,0,'http://www.fwadkins.net/files/']);");
    document.writeln("stm_bpx('p4','p1',[]);");
    document.writeln("stm_aix('p4i0','p1i0',[0,'Cover Flow 1  ','','',-1,-1,0,'http://www.fwadkins.net/portfolio/','_self','','','http://www.fwadkins.net/img07/a1.gif','http://www.fwadkins.net/img07/a1.gif',7,7,0,'','',0,0]);");
    document.writeln("stm_aix('p4i1','p1i1',[]);");
    document.writeln("stm_aix('p4i2','p1i0',[0,'Cover Flow 2','','',-1,-1,0,'http://www.fwadkins.net/portfolio/coverflow/','_blank']);");
    document.writeln("stm_aix('p4i3','p1i1',[]);");
    document.writeln("stm_aix('p4i4','p1i0',[0,'Picture Flow','','',-1,-1,0,'http://www.fwadkins.net/portfolio/PictureFlow4/test.html','_blank']);");
    document.writeln("stm_aix('p4i5','p1i1',[]);");
    document.writeln("stm_aix('p4i6','p1i0',[0,'Sample Menu','','',-1,-1,0,'http://www.fwadkins.net/newmenu/','_blank']);");
    document.writeln("stm_aix('p4i7','p1i1',[]);");
    document.writeln("stm_aix('p4i8','p1i0',[0,'OSX Dock','','',-1,-1,0,'http://www.fwadkins.net/osx-dock/','_blank']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    document.writeln("stm_aix('p0i7','p0i1',[0,'Current Projects','','',-1,-1,0,'http://www.fwadkins.net/projects/']);");
    document.writeln("stm_bpx('p5','p1',[]);");
    document.writeln("stm_aix('p5i0','p1i0',[0,'2010            ','','',-1,-1,0,'http://www.fwadkins.net/2010/']);");
    document.writeln("stm_aix('p5i1','p1i1',[]);");
    document.writeln("stm_aix('p5i2','p1i0',[0,'2009','','',-1,-1,0,'http://www.fwadkins.net/2009/']);");
    document.writeln("stm_aix('p5i3','p1i1',[]);");
    document.writeln("stm_aix('p5i4','p1i0',[0,'2008','','',-1,-1,0,'http://www.fwadkins.net/2008/']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i8','p0i0',[]);");
    document.writeln("stm_aix('p0i9','p0i1',[0,'Miscellaneous','','',-1,-1,0,'http://www.fwadkins.net/stuff/']);");
    document.writeln("stm_bpx('p6','p1',[]);");
    document.writeln("stm_aix('p6i0','p1i0',[0,'Blog             ','','',-1,-1,0,'http://franwadkins.blogspot.com/','_blank']);");
    document.writeln("stm_aix('p6i1','p1i1',[]);");
    document.writeln("stm_aix('p6i2','p1i0',[0,'FTP Upload','','',-1,-1,0,'http://www.fwadkins.net/private/']);");
    document.writeln("stm_aix('p6i3','p1i1',[]);");
    document.writeln("stm_aix('p6i4','p5i4',[0,'Extra','','',-1,-1,0,'http://www.fwadkins.net/extra/']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i10','p0i0',[]);");
    document.writeln("stm_aix('p0i11','p0i9',[0,'Contact Fran','','',-1,-1,0,'http://www.fwadkins.net/contact/']);");
    document.writeln("stm_bpx('p7','p1',[]);");
    document.writeln("stm_aix('p7i0','p5i4',[0,'About Fran     ','','',-1,-1,0,'http://www.fwadkins.net/about/']);");
    document.writeln("stm_aix('p7i1','p1i1',[]);");
    document.writeln("stm_aix('p7i2','p5i4',[0,'Project Quote','','',-1,-1,0,'http://www.fwadkins.net/contact/']);");
    document.writeln("stm_aix('p7i3','p1i1',[]);");
    document.writeln("stm_aix('p7i4','p5i4',[0,'Project Status   ','','',-1,-1,0,'http://www.fwadkins.net/private/']);");
    document.writeln("stm_aix('p7i5','p1i1',[]);");
    document.writeln("stm_aix('p7i6','p5i4',[0,'Calendar','','',-1,-1,0,'http://www.fwadkins.net/calendar/']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i12','p0i0',[]);");
    document.writeln("stm_ep();");
    document.writeln("stm_em();");
    document.writeln("//-->");
    document.writeln("</script>");
    document.writeln("</center>");
    document.writeln("</div>");
    document.writeln("</td>");
    document.writeln("</tr>");
    document.writeln("</table>");

}

/////////////////////////////////////////////////////////////////////
function DisplayNavShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='http://www.fwadkins.net/img07/s1.gif'>");
    document.writeln("    <img SRC='http://www.fwadkins.net/img07/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function DisplayStatus()
{
    document.open();
    document.writeln("<table CELLPADDING='0' CELLSPACING='0' WIDTH='100%' BORDER='0' >");
    document.writeln("  <tr>");
    document.writeln("    <td bgcolor='#FCFCFC'><font size='1'>");
    document.writeln("    <img border='0' src='http://www.fwadkins.net/img07/sp.gif' width='1' height='1'></font></td>");
    document.writeln("  </tr>");
    document.writeln("  <tr>");
    document.writeln("    <td align='left' VALIGN='BOTTOM' bgcolor='#FFFFFF'>");
    document.writeln("      <p align='center' style='margin-top: 8pt; margin-bottom: 2pt; margin-left: 8pt'>        ");
    document.writeln("  	  <a href='http://www.fwadkins.net/index.html' class='sHeadLink'>Home</a><span class='style2'> | </span>");
    document.writeln("  	  <a href='http://www.fwadkins.net/portfolio/cartoons/' class='sHeadLink'>Cartoons</a><span class='style2'> | </span>");
    document.writeln("  	  <a href='http://www.fwadkins.net/portfolio/illustrations/' class='sHeadLink'>Illustrations</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.fwadkins.net/portfolio/graphicdesign/' class='sHeadLink'>Graphic Design</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.fwadkins.net/portfolio/flash/' class='sHeadLink'>Flash</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.fwadkins.net/portfolio/webdesign/' class='sHeadLink'>Web Design</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.fwadkins.net/resources/' class='sHeadLink'>Resources</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.fwadkins.net/stuff/' class='sHeadLink'>Miscellaneous</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.fwadkins.net/contact/' class='sHeadLink'>Contact Fran<img border='0' hspace='4' src='http://www.fwadkins.net/img07/sp.gif' align='absbottom' width='12' height='12'></a> </p>");
    document.writeln("        <table width='800' border='0' style='margin-bottom: 8pt'>");
    document.writeln("        <tr>");
    document.writeln("          <td width='50'><img src='http://www.fwadkins.net/img07/sp.gif' hspace='1' vspace='1' align='bottom'></td>");
    document.writeln("          <td align= 'left' width='800'><br><font size='1'>Copyright &copy; 1992-2011 Fran Wadkins. &nbsp;All rights reserved. <br>");
    document.writeln("            <b><a href='http://www.fwadkins.net/contact/' class='sHeadLink'></a></b>");
    document.writeln("            <a href='http://www.fwadkins.net/calendar/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/calendar/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.fwadkins.net/resources/index.html' class='sHeadLink'>&nbsp</a></font>");
    document.writeln("		  </td>");
    document.writeln("        </tr>");
    document.writeln("      </table>");
    document.writeln("	</td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function DisplayStatusShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='http://www.fwadkins.net/img07/sp.gif'>");
    document.writeln("    <img SRC='http://www.fwadkins.net/img07/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function openPopup(url,x,y){
  if (!x){x=760;};
  if (!y){y=630;};
  window.open(url,null,'toolbar=yes,menubar=no,resizable=yes,scrollbars=yes,width='+x+',height='+y)
}

/////////////////////////////////////////////////////////////////////
function openPopupFixed(url,x,y){
  if (!x){x=760;};
  if (!y){y=630;};
  window.open(url,null,'toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+x+',height='+y)
}


/////////////////////////////////////////////////////////////////////
function PopUnder()
{
//Pop-under window- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script

//specify page to pop-under
var popunder="http://offers.mediahawg.com/mediahawg/"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=1000,height=900,scrollbars=1,resizable=1,toolbar=0,location=0,menubar=0,status=0,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

///No editing beyond here required/////

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

}

