<?php if (!defined('FLUX_ROOT')) exit; ?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<?php if (isset($metaRefresh)): ?>
		<meta http-equiv="refresh" content="<?php echo $metaRefresh['seconds'] ?>; URL=<?php echo $metaRefresh['location'] ?>" />
		<?php endif ?>

	<title>2004 Classic Ragnarok Ragnarok Online</title>
    <!-- You can use Open Graph tags to customize link previews.
    Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
	<meta property="og:url"           content="https://classicro.net" />
	<meta property="og:type"          content="video.movie" />
	<meta property="og:title"         content="Ragnarok: 2004 Classic" />
	<meta property="og:description"   content="6x EXP | 3x Drops | Low Rate | 99/50 Classic Jobs | Asia Stable & Fast Host" />
	<meta property="og:image"         content="https://classicro.net/ads.jpg" />
	<meta property="fb:app_id"        content="1085379428242123">


		<link rel="shortcut icon" type="image/ico" href="<?php echo $this->themePath('images/favicon.ico') ?>" />	
		<link rel="stylesheet" href="<?php echo $this->themePath('css/flux.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
		<link rel="stylesheet" href="<?php echo $this->themePath('css/style.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
		<link href="<?php echo $this->themePath('css/flux/unitip.css') ?>" rel="stylesheet" type="text/css" media="screen" title="" charset="utf-8" />
		<link href='https://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
		<?php if (Flux::config('EnableReCaptcha')): ?>
		<link href="<?php echo $this->themePath('css/flux/recaptcha.css') ?>" rel="stylesheet" type="text/css" media="screen" title="" charset="utf-8" />
		<?php endif ?>
		<script type="text/javascript" src="<?php echo $this->themePath('js/jquery-1.8.3.min.js') ?>"></script>
		<script type="text/javascript" src="<?php echo $this->themePath('js/flux.datefields.js') ?>"></script>
		<script type="text/javascript" src="<?php echo $this->themePath('js/flux.unitip.js') ?>"></script>
		<script type="text/javascript" src="<?php echo $this->themePath('js/jquery.cycle2.min.js') ?>"></script>
		<script type="text/javascript" src="<?php echo $this->themePath('js/eadev.js') ?>"></script>
		<script src='https://www.google.com/recaptcha/api.js'></script>
		<script type="text/javascript">
			$(document).ready(function(){
				$('.money-input').keyup(function() {
					var creditValue = parseInt($(this).val() / <?php echo Flux::config('CreditExchangeRate') ?>, 10);
					if (isNaN(creditValue))
						$('.credit-input').val('?');
					else
						$('.credit-input').val(creditValue);
				}).keyup();
				$('.credit-input').keyup(function() {
					var moneyValue = parseFloat($(this).val() * <?php echo Flux::config('CreditExchangeRate') ?>);
					if (isNaN(moneyValue))
						$('.money-input').val('?');
					else
						$('.money-input').val(moneyValue.toFixed(2));
				}).keyup();
				processDateFields();
			});
			function reload(){
				window.location.href = '<?php echo $this->url ?>';
			}
		</script>
		<script type="text/javascript">
			function updatePreferredServer(sel){
				var preferred = sel.options[sel.selectedIndex].value;
				document.preferred_server_form.preferred_server.value = preferred;
				document.preferred_server_form.submit();
			}
			function updatePreferredTheme(sel){
				var preferred = sel.options[sel.selectedIndex].value;
				document.preferred_theme_form.preferred_theme.value = preferred;
				document.preferred_theme_form.submit();
			}
			var spinner = new Image();
			spinner.src = '<?php echo $this->themePath('img/spinner.gif') ?>';
			function refreshSecurityCode(imgSelector){
				$(imgSelector).attr('src', spinner.src);
				var clean = <?php echo Flux::config('UseCleanUrls') ? 'true' : 'false' ?>;
				var image = new Image();
				image.src = "<?php echo $this->url('captcha') ?>"+(clean ? '?nocache=' : '&nocache=')+Math.random();
				$(imgSelector).attr('src', image.src);
			}
			function toggleSearchForm()
			{
				$('.search-form').slideToggle('fast');
			}
		</script>

