// JavaScript Document

 function getSelected(opt) {
            var selected = new Array();
            var index = 0;
            for (var intLoop = 0; intLoop < opt.length; intLoop++) {
               if (opt[intLoop].checked) {

                 index = selected.length;
                 selected[index] = new Object;
                 selected[index].value = opt[intLoop].value;
                 selected[index].index = intLoop;
               }
            }
            return selected;
         }


      function os(opt,langID) {
		  
		  
            var sel = "1";
			var strSel = "&lid=" + opt;
			
			    var sel = document.getElementById('ch' + opt).checked;
			    if (sel) {
				    //document.getElementById('leagues').innerHTML = "<img src='img/loadPrice.gif' />";
				    var cont = document.getElementById('content');
				    if (cont != null) {
				        var odds = document.getElementById('odds');
				        odds.removeChild(cont);
				        odds.innerHTML = "<div class='title'><img src='images/bet_title.gif' width='350' height='25' /></div><div class='ccline'><img src='images/blank.gif' width='1' height='1' /></div>" + odds.innerHTML;
			        }
			        document.getElementById('ch' + opt).disabled = true;
				    var ld = "sp/load_odds.aspx?lang="+langID + strSel;
				    ajx2(ld,'2');
			    } else {
			      document.getElementById('ch' + opt).disabled = true;
			      delleagues(opt);
			    };
			}
			
			function os1(opt,langID) {
	  
            var sel = "1";
			var strSel = "&lid=" + opt;
			
				    var cont = document.getElementById('content');
				    if (cont != null) {
				        var odds = document.getElementById('odds');
				        odds.removeChild(cont);
				        odds.innerHTML = "<div class='title'><img src='images/bet_title.gif' width='350' height='25' /></div><div class='ccline'><img src='images/blank.gif' width='1' height='1' /></div>" + odds.innerHTML;
			        }
				    var ld = "sp/load_odds.aspx?lang="+langID + strSel;
				    ajx2(ld,'2');
			    /*} else {
			      delleagues(opt);
			    };*/
			}
			

function selectALL(){
window.location = "coefs.aspx?id=all";
			}

		function resetALL() {

			alert("now reseting");	
		}
		

function sho(id)
{

  var leagueTeamsID = "a" + id;
  var el = document.getElementById(leagueTeamsID);
  var arrow = document.getElementById("aimg_" + id);
  var atrb = el.getAttribute("visible");
        
        if(atrb == "1" )
        {
            el.style.display = "none";
            arrow.src = "images/dot.gif";
            el.setAttribute("visible",null);
                        
        }else{
        
            el.style.display = "block";
            arrow.src = "images/dot_1.gif";
            el.setAttribute("visible","1");
        
        }
  
}

// Left  menu atributes 

function ov(id)
{
	document.getElementById(id).className = "over";
}

function ov1(id)
{
	document.getElementById(id).className = "country";
}

 
		
