function popUpPopup(URL) {
   remote = window.open(URL, 'POPUP', 'toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width=517,height=500');
   if (remote.opener == null) remote.opener = window;
   remote.opener.name = "main_window";
}
function HotLink(URL) {
   remote = window.open(URL, 'Hot Link', 'toolbar=1,scrollbars=1,location=1,status=1,menubar=1,resizable=1,width=517,height=500');
   if (remote.opener == null) remote.opener = window;
   remote.opener.name = "main_window";
}
function popUpPopup2(URL) {
   remote = window.open(URL, 'POPUP2', 'toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width=517,height=250');
   if (remote.opener == null) remote.opener = window;
   remote.opener.name = "main_window";
}
function popUpEnterToWin(URL) {
   remote = window.open(URL, 'EnterToWin', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=500,height=324');
   if (remote.opener == null) remote.opener = window;
   remote.opener.name = "main_window";
}
function setCookie(name, value, days) {
   var expire = new Date();
   expire.setTime(expire.getTime() + (60*60*24*days*1000));
   document.cookie = name + "=" + expire.toGMTString() + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) + "; path=/";
}
function getCookie(Name) {
   var search = Name + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search) 
      if (offset != -1) { // if cookie exists 
         offset += search.length 
         // set index of beginning of value
         end = document.cookie.indexOf(";", offset) 
         // set index of end of cookie value
         if (end == -1) 
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      } 
   }
}
function entertowin() {
  if (getCookie("vmentertowin") == null) {
    setCookie("vmentertowin", "true", 30);
    sliderStartup();
  }
}
// entertowin();