function NewWindow3(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 4;
  var wint = (screen.height - h) / 3;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function goNewWin(newadd) {
  // Set height and width
  var NewWinHeight=Math.min(screen.height+20, 1200);
  var NewWinWidth=Math.min(screen.width, 1400);

  // Place the window
  var NewWinPutX=0;
  var NewWinPutY=0;

  //Get what is below onto one line

  TheNewWin =window.open(newadd,'TheNewpop','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); 

  //Get what is above onto one line

  TheNewWin.resizeTo(NewWinWidth,NewWinHeight);
  TheNewWin.moveTo(NewWinPutX,NewWinPutY);

  TheNewWin.focus();
  return false;
}


menuURL=new Array;
menuURL[0]="http://www.scottkay.com/sk30swf.html"; // 30 sec flash format for MSIE
menuURL[1]="http://www.scottkay.com/sk30mov.html";  // 30 sec .mov format for MAC, iPhone, iPad & Blackberry
menuURL[2]="http://www.scottkay.com/sk30flv.html";  // 30 sec .flv format for Android


function NewWindow(x) {
  var winl = (screen.width - 640) / 4;
  var wint = (screen.height - 545) / 3;
  var myname = "page";
  mypage = menuURL[x];
  winprops = 'height='+545+',width='+640+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


menuURL2=new Array;
menuURL2[0]="http://www.scottkay.com/sk120swf.html"; // 120 sec flash format for MSIE
menuURL2[1]="http://www.scottkay.com/sk120mov.html";  // 120 sec .mov format for MAC, iPhone, iPad & Blackberry
menuURL2[2]="http://www.scottkay.com/sk120flv.html";  // 120 sec .flv format for Android

function NewWindow2(y) {
  var winl = (screen.width - 640) / 4;
  var wint = (screen.height - 545) / 3;
  var myname = "page";
  mypage = menuURL2[y];
  winprops = 'height='+545+',width='+640+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function sniffer() {
  var x = 0;
var y = 0;
if(navigator.userAgent.indexOf('Mac') != -1) 
{  
x = 1;
y = 1;
}
if(navigator.userAgent.indexOf('Android') != -1)
{  
x = 2;
y = 2;
}
if(navigator.userAgent.indexOf('Blackberry') != -1)
{  
x = 1;
y = 1;
}

}
