function practice_startajax(val){
    var result;	
    var xmlHttp=null;
	try{    xmlHttp=new XMLHttpRequest();  }// Firefox, Opera 8.0+, Safari
	catch (e) { 														// Internet Explorer
	    try {	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
		catch (e){	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
  		}
	if (xmlHttp==null){ alert("Your browser does not support AJAX!"); exit; } 
    else { 
	myurl = 'practice_rss.php?type=' + encodeURI(val);
	xmlHttp.open("GET", myurl, true);
        xmlHttp.onreadystatechange =  function (){ 
            if (xmlHttp.readyState==4 && xmlHttp.status == 200){ 
                result_dn =  xmlHttp.responseText;
                inobj = document.getElementById('rss_result');
                inobj.innerHTML = result_dn;

            }
        }
        xmlHttp.send(null);
    }
}
function init(){
 practice_startajax(page_feed);
 //load_img();
}
function load_img(){
 var a = 1;
}

document.write("<div id='test_box' style='position:absolute;padding:5px;z-index:-100;margin-left:-1000px;font-weight:bold;width:420px;font-size:12px;line-height:14px;color:white'></div>");

opened_result_box = -1;


function view_result(id){
   
    if (opened_result_box != -1){
       
        document.getElementById("sub_result_" + opened_result_box ).style.height = "1px";
        document.getElementById("sub_result_" + opened_result_box ).style.display = "none";
        document.getElementById("result_" + opened_result_box ).style.backgroundColor = "#efefef";
        document.getElementById("linky_" + opened_result_box).style.color = "black";
        
    }
    opened_result_box = id;
    var result_obj = document.getElementById("result_" + id);
    result_obj.style.backgroundColor="white";
    document.getElementById("linky_" + id).style.color = "#9d1014";
    var sub_result_obj = document.getElementById("sub_result_" + id);
    var test_obj  = document.getElementById("test_box");

    test_obj.innerHTML = sub_result_obj.innerHTML;
    sub_result_obj.innerHTML = "";

    var final_height = test_obj.offsetHeight;
    sub_result_obj.style.height = "1px";
    sub_result_obj.style.display="block";
    sub_result_obj.innerHTML = test_obj.innerHTML;
    go(sub_result_obj,final_height);
}

function go(obj, h){
    divobj = obj;
    fh = h;
    var curH = divobj.offsetHeight;
    if (curH < fh){
        divobj.style.height = (curH + 3) + "px";
        setTimeout("go(divobj,fh)",1);
    }else{
	//alert(curH + " " + h);
	divobj.style.height = h + "px";
	//alert(divobj.offsetHeight);
    }

}
function m_in(imgObj){
 imgObj.src = imgObj.src.replace("_off","_on");
}
function m_out(imgObj){
 imgObj.src = imgObj.src.replace("_on","_off");
}
 function show_blog_box(){
  document.getElementById("top_address").style.display = "none";
  document.getElementById("bbox").style.display = "block";
 }
 function hide_blog_box(){
  document.getElementById("top_address").style.display = "inline";
  document.getElementById("bbox").style.display = "none";
 }