/*
Page:           get_list.js
Created:        Aug 2007
Handles actions and requests for Text Descriptions.	
--------------------------------------------------------- 

--------------------------------------------------------- */


function get_list(type) {
	
    xmlhttp.open('get', 'lib/get_list.php?media_type='+type);

    xmlhttp.onreadystatechange = handleResponse2;
    xmlhttp.send(null);	
}

function handleResponse2() {
  if(xmlhttp.readyState == 4){
		if (xmlhttp.status == 200){
       	
        var response2 = xmlhttp.responseText;
		changeText2('cats', response2)
        //alert(response);
        }
    }
}

function changeText2( div2show, text ) {
    // Detect Browser
    var IE = (document.all) ? 1 : 0;
    var DOM = 0; 
    if (parseInt(navigator.appVersion) >=5) {DOM=1};

    // Grab the content from the requested "div" and show it in the "container"
    if (DOM) {
        document.getElementById(div2show).innerHTML = text;
    }  else if(IE) {
        //document.getElementById('description').innerHTML = text;
		document.all[div2show].innerHTML = text;
		//description.innerHTML = text;
    }
}


