<script type='text/javascript'>
jQuery(document).ready(function() {
	//AJAX Upload
	jQuery('.button_upload').each(function(){
		
		var clickedObject = jQuery(this);
		var clickedID = jQuery(this).attr('id');
		
		new AjaxUpload(clickedID, {
			  action: '<?php echo admin_url("admin-ajax.php"); ?>',
			  name: clickedID, // File upload name
			  data: { // Additional data to send
					action: 'reedwan_upload',
					type: 'upload',
					data: clickedID },
			  autoSubmit: true, // Submit file after selection
			  responseType: false,
			  onChange: function(file, extension){},
			  onSubmit: function(file, extension){
				  this.disable(); // If you want to allow uploading only 1 file at time, you can disable upload button
			  },
			  onComplete: function(file, response) {
				  this.enable();

				  jQuery('[name="'+clickedID+'"]').val(response);

				  jQuery('.save_tip').fadeIn(400).delay(5000).fadeOut(400);
			  }
		});
	
	});

	// Save Changes
	jQuery('.save_changes').click(function(e) {
		e.preventDefault();

		var form = jQuery(this).parents('form');
		
		jQuery.ajax({
			url: '<?php echo admin_url("admin-ajax.php"); ?>',
			data: jQuery(form).serialize()+'&action=reedwan_save_fields',
			type: 'POST',
			success: function() {
				jQuery('.save_tip').fadeIn(400).delay(5000).fadeOut(400);
			}
		});
	});

	// Reset Changes
	jQuery('.reset_btn').click(function(e) {
		e.preventDefault();

		var form = jQuery(this).parents('form');
		
		jQuery.ajax({
			url: '<?php echo admin_url("admin-ajax.php"); ?>',
			data: 'action=reedwan_reset_fields',
			type: 'POST',
			success: function() {
				jQuery('.reset_tip').fadeIn(400).delay(5000).fadeOut(400);
				setTimeout('location.reload(true);', 1200)
			}
		});
	});



	// Main tabs
	jQuery('.main_tabs a').click(function(e) {
		e.preventDefault();

		var href = jQuery(this).attr('href')
		var parent = jQuery(href).parent();
		var name = href.replace('#', '');
		
		jQuery(this).parents('ul').find('li').removeClass('selected');
		jQuery(this).parent().addClass('selected');
		jQuery(parent).find('> div.tabs').fadeOut();
		jQuery(href).fadeIn();
	});

	
	// Images
	jQuery('.images img').live('click', function(e) {
		e.preventDefault();

		var id = jQuery(this).attr('id');

		jQuery(this).parent().find('img').removeClass('selected');
		jQuery(this).addClass('selected');
		
		jQuery(this).parent().find('input').val(id);
	});
	
	jQuery('.images img.selected').live('click', function(e) {
		e.preventDefault();

		jQuery(this).removeClass('selected');
		jQuery(this).parent().find('input').val('');
	});
});
</script>
<div class='reedwan'>
	<!-- Begin Main Tabs -->
	<ul class='main_tabs'>
		<div class="header"><img src='<?php echo get_template_directory_uri(); ?>/panel/images/logo-panel.png' alt='' /></div>
		<li class='selected'><a class='general' href='#generalTab'>General</a></li>
		<li><a class='top-adds' href='#topAddsTab'>Top Adds</a></li>
		<li><a class='social' href='#socialTab'>Social Networks</a></li>
		<li><a class='headers' href='#headerTab'>Header</a></li>
		<li><a class='spotlight' href='#spotlightTab'>Spotlight</a></li>
		<li><a class='sliders' href='#sliderTab'>Featured Sliders</a></li>
		<li><a class='posts' href='#postsTab'>Posts</a></li>
		<li><a class='appearances' href='#appearancesTab'>Appearances</a></li>
		<li><a class='background' href='#backgroundTab'>Background</a></li>
		<li><a class='error' href='#404Tab'>Error404</a></li>
	</ul>
	<!-- End Main Tabs -->
	
	
	<!-- Begin Container -->
	<div class='reedwan_container' >
	<div style='clear: both;'></div>
	<form action='' enctype='multipart/form-data'>
	
	<div id='generalTab' class='tabs'>
		<?php $this->select('homepage_style', array(
			'blog_style1' => 'Blog Style 1',
			'blog_style2' => 'Blog Style 2',
			'blog_style3' => 'Blog Style 3',
			'blog_style4' => 'Blog Style 4',
			'magazine' => 'Magazine',
		),
		'Homepage Style'); ?>
		<?php $this->select('sidebar_position', array(
			'left' => 'Left',
			'right' => 'Right',
		),
		'Sidebar Position'); ?>
		<?php $this->select('page_style', array(
			'fullwidth' => 'Fullwidth',
			'sidebar' => 'Sidebar',),'Page Style');?>
		<?php $this->upload('favicon', 'Favicon', 'Upload your Favicon'); ?>
		<?php $this->upload('footer_logo', 'Footer Logo', 'Upload your footer logo (ideal size : 300x60 px)'); ?>
		<?php $this->textarea('footer_text', 'Footer Text', ''); ?>
		<?php $this->textarea('analytics', 'Analaytics Code', ''); ?>
	</div>
	<div id='topAddsTab' style='display: none;' class='tabs'>
		<?php $this->checkbox('adds_toggle', 'Active Top Adds Toggle'); ?>
		<?php $this->text('adds_title', 'Top Adds Title', ''); ?>
		<?php $this->text('adds_url', 'Top Adds URL', ''); ?>
		<?php $this->upload('adds_image', 'Top Adds Image', 'Upload adds Image, recomended width:1000px'); ?>
		<?php $this->textarea('adds_text', 'Top Adds Custom Code', ''); ?>
	</div>
	<div id='socialTab' style='display: none;' class='tabs'>
		<?php $this->text('feedburner', 'Feedburner URL', ''); ?>
		<?php $this->text('twitter_id', 'Twitter ID', 'Input your Twitter ID'); ?>
		<?php $this->text('facebook_id', 'Facebook ID', 'Input your Facebook ID'); ?>
		<?php $this->text('google_id', 'Google Plus ID', 'Input your Google Plus ID'); ?>
		<?php $this->text('vimeo_id', 'Vimeo ID', 'Input your Vimeo ID'); ?>
		<?php $this->text('youtube_id', 'Youtube ID', 'Input your Youtube ID'); ?>
		<?php $this->text('linkedin_id', 'Linkedin ID', 'Input your Linkedin ID'); ?>
		<?php $this->text('flickr_id', 'Flickr ID', 'Input your Flickr ID'); ?>
		<?php $this->text('deviantart_id', 'DeviantArt ID', 'Input your DeviantArt ID'); ?>
		
	</div>
	<div id='headerTab' style='display: none;' class='tabs'>
		<?php $this->checkbox('show_top_container', 'Show top content (top menu)'); ?>
		<?php $this->checkbox('show_date_time', 'Show date and time on top content'); ?>
		<?php $this->checkbox('show_social_header', 'Show social network on header'); ?>
		<?php $this->checkbox('show_search_header', 'Show search form on header'); ?>
		<?php $this->text('header_height', 'Header Height', '(Height) in pixel. Note: Recomended height is 70px '); ?>
		<?php $this->upload('logo', 'Logo', 'Upload your logo'); ?>
		
	</div>
	<div id='postsTab' style='display: none;' class='tabs'>
		<?php $this->checkboxes(array(
			'twitter' => 'Twitter',
			'facebook' => 'Facebook',
			'digg' => 'Digg',
			'stumbleupon' => 'StumbleUpon',
			'reddit' => 'Reddit',
			'tumblr' => 'Tumblr',
			'email' => 'Email',
			'google' => 'Google +1',
		),
		'Social Media Support'); ?>
		<?php $this->checkbox('single_navigation', 'Show single post navigation'); ?>
		<?php $this->checkbox('author', 'Show author info box on single post'); ?>
		<?php $this->checkbox('tags', 'Show tags on single post'); ?>
		<?php $this->checkbox('categories', 'Show categories on single post'); ?>
		<?php $this->checkbox('related', 'Show related posts box on single post'); ?>
	</div>
	
	<div id='404Tab' style='display: none;' class='tabs'>
		<?php $this->text('404_Title', 'Error 404 Title', ''); ?>
		<?php $this->textarea('404_Text', 'Error 404 Text', ''); ?>
		<?php $this->upload('404_Image', 'Error 404 Image', 'Upload error 404 Image'); ?>
	</div>
	
	
	<div id='sliderTab' style='display: none;'  class='tabs'>
	<?php $this->select('featured_slider', array(
			'On' => 'Yes',
			'Off' => 'No',
		),
		'Show featured slider'); ?>
		<?php $this->select('slider_style', array(
			'smallStyle' => 'Small Style',
			'bigStyle' => 'Big Style',
		),
		'Slider Style'); ?>
		<?php $this->select('show_caption', array(
			'On' => 'Yes',
			'Off' => 'No',
		),
		'Show caption on slider'); ?>
		<?php $this->select('slider_effect', array(
			'random' => 'Random',
			'sliceDown' => 'Slice Down',
			'sliceDownLeft' => 'Slice Down Left',
			'sliceUp' => 'Slice Up',
			'sliceUpLeft' => 'Slice Up Left',
			'sliceUpDown' => 'Slice Up Down',
			'sliceUpDownLeft' => 'Slice Up Down Left',
			'fold' => 'Fold',
			'fade' => 'Fade',
			'slideInRight' => 'Slide In Right',
			'slideInLeft' => 'Slide In Left',
			'boxRandom' => 'Box Random',
			'boxRain' => 'Box Rain',
			'boxRainReverse' => 'Box Rain Reverse',
			'boxRainGrow' => 'Box Rain Grow',
			'boxRainGrowReverse' => 'Box Rain Grow Reverse',
		),
		'Slider Effect'); ?>
		<?php $this->text('slider_num_item', 'Number of item', ''); ?>
		<?php $this->text('featured_tags', 'Featured Posts Slider Tags', 'Separate tags by comma.'); ?>
		<?php $this->text('slider_speed', 'Slider Speed', ''); ?>
		<?php $this->text('slider_caption', 'Caption Opacity', 'value = 0, 0.1, 0.2, 0.3,..., 1'); ?>
		
		
	</div>
	<div id='spotlightTab'style='display: none;'  class='tabs'>
		<?php $this->select('show_spotlight', array(
			'On' => 'Yes',
			'Off' => 'No',
		),
		'Show Spotlight'); ?>
		<?php $this->text('spotlight_title', 'Spotlight Title', ''); ?>
		<?php $this->text('spotlight_tags', 'Spotlight Tags', 'Separate tags by comma'); ?>
		<?php $this->text('spotlight_num_item', 'Number of item', ''); ?>
	</div>

	<div id='appearancesTab' style='display: none;' class='tabs'>
		<?php $this->pattern('style_color', array(
			'light' => get_template_directory_uri() . '/panel/images/light.png',
			'dark' => get_template_directory_uri() . '/panel/images/dark.png',
		), 'Theme Style Color'); ?>
		<?php $this->colorpicker('color', 'General Color'); ?>
		<?php $this->colorpicker('color_top_bg', 'Top Background Color'); ?>
		<?php $this->colorpicker('spotlight_title_bg', 'Spotlight Title Background'); ?>
		<?php $this->select('general_font', array('Arial'=>'Arial','Comic Sans MS'=>'Comic Sans MS','FreeSans'=>'FreeSans','Georgia'=>'Georgia','Palatino Linotype'=>'Palatino Linotype','Lucida Sans Unicode'=>'Lucida Sans Unicode','Anonymous Pro'=>'Anonymous Pro','Tahoma'=>'Tahoma','Trebuchet MS'=>'Trebuchet MS','Verdana'=>'Verdana','Symbol'=>'Symbol',),'General Font','This font is applied to general font');?>
		<?php $this->select('heading_font', array('Aclonica'=>'Aclonica','Allan'=>'Allan','Allerta'=>'Allerta','Allerta Stencil'=>'Allerta Stencil','Amaranth'=>'Amaranth','Annie Use Your Telescope'=>'Annie Use Your Telescope','Anonymous Pro'=>'Anonymous Pro','Anton'=>'Anton','Architects Daughter'=>'Architects Daughter','Arimo'=>'Arimo','Artifika'=>'Artifika','Arvo'=>'Arvo','Astloch'=>'Astloch','Bangers'=>'Bangers','Bentham'=>'Bentham','Bevan'=>'Bevan','Bigshot One'=>'Bigshot One','Brawler'=>'Brawler','Buda'=>'Buda','Cabin'=>'Cabin','Cabin Sketch'=>'Cabin Sketch','Cabin'=>'Cabin','Calligraffitti'=>'Calligraffitti','Cantarell'=>'Cantarell','Cardo'=>'Cardo','Carter One'=>'Carter One','Caudex'=>'Caudex','Cedarville Cursive'=>'Cedarville Cursive','Cherry Cream Soda'=>'Cherry Cream Soda','Chewy'=>'Chewy','Coda'=>'Coda','Coming Soon'=>'Coming Soon','Copse'=>'Copse','Corben'=>'Corben','Cousine'=>'Cousine','Covered By Your Grace'=>'Covered By Your Grace','Crafty Girls'=>'Crafty Girls','Crimson'=>'Crimson','Crushed'=>'Crushed','Cuprum'=>'Cuprum','Damion'=>'Damion','Dancing Script'=>'Dancing Script','Dawning of a New Day'=>'Dawning of a New Day','Didact Gothic'=>'Didact Gothic','Droid Sans'=>'Droid Sans','Droid Sans Mono'=>'Droid Sans Mono','Droid Serif'=>'Droid Serif','EB Garamond'=>'EB Garamond','Expletus Sans'=>'Expletus Sans','Fontdiner Swanky'=>'Fontdiner Swanky','Francois One'=>'Francois One','Geo'=>'Geo','Goudy Bookletter 1911'=>'Goudy Bookletter 1911','Gruppo'=>'Gruppo','Holtwood One SC'=>'Holtwood One SC','Homemade Apple'=>'Homemade Apple','IM Fell'=>'IM Fell','Inconsolata'=>'Inconsolata','Indie Flower'=>'Indie Flower','Irish Growler'=>'Irish Growler','Josefin Sans Std Light'=>'Josefin Sans Std Light','Josefin Sans'=>'Josefin Sans','Josefin Slab'=>'Josefin Slab','Judson'=>'Judson','Jura'=>'Jura','Just Another Hand'=>'Just Another Hand','Just Me Again Down Here'=>'Just Me Again Down Here','Kameron'=>'Kameron','Kenia'=>'Kenia','Kranky'=>'Kranky','Kreon'=>'Kreon','Kristi'=>'Kristi','La Belle Aurore'=>'La Belle Aurore','Lato'=>'Lato','League Script'=>'League Script','Lekton'=>'Lekton','Limelight'=>'Limelight','Lobster'=>'Lobster','Lora'=>'Lora','Luckiest Guy'=>'Luckiest Guy','Mako'=>'Mako','Maven Pro'=>'Maven Pro','Meddon'=>'Meddon','MedievalSharp'=>'MedievalSharp','Megrim'=>'Megrim','Merriweather'=>'Merriweather','Metrophobic'=>'Metrophobic','Michroma'=>'Michroma','Miltonian'=>'Miltonian','Miltonian Tattoo'=>'Miltonian Tattoo','Molengo'=>'Molengo','Monofett'=>'Monofett','Mountains of Christmas'=>'Mountains of Christmas','Muli'=>'Muli','Neucha'=>'Neucha','Neuton'=>'Neuton','News Cycle'=>'News Cycle','Nobile'=>'Nobile','Nova Round'=>'Nova Round','Nunito'=>'Nunito','OFL Sorts Mill Goudy TT'=>'OFL Sorts Mill Goudy TT','OFL Standard TT'=>'OFL Standard TT','Orbitron'=>'Orbitron','Oswald'=>'Oswald','Over the Rainbow'=>'Over the Rainbow','Patua One'=>'Patua One','PT Sans'=>'PT Sans','PT Sans Narrow'=>'PT Sans Narrow','PT Serif'=>'PT Serif','PT Serif Caption'=>'PT Serif Caption','Pacifico'=>'Pacifico','Paytone One'=>'Paytone One','Permanent Marker'=>'Permanent Marker','Philosopher'=>'Philosopher','Play'=>'Play','Playfair Display'=>'Playfair Display','Podkova'=>'Podkova','Puritan'=>'Puritan','Quattrocento'=>'Quattrocento','Quattrocento Sans'=>'Quattrocento Sans','Radley'=>'Radley','Raleway'=>'Raleway','Reenie Beanie'=>'Reenie Beanie','Rock Salt'=>'Rock Salt','Rokkitt'=>'Rokkitt','Ruslan Display'=>'Ruslan Display','Schoolbell'=>'Schoolbell','Shadows Into Light'=>'Shadows Into Light','Shanti'=>'Shanti','Sigmar One'=>'Sigmar One','Six Caps'=>'Six Caps','Slackey'=>'Slackey','Smythe'=>'Smythe','Sniglet'=>'Sniglet','Special Elite'=>'Special Elite','Sue Ellen Francisco'=>'Sue Ellen Francisco','Sunshiney'=>'Sunshiney','Swanky and Moo Moo'=>'Swanky and Moo Moo','Syncopate'=>'Syncopate','Tangerine'=>'Tangerine','Tenor+Sans'=>'Tenor+Sans','Terminal Dosis Light'=>'Terminal Dosis Light','The Girl Next Door'=>'The Girl Next Door','Tinos'=>'Tinos','Ubuntu'=>'Ubuntu','Ultra'=>'Ultra','UnifrakturCook'=>'UnifrakturCook','UnifrakturMaguntia'=>'UnifrakturMaguntia','Unkempt'=>'Unkempt','VT323'=>'VT323','Vibur'=>'Vibur','Vollkorn'=>'Vollkorn','Waiting for the Sunrise'=>'Waiting for the Sunrise','Wallpoet'=>'Wallpoet','Walter Turncoat'=>'Walter Turncoat','Wire One'=>'Wire One','Yanone Kaffeesatz'=>'Yanone Kaffeesatz','Zeyada'=>'Zeyada',),'Heading Font','This font is applied to all h1, h2, h3, h4, h5, h6, ...');?>
		
		<?php $this->select('navigation_font', array('Aclonica'=>'Aclonica','Allan'=>'Allan','Allerta'=>'Allerta','Allerta Stencil'=>'Allerta Stencil','Amaranth'=>'Amaranth','Annie Use Your Telescope'=>'Annie Use Your Telescope','Anonymous Pro'=>'Anonymous Pro','Anton'=>'Anton','Architects Daughter'=>'Architects Daughter','Arimo'=>'Arimo','Artifika'=>'Artifika','Arvo'=>'Arvo','Astloch'=>'Astloch','Bangers'=>'Bangers','Bentham'=>'Bentham','Bevan'=>'Bevan','Bigshot One'=>'Bigshot One','Brawler'=>'Brawler','Buda'=>'Buda','Cabin'=>'Cabin','Cabin Sketch'=>'Cabin Sketch','Cabin'=>'Cabin','Calligraffitti'=>'Calligraffitti','Cantarell'=>'Cantarell','Cardo'=>'Cardo','Carter One'=>'Carter One','Caudex'=>'Caudex','Cedarville Cursive'=>'Cedarville Cursive','Cherry Cream Soda'=>'Cherry Cream Soda','Chewy'=>'Chewy','Coda'=>'Coda','Coming Soon'=>'Coming Soon','Copse'=>'Copse','Corben'=>'Corben','Cousine'=>'Cousine','Covered By Your Grace'=>'Covered By Your Grace','Crafty Girls'=>'Crafty Girls','Crimson'=>'Crimson','Crushed'=>'Crushed','Cuprum'=>'Cuprum','Damion'=>'Damion','Dancing Script'=>'Dancing Script','Dawning of a New Day'=>'Dawning of a New Day','Didact Gothic'=>'Didact Gothic','Droid Sans'=>'Droid Sans','Droid Sans Mono'=>'Droid Sans Mono','Droid Serif'=>'Droid Serif','EB Garamond'=>'EB Garamond','Expletus Sans'=>'Expletus Sans','Fontdiner Swanky'=>'Fontdiner Swanky','Francois One'=>'Francois One','Geo'=>'Geo','Goudy Bookletter 1911'=>'Goudy Bookletter 1911','Gruppo'=>'Gruppo','Holtwood One SC'=>'Holtwood One SC','Homemade Apple'=>'Homemade Apple','IM Fell'=>'IM Fell','Inconsolata'=>'Inconsolata','Indie Flower'=>'Indie Flower','Irish Growler'=>'Irish Growler','Josefin Sans Std Light'=>'Josefin Sans Std Light','Josefin Sans'=>'Josefin Sans','Josefin Slab'=>'Josefin Slab','Judson'=>'Judson','Jura'=>'Jura','Just Another Hand'=>'Just Another Hand','Just Me Again Down Here'=>'Just Me Again Down Here','Kameron'=>'Kameron','Kenia'=>'Kenia','Kranky'=>'Kranky','Kreon'=>'Kreon','Kristi'=>'Kristi','La Belle Aurore'=>'La Belle Aurore','Lato'=>'Lato','League Script'=>'League Script','Lekton'=>'Lekton','Limelight'=>'Limelight','Lobster'=>'Lobster','Lora'=>'Lora','Luckiest Guy'=>'Luckiest Guy','Mako'=>'Mako','Maven Pro'=>'Maven Pro','Meddon'=>'Meddon','MedievalSharp'=>'MedievalSharp','Megrim'=>'Megrim','Merriweather'=>'Merriweather','Metrophobic'=>'Metrophobic','Michroma'=>'Michroma','Miltonian'=>'Miltonian','Miltonian Tattoo'=>'Miltonian Tattoo','Molengo'=>'Molengo','Monofett'=>'Monofett','Mountains of Christmas'=>'Mountains of Christmas','Muli'=>'Muli','Neucha'=>'Neucha','Neuton'=>'Neuton','News Cycle'=>'News Cycle','Nobile'=>'Nobile','Nova Round'=>'Nova Round','Nunito'=>'Nunito','OFL Sorts Mill Goudy TT'=>'OFL Sorts Mill Goudy TT','OFL Standard TT'=>'OFL Standard TT','Orbitron'=>'Orbitron','Oswald'=>'Oswald','Over the Rainbow'=>'Over the Rainbow','PT Sans'=>'PT Sans','PT Sans Narrow'=>'PT Sans Narrow','Patua One'=>'Patua One','PT Serif'=>'PT Serif','PT Serif Caption'=>'PT Serif Caption','Pacifico'=>'Pacifico','Paytone One'=>'Paytone One','Permanent Marker'=>'Permanent Marker','Philosopher'=>'Philosopher','Play'=>'Play','Playfair Display'=>'Playfair Display','Podkova'=>'Podkova','Puritan'=>'Puritan','Quattrocento'=>'Quattrocento','Quattrocento Sans'=>'Quattrocento Sans','Radley'=>'Radley','Raleway'=>'Raleway','Reenie Beanie'=>'Reenie Beanie','Rock Salt'=>'Rock Salt','Rokkitt'=>'Rokkitt','Ruslan Display'=>'Ruslan Display','Schoolbell'=>'Schoolbell','Shadows Into Light'=>'Shadows Into Light','Shanti'=>'Shanti','Sigmar One'=>'Sigmar One','Six Caps'=>'Six Caps','Slackey'=>'Slackey','Smythe'=>'Smythe','Sniglet'=>'Sniglet','Special Elite'=>'Special Elite','Sue Ellen Francisco'=>'Sue Ellen Francisco','Sunshiney'=>'Sunshiney','Swanky and Moo Moo'=>'Swanky and Moo Moo','Syncopate'=>'Syncopate','Tangerine'=>'Tangerine','Tenor+Sans'=>'Tenor+Sans','Terminal Dosis Light'=>'Terminal Dosis Light','The Girl Next Door'=>'The Girl Next Door','Tinos'=>'Tinos','Ubuntu'=>'Ubuntu','Ultra'=>'Ultra','UnifrakturCook'=>'UnifrakturCook','UnifrakturMaguntia'=>'UnifrakturMaguntia','Unkempt'=>'Unkempt','VT323'=>'VT323','Vibur'=>'Vibur','Vollkorn'=>'Vollkorn','Waiting for the Sunrise'=>'Waiting for the Sunrise','Wallpoet'=>'Wallpoet','Walter Turncoat'=>'Walter Turncoat','Wire One'=>'Wire One','Yanone Kaffeesatz'=>'Yanone Kaffeesatz','Zeyada'=>'Zeyada',),'Navigation Font','This font is applied to navigation font');?>
		
	</div>
	<div id='backgroundTab' style='display: none;' class='tabs'>
		<?php $this->colorpicker('bg_color', 'Background Color'); ?>
		<?php $this->pattern('pattern', array(
			'none' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb1.png',
			'pattern2' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb2.png',
			'pattern3' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb3.png',
			'pattern4' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb4.png',
			'pattern5' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb5.png',
			'pattern6' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb6.png',
			'pattern7' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb7.png',
			'pattern8' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb8.png',
			'pattern9' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb9.png',
			'pattern10' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb10.png',
			'pattern11' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb11.png',
			'pattern12' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb12.png',
			'pattern13' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb13.png',
			'pattern14' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb14.png',
			'pattern15' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb15.png',
			'pattern16' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb16.png',
			'pattern17' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb17.png',
			'pattern18' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb18.png',
			'pattern19' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb19.png',
			'pattern20' => get_template_directory_uri() . '/panel/images/pattern-thumbs/pattern-thumb20.png',
		), 'Background Pattern'); ?>
		<?php $this->upload('bg_image', 'Background Image', 'Upload Your Background Image'); ?>
		<?php $this->select('img_position', array(
			'left center' => 'left center',
			'right top' => 'right top',
			'right center' => 'right center',
			'right bottom' => 'right bottom',
			'center top' => 'center top',
			'center center' => 'center center',
			'center bottom' => 'center bottom',),'Background Image Position');?>
	
	</div>
	
	<div style='clear: both;'></div>
	<!-- Begin Button Save and Reset -->
	<div class='reset_save'>
		<div class='reset_button'>
			<input onclick='return confirm("Click OK to reset. Any settings will be lost!");' type='submit' name='reset' value='RESET' class='reset_btn' />
			<img class='reset_tip' style='display: none;' src='<?php echo get_template_directory_uri(); ?>/panel/images/reset_tip.png' alt='' />
		</div>
		<div class='save_button'>
			<img class='save_tip' style='display: none;' src='<?php echo get_template_directory_uri(); ?>/panel/images/save_tip.png' alt='' />
			<input type='submit' name='save_changes' value='SAVE' class='save_changes' />	
		</div>
		<div style='clear: both;'></div>
	</div>
	<!-- End Button Save and Reset -->
	</form>
	
	</div>
	<!-- End Container -->
	<!-- Begin Footer -->
	<div class="footer-container">
		<p><em>Backstreet Theme.</em> Copyright &copy; 2012 - reedwan. Powered by <a href="http://wordpress.org">WordPress</a>. Designed By <a href="http://kupastuntas.com">Ridwan</a> </p>
	</div>
	<!-- End Footer -->
</div>