//hide from non-Javascript-enabled browsers  
  
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_openBrWindow1(theURL,winName,features) { //v2.0
  
  window.open("vidpopup.asp"+theURL,winName,features);

}


var upimage ="images/bttn_shortlist.jpg";
var downimage = "images/bttn_shortlist_dn.jpg";

// images before click
var up=new Image();
var down=new Image();
var isOn=false;

up.src=upimage;
down.src=downimage ;
  
function toggle(num) 
{
	//alert(document.getElementById("image"+num).src);
  isOn= document.addtocart.elements['checkBox'][num].value!="";
  if (!isOn) 
  {
	// Work for IE & Mozilla
	document.getElementById("image"+num).src=downimage ;
	document.addtocart.elements['checkBox'][num].value=document.addtocart.elements['checkedData'][num].value;
	// Only work on IE
    //document.addtocart.elements['image'+num].src=downimage ;
	//document.addtocart.elements['checkBox'][num].value=document.addtocart.elements['checkedData'][num].value;
 		
      // parent.con.location.reload();
    //alert(document.addtocart.elements['checkBox'][num].value)
  }
  else {
    document.getElementById("image"+num).src=upimage;
    document.addtocart.elements['checkBox'][num].value="";
	//alert(document.addtocart.elements['checkBox'][num].value)
    //parent.con.location.reload();
	 
   
  } 
  //alert(document.addtocart.elements['checkBox'][num].value);
   
}
 
function addToCart() {
  var first = false; // if we have added a service
  var i;
  var outstring="";
  var firstone=true;
  
  for (i=0;i<document.addtocart.elements['checkBox'].length;i++) {
    if (document.addtocart.elements['checkBox'][i].value!="") {
      if (firstone) {
        outstring=outstring + document.addtocart.elements['checkBox'][i].value;
        firstone = false
      }  
      else
        outstring=outstring + "," +document.addtocart.elements['checkBox'][i].value;
      }  
    } 
  document.addtocart.SelectedItems.value=outstring;

  var url=new String(document.addtocart.action)
  if (url.indexOf("?") == -1)
    document.addtocart.action += "?nav=no"
    document.addtocart.submit();
}

function addNjump(url) {
  document.addtocart.action = document.addtocart.action+url+"&nav=yes";
  addToCart(); 	
}

function show(object,val) { 
  document.getElementById(object).style.visibility = val; 
} 

// done hiding
