function makeAllInactive()
{
	var intCounter = 0;
	var image;
	var strImgName;

	for(intCounter=1;intCounter<=5;intCounter++)
	{
		strImgName = "pointImg0" + intCounter;
		image = document.getElementById(strImgName);
		if(image.src.indexOf("pointBlack.gif") == -1)
			image.src="images/pointTransparent.gif";
	}
}

function makeAllInactiveComplete()
{
	var intCounter = 0;
	var image;
	var strImgName;

	for(intCounter=1;intCounter<=5;intCounter++)
	{
		strImgName = "pointImg0" + intCounter;
		image = document.getElementById(strImgName);
		image.src="images/pointTransparent.gif";
	}
}


function makeReady(intActiveImg)
{
	makeAllInactive();

	var image;
	var strImgName;

	strImgName = "pointImg0" + intActiveImg;

	image = document.getElementById(strImgName);	
	//alert(image.src);
	if(image.src.indexOf("pointBlack.gif") == -1){
		image.src="images/pointGray.gif";
	}	
}

function makeActive(intActiveImg)
{
	makeAllInactiveComplete();

	var image;
	var strImgName;
	
	strImgName = "pointImg0" + intActiveImg;
	
	image = document.getElementById(strImgName);
	image.src="images/pointBlack.gif";
	

	if(intActiveImg=="1")
		fillContent(1);
	else if(intActiveImg=="2")
		fillContent(2);
	else if(intActiveImg=="3")
		fillContent(3);
	else if(intActiveImg=="4")
		fillContent(4);
	else if(intActiveImg=="5")
		fillContent(5);
}

var images = new Array();
function pointImagePreLoader()
{
	var imageObj0 = new Image();
	var imageObj1 = new Image();
	var imageObj2 = new Image();
	var imageObj3 = new Image();
	var imageObj4 = new Image();
	var imageObj5 = new Image();
	var imageObj6 = new Image();
	var imageObj7 = new Image();

	imageObj0.src = "../images/pointTransparent.gif";
	images[0] = imageObj0;

	imageObj1.src = "../images/pointGray.gif";
	images[1] = imageObj1;

	imageObj2.src = "../images/pointBlack.gif";
	images[2] = imageObj2;

	imageObj3.src = "../images/iconAdvertisement.gif";
	images[3] = imageObj3;

	imageObj4.src = "../images/iconMobileApps.gif";
	images[4] = imageObj4;

	imageObj5.src = "../images/iconInternetApps.gif";
	images[5] = imageObj5;

	imageObj6.src = "../images/iconCustomizedApps.gif";
	images[6] = imageObj6;

	imageObj7.src = "../images/iconStreamApps.gif";
	images[7] = imageObj7;

	//preloading completed!
}

function hideAllDivs()
{
	document.getElementById("divInnerContent00").style.display = "none";
	document.getElementById("divInnerContent01").style.display = "none";
	document.getElementById("divInnerContent02").style.display = "none";
	document.getElementById("divInnerContent03").style.display = "none";
	document.getElementById("divInnerContent04").style.display = "none";
	document.getElementById("divInnerContent05").style.display = "none";
}	

function fillContent(intSelection)
{
	var strDoc;
	hideAllDivs();
	
	switch(intSelection)
	{
	case 1:
		document.getElementById("divInnerContent01").style.display = "block";	
	break;
	case 2:
		document.getElementById("divInnerContent02").style.display = "block";
	break;
	case 3:
		document.getElementById("divInnerContent03").style.display = "block";
	break;
	case 4:
		document.getElementById("divInnerContent04").style.display = "block";
	break;
	case 5:
		document.getElementById("divInnerContent05").style.display = "block";
	break;
	}
	
	//var contentDiv = document.getElementById("divInnerContent");
	//alert(isNaN(contentDiv));
	//contentDiv.innerHTML = strDoc;
	
	//contentDiv.innerHtml = strDoc;
}