function change_styles(val,img_id,main_id)
{
var styles = val;
var img_name = img_id;
var img_main_id = main_id - 1;

var myLink=new Array();

//Lakme Zone
myLink[0]="<table width='422' border='0' cellspacing='0' cellpadding='0'><tr><td height='285' valign='top' background='/znd/images/inside_page/main_news_pix.jpg' style='background-repeat:no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><img src='/znd/images/b.gif' alt='' width='10' height='210' border='0'></td></tr><tr><td valign='top'><div class='white_12' style='margin-left:20px;margin-right:30px;'>text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here news1 news1 news1</div></td></tr></table></td></tr></table>";

//Lakme Zone
myLink[1]="<table width='422' border='0' cellspacing='0' cellpadding='0'><tr><td height='285' valign='top' background='/znd/images/inside_page/main_news_pix.jpg' style='background-repeat:no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><img src='/znd/images/b.gif' alt='' width='10' height='210' border='0'></td></tr><tr><td valign='top'><div class='white_12' style='margin-left:20px;margin-right:30px;'>text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here news2 news2 news2</div></td></tr></table></td></tr></table>";

//Lux Zone
myLink[2]="<table width='422' border='0' cellspacing='0' cellpadding='0'><tr><td height='285' valign='top' background='/znd/images/inside_page/main_news_pix.jpg' style='background-repeat:no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><img src='/znd/images/b.gif' alt='' width='10' height='210' border='0'></td></tr><tr><td valign='top'><div class='white_12' style='margin-left:20px;margin-right:30px;'>text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here news3 news3 news3</div></td></tr></table></td></tr></table>";

//Melting moments
myLink[3]="<table width='422' border='0' cellspacing='0' cellpadding='0'><tr><td height='285' valign='top' background='/znd/images/inside_page/main_news_pix.jpg' style='background-repeat:no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><img src='/znd/images/b.gif' alt='' width='10' height='210' border='0'></td></tr><tr><td valign='top'><div class='white_12' style='margin-left:20px;margin-right:30px;'>text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here news4 news4 news4</div></td></tr></table></td></tr></table>";

//Melting moments
myLink[4]="<table width='422' border='0' cellspacing='0' cellpadding='0'><tr><td height='285' valign='top' background='/znd/images/inside_page/main_news_pix.jpg' style='background-repeat:no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><img src='/znd/images/b.gif' alt='' width='10' height='210' border='0'></td></tr><tr><td valign='top'><div class='white_12' style='margin-left:20px;margin-right:30px;'>text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here text comes here news5 news5 news5</div></td></tr></table></td></tr></table>";




var strHTML; 
strHTML = myLink[img_main_id];

//alert("style :" + styles);
//alert("img_name :" + img_name);
//alert("main_id :" + img_main_id);
//alert("strHTML :" + strHTML);


if (styles == 1)
{
//alert ("change styles");
document.getElementById(""+ img_name +"").style.border ="0px solid #708A02";
document.getElementById('divMainImage').innerHTML = strHTML;
}

if (styles == 2)
{
//alert ("change styles 2");
document.getElementById(""+ img_name +"").style.border ="0px solid #708A02";
}
}

