var sImageDomain="http://images.clt20.com";
function setHomePageDet(){

	document.getElementById('d1').innerHTML =g.caption1;
	document.getElementById('mainphotolink').href =g.article_url1;
	document.getElementById('tt2').style.background ="black";
	document.getElementById('tt1').style.background ="#333333";
	document.getElementById('tt3').style.background ="black";


	document.getElementById('m1').src = sImageDomain+"/slideshow_main/"+g.image1;
	document.getElementById('d1').innerHTML = g.caption1;
	document.getElementById('tlink1').href = g.article_url1;
	document.getElementById('t1').src = sImageDomain+"/slideshow_main/"+g.image_thumb1;
	document.getElementById('tsection1').href = g.article_url1;
	document.getElementById('tsection1').innerHTML = g.section_name1;

	document.getElementById('title1').href = g.article_url1;
	document.getElementById('title1').innerHTML = g.title1;

	document.getElementById('tlink2').href = g.article_url2;
	document.getElementById('t2').src = sImageDomain+"/slideshow_main/"+g.image_thumb2;
	document.getElementById('tsection2').href = g.article_url2;
	document.getElementById('tsection2').innerHTML = g.section_name2;

	document.getElementById('title2').href = g.article_url2;
	document.getElementById('title2').innerHTML = g.title2;

	document.getElementById('tlink3').href = g.article_url3;
	document.getElementById('t3').src = sImageDomain+"/slideshow_main/"+g.image_thumb3;
	document.getElementById('tsection3').href = g.article_url3;
	document.getElementById('tsection3').innerHTML = g.section_name3;
	document.getElementById('title3').href = g.article_url3;
	document.getElementById('title3').innerHTML = g.title3;
}

function MouseOver(id)
{
	if(id==1)
	{
		document.getElementById('d1').innerHTML =g.caption1;
		document.getElementById('mainphotolink').href =g.article_url1;
		document.getElementById('tt2').style.background ="black";
		document.getElementById('tt1').style.background ="#333333";
		document.getElementById('tt3').style.background ="black";
		document.getElementById('m1').src=sImageDomain+"/slideshow_main/"+g.image1;
	}
	
	if(id==2)
	{
		document.getElementById('d1').innerHTML =g.caption2;
		document.getElementById('mainphotolink').href =g.article_url2;

		document.getElementById('tt1').style.background ="black";
		document.getElementById('tt2').style.background ="#333333";
		document.getElementById('tt3').style.background ="black";
		document.getElementById('m1').src= sImageDomain+"/slideshow_main/"+g.image2;
	}
	
	if(id==3)
	{
		document.getElementById('d1').innerHTML =g.caption3;
		document.getElementById('mainphotolink').href =g.article_url3;
		document.getElementById('tt2').style.background ="black";
		document.getElementById('tt3').style.background ="#333333";
		document.getElementById('tt1').style.background ="black";
		document.getElementById('m1').src= sImageDomain+"/slideshow_main/"+g.image3;
	}	
}

function MouseOut(id)
{
	if(id==1)
	{
		document.getElementById('tt1').style.background ="#333333";
		document.getElementById('tt2').style.background ="black";
		document.getElementById('tt3').style.background ="black";
	}
	
	if(id==2)
	{
		document.getElementById('tt1').style.background ="black";
		document.getElementById('tt2').style.background ="#333333";
		document.getElementById('tt3').style.background ="black";
	}
	
	if(id==3)
	{
		document.getElementById('tt1').style.background ="black";
		document.getElementById('tt3').style.background ="#333333";
		document.getElementById('tt2').style.background ="black";
	}	
}
function rotateFollows(){  
  var num = Math.floor ( Math.random ( ) * 5 + 1 );
  switch(num){
   case 1:
      document.getElementById("hp-followbox").innerHTML= "<a href=\"http://www.facebook.com/CLT20\" id=\"hp_follow_href\" target=\"_blank\"><img src=\"http://images.clt20.com/images/follows/facebook.jpg\" id=\"hp_follow_box\" border=\"0\"/></a>"
   break;
       case 2:
      document.getElementById("hp-followbox").innerHTML= "<a href=\"http://twitter.com/airtelclt20\" id=\"hp_follow_href\" target=\"_blank\"><img src=\"http://images.clt20.com/images/follows/twitter.jpg\" id=\"hp_follow_box\" border=\"0\"/></a>"
   break;
       case 3:
      document.getElementById("hp-followbox").innerHTML= "<a href=\"http://www.myspace.com/aclt20\" id=\"hp_follow_href\" target=\"_blank\"><img src=\"http://images.clt20.com/images/follows/myspace.jpg\" id=\"hp_follow_box\" border=\"0\"/></a>"
   break;
       case 4:
      document.getElementById("hp-followbox").innerHTML= "<a href=\"http://www.orkut.com/Main#Community.aspx?cmm=93490110\" id=\"hp_follow_href\" target=\"_blank\"><img src=\"http://images.clt20.com/images/follows/orkut.jpg\" id=\"hp_follow_box\" border=\"0\"/></a>"
   break;
       case 5:
      document.getElementById("hp-followbox").innerHTML= "<a href=\"http://www.youtube.com/clt20\" id=\"hp_follow_href\" target=\"_blank\"><img src=\"http://images.clt20.com/images/follows/youtube.jpg\" id=\"hp_follow_box\" border=\"0\"/></a>"
   break;

  } 
 
}