<!DOCTYPE html>
<html>
<head>
<title><? $this->position('title');?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content="<?PHP $this->position('meta_description');?>"/>
<meta name="keywords" content="<?PHP $this->position('meta_keywords');?>"/>
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="http://www.projectpartner.ee/scripts/css/prettyPhoto.3.css" type="text/css"/>
<link rel="stylesheet" href="http://www.projectpartner.ee/scripts/theatre/theatre.css" type="text/css" />
<link rel="stylesheet" href="http://www.projectpartner.ee/scripts/theatre/imgball.css" type="text/css" />
<link rel="stylesheet" href="<?=_HostTemplate;?>/css/style.css" type="text/css"/>
<?=$this->css();?>

<script type="text/javascript">
var _window = {
       location: {canonical : '<?PHP ECHO addslashes(_FULL_URL);?>', main : '<?PHP ECHO addslashes(_RootUrl);?>', basic : '?model=<?PHP ECHO $_GET[model];?>&page=<?PHP ECHO $_GET[page];?>', loc : ''}
};
var _template = {
		name : '<?PHP ECHO _Template;?>'
};
</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://crypto-js.googlecode.com/svn/tags/3.0.2/build/rollups/md5.js"></script>
<script type="text/javascript" src="http://www.projectpartner.ee/scripts/js/jquery.prettyPhoto.3.js"></script>
<script type="text/javascript" src="http://www.projectpartner.ee/scripts/theatre/jquery.imgball.js"></script>
<script type="text/javascript" src="http://www.projectpartner.ee/scripts/theatre/jquery.lightbox-0.5.js"></script>
<script type="text/javascript" src="http://www.projectpartner.ee/scripts/theatre/jquery.theatre-1.0.js"></script>
<?
if(is_file(_RootFolder.'/tmp/script/language.js')) echo '<script type="text/javascript" src="'._RootUrl.'/tmp/script/language.js"></script>'."\n";
if(is_file(_RootFolder.'/tmp/script/link.js')) echo '<script type="text/javascript" src="'._RootUrl.'/tmp/script/link.js"></script>'."\n";
?>
<script type="text/javascript" src="<?=_RootUrl?>/scripts/js/project.js"></script>
<?=$this->script();?>

</head>
<body>

<div class="main">

	<div class="header_background">
		<div class="header_background_content">
			<div class="logo"><a href="<?=_RootUrl;?>"><img src="<?=_HostTemplate;?>/images/public/logo.png"></a></div>
			<div class="lang"><? $this->position('header'); ?><!--<a href="./?lang=est">EST</a> | <a href="./?lang=eng">ENG</a>--></div>
		</div>
	</div>
	<div class="header">
		<div class="menu">
		<? $this->position('left_menu'); ?>
		</div>
		<div class="anim">

			<div><img src="http://www.projectpartner.ee/template/images/project/600/rattad.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/Vertigo.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/kvatro.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/outlaw.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/kose.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/x3m.png"/></div>

			<div><img src="http://www.projectpartner.ee/template/images/project/600/rattad.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/kvatro.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/lunchbox.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/kose.png"/></div>
			<div><img src="http://www.projectpartner.ee/template/images/project/600/x3m.png"/></div>

		</div>
	</div>

	<div class="content"><div class="content_scroll"><? $this->position('content'); ?></div></div>

	<div class="space"></div>

	<div class="footer">
		<div class="footer_content">
			<div class="footer_content_left">Project Framework &copy;</div>
			<div class="footer_content_right"><!--<a href="mailto:kuno@projectaprtner.ee">kuno@projectaprtner.ee</a>--></div>
		</div>
	</div>
</div>


<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33975453-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

$(document).ready(function(){

	$(window).scrollTop($(document).height());
	$(".anim").theatre({effect: "3d", selector:"img", controls : 'none'});
	$('.content').css({'display' : 'block'}).animate({'top' : '0px'}, 1000);
});

$('.menu_a').click(function(){

	var url = this;

	$('.content').animate({'top' : -500}, 1000, function(){

		$('.content').css({'display' : 'none'});
		window.location.href = url;
	});
	return false;
});

</script>

</body>
</html>