var MediaData = new Array();
function makeData(CorbisID, Width, Height)
{
    this.CorbisID = CorbisID;
    this.Width = Width;
    this.Height = Height;
    return true;
}
function addBookmark(title, url)
{
  if(window.sidebar) window.sidebar.addPanel(title, url, "");
  else if(document.all) window.external.AddFavorite(url, title);
}

function setCookie(name,value,expiredays)
{
  var exdate=new Date();
  exdate.setDate(exdate.getDate()+expiredays);
  document.cookie=name+ "=" +escape(value)+
    ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
function verifyEmail(form) {
 checkEmail = form.email_address.value;
 if ((checkEmail.length < 5) ||
     (checkEmail.indexOf('@') < 1) ||
     (checkEmail.indexOf('.') < 1)) {
   alert("Please enter a valid email address.");
   form.email_address.select();
   return false;
 }
 return true;
}
function getCookie(name)
{
  if (document.cookie.length>0)
  {
    c_start=document.cookie.indexOf(name + "=");
    if (c_start!=-1)
    {
      c_start=c_start + name.length+1;
      c_end=document.cookie.indexOf(";",c_start);
      if (c_end==-1) c_end=document.cookie.length;
      return unescape(document.cookie.substring(c_start,c_end));
    }
  }
  return "";
}
function showCouponPopup(url)
{  nw = window.open(url, "CouponPopup", "toolbar=0,scrollbars=0,location=0,status=no,menubar=0,resizable=0,width=400,height=200");
  nw.focus();
  return true;}
function merch_desc(make,id)
{
  if (make=='on') {type1='inline'; type2='none';}
   else {type1='none'; type2='inline';}
  if (document.layers)
  {
    document.layers['merch_desc'+id].style.display=type1;
    document.layers['merch_desc_off'+id].style.display=type2;
  }
  else if (document.all)
  {
    document.all['merch_desc'+id].style.display=type1;
    document.all['merch_desc_off'+id].style.display=type2;
  }
  else if (document.getElementById)
  {
    document.getElementById('merch_desc'+id).style.display=type1;
    document.getElementById('merch_desc_off'+id).style.display=type2;
  }
}

function check_alert(cid) {
  if(document.getElementById('alert_'+cid).checked) {
    document.getElementById('cdaily_'+cid).checked = true;
  } else {
     document.getElementById('cdaily_'+cid).checked = false;
     document.getElementById('cweekly_'+cid).checked = false;
  }
 }
function check_ralert(cid) {
  if(document.getElementById('cdaily_'+cid).checked || document.getElementById('cweekly_'+cid).checked) {
    document.getElementById('alert_'+cid).checked = true;
  }
}

 function remove() {
   var n=document.getElementById('q');
   n.style.color = "#C3C3C3";
   n.style.fontWeight = "normal";
 }

 function chenge() {
   var n=document.getElementById('q');
   n.style.color = "#27404a";
   n.style.fontWeight = "bold";
 }
 
 function eremove() {
   var n=document.getElementById('email_address');
   n.style.color = "#C3C3C3";
 }
 function echenge() {
   var n=document.getElementById('email_address');
   n.style.color = "#27404a";
}
 