/**
 * @author Administrator
 */

 function displayApp(idx) {
 		// alert("displayApp");
 		var appHtml = "";
 		if(idx==0) {
			appHtml = getHangmanHtml();
		} else if(idx==1) {
			appHtml = getHkidsHtml();
		} else if(idx==2) {
			appHtml = getMemoryHtml();
		} else if(idx==3) {
			appHtml = getCrosswordHtml();
		}else if(idx==4) {
			appHtml = getSudokuHtml();
		}else if(idx==5) {
			appHtml = getColorVirusHtml();
		}else if(idx==6) {
			appHtml = getNewsHtml();
		}else if(idx==7) {
			appHtml = getBTweetsHtml();
		}else if(idx==8) {
			appHtml = getCATwizHtml();
		}
		var divTag = document.getElementById("appContent");
		if(divTag!=null) {
			divTag.innerHTML = appHtml;
		}
		return false;
 }
 
 function getHangmanHtml() {
	var htmlText = "<br /><strong><u>Hangman</u></strong><br />";
		htmlText = htmlText + "Missing the classical game of hangman? Try that game in a new packaging on your mobile." + "<br /><br />";
		return htmlText; 	
 }

 function getHkidsHtml() {
	var htmlText = "<br /><strong><u>Hangman-Kids</u></strong><br />"; 	
		htmlText = htmlText + "An innovative adaptation of hangman that makes it fun to play and a great way to learn new words for Kids. Comes with Child Lock on supported phones." + "<br />";
		return htmlText;
	
 }
 
 function getMemoryHtml() {
 		var htmlText = "<br /><strong><u>Memory</u></strong><br />";
		htmlText = htmlText + "An exciting puzzle game where aim is to match the tiles in pairs as fast as possible. Comes with Child Lock on supported phones." + "<br />";
		return htmlText;
	
 }

 function getCrosswordHtml() {
 		var htmlText = "<br /><strong><u>Crossword</u></strong><br />";
		htmlText = htmlText + "Classic word game!  This title comes prepackaged with lots of interesting crosswords spread across three different difficulty levels." + "<br />";
		return htmlText;
 }
 
 function getSudokuHtml() {
 		var htmlText = "<br /><strong><u>Sudoku</u></strong><br />";
		htmlText = htmlText + "Enjoy the famous game of Sudoku on your mobile. Play unlimited games across normal, medium, hard and challenger levels." + "<br />";
		return htmlText;
 }
 
 function getColorVirusHtml() {
 		var htmlText = "<br /><strong><u>Color Virus</u></strong><br />";
		htmlText = htmlText + "Novel puzzle game where aim is to change the entire screen to one single color in as few moves as possible." + "<br />";
		return htmlText;
 }
 
 function getNewsHtml() {
 		var htmlText = "<br /><strong><u>NewsOnGo</u></strong><br />";
		htmlText = htmlText + "An evolved RSS reader that enables easy and comfortable access to different sources of news on your mobile phone." + "<br />";
		return htmlText;
 }
  
 function getBTweetsHtml() {
 		var htmlText = "<br /><strong><u>Bollywood Tweets</u></strong><br />";
		htmlText = htmlText + "An innovative but no-nonsense interface for mobile users to stay up to date with their favorite celebs’ Tweets. " + "<br />";
		return htmlText;
 }

function getCATwizHtml() {
 		var htmlText = "<br /><strong><u>CATwiz</u></strong><br />";
		htmlText = htmlText + "Revolutionary M-learning application for Management Entrance Test preparation." + "<br /><br />";
		return htmlText;
 }

