var currentTab = "";
var intervalId;
var width;
var height;
var finalWidth = 0;
var finalHeight = 0;
var _WidthIncrementNumber = 20;
var _HeightIncrementNumber = 20;
var _LeftMargin = 250;
var _TopMargin = 285;
var imageID='';
var menu1=new Array()
var func1="$('#load_ajax').fadeIn('slow');loadContent('music_page.aspx','middle');"
var func2="$('#load_ajax').fadeIn('slow');loadContent('RecentlyUploaded.aspx','middle');"
var func3="$('#load_ajax').fadeIn('slow');loadContent('mostplayed.aspx','middle');"
var func4="$('#load_ajax').fadeIn('slow');loadContent('top_rated.aspx','middle');"
menu1[1]='<a href="#" onclick="'+func1+'">Browse</a>'
menu1[2]='<a href="#" onclick="'+func2+'">Recently Uploaded</a>'
menu1[3]='<a href="#" onclick="'+func3+'">Most Played</a>'
menu1[4]='<a href="#" onclick="'+func4+'">Top Rated</a>'

//Contents for menu 2, and so on
var menu2=new Array()
var func5="$('#load_ajax').fadeIn('slow');loadContent('Signup.aspx','middle');"


menu2[0]='<a href="#" onclick="'+func5+'">Edit Account</a>'

var menu3=new Array()
menu3[0]='<a href="ETPlay.aspx">10 years 10 blogs</a>'
menu3[1]='<a href="excellence.aspx">Excellence game</a>'
menu3[2]='<a href="acceptance.aspx">Acceptance Speech contest</a>'

