$curpaget = $_SERVER[REQUEST_URI];
$cs = split('&', $curpaget);
$qm = strpos($cs[0], '?');
$curpage = substr($cs[0], $qm+1, strlen($cs[0]));
$lang = $_GET['lang'];
$changelang = 'UK';
if ($lang != 'US')
{
$lang = 'UK';
$changelang = 'US';
}
$langlink = "?$curpage&lang=$changelang";
if ($curpage == 'games')
{
$site_title = "$lang Nintendo Wii Current Releases - all at the best prices and with FREE DELIVERY!";
$site_keywords = "$lang, nintendo, wii, games, mario, luigi, kart, brawl, fit, wii fit, fitness, balance, board, gh3, guitar, hero, frets, mii, wiiconnect, preorder, pre, order, release, free, delivery, cheapest, cheap, value, discount, offer";
$site_description = "Need to get that $lang Nintendo Wii game on release day? We'll show you how to guarantee you get it by pre-ordering from the best online stores for fast delivery!";
$menu_tag = "We find the best deals for you from the best $lang online retailers to guarantee your game quickly and with free delivery, at the best price!";
}
elseif ($curpage == 'preorder')
{
$site_title = "Nintendo Wii $lang Game Preorders - Preorder now to guarantee your game on day of release at the best price!";
$site_keywords = "$lang, nintendo, wii, games, mario, luigi, kart, brawl, fit, wii fit, fitness, balance, board, gh3, guitar, hero, frets, mii, wiiconnect, preorder, pre, order, release, free, delivery, cheapest, cheap, value, discount, offer";
$site_description = "Need to get that $lang Nintendo Wii game on release day? We'll show you how to guarantee you get it by pre-ordering from the best online stores for fast delivery!";
$menu_tag = "We only recommend $lang online retailers that have a proven track history of getting your game to you on day of release!";
}
elseif ($curpage == 'hardware')
{
$site_title = "Nintendo Wii $lang Hardware Finder - The latest exciting accessories for less!";
$site_keywords = "$lang, nintendo, wii, games, mario, luigi, kart, brawl, fit, wii fit, fitness, balance, board, gh3, guitar, hero, frets, mii, wiiconnect, preorder, pre, order, release, free, delivery, cheapest, cheap, value, discount, offer";
$site_description = "Need to get that $lang Nintendo Wii game on release day? We'll show you how to guarantee you get it by pre-ordering from the best online stores for fast delivery!";
$menu_tag = "We find the best deals for you from the best $lang online retailers to guarantee your hardware arrives as quickly as possible, at the best price!";
}
elseif ($curpage == 'about')
{
$site_title = "About the $lang Nintendo Wii Finder website - Created for people who love their wii, by people who love their Wii!";
$site_keywords = "$lang, nintendo, wii, games, mario, luigi, kart, brawl, fit, wii fit, fitness, balance, board, gh3, guitar, hero, frets, mii, wiiconnect, preorder, pre, order, release, free, delivery, cheapest, cheap, value, discount, offer";
$site_description = "Need to get that $lang Nintendo Wii game on release day? We'll show you how to guarantee you get it by pre-ordering from the best online stores for fast delivery!";
$menu_tag = "We find the best deals for you from the best $lang online retailers to guarantee your game on day of release, all at the best price!";
}
else
{
$site_title = "$lang Nintendo Wii Finder - games, Wii Fit, Mario Kart SSBB and more at less than RRP!";
$site_keywords = 'nintendo, wii, games, mario, luigi, kart, brawl, fit, wii fit, fitness, balance, board, gh3, guitar, hero, frets, mii, wiiconnect, preorder, pre, order, release, free, delivery, cheapest, cheap, value, discount, offer';
$site_description = "Need to get that $lang Nintendo Wii game on release day? We'll show you how to guarantee you get it by pre-ordering from the best online stores for fast delivery!";
$menu_tag = "We'll help you find the best $lang deals for all your Nintendo Wii hardware and gaming needs - at the best price!";
}
?>
if ($curpage == 'releases') include 'inc/releases.php';
elseif ($curpage == 'preorder') include 'inc/preorder.php';
elseif ($curpage == 'hardware') include 'inc/hardware.php';
elseif ($curpage == 'games') include 'inc/games.php';
elseif ($curpage == 'about') include 'inc/about.php';
else include 'inc/homepage.php';
?>