function uniqid()
    {
    var newDate = new Date;
    return newDate.getTime(); 
    }




function load_slider_content(x,y)
{
    document.getElementById('slider_pic').innerHTML='<img src="images/ls.gif">';
    document.getElementById('slider_topic').innerHTML='';
    document.getElementById('slider_det').innerHTML='<div style="text-align:center; width:430px;"><img src="images/ls.gif"></div>';

 /// loading pic
 document.getElementById('slider_pic').innerHTML='<img width="455" height="200" src="slider_thumbnail.php?id='+x+'">';
 
   document.getElementById('cur_0').setAttribute("class","");
   document.getElementById('cur_1').setAttribute("class","");
   document.getElementById('cur_2').setAttribute("class","");
   document.getElementById('cur_3').setAttribute("class","");
   document.getElementById('cur_4').setAttribute("class","");
  

  document.getElementById('cur_'+y).setAttribute("class","selected_pic");

 
 load_slider_topic(x);
  load_slider_det(x);
 
}



function load_slider_topic(x)
{
    

     var xmlHttp2 ;
if (window.ActiveXObject) 
{xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");}
else if (window.XMLHttpRequest) 
{xmlHttp2 = new XMLHttpRequest();}

var url2="ajax/load_slider_topic.php?id="+x+"&ignoreme="+uniqid() ;
xmlHttp2.open("GET",url2,true) ;
xmlHttp2.send(null) ;

xmlHttp2.onreadystatechange=k


function k()
{

if (xmlHttp2.readyState==4)
{
            document.getElementById('slider_topic').innerHTML=xmlHttp2.responseText
}

} 
}

function load_slider_det(x)
{
    

     var xmlHttp2 ;
if (window.ActiveXObject) 
{xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");}
else if (window.XMLHttpRequest) 
{xmlHttp2 = new XMLHttpRequest();}

var url2="ajax/load_slider_det.php?id="+x+"&ignoreme="+uniqid() ;
xmlHttp2.open("GET",url2,true) ;
xmlHttp2.send(null) ;

xmlHttp2.onreadystatechange=k


function k()
{

if (xmlHttp2.readyState==4)
{
            document.getElementById('slider_det').innerHTML=xmlHttp2.responseText
}

} 
}





