/**
 * @author jeff a.k.a topdown "Web Developer"
 * @copy is for this file only the plugins are open-source projects
 * @copy 2009 topdown Webmasters United.org
 * 
 * this file is for the common jQuery calls $document ready
 */
// jQuery events
$(document).ready(function() {
	// new window method for external links
	$("a[@rel*='external']").click(function() {
		window.open(this.href);
		return(false);
	});
	
	// lightbox plugin
	$('a[@rel*=lightbox]').lightBox({
	overlayBgColor: '#000',
	overlayOpacity: 0.6,
	//imageLoading: '{T_THEME_PATH}/images/loading.gif',
	//imageBtnClose: '{T_THEME_PATH}/images/close.gif',
	//imageBtnPrev: '{T_THEME_PATH}/images/prev.gif',
	//imageBtnNext: '{T_THEME_PATH}/images/next.gif',
	containerResizeSpeed: 350,
	txtImage: 'Image',
	txtOf: 'of'
   });

	// easy slider plugin
	$("#slider").easySlider({
				prevId: 'prevBtn',
				//prevText: 'Previous',
				nextId: 'nextBtn',	
				//nextText: 'Next',
				//controlsShow: true,
				controlsBefore: '<p id="controls">',
				controlsAfter: '</p>',	
				//controlsFade: true,
				//firstId: 'firstBtn',
				//firstText: 'First',
				//firstShow: false,
				//lastId: 'lastBtn',	
				//lastText: 'Last',
				//lastShow: false,				
				//vertical: true,
				//speed: 800,
				//auto: false,
				//pause: 2000,
				//continuous: false
			});
			$("#slider2").easySlider({
				controlsBefore:	'<p id="controls2">',
				controlsAfter:	'</p>',		
				prevId: 'prevBtn2',
				nextId: 'nextBtn2',
				vertical: true	
			});			

	
	// ajax tabs
    $('#container-9').tabs({ remote: true });

	//List tree view
	$(".browser").treeview({	
		collapsed: true,
		//animated: "fast",
		//unique: true,
		//persist: "location",
		persist: "cookie",
		cookieId: "navigationtree",
		//prerendered: true
	});
});
