		var currentHighlight='toc_temp';

		toc1on = new Image();
        toc1on.src = "images/btn_home.gif";
        
		toc1off = new Image();
        toc1off.src = "images/btn_homeover.gif";
        
		toc2on = new Image();
        toc2on.src = "images/btn_aboutus.gif";
        
		toc2off = new Image();
        toc2off.src = "images/btn_aboutover.gif";
        
		toc3on = new Image();
        toc3on.src = "images/btn_events.gif";

		toc3off = new Image();
        toc3off.src = "images/btn_eventsover.gif";
        
		toc4on = new Image();
        toc4on.src = "images/btn_sponsorship.gif";
        
		toc4off = new Image();
        toc4off.src = "images/btn_sponsorover.gif";
        
		
		toc5on = new Image();
        toc5on.src = "images/btn_promoters.gif";
        
		toc5off = new Image();
        toc5off.src = "images/btn_promotersover.gif";
        
		
		
		
		toc6on = new Image();
        toc6on.src = "images/btn_media.gif";

		toc6off = new Image();
        toc6off.src = "images/btn_mediaover.gif";

		toc7on = new Image();
        toc7on.src = "images/btn_contactus.gif";

		toc7off = new Image();
        toc7off.src = "images/btn_contactover.gif";

	
		
		function img_act(imgName)
		{
		 imgOn = eval(imgName + "on.src");
		 document.images[imgName] = imgOn;
		}

		function img_inact(imgName)
		{
        imgOff = eval(imgName + "off.src");
        document.images[imgName].src = imgOff;
      	}

		function img_inact1(imgName) {
      
        imgOn = eval(imgName + "on.src");
        document.images[imgName].src = imgOn;
       
		}

		function shift(imgName){
			
			if (imgName!=currentHighlight)
			{
			img_inact(imgName);
			currentHighlight='toc_temp';
			}

		

		}

			function shift1(imgName)
			{
			img_inact1(imgName);
			currentHighlight='toc_temp';
			}



			var t;

			function shift2(imgName)
			{//alert(imgName);
			img_inact1(imgName);
			if (t) {
				clearTimeout(t);
				t = null;
				}
			currentHighlight='toc_temp';
			}





var ic = 5;                  // Number of alternative images
var xoxo0 = new Array(ic);  // Array to hold filenames	
xoxo0[0] = "images/img_quote.gif";
xoxo0[1] = "images/img_quote1.gif";
xoxo0[2] = "images/img_quote2.gif";
xoxo0[3] = "images/img_quote3.gif";
xoxo0[4] = "images/img_quote4.gif";



var cc = 9;
var imglefts = new Array(cc);
imglefts[0] = "images/img_side1.jpg"
imglefts[1] = "images/img_side2.jpg"
imglefts[2] = "images/img_side3.jpg"
imglefts[3] = "images/img_side4.jpg"
imglefts[4] = "images/img_side5.jpg"
imglefts[5] = "images/img_side6.jpg"
imglefts[6] = "images/img_side7.jpg"
imglefts[7] = "images/img_side8.jpg"
imglefts[8] = "images/img_side9.jpg"



function pickRandom(range) 
{
 if (Math.random)
 return Math.round(Math.random() * (range-1));
 else 
 {
 var now = new Date();
 return (now.getTime() / 1000) % range;
 }
}



/////////////////print and email part


var emailwnd = '';
var prnwnd = '';
var popwnd='';
var locwnd='';
function printpage(val,val1,val2)
	{
	
	var url;
	
	url="print.asp?sec=" +val+ "&cat=" + val1+ "&count=" +val2;

	 //document.writeln('<tr><td><span class=pagetxt>)
		if (!prnwnd.closed && prnwnd.location)
				{
					prnwnd.location.href=url ;
				}
				else
				{
					prnwnd = window.open(url,'prnwnd','toolbar=no,status=yes,resizable=no,scrollbars=yes,width=615,height=411,top=0,left=0');
					if (!prnwnd.opener) prnwnd.opener = self;
				}
				if (window.focus) {prnwnd.focus()}
	
			
	}		

function emailpage(val1,val2,val3)
	{
	
	var url;
	
		url="emailpage.asp?sec=" +  val1 + "&cat=" + val2 + "&count=" +val3;
		
		if (!emailwnd.closed && emailwnd.location)
				{
					emailwnd.location.href=url;
				}
				else
				{
					emailwnd = window.open(url,'emailwnd','toolbar=no,status=yes,resizable=yes,scrollbars=no,width=400,height=300,top=0');
					if (!emailwnd.opener) emailwnd.opener = self;
				}
				if (window.focus) {emailwnd.focus()}	
			
	}		


function opendance()
{
var win1;
win1=window.open('dance.htm','d1','toolbar=no,status=yes,resizable=no,scrollbars=no,width=614,height=555,top=0,left=0,right=0');
}

function openfinalmatch()
{
var win2;
win2=window.open('finalmatch.htm','f1','toolbar=no,status=yes,resizable=no,scrollbars=no,width=614,height=555,top=0,left=0,right=0');
}

