// JavaScript Document
var text="&bull; Dedicated Off shore Environment <br> &bull; State of the Art infrastructure<br> &bull; Cost Effective Web Development Solution<br> &bull; Offshore virtual Office<br> &bull; Industry Expert Virtual Team Members<br>&bull; Outsource Highly Qualified Developers<br>&bull; 24x7 Technical Supports<br>&bull;  Hundreds of Satisfied Clients<br>&bull; Turnkey Business Solution<br>&bull; Proven leader in IT Consultancy";


var delay=200;
var currentChar=1;
var destination="[none]";
var textNode="";
if (document.createTextNode)
	textNode=document.createTextNode("tempNode");

function voidFunction()
{
}

function type()
{
	if (document.getElementById)
	{
		var dest=document.getElementById(destination);
		if (dest)// && dest.innerHTML)
		{
			dest.innerHTML=text.substr(0, currentChar);
//			textNode.nodeValue=text.substr(0, currentChar);
//			dest.replaceChild(textNode, dest.childNodes[0]);
			currentChar++;
			if (currentChar>text.length)
			{
				currentChar=1;
				setTimeout("type()", 5000);
			}	
			else
			{
				setTimeout("type()", delay);
			}
		}
	}
}

function startTyping(textParam, delayParam, destinationParam)
{
	text=textParam;
	delay=delayParam;
	currentChar=1;
	destination=destinationParam;
	type();
}

var exampleWindow=0;
function openExample(url)
{
	exampleWindow=window.open(url,'example', 'width=400, height=250')
	exampleWindow.focus();
}
