// JavaScript Document



function popitup(url) {
	newwindow=window.open(url,'name','height=360,width=392');
	if (window.focus) {newwindow.focus()}
	return false;
}



<!-- Show/Hide Toggle for Commercial Packages / Cricket / Whatever Else -->

   function showLineup(lineupName,type){
        if(type == 'toggle'){
		
			if($('#lineup_'+lineupName).css('display') == 'block'){
		  		$('#lineup_'+lineupName).slideToggle();
		  
			}
		  
			else {
		    	$('div.channel_lineup:visible').slideToggle();
       			$('#lineup_'+lineupName).slideToggle();
	   		}
	    }
        
    }


<!-- Show/Hide Toggle for Cable - closes divs -->




    function showCable_Block(cableName,type){
        if(type == 'toggle'){
		
			if($('#divblock_'+cableName).css('display') == 'block'){
		  		$('#divblock_'+cableName).slideUp();
		  
			}
		  
			else {
		    	$('div.divblock:visible').slideUp();
       			$('#divblock_'+cableName).slideDown();
	   		}
	    }
        
    }



<!--rollover for left column order, also not working -->

if(document.images) {
	image91 = new Image; image92 = new Image;
	image81 = new Image; image82 = new Image;
	image71 = new Image; image72 = new Image;

	image91.src = "/images/st2_left_order_02.gif";
	image92.src = "/images/st2_left_order_02_roll.gif";
	image81.src = "/images/st2_left_order_esp.gif";
	image82.src = "/images/st2_left_order_esp_roll.gif";
	image71.src = "/images/acn/st2_left_order.gif";
	image72.src = "/images/acn/st2_left_order_roll.gif";
	

}

function swapOn(imgLocation) {
  if(document.images) {
    document.images[imgLocation].src = eval(imgLocation + "2.src");
 }
}

function swapOff(imgLocation) {
  if(document.images) {
    document.images[imgLocation].src = eval(imgLocation + "1.src");
  }
}
<!--end rollover-->

<!--SHOW AND HIDE FOR SPORTS/XM -->


var ids=new Array('a1','a2','a3','a4','a5','a6','a7','a8','a9','a10','a11','a12','a13','a14','a15','a16','a17','a18','a19','a20','a21','a22','a23','a24','a25','a26','a27','a28','a29','a30','a31','a32','a33','a34','a35');

var idx=new Array('x1','x2','x3','x4','x5','x6','x7','x8','x9','x10','x11','x12','x13','x14','x15','x16','x17','x18','x19','x20','x21','x22','x23','x24','x25','x26','x27','x28','x29','x30','x31','x32','x33','x34','x35','x36','x37','x38','x39','x40','x41','x42','x43','x44','x45','x46','x47','x48','x49','x50','x51','x52','x53','x54','x55','x56','x57','x58','x59','x60','x61','x62','x63','x63','x64','x65','x66','x67','x68','x69','x70','x71','x72','x73');

var idc=new Array('pkg','premier','plus_hd','plus','choice_xtra','choice','family');


function switchid(id){
	  if (document.getElementById){
		target = document.getElementById(id);
           if (target.style.display == 'block'){
              target.style.display = 'none';
		   }
	  
			  else {
				hideallids();
				showdiv(id);
			  }
	  }
}

function switchidx(id){
	  if (document.getElementById){
		target = document.getElementById(id);
           if (target.style.display == 'block'){
              target.style.display = 'none';
		   }
	  
			  else {
				hideallidx();
				showdiv(id);
			  }
	  }
}

function hideallidx(){
	for (var i=0;i<idx.length;i++)
	{
		hidediv(idx[i]);	
	}
}

function hideallids(){
	for (var i=0;i<ids.length;i++)
	{
		hidediv(ids[i]);
	}		  
}

function switchidc(id){
	  if (document.getElementById){
		target = document.getElementById(id);
				{
				hideallidc();
				showdiv(id);
			  }
	  }
}

function hideallidc(){
	for (var i=0;i<idc.length;i++)
	{
		hidediv(idc[i]);	
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}



<!--rollover script for forms-->

function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
 // unhide -->


<!--end rollover script-->



        function IPOS_showProcessingBlock(){
            $.blockUI($('#iposProgressBar')[0],{width: '250px', height: '80px', background: '#fff', border: 'none'});
        }
		








