﻿$(document).ready(function () {
	//$(function() {

	try {
		$("#page-tabs").tabs();
		$("#page-tabs > ui-tabs-panel").css('height', $("#page-tabs > ui-tabs-panel").height());
	}
	catch (e) { }

	try {
		$('ul.navmenu').superfish(
		    {
		    	hoverClass: 'sfHover',          // the class applied to hovered list items 
		    	pathClass: 'current', // the class you have applied to list items that lead to the current page 
		    	pathLevels: 1,                  // the number of levels of submenus that remain open or are restored using pathClass 
		    	delay: 800,                // the delay in milliseconds that the mouse can remain outside a submenu without it closing 
		    	animation: { opacity: 'show' },   // an object equivalent to first parameter of jQuery’s .animate() method 
		    	speed: 'normal',           // speed of the animation. Equivalent to second parameter of jQuery’s .animate() method 
		    	autoArrows: true,               // if true, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance 
		    	dropShadows: true,               // completely disable drop shadows by setting this to false 
		    	disableHI: false              // set to true to disable hoverIntent detection 
		    });
	}
	catch (e) { }

	//$('ul.sf-navmenu').superfish();

	//		$(".sortable").sortable({
	//			revert: true
	//		});
	//		
	//		$(".draggable").draggable({
	//			connectToSortable: '#sortable',
	//			helper: 'clone',
	//			revert: 'invalid'
	//		})

	try {
		$(".accordion").accordion({
			collapsible: true,
			active: 1
		});
	}
	catch (e) { }

	try {
		//$(".item-list-one").addClass("ui-state-default ui-corner-all")

		$(".item-list-one").addClass("ui-corner-all")

	}
	catch (e) { }

	// jquery.corner conflicts with sortable making the height taller when dragged
	//$(".item-list-one-wrap").corner("10px");
	//$(".item-list-one").corner("round 6px").parent().css('padding', '4px').corner("round 8px")

	//		SyntaxHighlighter.config.bloggerMode = true;
	//		SyntaxHighlighter.defaults['html-script'] = true;  
	//		SyntaxHighlighter.config.clipboardSwf = '/scripts/SyntaxHighlighter/clipboard.swf';
	//		SyntaxHighlighter.all();
});
