jQuery(document).ready(function(){
	
	if($("#homeDockEvent").length > 0) {
		$("#homeDockEvent ul").homeDock();
	}
	if($("#homeDockRental").length > 0) {
		$("#homeDockRental ul").homeDock();
	}
	if($("#homeDockColour").length > 0) {
		$("#homeDockColour ul").homeDock();
	}
	
	if($(".rentalList").length > 0) {
		$("#content").rental();
	}
	
	if($("a[rel^='prettyPhoto']").length > 0) {
		$("a[rel^='prettyPhoto']").prettyPhoto({
			theme: 'dark_rounded'
		});
	}

	$(".subnav")
		.mouseover(function(){
			$(this).parent("li").addClass("navActive");
		})
		.mouseout(function(){
			$(this).parent("li").removeClass("navActive");
		});

	if($("textarea.tinymce").length > 0) {
		$("textarea.tinymce").tinymce({
						// Location of TinyMCE script
						script_url : '/js/lib/tiny_mce/tiny_mce.js',

						// General options
						theme : "advanced",
						plugins : "safari,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",

						// Theme options
						theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,styleselect,formatselect,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image",
						theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,cleanup,code,preview,|,hr,attribs,template,pagebreak,|,tablecontrols",
						theme_advanced_buttons3 : "",
						theme_advanced_toolbar_location : "top",
						theme_advanced_toolbar_align : "left",
						theme_advanced_statusbar_location : "bottom",
						theme_advanced_resizing : true,

						// Example content CSS (should be your site CSS)
						content_css : "/css/typo.css,/css/generic.css,/css/content.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",

						// Replace values for the template plugin
						template_replace_values : {

						},
						
						relative_urls : false
						// remove_script_host : true,
						// document_base_url : "http://si-lighting.com/"
					});
			
		// });
	}
	
});

