
function MyTip(arg)
{
    switch(arg)
    {
    case "game1":
        return Tip("<b>Category:</b>Strategy & RPG Games.<br><br> Description: Create customized balls. <br><b>Instructions:</b> Drag a ball to a object to use the object on the ball.", TITLE, "Factory Balls 2");
    case "game2":
        return Tip("<b>Category:</b> Strategy & RPG Games.<br><br> <b>Description:</b> Another Tower Defense game with new charcters and features.<br><b>Instructions:</b> Click a tower to make it.", TITLE, "Vector TDx");
    case "game3":
        return Tip("<b>Category:</b> Strategy & RPG Games.<br><br> <b>Description:</b> You are a robot that is trying to DeConstruct buildings. <br><b>Instructions:</b> Press shift to drop a explosive press Control to make it explode.", TITLE, "DeConstruction");
    case "game4":
        return Tip("<b>Category:</b> Shooting Games.<br><br> <b>Description:</b> Panda is back and has a whole new set of tricks up his sleeve. <br><b>Instructions:</b> Click to Shoot. Press space to see the whole screen at once. ", TITLE, "Panda Tactical Sniper 2");
     case "game5":
        return Tip("<b>Category:</b> Strategy & RPG Games.<br><br> <b>Description:</b>Pick up and deliver food from your farm to help the town open up new shops. <br><b>Instructions:</b>Click a good to put it in a crate. Click a ticket to go to its location.", TITLE, "Youda Farmer");
     case "game6":
        return Tip("<b>Category:</b> Shooting Games.<br><br> <b>Description:</b> Both engines are out. The plane is too low and slow to make it to the airport. You decide to make an emergency landing in the river.<br><b>Instructions:</b>Control the plane with the arrow keys. ", TITLE, "Hero on the Hudson");
    case "game7":
        return Tip("<b>Category:</b>Shooting Games.<br><br> <b>Description:</b> Find creative ways to go through each level. <br><b>Instructions:</b> Click to shoot.", TITLE, "Panda Tactical Sniper");
    case "game8":
        return Tip("<b>Category:</b>Action & Adventure Games.<br><br> <b>Description:</b> The full version of another diner game. There is a twist though you're serving penguins! <br><b>Instructions:</b> Click a penguin, then a table to seat them. Click a table to serve the penguins.", TITLE, "Penguin Diner");
  case "game9":
        return Tip("<b>Category:</b>Strategy & RPG Games.<br><br> <b>Description:</b> Get 100 achievements in the quickest time possible. <br><b>Instructions:</b> Use the arrow keys to move and find other keys to unlock achievements.  ", TITLE, "Achievement Unlocked");

  }
}

function FixCalcXY(el)
{
    if(typeof(el.offsetParent) == "undefined")
        return [70, 4000];
	var a = new Array(0, -70);
	while(el)
	{
		a[0] += el.offsetLeft || 0;
		a[1] += el.offsetTop || 0;
		el = el.offsetParent || null;
	}
	return a;
}
