var image = getValue("image");

function popUp(url,name,pwidth,pheight) 
{
 popUpWin = window.open(url,name,"resizeable=yes,scrollbars=auto,status=no,location=no,toolbar=no,width="+pwidth+",height="+pheight+",border=0");
}
function footer() 
{
document.write("&copy; 2008 strikepad :: validate <a href='http://jigsaw.w3.org/css-validator/validator?uri=http://www.strikepad.com'>CSS</a> :: validate <a href='http://validator.w3.org/check?uri=http%3A%2F%2Fwww.strikepad.com%2F'>XHTML</a>");
}
function navigation() 
{
document.write("<div class='titlebox'><a href='index.html' class='logo'><img src='img/logo_sml.gif' alt='Strikepad' border='0'/>   STRIKEPAD</a></div><div class='nav'><div class='menu'><a href='work.html'>WORK</a></div><div class='menu'><a href='pdf/joe_annino_resume.pdf' target='_blank'>RESUME</a></div><div class='menu'><a href='mailto:joe@strikepad.com'>CONTACT</a></div></div>");
}
function getValue(varname)
{
  // First, we load the URL into a variable
  var url = window.location.href;

  // Next, split the url by the ?
  var qparts = url.split("?");

  // Check that there is a querystring, return "" if not
  if (qparts.length == 0)
  {
    return "";
  }

  // Then find the querystring, everything after the ?
  var query = qparts[1];

  // Split the query string into variables (separates by &s)
  var vars = query.split("&");

  // Initialize the value with "" as default
  var value = "";

  // Iterate through vars, checking each one for varname
  for (i=0;i<vars.length;i++)
  {
    // Split the variable by =, which splits name and value
    var parts = vars[i].split("=");
    
    // Check if the correct variable
    if (parts[0] == varname)
    {
      // Load value into variable
      value = parts[1];

      // End the loop
      break;
    }
  }
  
  // Convert escape code
  value = unescape(value);

  // Convert "+"s to " "s
  value.replace(/\+/g," ");

  // Return the value
  return value;
}
