// JavaScript Document
// for Banner page

var VAL;


function aaaa()
{
	var msgArray = new Array('aaaaaa','bbbbbb','cccccc');
	alert(msgArray[2]);
}

function funpre(VAL)
{	
	VAL = VAL - 1;
	if((VAL != 0))
	{
	document.getElementById("imgholder").src="branding/logo_"+VAL+".gif";
	curimg	= VAL;
	document.getElementById('curimg').innerHTML = VAL;
	document.getElementById('desc').innerHTML = '<div><p class="Arial-12-bold">Moorthys</p> </div><div style="margin-top:5px;margin-bottom:5px"><h1 class="Verdana-9">We have extensive experience in both technology and design, having developedcaptivating interfaces, both interactive and non-interactive for our mountingclient base.<br /></h1></div>';
	}

	if(VAL==3)
	{
		for(x=1;x<=5;x++)
		{
		//document.write("<span class='number'>"+x+"</span>");
		document.getElementById("bbcDiv").innerHTML = "<span class='number'>"+x+"</span>"+"\n";		
		}	
	}

	
}

function funnxt(VAL,finimg)
{
	

	VAL = VAL + 1;
	if(VAL != (finimg + 1))
	{
	document.getElementById("imgholder").src="branding/logo_"+VAL+".gif";
	curimg	= VAL;
	document.getElementById('curimg').innerHTML = "<span id='curimg'>"+ VAL +"  "+"</span>";
	}

	if(VAL==3)
	{
		for(x=1;x<=5;x++)
		{
		//document.write("<span class='number'>"+x+"</span>");
		document.getElementById("bbcDiv").innerHTML = "<span class='number'>"+x+"</span>"+"\n";	
		}	
	}
}




// for E-Mailer Page

function funpre1(VAL)
{
	VAL = VAL - 1;
	if((VAL != 0))
	{
	document.getElementById("imgholder").src="internet_marketing/mailer/mailer"+VAL+".jpg";
	curimg	= VAL;
	document.getElementById('curimg').innerHTML = "<span id='curimg'>"+ VAL+"  "+"</span>";
	document.getElementById('curimg1').innerHTML = "<span id='curimg'>"+ VAL+"  "+"</span>";
	}
}
function funnxt1(VAL,finimg)
{
	VAL = VAL + 1;
	if(VAL != (finimg + 1))
	{
	document.getElementById("imgholder").src="internet_marketing/mailer/mailer"+VAL+".jpg";
	curimg	= VAL;
	document.getElementById('curimg').innerHTML = "<span id='curimg'>"+ VAL +"  "+"</span>";
	document.getElementById('curimg1').innerHTML = "<span id='curimg'>"+ VAL+"  "+"</span>";
	}
}

// for News Letter page

function funpre2(VAL)
{
	VAL = VAL - 1;
	if((VAL != 0))
	{
	document.getElementById("imgholder").src="internet_marketing/news_letter/news_letter"+VAL+".jpg";
	curimg	= VAL;
	document.getElementById('curimg').innerHTML = "<span id='curimg'>"+ VAL+"  "+"</span>";
	document.getElementById('curimg1').innerHTML = "<span id='curimg'>"+ VAL+"  "+"</span>";
	}
}
function funnxt2(VAL,finimg)
{
	VAL = VAL + 1;
	if(VAL != (finimg + 1))
	{
	document.getElementById("imgholder").src="internet_marketing/news_letter/news_letter"+VAL+".jpg";
	curimg	= VAL;
	document.getElementById('curimg').innerHTML = "<span id='curimg'>"+ VAL +"  "+"</span>";
	document.getElementById('curimg1').innerHTML = "<span id='curimg'>"+ VAL+"  "+"</span>";
	}
}
