
<!-- Hide this script from old browsers -
function Remote1() {
  popupWin = window.open('http://www.bigscreencenter.com/SearchResults.asp?Cat=1','windowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=760,height=500')
}

function Remote2() {
  popupWin = window.open('http://www.bigscreencenter.com','windowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=760,height=500')
}

function Remote3() {
  popupWin = window.open('http://www.bigscreencenter.com/SearchResults.asp?Cat=4','windowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=760,height=500')
}

function Remote4() {
  popupWin = window.open('http://www.mountcenter.com','windowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=760,height=500')
}

function Remote5() {
  popupWin = window.open('http://www.standsandcarts.com','windowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=760,height=500')
}

function Remote6() {
  popupWin = window.open('http://www.bigscreencenter.com/SearchResults.asp?Cat=184','windowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=760,height=500')
}
function Remote7() {
  popupWin = window.open('http://www.projectorlampcenter.com/quant_discounts.asp','windowName','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=296')
}


function Remote27() {
  popupWin = window.open('http://www.projectorlampcenter.com/misapplication.asp','windowName','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=600')
}

function Remote28() {
 popupWin = window.open('http://www.projectorlampcenter.com/free_shipping_help.asp', 'windowName', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=250');
}

function Remote30() {
 popupWin = window.open('http://www.projectorlampcenter.com/relamping_tips.asp', 'windowName', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=442,height=430');
}

function Remote31() {
 popupWin = window.open('http://www.projectorlampcenter.com/quickship.asp?Click=84844', 'windowName', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=495,height=370');
}
// Done hiding -->



	/* Sort Lists Alphabetically */
$(document).ready(function(){
              $('.selectBox').each(function(){
                      var me = $(this);
                      var listitems = me.children('option').sort(function(a, b) {
   
                         var compA = $(a).text().toUpperCase();
   
                         var compB = $(b).text().toUpperCase();
   
                         return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;
   
                      });
                      $.each(listitems, function(idx, itm) { me.append(itm); });
   
              });
  
      });
	/* Sort Child Lists */
	function sortSelects(){
              $('.selectBox').each(function(){
                      var me2 = $(this);
                      var listitems2 = me2.children('option').sort(function(a2, b2) {
   
                         var compA2 = $(a2).text().toUpperCase();
   
                         var compB2 = $(b2).text().toUpperCase();
   
                         return (compA2 < compB2) ? -1 : (compA2 > compB2) ? 1 : 0;
   
                      });
                      $.each(listitems2, function(idx, itm) { me2.append(itm); });
   
              });
}
	/* Select Process Models */
	function dynamic_SelectML(ajax_page, allModelBrands)
	{
		$.ajax({
		type: "GET",
		url: ajax_page,
		data: "P=" + allModelBrands,
		dataType: "text/html",
		success: function(html){       $("#listResult").html(html);  }
	  }); }
	/* Select Process Lamps */
	function dynamic_SelectLL(ajax_page2, allLampBrands)
	{
		$.ajax({
		type: "GET",
		url: ajax_page2,
		data: "PL=" + allLampBrands,
		dataType: "text/html",
		success: function(html){       $("#listResult2").html(html);  }
	  }); }


<!-- Hide Unavailable Add to Cart -->
$(document).ready(function(){

    $('p', 'body')
        .andSelf()
        .contents()
        .filter(function(){
            return this.nodeType === 3;
        })
        .filter(function(){
            // Only match when contains anywhere in the text
            return this.nodeValue.indexOf('Currently Unavailable') != -1;
        })
        .each(function(){
            // Do something with this.nodeValue
$(this).closest("tr").siblings("tr").find('input.newATC').hide();
$(this).closest("tr").siblings("tr").find('span.newQTY').hide();
        });

 });
