
var Vtotal_available_porn_ads = 2;

function spawn_popups(Vnumber)
{
  for(var Vcount = 0; Vcount < Vnumber; Vcount++)
  {
    window.open('http://dev.polydistortion.net/egotist/porn_popup.html','_blank','scrollbars=no,width=200,height=200');
  }
}

function randomise_porn()
{
  var o_porn_ad = document.all.item('porn');
  
  o_porn_ad.src = "http://dev.polydistortion.net/egotist/graphics/porn_ad_" + Math.ceil(Math.random() * Vtotal_available_porn_ads) + ".gif";
}

function info(Vtarget)
{
  window.open(Vtarget,'blank','scrollbars=yes,width=485,height=580');
}

function toggle_months()
{
  var o_folders = document.all.item('months');
  var o_button = document.all.item('b_toggle_months');
    
  if(o_folders.style.display == "none")
  {
    o_folders.style.display = "inline-block";
    o_button.value = "<< Hide Folders";
  }
  else
  {
    o_folders.style.display = "none";
    o_button.value = ">> Show Folders";
  }
}

function webSearch(Vtarget)
{
  Vtarget = "http://www.google.com.au/search?q=" + escape(Vtarget + ' death');
  window.open(Vtarget, '_blank');
  window.event.returnValue = false;
}
