/* pro.js */

function switchtab(newtab) {
  var thetab = document.getElementById(newtab);
  var tab1 = document.getElementById("tab1");
  var tab1link = document.getElementById("tab1link");
  var tab2 = document.getElementById("tab2");
  var tab2link = document.getElementById("tab2link");
  var tab3 = document.getElementById("tab3");
  var tab3link = document.getElementById("tab3link");
  
  if (thetab == tab1) {
    tab1.style.display = "block";
    tab1.style.visibility = "visible";
    tab1link.className = "tabselected";
  } else {
    tab1.style.display = "none";
    tab1.style.visibility = "hidden";
    tab1link.className = null;
  }

  if (thetab == tab2) {
    tab2.style.display = "block";
    tab2.style.visibility = "visible";
    tab2link.className = "tabselected";
  } else {
    tab2.style.display = "none";
    tab2.style.visibility = "hidden";
    tab2link.className = null;
  }
  
  if (thetab == tab3) {
    tab3.style.display = "block";
    tab3.style.visibility = "visible";
    tab3link.className = "tabselected";
  } else {
    tab3.style.display = "none";
    tab3.style.visibility = "hidden";
    tab3link.className = null;
  }
}

function rotatememberquote(thediv, quotednum) {
  var memberquote = document.getElementById(thediv);

  var quotenum = 0;
  
  if (quotednum == undefined) {
    quotenum = Math.floor(Math.random()*4);
  } else if (quotednum < 3) {
    quotenum = quotednum + 1;
  }
  
  var login, quotestyle, quote, attribstyle, name, title = "";
  
  switch (quotenum) {
    case 0:
      login = "eneumann";
      quote = "Thanks, VisualCV. I landed my next home in less than 4 weeks as opposed to the 6 months most Executive recruiting firms expected that this would take.";
      name = "Eli Neumann,";
      title = "VP Global Pre-Sales, NetSuite";
      break;
    case 1:
      login = "carolrn2";
      quotestyle = "padding-top:20px";
      quote = "Using my VisualCV as my resume I got my new job over the phone during the first interview!";
      attribstyle = "padding-top:12px";
      name = "Carol Anderson, RN, BSN, CHPN";
      title = "";
      break;
    case 2:
      login = "kevinkelly";
      quotestyle = "padding-top:20px";
      quote = "VisualCV is fresh and relevant to a new generation of leaders.";
      name = "Kevin Kelly,";
      title = "CEO, Heidrick &amp; Struggles";
      break;
    case 3:
      login = "ariherzog";
      quote = "Join VisualCV to transform your meaningless one-dimensional resume into a 3-D visual representation of who you are.";
      attribstyle = "padding-top:10px";
      name = "Ari Herzog,";
      title = "Social Media Consultant";
      break;
  }

  var quotehtml = "";

  quotehtml += '<div class="examplethumb">';
  quotehtml += '<a href="/' + login + '">';
  quotehtml += '<img src="/www/images/home_200811/' + login + '.png" width="130" height="140" border="0" />';
  quotehtml += '</a></div>'
  quotehtml += '<div class="quote" onclick="rotateonclick();">';
  quotehtml += '<p style="' + quotestyle + '">&ldquo;' + quote + '&rdquo;</p>';
  quotehtml += '<div class="attrib"><p style="' + attribstyle + '">&ndash; ' + name + '<br />';
  quotehtml += '<span style="color:#ffffff">&ndash;</span>' + title + '</p></div></div>';
  
  memberquote.innerHTML = quotehtml;
  
  return quotenum;
}



