function imgWin(img,iw,ih, it) {
  var ww = iw;
  var wh = ih;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  imgWindow = window.open('','imgWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
  imgWindow.document.write('<html>\n');
  imgWindow.document.write('<head>\n');
  imgWindow.document.write('<title>' + it + '</title>\n');
  imgWindow.document.write('</head>\n');
  imgWindow.document.write('<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">\n');
  imgWindow.document.write('<img src="../images/news/' + img + '.jpg" width="' + iw + '" height="' + ih + '">\n');
  imgWindow.document.write('</body>\n');
  imgWindow.document.write('</html>\n');
  imgWindow.document.close();
  imgWindow.focus();
}
function imgWin2(img,iw,ih, it) {
  var ww = iw;
  var wh = ih;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  imgWindow = window.open('','imgWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
  imgWindow.document.write('<html>\n');
  imgWindow.document.write('<head>\n');
  imgWindow.document.write('<title>' + it + '</title>\n');
  imgWindow.document.write('</head>\n');
  imgWindow.document.write('<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">\n');
  imgWindow.document.write('<img src="../images' + img + '.jpg" width="' + iw + '" height="' + ih + '">\n');
  imgWindow.document.write('</body>\n');
  imgWindow.document.write('</html>\n');
  imgWindow.document.close();
  imgWindow.focus();
}

function vidWin(vid,w,h) {
  var ww = w;
  var wh = h + 16;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  vidWindow = window.open('','vidWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
  vidWindow.document.write('<html>\n');
  vidWindow.document.write('<head>\n');
  vidWindow.document.write('<title>' + vid + '</title>\n');
  vidWindow.document.write('</head>\n');
  vidWindow.document.write('<body bgcolor="#000000" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">\n');
  vidWindow.document.write('<embed src="../../media/quicktime/' + vid + '.mov" controller="true" height="' + wh + '" width="' + ww + '" autoplay="true">\n');
  vidWindow.document.write('</body>\n');
  vidWindow.document.write('</html>\n');
  vidWindow.document.close();
  vidWindow.focus();
}

function newWin(fn,w,h) {
  var ww = w;
  var wh = h;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  newWindow = window.open('http://www.androidlust.com/version/popup.php?section=' + fn,'newWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=1,copyhistory=0');
  newWindow.focus();
}

function prodWin(img,iw,ih) {
  var ww = iw;
  var wh = ih;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  imgWindow = window.open('','imgWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
  imgWindow.document.write('<html>\n');
  imgWindow.document.write('<head>\n');
  imgWindow.document.write('<title>' + img + '</title>\n');
  imgWindow.document.write('</head>\n');
  imgWindow.document.write('<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">\n');
  imgWindow.document.write('<img src="../../content_images/products/' + img + '.jpg" width="' + iw + '" height="' + ih + '">\n');
  imgWindow.document.write('</body>\n');
  imgWindow.document.write('</html>\n');
  imgWindow.document.close();
  imgWindow.focus();
}

function fanWin(img,iw,ih) {
  var ww = iw;
  var wh = ih;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  imgWindow = window.open('','imgWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
  imgWindow.document.write('<html>\n');
  imgWindow.document.write('<head>\n');
  imgWindow.document.write('<title>' + img + '</title>\n');
  imgWindow.document.write('</head>\n');
  imgWindow.document.write('<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">\n');
  imgWindow.document.write('<img src="../../content_images/fanart/' + img + '.jpg" width="' + iw + '" height="' + ih + '">\n');
  imgWindow.document.write('</body>\n');
  imgWindow.document.write('</html>\n');
  imgWindow.document.close();
  imgWindow.focus();
}

function genWin(w,h) {
  var ww = w;
  var wh = h;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  newWindow = window.open('','newWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,copyhistory=0');
  fewWindow.focus();
}

function siteWin(w,h) {
  var ww = w;
  var wh = h;
  var sw = (screen.width * .5) - ((ww * .5) + 10);
  var sh = (screen.height * .5) - ((wh * .5) + 40);
  
  newWindow = window.open('','newWindow','width=' + ww + ',height=' + wh + ',left=' + sw + ',top=' + sh + ',toolbar=0,directories=0,menubar=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
  newWindow.focus();
}