function swapImg(obj){
	imgObj = obj.getElementsByTagName("img");
	for(i=0;i<imgObj.length;i++) {			
		imgSrc = imgObj[i].src;
		
		if (imgSrc.match("images_sm")) {
			imgObj[i].src = imgObj[i].src.replace('images_sm','images_md');
		} else if (imgSrc.match("images_md")) {
			imgObj[i].src = imgObj[i].src.replace('images_md','images_sm');
		}

		if (imgSrc.match("but_plus")) {
			imgObj[i].src = imgObj[i].src.replace('but_plus','but_minus');
		} else if (imgSrc.match("but_minus")) {
			imgObj[i].src = imgObj[i].src.replace('but_minus','but_plus');
		}
	}
}

function getScriptPage(obj) {
	myChildren = obj.getElementsByTagName("p");
	for(i=0;i<myChildren.length;i++) {			
		if (myChildren[i].className=='innerContent'){
			subject_id = myChildren[i].id;
			contentObj = myChildren[i];
			break;
		}
	}
	
	//swapImg(obj);	
	//document.getElementById(subject_id).style.display=(document.getElementById(subject_id).style.display!="block")? "block" : "none"

/*	
	if (contentObj.innerHTML != '') {
		swapImg(obj);
		contentObj.innerHTML = '';
	} else {
		myid = obj.id;
		var myQry = new Array();
		myQry = myid.split("-");

		qry = 'table=' + myQry[0] + '&id=' + myQry[1];
		//http.open("GET", "includes/ajax.php?" + qry, true);
		//http.onreadystatechange = handleHttpResponse;
		//http.send(null);
	}
	*/
}	


