// JavaScript Document

window.addEvent('domready', function(){
var scroll = new Scroller('thumbnails', {area: 100, velocity: .1});
$('thumbnails').addEvent('mouseenter', scroll.start.bind(scroll));
$('thumbnails').addEvent('mouseleave', scroll.stop.bind(scroll));
});

function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function popupWindow(url) {
  if(window.open){
    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=480,height=520,screenX=150,screenY=150,top=150,left=150');
    return false;
  }else{
    return true;
  }
}

function popupWindow2(url) {
  if(window.open){
    window.open(url,'popupWindow2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=480,height=740,screenX=150,screenY=150,top=150,left=150');
    return false;
  }else{
    return true;
  }
}

function popupWindow3(url) {
  if(window.open){
    window.open(url,'popupWindow3','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=480,height=520,screenX=150,screenY=150,top=150,left=150');
    return false;
  }else{
    return true;
  }
}

function popupWindow4(url) {
  if(window.open){
    window.open(url,'popupWindow3','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=410,height=380,screenX=150,screenY=150,top=150,left=150');
    return false;
  }else{
    return true;
  }
}


function checkMain(){
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.LittleJoeForm.email.value)){ ; } else{ alert("Invalid E-mail Address! Please re-enter."); return (false); }
return true;
}
function check(){
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form.subscribe.value)){ ; } else{ alert("Invalid E-mail Address! Please re-enter."); return (false); }
return true;
}