<script>
$(document).ready(function() {
var stickyNavTop = $('#top').offset().top;

var stickyNav = function(){
var scrollTop = $(window).scrollTop();

if (scrollTop > stickyNavTop) { 
    $('#top').addClass('sticky');
} else {
    $('#top').removeClass('sticky'); 
}
};

stickyNav();

$(window).scroll(function() {
    stickyNav();
});
});</script>

		
		<?php if (Flux::config('EnableReCaptcha') && Flux::config('ReCaptchaTheme')): ?>
		<script type="text/javascript">
			 var RecaptchaOptions = {
			    theme : '<?php echo Flux::config('ReCaptchaTheme') ?>'
			 };
		</script>
		<?php endif ?>



	</head>
	<body>
		<?php $EADev = include 'main/EADevConfig.php'; ?>
		<div id="wrapper">
			<div id="top">
				<div class="container">
					<div class="topLeft">
						<ul class="no-list dropdown-menu">
							<li><a class="home" href="<?php echo $this->url('main'); ?>">Home</a></li>
							<li><a class="register" href="<?php echo $this->url('account','create'); ?>">Register</a></li>
							<li>
								<a class="guide">Database</a>
								<ul>
									<li>
										<a>Guides</a>
										<ul>
											<li><a href="<?php echo $this->url('features','hairstyle'); ?>">Hair Style</a></li>

										</ul>
									</li>

									<li><a href="<?php echo $this->url('quest_db','60000'); ?>">Job Quest</a></li>
									<li><a href="<?php echo $this->url('quest_db','10000'); ?>">Headgear Quest</a></li>
									<li><a href="<?php echo $this->url('quest_db','50000'); ?>">Platinum Skills</a></li>
									<li><a href="<?php echo $this->url('quest_db','40000'); ?>">Other Mixing</a></li>
									<li><a href="<?php echo $this->url('quest_db','70000'); ?>">Access Quest</a></li>

									<li>
										<a>Random Item</a>
										<ul>
											<li><a href="<?php echo $this->url('item_group','view&id=616'); ?>">Old Card Album</a></li>
											<li><a href="<?php echo $this->url('item_group','view&id=603'); ?>">Old Blue Box</a></li>
											<li><a href="<?php echo $this->url('item_group','view&id=617'); ?>">Old Purple Box</a></li>
											<li><a href="<?php echo $this->url('item_group','view&id=644'); ?>">Gift Box</a></li>
											<li><a href="<?php echo $this->url('item_group','view&id=664'); ?>">Gift Box 2</a></li>
											<li><a href="<?php echo $this->url('item_group','view&id=665'); ?>">Gift Box 3</a></li>
											<li><a href="<?php echo $this->url('item_group','view&id=666'); ?>">Gift Box 4</a></li>	
											<li><a href="<?php echo $this->url('item_group','view&id=667'); ?>">Gift Box 5</a></li>
										</ul>
									</li>
								</ul>
							</li>
							<li><a class="worldmap" href="<?php echo $EADev['wordmap']; ?>">WorldMap</a></li>

							<li><a class="calc">Stat Calc</a>
								<ul>
									<li><a href="/calc/index.html">PvP Calculator</a></li>
									<li><a href="/calc/pvm.html">PvM Calculator</a></li>
								</ul>
							</li>

							<li><a class="worldmap" href="#">Make a Review</a></li>	

						</ul>
					</div>

					<div class="topRight">
						<?php include 'main/loginpanel.php'; ?>
					</div>
				</div>
			</div>
			<div class="container">
				<div class="header">
					<a class="logo" href="<?php echo $this->url('main'); ?>"><img src="<?php echo $this->themePath('img/logo.png'); ?>" alt=""></a>
					<?php include 'main/status.php'; ?>
				</div>
				<div class="content">
					<div class="contentTop">
						<div class="navigation">
							<ul class="no-list">
								<li><a href="<?php echo $this->url('main'); ?>">&nbsp;</a></li>
								<li><a href="<?php echo $EADev['forum']; ?>" target="_blank">Facebook</a></li>
								<li><a href="<?php echo $EADev['discord']; ?>" target="_blank">Discord</a></li>
								<li><a href="<?php echo $this->url('main','info'); ?>">Server Info</a></li>
								
								<li><a href="<?php echo $this->url('ranking','character'); ?>">Ranking</a></li>
								<li><a href="<?php echo $this->url('donate'); ?>">Make Donation</a></li>
								
							</ul>
						</div>
						<div class="serchDb">
							<form action="">
								<table>
									<tr>
										<td>
											<select name="module">
												<option value="item">Item DB</option>
												<option value="monster">Monster DB</option>
											</select>
										</td>
										<td>
											<input type="text" name="name">
										</td>
										<td>
											<input type="submit" value="Search">
										</td>
									</tr>
								</table>
							</form>
						</div>
					</div>
					<div class="contentBottom">
						<div class="contentLeft">
							<div class="quicklinks">
								<ul class="no-list">
									<li><a href="<?php echo $this->url('main','info'); ?>">Server Information</a></li>
									<li><a href="<?php echo $this->url('quest_db'); ?>">Quests Guides</a></li>
									<li><a href="<?php echo $this->url('monster'); ?>">Monster Database</a></li>
									<li><a href="<?php echo $this->url('item'); ?>">Item Database</a></li>
								</ul>
							</div>
							<!--- original buttons
							<div class="buttons">
								<a href="<?php echo $this->url('account','create'); ?>" class=""><img src="<?php echo $this->themePath('img/buttons.png'); ?>" alt=""></a>
								<a href="<?php echo $this->url('main','download'); ?>" class=""><img src="<?php echo $this->themePath('img/buttons.png'); ?>" alt=""></a>
							</div>
							--->
							<?php if (!$session->isLoggedIn()): ?>
								<div class="buttons">
									<a href="<?php echo $this->url('account','create'); ?>" class=""><img src="<?php echo $this->themePath('img/buttons.png'); ?>" alt=""></a>
									<a href="<?php echo $this->url('main','download'); ?>" class=""><img src="<?php echo $this->themePath('img/buttons.png'); ?>" alt=""></a>
								</div>
							<?php else:?>
								<div class="btn_manage">
									<a href="<?php echo $this->url('account','view'); ?>" class=""><img src="<?php echo $this->themePath('img/btn_myaccount.png'); ?>" alt=""></a>
									<a href="<?php echo $this->url('account','logout'); ?>" class=""><img src="<?php echo $this->themePath('img/btn_logout.png'); ?>" alt=""></a>
									<a href="<?php echo $this->url('account','changepass'); ?>" class=""><img src="<?php echo $this->themePath('img/btn_changepass.png'); ?>" alt=""></a>
									<a href="<?php echo $this->url('account','changemail'); ?>" class=""><img src="<?php echo $this->themePath('img/btn_changeemail.png'); ?>" alt=""></a>	
									<a href="<?php echo $this->url('main','download'); ?>" class=""><img src="<?php echo $this->themePath('img/btn_download.png'); ?>" alt=""></a>
								</div>
							<?php endif?>

							<div class="facebook">
								<iframe src="https://www.facebook.com/plugins/page.php?href=<?php echo $EADev['facebook']; ?>%2F&tabs=timeline&width=299&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=1617016161843836" width="299" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
							</div>
							<div class="merchant">

						
							</div>
						</div>
						<div class="contentRight">
							<?php if ($message=$session->getMessage()): ?>
								<p class="message"><?php echo htmlspecialchars($message) ?></p>
							<?php endif ?>
							<?php include $this->themePath('main/submenu.php', true) ?>
							<?php include $this->themePath('main/pagemenu.php', true) ?>
							<?php if (in_array($params->get('module'), array('donate', 'purchase'))) include $this->themePath('main/balance.php', true) ?>
