//------------------------------------------------------------
// JavaScript Document
// preps page with bords/3d smoth style and run / set other custom effects
//------------------------------------------------------------
$(document).ready(function(){          
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
	if (b_version.indexOf("MSIE 6.0")==-1 && browser.indexOf("Opera")==-1 && b_version.indexOf("MSIE 7.0")==-1) {
		$("#menu_group_main a").blend();       
	};
	if ( $(".column").length > 0 ) {				
		//$(".column").sortable({
		//	connectWith: '.column',
		//	handle: '.portlet-header'
		//});
		$(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
			.find(".portlet-header")
			.addClass("fixed ui-widget-header ui-corner-top")
			//.prepend('<span class="ui-icon ui-icon-triangle-1-n"></span>')
			.end()
			//.find(".portlet-content");
			//$(".portlet-header .ui-icon").click(function() {
			//	$(this).parents(".portlet:first").find(".portlet-content").slideToggle("fast");
			//	$(this).toggleClass("ui-icon-triangle-1-s"); 
			//	return false;	
			//});
		//$(".column").disableSelection();
	};
	// infro section
	$(".info").click(function() {
		$(this).slideUp("fast");							 	  
	});
	if ( $(".more").length > 0 ) {	
			$("#tabs .more").click(function() { 
				$("#hidden_submenu").slideToggle("fast");
				$(this).toggleClass("current"); return false;								 			
			});
	}	
	if ( $(".morehelp").length > 0 ) {	
			$("#tabs .morehelp").click(function() { 
				$("#hidden_help").slideToggle("fast");
				$(this).toggleClass("current"); return false;								 			
			});
	}
	$('a.help').cluetip({
		splitTitle: '|',
		showTitle: false,
		dropShadow: false,
		cluezIndex:2000
	});

});