var menuwidth='20' //default menu width
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" class="SubnavMenu" style="visibility:hidden;width:'+menuwidth+';background-color:white;font-family:Times New Roman;border:solid 1px black;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){

if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu



function SwapImage(img,imgsrc)
{
    if(currentTab != img)
        document.getElementById(img).src=imgsrc;
}

   

function ChangeBgImage()
{
 var currentURL=location.href;
 if(currentURL.search("Awards2008.aspx") >= 0  ||currentURL.search("Results_Awards.aspx") >= 0 )
 {
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
 }

   if(currentURL.search("the_award.aspx") >= 0 ||  currentURL.search("Results.aspx") >= 0)
 {
     document.getElementById('awards').src='images/awards_on.gif';
     currentTab = 'awards';
    
 }
  if(currentURL.search("Val=Case") >= 0)
 {
     document.getElementById('study').src='images/study_on.gif';
     currentTab = 'study';
 }
  if(currentURL.search("ETPlay.aspx") >= 0 || currentURL.search("ETPlayContent.aspx") >= 0)
 {document.getElementById("ETPlayTD").className="active";
     document.getElementById('test').src='images/test_on.gif';
     currentTab = 'test';
     document.getElementById("ETPlayTD").innerHTML='10years 10blogs';
    
 }
 if(currentURL.search("acceptance.aspx") >= 0 )
 {document.getElementById("acceptance").className="active";
     document.getElementById('test').src='images/test_on.gif';
     currentTab = 'test';
     document.getElementById("acceptance").innerHTML='Acceptance Speech Contest';
    
 }
 if(currentURL.search("Excellence.aspx") >= 0 )
 {document.getElementById("Excellence").className="active";
     document.getElementById('test').src='images/test_on.gif';
     currentTab = 'test';
     document.getElementById("Excellence").innerHTML='Excellence Game';
    
 }
 if (currentURL.search("EtStories.aspx") >= 0 ||currentURL.search("AwardsCHILDREN.aspx") >= 0 || currentURL.search("Awards2007BAY.aspx") >= 0 || currentURL.search("Awards2007drive.aspx") >= 0 || currentURL.search("Awards2007foodcourt.aspx") >=0 || currentURL.search("Award2007timegive.aspx")>=0 )
 {document.getElementById("EtStoriesTD").className="active";
    currentTab = 'awards';
    document.getElementById('awards').src='images/awards_on.gif';
    document.getElementById("EtStoriesTD").innerHTML='ET Stories';
    
   
 }
 if (currentURL.search("MommentMemories.aspx")>=0)
 {document.getElementById("mommentmemories").className="active";
    currentTab = 'awards';
    document.getElementById('awards').src='images/awards_on.gif';
    document.getElementById("mommentmemories").innerHTML='Moments and memories';
    
 }
  if (currentURL.search("Worldmario.aspx")>=0)
 {document.getElementById("WorldMario").className="active";
    currentTab = 'awards';
    document.getElementById('awards').src='images/awards_on.gif';
    document.getElementById("WorldMario").innerHTML='World of Mario Miranda';
    
 }
 if (currentURL.search("the_awards_ads.aspx")>=0)
 {document.getElementById("the_awards_ads").className="active";
    currentTab = 'awards';
    document.getElementById('awards').src='images/awards_on.gif';
    document.getElementById("the_awards_ads").innerHTML='Advertising';
    
 }
  if (currentURL.search("AwardVideos.aspx")>=0)
 {document.getElementById("AwardVideo").className="active";
    currentTab = 'awards';
    document.getElementById('awards').src='images/awards_on.gif';
    document.getElementById("AwardVideo").innerHTML='The Awards videos';
    
 }
 
 if(currentURL.search("PlayResults.aspx") >= 0 )
 {
     document.getElementById('test').src='images/test_on.gif';
          document.getElementById('awards').src='images/awards_off.gif';
     currentTab = 'test';
     
 }
  if (currentURL.search("Hallofffame.aspx")>=0)
 {document.getElementById("halloffame").className="active";
    currentTab = 'awards';
    document.getElementById('awards').src='images/awards_on.gif';
    document.getElementById("halloffame").innerHTML='Hall of Fame';
    
 }
  if (currentURL.search("JuryAwards.aspx")>=0)
 {document.getElementById("JuryawardTD").className="active";
     document.getElementById('awards').src='images/awards_on.gif';
     currentTab = 'awards';
     document.getElementById("JuryawardTD").innerHTML='Juries over the years';
     
 }
 if (currentURL.search("Jury.aspx") >= 0)
 {document.getElementById("Jury2008TD").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("Jury2008TD").innerHTML='Jury 2008';
     
 }
 if (currentURL.search("Jurymeet2008.aspx") >= 0)
 {document.getElementById("JurymeetTD").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("JurymeetTD").innerHTML='Jury Meet';
     
 }
  if (currentURL.search("The_Nominees.aspx") >= 0)
 {document.getElementById("NomTD").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("NomTD").innerHTML='The Nominees';
     
 }
 
 if (currentURL.search("EtStories2008.aspx") >= 0 )
 {
 document.getElementById("ETStories2008").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("ETStories2008").innerHTML='ET Stories';
     
 }
 if (currentURL.search("red_carpet.aspx") >= 0 )
 {
 document.getElementById("red_carpet").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("red_carpet").innerHTML='The Red Carpet Show';
     
 }
 
 if (currentURL.search("Jurymeet.aspx") >= 0 )
 {
 document.getElementById("ETStories2008").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("ETStories2008").innerHTML='ET Stories';
     
 }
 
 if (currentURL.search("The_Winners.aspx") >= 0 )
 {
 document.getElementById("WinnersTD").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("WinnersTD").innerHTML='The Winners';
     
 }
 if (currentURL.search("Time_Salute2008.aspx") >= 0 || currentURL.search("Boiling_down_to_best_of_the_best.aspx") >= 0)
 {
 document.getElementById("ETStories2008").className="active";
     document.getElementById('awards2008').src='images/awards_2008_on.gif';
     currentTab = 'awards2008';
     document.getElementById("ETStories2008").innerHTML='ET Stories';
     
 }
 
 
}





function ShowBGLayer()
{
    var color = "white";//000000
    var transparency = 95;
    
    var pageWidth='100%';
    var pageHeight='100%';
    if( document.body && ( document.body.scrollWidth || document.body.scrollHeight )) 
    {
        pageWidth = document.body.scrollWidth + 'px';
        pageHeight = document.body.scrollHeight + 'px';
    } 
    else if( document.body.offsetWidth ) 
    {
        pageWidth = document.body.offsetWidth + 'px';
        pageHeight = document.body.offsetHeight +'px';
    } 
  
    //document.getElementById('ctl00_MainBGDiv').innerHTML = "<table width='"+ pageWidth + "' height='" + pageHeight+"'><tr><td></td></tr></table>";
   
    var options = options || {}; 
    var opacity = options.opacity || transparency;
    var opaque = (opacity / 100);
    var bgcolor = options.bgcolor || color;
   // var dark=document.getElementById(divId);
    var dark=document.getElementById('divImg1');
    dark.style.opacity=opaque;                      
    dark.style.MozOpacity=opaque;             
    dark.style.filter='alpha(opacity='+opacity+')'; 
    dark.style.backgroundColor=bgcolor;  
    dark.style.width= 835;
    dark.style.height= pageHeight;
    document.getElementById('ctl00_MainBGDiv').style.display = 'block';
}

function ShowImage(imgId, _width, _height)
{
	ShowBGLayer();
	document.getElementById('divImg1').innerHTML  =""
	document.getElementById('divImg1').style.display = 'block';
	document.getElementById('divImg1').style.width = '5px';
	document.getElementById('divImg1').style.height = '5px';
	width = 0;
	height = 0;
	imageID=imgId;
	finalWidth = _width;
    finalHeight = _height;

	if(_width > _height)
	{
		_WidthIncrementNumber = _width / (_height / _HeightIncrementNumber);
	}
	else
	{
		_HeightIncrementNumber = _height / (_width / _WidthIncrementNumber);
	}
	document.getElementById('divImg1').style.marginLeft = _LeftMargin + 'px';
	document.getElementById('divImg1').style.marginTop = _TopMargin + 'px';
	StartZoomEffect();
}

function StartZoomEffect()
{
	intervalId = setTimeout(onTimerOver, 15);	
}

function onTimerOver()
{
	clearTimeout(intervalId);
	width += _WidthIncrementNumber;
	height += _HeightIncrementNumber;
	
	if(width >= finalWidth)
	{
		_WidthIncrementNumber = 20;
        _HeightIncrementNumber = 20;
		width = 5;
		height = 5;
		_LeftMargin = 250;
		_TopMargin = 285;
		
		document.getElementById('divImg1').style.width = '660px';
	    document.getElementById('divImg1').style.height = '365px';
		document.getElementById('divImg1').style.backgroundColor='white';
		
		if (imageID=="jury1")
		{
            document.getElementById('divImg1').innerHTML='<table><tr><td><img src=images/jury1.jpg class="imgborder"/> </td><td valign=top ><img src=images/close_icon.png onclick="HideDiv();" style=cursor:pointer;/></td></tr></table>'+'<table background="images/bubble_tip.gif" style="height: 125px;margin-top:-2px;margin-left:7px;background-repeat:no-repeat;vertical-align:text-top;"><tr style="margin-left:15px;">'+'<td>  <br /> <br /> <div style="margin-left:10px;margin-right:10px;margin-top:-30px;">Chair of the jury, Indra Nooyi, is chairman of PepsiCo. Indias power-puff poster girl regularly tops the worlds Most Powerful Women lists, up there with presidents and queens; last year, she was fifth on the Forbes list while Fortune has ranked her number one for two years in a row. Ms. Nooyis rise to the top of the global pecking order is well documented, and trend-setting in more ways than one. She brings to the jury not only her personal connect with India-more importantly, her involvement underlines how the lines between local and global corporates have blurred.</div> </td></tr></table>';
		}
		else if(imageID=="jury2")
		{
           document.getElementById('divImg1').innerHTML='<table style="margin-left:170px;"><tr><td ><img src=images/jury2.jpg class="imgborder"/> </td><td valign=top ><img src=images/close_icon.png onclick="HideDiv();" style=cursor:pointer;/></td></tr></table>'+'<table background="images/bubble_tip.gif" style="height: 115px;margin-top:-2px;margin-left:7px;background-repeat:no-repeat;"><tr style="margin-left:15px;">'+'<td>  <br /> <br /> <div style="margin-left:10px;margin-right:10px;margin-top:-30px;">Also at the head table will be Peter Sands, group chief executive of Standard Chartered, the UK-based but Asiafocused global banking major. About 90% of the profits of his company come from Asia, Africa and the Middle-East. Mr. Sands, an alumnus of McKinsey, is not only an Indophile-he even wants to be a PIO-StanCharts India focus has been unwavering in its 150-year association with the country.</div> </td></tr></table>';
        }
        else if (imageID=="jury3")
		{
		    var tempContent = '<table style="margin-left:330px;"><tr><td ><img src=images/jury3.jpg class="imgborder"/> </td><td valign=top ><img src=images/close_icon.png onclick="HideDiv();" style=cursor:pointer;/></td></tr></table>'+'<table background="images/bubble_tip.gif" style="height: 110px;margin-top:-2px;margin-left:7px;background-repeat-norepat;"><tr style="margin-left:15px;">'+'<td>  <br /> <br /> <div style="margin-left:10px;margin-right:10px;margin-top:-20px;">';
		    tempContent += "Deutsche Bank head of global markets Anshu Jain is one of those global Indians who have quietly made their mark in international markets-he's consistently ranked as one of the most powerful bankers in the world's financial capital, London. A member of the German bank's top executive committee, reports credit him with transforming Deutsche Bank into a bond market powerhouse, and being responsible for half the bank's profits at one stage-along with being one of the world's highest paid bankers. </div> </td></tr></table>";
           document.getElementById('divImg1').innerHTML= tempContent;
        }
        else if (imageID=="jury4")
		{
		    var tempContent = '<table style="margin-left:490px;"><tr><td ><img src=images/jury4.jpg class="imgborder"/> </td><td valign=top ><img src=images/close_icon.png onclick="HideDiv();" style=cursor:pointer;/></td></tr></table>'+'<table background="images/bubble_tip.gif" style="height: 115px;margin-top:-2px;margin-left:7px;background-repeat:no-repeat;"><tr style="margin-left:15px;">'+'<td>  <br /> <br /> <div style="margin-left:10px;margin-right:10px;margin-top:-30px;">';
		    tempContent += "Unlike the rest of the international contingent, Unilever president-Asia and Africa Harish Manwani is an old India hand-he moved out into the Unilever universe from HUL. Mr. Manwani handles one of Unilever's most crucial and profitable regions, and is recognised as one of the company's whiz-bosses. As current CEO Patrick Cescau prepares to step down, he's also one of the corner room contenders. </div> </td></tr></table>";
		    document.getElementById('divImg1').innerHTML= tempContent;
        }
        else if (imageID=="jury5")
		{
		   var tempContent = '<div style="Z-index:10006;margin-top:85px;position:absolute;background-image:url(images/bubble_tip.gif);background-repeat:no-repeat;height:145px;">';
		   tempContent += "<div style='margin-left:10px;margin-right:20px;margin-top:27px;'>Deepak Parekh, also a founder member of the ET Awards Jury, has been instrumental in shaping and creating not just the modern Indian financial sector with HDFC, but also the ET Awards in their current form. Mr. Parekh's vision and track record have put him among the living legends of India Inc - when he talks, the world listens very, very carefully. </div>";
		   tempContent += '</div>';
		   
           document.getElementById('divImg1').innerHTML = tempContent;
           document.getElementById('divImg1').innerHTML = document.getElementById('divImg1').innerHTML+'<div style="Z-index:10005;position:absolute;margin-top:195px;"><img src=images/jury5.jpg class="imgborder"/></div><div style="margin-top:195px;Z-index:10007;position:absolute;margin-left:130px;"><img src=images/close_icon.png onclick="HideDiv();" style="cursor:pointer;vertical-align:top"/></div>';
        }
        else if (imageID=="jury6")
		{
		   var tempContent = '<div style="Z-index:10006;margin-top:85px;position:absolute;background-image:url(images/bubble_tip.gif);background-repeat:no-repeat;height:145px;">';
		   tempContent += "<div style='margin-left:10px;margin-right:20px;margin-top:25px;'>Wipro's Azim Premji was one of the first to understand - and prove that excellence has no borders. He forged a cuttingedge technology company which today commands global respect, based on his belief that efficiency does not need to be territorial to succeed. Along with Infy, Mr. Premji is credited with putting Bangalore on the world technology map. </div>";
		   tempContent += '</div>';
		   
           document.getElementById('divImg1').innerHTML = tempContent;
           document.getElementById('divImg1').innerHTML = document.getElementById('divImg1').innerHTML+'<div style="Z-index:10005;position:absolute;margin-top:195px;margin-left:171px;"><img src=images/jury6.jpg class="imgborder" /></div><div style="margin-top:195px;Z-index:10007;position:absolute;margin-left:302px;"><img src=images/close_icon.png onclick="HideDiv();" style="cursor:pointer;vertical-align:top"/></div>';
        }
        else if (imageID=="jury7")
		{
		   var tempContent = '<div style="Z-index:10006;margin-top:85px;position:absolute;background-image:url(images/bubble_tip.gif);background-repeat:no-repeat;height:145px;">';
		   tempContent += "<div style='margin-left:10px;margin-right:20px;margin-top:19px;'>Sunil Bharti Mittal's vision could almost be considered corporate cheerleading-he's a dedicated advocate of India's growth story. His telecom to retail group is working on a unique partnership plan which is now the stuff of Harvard case studies. He is the quintessential new-India corporate citizen-his global outlook is reflected in the kind of partners (who put their money where their mouth is) he has attracted and the strategies he has forged with them.</div>";
		   tempContent += '</div>';
		   
           document.getElementById('divImg1').innerHTML = tempContent;
           document.getElementById('divImg1').innerHTML = document.getElementById('divImg1').innerHTML+'<div style="Z-index:10005;position:absolute;margin-top:195px;margin-left:342px;"><img src=images/jury7.jpg class="imgborder"/></div><div style="margin-top:195px;Z-index:10007;position:absolute;margin-left:474px;"><img src=images/close_icon.png onclick="HideDiv();" style="cursor:pointer;vertical-align:top"/></div>';
        }
        else if (imageID=="jury8")
		{
		   var tempContent = '<div style="Z-index:10006;margin-top:85px;position:absolute;background-image:url(images/bubble_tip.gif);background-repeat:no-repeat;height:145px;">';
		   tempContent += "<div style='margin-left:10px;margin-right:20px;margin-top:19px;'>Adding firepower to the international contingent, will be returning juror Kumar Mangalam Birla, a founder member of the ET Awards Jury. Mr. Birla's corporate DNA was global long before that became fashionable - the AV Birla Group has activities that span the world and counts itself among the top in quite a few categories. In the years he's been with the ET Jury, Mr. Birla has grown from being a maverick young turk to a symbol of the new-age Indian business leader. </div>";
		   tempContent += '</div>';
		   
           document.getElementById('divImg1').innerHTML = tempContent;
           document.getElementById('divImg1').innerHTML = document.getElementById('divImg1').innerHTML+'<div style="Z-index:10005;position:absolute;margin-top:195px;margin-left:490px;"><img src=images/jury8.jpg class="imgborder"/></div><div style="margin-top:195px;Z-index:10007;position:absolute;margin-left:623px;"><img src=images/close_icon.png onclick="HideDiv();" style="cursor:pointer;vertical-align:top"/></div>';
        }
	}
	else
	{
	    document.getElementById('divImg1').style.width = width + 'px';
		document.getElementById('divImg1').style.height = height + 'px';
		_TopMargin -= _HeightIncrementNumber / 2.40;
		_LeftMargin -= _WidthIncrementNumber / 2.6;
		document.getElementById('divImg1').style.marginLeft = _LeftMargin + 'px';
		document.getElementById('divImg1').style.marginTop = _TopMargin + 'px';
		intervalId = setTimeout(onTimerOver, 15);
	}
}

function HideDiv()
{
    document.getElementById('divImg1').style.display = 'none';
}
function ShowData()
{

var Val=document.getElementById('ctl00_maintaward2008Content_ddlNominee').value;
if (Val==0)
{  
       document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='block';
       document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
       document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
       document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
       document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
      document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
      document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
      document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
       document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==1)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
  document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
   document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==2)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
   document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==3)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
   document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';

}
else if (Val=="S")
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
   document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==4)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='block';
     document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
   document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==5)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
   document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==6)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==7)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
}
else if (Val==8)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='block';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='none';
   

}
else if (Val==9)
{
    document.getElementById('ctl00_maintaward2008Content_tblbuisenessleader').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblbuisenesswoman').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblreformer').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblComapany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblEntrepreneur').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblemerCompany').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblPolicyChange').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tbllifetime').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblGlobal').style.display='none';
    document.getElementById('ctl00_maintaward2008Content_tblCorporate').style.display='block';

  

}
}

function AdminLogin()
{
if(trim(document.getElementById('txt_password').value) == "")
    {
        alert("Please fill password.");
        return;
    }
else if ( trim(document.getElementById('txt_userid').value) != "Admin")
    {
    alert("Sorry, Admin can use this login");
    document.getElementById('txt_userid').value ="";
    document.getElementById('txt_password').value ="";
    document.getElementById('txt_userid').focus();
    return;
    }   
    else
    {
    CheckLogin();
    
    }
}