<!--

function openWin(expDays, refCode) {

  if (document.cookie.indexOf("zmedia_"+refCode) == -1) {
    var expdate = new Date((new Date()).getTime() + 86400000*expDays);
    document.cookie="zmedia_"+refCode+"; expires=" + expdate.toGMTString() + "; path=/;";
    win=window.open("http://popup.zmedia.com/popups/"+refCode+"?v=blue1",'zmedia','width=530,height=390');
    parent.focus();
    if (!win.opener) { win.opener=self; }
  }

}

//-->

