<?php
add_action('admin_menu', 'slr_setupguide_menu');

function slr_setupguide_menu() {
  add_theme_page('Solarpress setup guide', 'Theme Setup Guide', 8, 'theme_setup_guide', 'slr_setupguide');
}

function slr_setupguide() {
?>

<style>
	.theme {width: 90%; background:#fff; border:1px solid #DFDFDF; margin:10px 0px;}
	.theme img {border:1px solid #DFDFDF;}
	.theme h4{ background:#E8E8E8; padding:5px; margin:0px; }
	.guide { line-height:20px; overflow: hidden; padding:10px;}

</style>

<div class="wrap">
<h2> <b> Solarpress Setup Guide </b> </h2>

<p> <b>Theme is built for WP 2.9 version.</b> If your WordPress version is before 2.9 please upgrade it. <br/>Please read the setup guide and adjust your settings in the theme option page. </p> 
<p><b>Do not rename the theme folder. </b></p>
<p>For support related issues please <a href="http://web2feel.com/">contact me </a> via my website  </p>

<div class="theme">

<h4>Setup Guide</h4>

<div class="guide">
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_1116090935.swf' /><param name='flashvars' value='i=44751' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_1116090935.swf' flashvars='i=44751' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object>

</div>

</div>


</div>


<?php 
} 
function slider(){
?>

<script type="text/javascript">
var flashvars = {};
		flashvars.xml = "<?php bloginfo('template_directory'); ?>/config.php";
		flashvars.font = "<?php bloginfo('template_directory'); ?>/font.swf";
		var attributes = {};
		attributes.wmode = "transparent";
		attributes.id = "slider";
		swfobject.embedSWF("<?php bloginfo('template_directory'); ?>/cu3er.swf", "cu3er-container", "860", "250", "9", "<?php bloginfo('template_directory'); ?>/js/swfobject/expressInstall.swf", flashvars, attributes); 
		
</script>
<div id="cuberbox">	
<div id="cu3er-container">
    <a href="http://www.adobe.com/go/getflashplayer">
        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
</div>
</div>
<?php
}
?>