$active = 'class="parent"'; $cactive = 'class="current"'; $iactive = ""; $icactive = ""; $nactive = ""; switch($_GET[option]) { case 'content': require_once("components/inner_page_data.php"); $file_name = "components/inner_page.php"; break; case 'product': $file_name = "components/product.php"; break; case 'search': $file_name = "components/search.php"; break; case 'product_search': $file_name = "components/product_search.php"; break; case 'product_details': require_once("components/product.data.php"); $file_name = "components/product_details.php"; break; case 'news-events': require_once("components/news.data.php"); $file_name = "components/news-events.php"; break; case 'news_details': require_once("components/news.data.php"); $file_name = "components/news_details.php"; break; case 'contact_us': require_once("components/contact.data.php"); $file_name = "components/contact.php"; break; case 'contact_us_branch_office': require_once("components/contact.data2.php"); $file_name = "components/contact2.php"; break; default: $homeactive = $active; require_once("components/home_page_data.php"); $file_name = "components/home_body.php"; } ?>