var advancedtinymce = {// Location of TinyMCE script
		script_url : '/_assets/script/tiny_mce/tiny_mce.js',
		relative_urls: false,
		// General options
		theme : "advanced",
		elements : "ajaxfilemanager",
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
		//plugins : "advimage,advlink,media,contextmenu",
		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,sub,sup,|,charmap,iespell,advhr,|,formatselect",
		theme_advanced_buttons2 : "bullist,numlist,|,cite,abbr,acronym,del,ins,attribs,|,link,unlink,image,cleanup,help,code",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid",
		theme_advanced_buttons4 : "undo,redo,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking",

		force_br_newlines : false,
		force_p_newlines : true,

		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : false,

		// Example content CSS (should be your site CSS)
		content_css : "/_assest/css/_admin-import.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",
		file_browser_callback : "ajaxfilemanager"
	};

$(document).ready(function(){

	$('head').append('<link href="/_assets/css/jscss.css" rel="stylesheet" type="text/css" media="screen" />');
	
	$('#main-nav li:not(.here)')
		.append('<span class="hover"></span>')
		.hover(
			function(){
				$(this).children('span.hover')
					.stop(true,false)
					.animate({
						'opacity' : '1'
					},250);
			},
			function(){
				$(this).children('span.hover')
				.stop(true,false)
				.animate({
					'opacity' : '0'
				},500);
			}
		);
	
	$('#main-nav li span.hover').css({ 'opacity' : 0 });
	
	
	
	/*var $pri = $('#primary-content');
	var lHeight	=	$('.panel.left').outerHeight();
	var rHeight	=	$('.panel.right').outerHeight();;
	var secHeight = 0;
	
	if ( lHeight > rHeight )
	{
		secHeight	=	lHeight + 6;
	}
	else
	{
		secHeight	=	rHeight + 6;
	}
	//$pri.css({ 'min-height': ( (secHeight - ( $pri.outerHeight() - $pri.height() ) + 10) + 'px' ) });
	$pri.css({ 'min-height': ( (secHeight - ( $pri.outerHeight() - $pri.height() ) ) + 'px' ) });*/
	
	$('#keyword').placeholder();
	
});
