<?php
// +-------------------------------------------------------------------------+
// | Mobile Melody Plug-in for PHP Melody ( www.phpsugar.com )
// +-------------------------------------------------------------------------+
// | MOBILE MELODY IS NOT FREE SOFTWARE
// | If you have downloaded this software from a website other
// | than www.phpsugar.com or if you have received
// | this software from someone who is not a representative of
// | phpSugar, you are involved in an illegal activity.
// | ---
// | In such case, please contact: support@phpsugar.com.
// +-------------------------------------------------------------------------+
// | Developed by: phpSugar (www.phpsugar.com) / support@phpsugar.com
// | Copyright: (c) 2004-2012 PhpSugar.com. All rights reserved.
// +-------------------------------------------------------------------------+

// define meta tags & common variables
if ($config['homepage_title'] != '' && $meta_title == '')
	$meta_title = $config['homepage_title'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php if(_RTL == 1) echo 'dir="rtl"'; ?>>
<head>
<title><?php echo $meta_title; ?></title>
<meta name="description" content=""  /	>
<meta name="keywords" content=""  /	>
<style type="text/css" media="screen">@import "<?php echo _URL_MOBI; ?>/style.<?php if(_RTL == 1) echo 'rtl.'; ?>css";</style>
<!-- Start iPhone -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no,target-densitydpi=medium-dpi;"/>
<link rel="apple-touch-icon" href="<?php echo _URL_MOBI; ?>/images/apple-touch-icon.png"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="HandheldFriendly" content="True">
<meta http-equiv="cleartype" content="on">
<!-- End iPhone -->
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<meta name="robots" content="noindex,nofollow">
<meta name="googlebot" content="noindex,nofollow">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
 var JS_URL = "<?php echo _URL;?>";
 var JS_MOBI_URL = "<?php echo _URL_MOBI;?>";
</script>
</head>
<body>
<div id="header">
	<span class="sitetitle">
	<a href="<?php echo _URL_MOBI;?>/index.<?php echo _FEXT;?>"><h1><?php echo _SITENAME; ?></h1></a>
	</span>
	<div id="header_controls">
		<div id="show_search"><img src="<?php echo _URL_MOBI; ?>/images/ico_search.png" width="24" height="24" border="0" alt="Search" /></div>
		<div id="show_browse"><a href="#" id="show_menu"><img src="<?php echo _URL_MOBI; ?>/images/ico_browse.png" width="24" height="24" border="0" alt="Browse" /></a></div>
	</div>
</div>
<div id="rainbow"></div>
<div id="search_form" data-search-autocomplete-enabled="true">
<?php 
if($page_type == 'video' || $page_type == '') {
?>
<form action="<?php echo _URL_MOBI; ?>/search.php" method="get" id="search" name="search" class="search" />
<input name="keywords" type="text" value="" id="inputString" autocomplete="off" autocapitalize="off" placeholder="<?php echo $lang['submit_search'];?>" class="search_keywords border2"  />
<?php
} elseif($page_type == 'article') {
?>
<form action="<?php echo _URL_MOBI; ?>/search_articles.php" method="get" id="search" name="search" class="search" />
<input name="keywords" type="text" value="" id="inputString" autocomplete="off" autocapitalize="off" placeholder="<?php echo $lang['submit_search']." ".$lang['articles'];?>" class="search_keywords border2"  />
<?php } ?>
<button class="submit border2" name="btn"><?php echo $lang['submit_search']; ?></button>
</form>
</div>