function loadimage()
{ var i=1;
	if (i<5)
	{	
		document.getElementById("img1").src="images/mainheader_"+i+".jpg";
		i=i+1;
	}
	else
	{
		i=1;
	}
	setTimeout("loadimage()", 2500);
}
function textfield()
{
	document.getElementsByTagName('textarea')[0].value="";
}
function loadpage(page,id)
{
var http;
   if(window.XMLHttpRequest)
   {
    http=new XMLHttpRequest();
   } 
   else if (window.ActiveXObject)
   {
     http=new ActiveXObject("Microsoft.XMLHTTP");
   }
	http.onreadystatechange=function (){
		if (http.readyState==4)
		{
			if (http.status==200)
			{
				var res=http.responseText;
				document.getElementById(id).innerHTML=res;
				if (page == "ContentPages/mainservices.html")
				{
					
					fadecontentviewer.init("whatsnew", "fadecontent", "whatnewstoggler", 0, 400);
					
				}
				http.abort();
			}
		}
	}
	http.open('get',page,true);
	http.send(null);
}

var timerID = null;
var timerRunning = false;

function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
window.status = timeValue;

timerID = setTimeout("showtime()",1000);
timerRunning = true;
}

function startclock () {
stopclock();
showtime();
}

function over(str)
{
	str.setAttribute('scrollamount', 0, 0)	
}
function out(str)
{
	str.setAttribute('scrollamount', 3, 0)
}
function swflove() 
{
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='200' height='180'>\n"); 
document.write("<param name='movie' value='images/banner.swf' />\n"); 
document.write("<param name='quality' value='high' />\n"); 
document.write("<param name='menu' value='false'>\n");
document.write("<param name='wmode' value='transparent' />\n");
document.write(" <embed src='images/banner.swf' width='200' height='180' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent'></embed>\n"); 
document.write("</object>\n"); 
} 

function proposal()
{
	alert("hai");
	var win=window.open("","","toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=0,width=740,height=600,top=30,left=20");	
	win.location.href="RequestaProposal.html"
}
function marqueefile()
{
document.write("<marquee scrollamount='3' scrolldelay='0' direction='left' height='38px;'>");
document.write("<a href='#'><img src='images/Mireiki_logo.jpg'  border='none' alt='Marvelminds Software Solutions: website development india web design india website design india graphic design/></a>&nbsp;&nbsp;&nbsp;");
document.write("<a href='#'><img src='images/neil_logo.jpg' border='none' alt='website design india, web design india, website development india'/></a>&nbsp;&nbsp;&nbsp;");
document.write("<a href='#'><img src='images/Orange_logo.jpg' border='none' alt='Marvelminds Software Solutions:Website design and web development company based in India'/></a>&nbsp;&nbsp;&nbsp;");
document.write("<a href='#'><img src='images/RAS_logo.jpg' border='none' alt='website design india, website development india, web design india, global solutions, outsource india, outsourcing india'/></a>&nbsp;&nbsp;&nbsp;");
document.write("<a href='#'><img src='images/Zenith_logo.jpg' border='none' alt='website designing india'/></a>&nbsp;&nbsp;&nbsp;");
document.write("<a href='#'><img src='images/ZOdiac_logo.jpg' border='none' alt='Marvelminds Software Solutions: Website Design India and Website Development India'/></a>");

document.write("</marquee>");
}
function boxover(id,src)
{
 	document.getElementById(id).style.backgroundImage=src;
}
function boxout(id,src)
{
 	document.getElementById(id).style.backgroundImage=src;
}


/*Calender Starts*/
function calender()
{
var day_of_week = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
var month_of_year = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

//  DECLARE AND INITIALIZE VARIABLES
var Calendar = new Date();
var year;	
var browser=navigator.appName;
if (browser=="Netscape")
{
	 var str = Calendar.getYear().toString();
	year = str.replace(/1/,"20");
}
else{var year = Calendar.getYear();}

var month = Calendar.getMonth();    // Returns month (0-11)
var today = Calendar.getDate();    // Returns day (1-31)
var weekday = Calendar.getDay();    // Returns day (1-31)

var DAYS_OF_WEEK = 7;    // "constant" for number of days in a week
var DAYS_OF_MONTH = 31;    // "constant" for number of days in a month
var cal;    // Used for printing

Calendar.setDate(1);    // Start the calendar day at '1'
Calendar.setMonth(month);    // Start the calendar month at now


/* VARIABLES FOR FORMATTING
NOTE: You can format the 'BORDER', 'BGCOLOR', 'CELLPADDING', 'BORDERCOLOR'
      tags to customize your caledanr's look. */

var TR_start = '<TR>';
var TR_end = '</TR>';
var highlight_start = "<TD WIDTH='25'><TABLE CELLSPACING=0 style='border:1px solid silver;' BGCOLOR='#c1ddf4' BORDERCOLOR=CCCCCC><TR><TD WIDTH=20><B><CENTER>";
var highlight_end   = '</CENTER></TD></TR></TABLE></B>';
var TD_start = '<TD WIDTH="26" calss="numofdays"><CENTER>';
var TD_end = '</CENTER></TD>';

/* BEGIN CODE FOR CALENDAR
NOTE: You can format the 'BORDER', 'BGCOLOR', 'CELLPADDING', 'BORDERCOLOR'
tags to customize your calendar's look.*/

cal = "<TABLE style='border:1px solid silver;' width='100%' CELLSPACING=0 CELLPADDING=0 BORDERCOLOR=BBBBBB><TR><TD>";
cal += '<TABLE BORDER=0 CELLSPACING=0  width=100% CELLPADDING=1>' + TR_start;
cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" class="calender"><CENTER><B>';
cal += month_of_year[month]  + '   ' + year + '</B>' + TD_end + TR_end;
cal += TR_start;

//   DO NOT EDIT BELOW THIS POINT  //

// LOOPS FOR EACH DAY OF WEEK
for(index=0; index < DAYS_OF_WEEK; index++)
{

// BOLD TODAY'S DAY OF WEEK
if(weekday == index)
cal += TD_start + '<B class="days">' + day_of_week[index] + '</B>' + TD_end;

// PRINTS DAY
else
cal += TD_start + day_of_week[index] + TD_end;
}

cal += TD_end + TR_end;
cal += TR_start;

// FILL IN BLANK GAPS UNTIL TODAY'S DAY
for(index=0; index < Calendar.getDay(); index++)
cal += TD_start + '  ' + TD_end;

// LOOPS FOR EACH DAY IN CALENDAR
for(index=0; index < DAYS_OF_MONTH; index++)
{
if( Calendar.getDate() > index )
{
  // RETURNS THE NEXT DAY TO PRINT
  week_day =Calendar.getDay();

  // START NEW ROW FOR FIRST DAY OF WEEK
  if(week_day == 0)
  cal += TR_start;

  if(week_day != DAYS_OF_WEEK)
  {

  // SET VARIABLE INSIDE LOOP FOR INCREMENTING PURPOSES
  var day  = Calendar.getDate();

  // HIGHLIGHT TODAY'S DATE
  if( today==Calendar.getDate() )
  cal += highlight_start + day + highlight_end + TD_end;

  // PRINTS DAY
  else
  cal += TD_start + day + TD_end;
  }

  // END ROW FOR LAST DAY OF WEEK
  if(week_day == DAYS_OF_WEEK)
  cal += TR_end;
  }

  // INCREMENTS UNTIL END OF THE MONTH
  Calendar.setDate(Calendar.getDate()+1);

}// end for loop

cal += '</TD></TR></TABLE></TABLE>';

//  PRINT CALENDAR
document.write(cal);

//  End -->
}