var selectedImg;
var channel;
var onChannel;
var page;

////////////////////////////////////////////////////////////////////////
// image rollover functions
////////////////////////////////////////////////////////////////////////

function preLoadImages(ary) {
	var imgAry = new Array();

	for(var i=0; i<ary.length; i++) {
		imgAry[i] = new Image;
		imgAry[i].src = "../images/" + ary[i] + "_o.gif";
	}
}

///////////////////////////////////////////////////////
function mover(name) {

	if (document.images) {
		if (name != selectedImg) {document.images[name].src = "../images/" + name + "_o.gif";}
	        else { document.images[name].src="../images/" + name + "_sel.gif";}
	}
}

///////////////////////////////////////////////////////
function mout(name) {
	if (document.images) {
		
		if (name != selectedImg) document.images[name].src = "../images/" + name + ".gif";
	        else if(name==selectedImg){ document.images[name].src="../images/" + name + "_sel.gif";}
	}
}


///////////////////////////////////////////////////////
function selectDefaultImage(name) {
	
	selectedImg=name;
	if (document.images) {
	
	document.images[name].src ="../images/" + name + "_sel.gif" ;
	        
	}

}


///////////////////////////////////////////////////////
// Used for the maps in the products sections that cause an unrelated image to change
function swap_image(imgName, imgIn) {
	if (document.images) {
                var imgInSrc = "../images/" + imgIn + "_o.gif";
                if (document.images[imgName].src != imgInSrc) {
                        document.images[imgName].src = imgInSrc;
                }
	}
}


///////////////////////////////////////////////////////////
  //LeftNav functionality related functions 
///////////////////////////////////////////////////////////


// Used to submit login form
  
  function submitForm(){

  document.login.submit();
 
 }
 
 
 //Used to get URL & TITLE details and submit the send a link form
 
   function details(){
    
    document.tellfriend.docTitle.value=document.title;
    document.tellfriend.url.value=document.URL;
    alert("title->"+document.title+"  url->"+document.URL);
    document.tellfriend.submit();
  } 
