	//-------------------------------------------------------------------------------------------------
	//--- EMBED MOVIES - flv/flash ---
	
	function fcn_embed_flash(){		
		//alert("dfsd");

		//replace all html editor inserted movies with swfobject
		//needed for accessibility options
		var cnt = 1;
		var next_img = null;
		//find all embed objects
		$('div.flash-movie').each(function()
		{								   
			flash_preview_img = '/content/images/flash-default.gif';
			var next_img = $(this).siblings('img');
			var flash_preview_img = null;
			var flash_div = $(this).children("a");
			var flash_href = flash_div.attr('href');
			var flash_extension = flash_div.attr('href').substring(flash_div.attr('href').lastIndexOf(".")+1,flash_div.attr('href').length);
			var flash_preview_img = '/content/images/flash-default.gif';
			
			//
			switch (flash_extension)
			{
				case "flv":
				//case "swf":
					if (next_img.length > 0 && next_img.attr('src').length > 0)
					{
						flash_preview_img = next_img.attr('src');
						//remove the image from the page
						next_img.remove();
					}
					flash_href = flash_href + '&image=' + flash_preview_img;
					flash_div.attr('href',flash_href);	
					//alert(flash_href);
				break;
			}
			
			flash_div.media();				
			//if there is an img next to the flash video then use that image as the image preview
			/*
			if(next_img.length > 0 && next_img.attr('src').length > 0){
				flash_preview_img = next_img.attr('src');
				//remove the image from the page
				next_img.remove();
			}
			*/
								
			//set default player location
			//$.fn.media.defaults.flvPlayer = '/css/skins/default/flash/player.swf';
			//run media plugin on all a links with media class
			//$('#'+flash_div+' a').media();
		});
		
	
		//replace all fck inserted movies with swfobject
		//needed for accessibility options
		var cnt = 1;
		//find all embed objects
		$('embed').each(function(){
				//if they are flash movies
				if ($(this).attr('type') == 'application/x-shockwave-flash')
				{				
					//get the source fo the flash movie
					if ($(this).attr('src'))
					{	
						//get width and height of movie to use for replacement below
						flash_width = $(this).attr('width');
						flash_height = $(this).attr('height');
						//alert(flash_width+":"+flash_height);
						
						embed_type = $(this).attr('type');
						flash_src = $(this).attr('src');
						flash_div = 'flash-'+cnt;
						flash_extension = $(this).attr('src').substring($(this).attr('src').lastIndexOf(".")+1,$(this).attr('src').length);
						flash_preview_img = '/content/images/flash-default.gif';
						//alert("type:"+embed_type+"ext:"+flash_extension+"flash_src:"+flash_src);
		
						//give the element an id
						$(this).attr('id','embed-'+cnt);	
	
						switch (flash_extension)
						{						
							/*case "flv":
								alert(flash_height);
								
								if (jQuery.fn.media)
								{	
									//replace the embed obect with a holding div
									$(this).replaceWith('<div id="'+flash_div+'"></div>');
	
									//use swfobject to embded the flash movie
									$('#'+flash_div).flash({ 
										// test.swf is the flash document 
										swf: flash_src,
										play: false,
										width : flash_width,
										height : flash_height
										//width : 425,
										//height : 344
									});
									
									//alert(flash_height);
									
									//set default player location
									$.fn.media.defaults.flvPlayer = '/css/skins/default/flash/mediaplayer.swf';
									//run media plugin on all a links with media class
									//$('#'+flash_div+' a').media();
								}
								else
								{
									alert('You need to have the media and meta plugins installed.');
								}
							break;*/
							case "swf":
								if (jQuery.fn.flash)
								{
									//alert("swf");	
										
									//replace the embed obect with a holding div
									$(this).replaceWith('<div class="flash-movie"><div id="'+flash_div+'"></div></div>');
									//use swfobject to embded the flash movie
									$('#'+flash_div).flash({ 
										// test.swf is the flash document 
										swf: flash_src,
										width : flash_width,
										height : flash_height									
										//width : 425,
										//height : 344
									}); 
								}
								else
								{
									alert('You need to have the swfobject plugins installed.');
								}
							break;
							default:
							break;
						}
					}
				}
			cnt++;
		});

	}//fcn_embed_flash
	
	//--- EMBED MOVIES - flv/flash ---
	//-------------------------------------------------------------------------------------------------






//jQuery.noConflict(); //then need to replace all the '$' with 'jQuery' or use a short name var $j = jQuery.noConflict(); 

$(document).ready(function(){	
	
	//-------------------------------------------------------------------------------------------------
	//--- EMBED MOVIES - flv/flash ---	
	fcn_embed_flash();
	//--- EMBED MOVIES - flv/flash ---
	//-------------------------------------------------------------------------------------------------	
	
	/*
	//-------------------------------------------------------------------------------------------------
	//--- LINKS - NEW WINDOW ---						   
	//xhtml work around to open all EXTERNAL links (with re=new-window) as new tab or window
	$(function(){	
		//check all hrefs, if external, open in blank window
		$('a').filter(function(){
			pattern = /http|ftp(s)?/i;			//basic regex patterm case insensitive
			result = pattern.test($(this).attr('href'));	//rung using test method
					
			if(result == true){
				$(this).attr({
					target: "_blank", 
					title: "Opens in a new window"
				});
			}
		});
	});	
	//--- LINKS - NEW WINDOW ---		
	//-------------------------------------------------------------------------------------------------
	*/
	

	//-------------------------------------------------------------------------------------------------
	/* EMBED MEDIA */
	if (jQuery.fn.media){
		//set default player location
		$.fn.media.defaults.flvPlayer = '/css/skins/default/flash/mediaplayer.swf';
		//run media plugin on all a links with media class
		$('a.media').media();
	}
	//-------------------------------------------------------------------------------------------------	
	

	/* -------------------------------------------------------------------------------------------- */
	/* JCAROUSEL */	
	if(jQuery.fn.jCarouselLite){
		//alert('ff');
		if($('.jclite-scroller').length > 0 ){ // check if element is on page
			$(".jclite-scroller").jCarouselLite({
				vertical: true,
				hoverPause: true,
				visible: 1,
				auto: 4000,
				speed: 0,
				beforeStart: function(a) {
					$(a).parent().fadeTo(1000, 0);
					var bg = $(a).find('img').attr('src');
					$('.anyClass').css({
						backgroundImage: "url("+bg+")"
					}, 1000);
				},
				afterEnd: function(a) {
					$(a).parent().fadeTo(1000, 1);
				}//,
				//easing: "easeInBounce",
			});	
		}
	}	
	/* JCAROUSEL */	
	/* -------------------------------------------------------------------------------------------- */


	/* -------------------------------------------------------------------------------------------- */
	/* CONTACT US - CONTACT FORM */
	if ($('#form-contact').length > 0 ){ // check if element is on page	
		//contact form
		$("#form-contact").livequery(function(){
			$(this).validate({
				rules: {
					txt_fullname: "required",
					txa_message: "required",
					txt_contact_preference: "required",
					txt_email: {
						required: true,
						email: true
					},
					txt_telephone: "required"					
				},
				messages: {
					txt_fullname: "Please enter your name.",
					txa_message: "Please enter your enquiry.",
					txt_contact_preference: "How would you prefer we contact you?",
					txt_email: "Please enter a valid email address.",
					txt_telephone: "Please enter your telephone number."
				}
			});
		});
	 }//check
	/* CONTACT US - CONTACT FORM */
	/* -------------------------------------------------------------------------------------------- */
	
	
	/* -------------------------------------------------------------------------------------------- */
	/* TOP MENU BAR */
	if($('#nav-outer-wrapper').length > 0 ){ // check if element is on page		
	
		//hide then fade in top wrapper
		$('#nav-outer-wrapper').hide();
		
		$('body').mouseover(function(){
			$('#nav-outer-wrapper').fadeIn('slow');
		});
	}				
	/* TOP MENU BAR */
	/* -------------------------------------------------------------------------------------------- */
	
	
	//apply form validation
	if(jQuery.fn.validate){			
		if($('#SiteContactForm').length > 0 ){ // check if element is on page
		
			//custom validation rule - text is not the prefilled content     
			$.validator.addMethod("notLabelText",
				
				function(value, element) {
					// compate elements value with its label 
					// excluding the error label generated by the validation script
					// usin jQuery selector filter element[attribute!=value]
					var result = ($(element).val() == $('label[for=' + $(element).attr('id') + '][generated!=true]').text()) ? false : true;
					return result;
				} 		
			);
			
			$("#SiteContactForm").validate({
				highlight: function(element, errorClass) {
					$(element).animate({
						opacity: 0.9
					}, 400, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#FBE3E4'); //red background for invalid data
						$(element).css('border-color','#FBC2C4'); //red border for invalid data
					});
				},
				unhighlight: function(element, errorClass) {
					$(element).animate({
						opacity: 1.0
					}, 400, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#E6EFC2'); //green background for valid data
						$(element).css('border-color','#C6D880'); //green border for valid data
					});
				},
				rules: {
					txt_title: {  
						required: true,  
						notLabelText: true            
					},
					txt_firstname: {  
						required: true,  
						notLabelText: true            
					},
					txt_lastname: {  
						required: true,  
						notLabelText: true            
					},
					txt_email: {
						required: true,
						email: true,
						notLabelText: true   
					}
				},
				messages: {
					txt_title: "Please enter your title.",
					txt_firstname: "Please enter your first name.",
					txt_lastname: "Please enter your last name.",
					txt_email: "Please enter your email."
				}
			});
		}
		if($('#SiteContactUsForm').length > 0 ){ // check if element is on page
		
			//custom validation rule - text is not the prefilled content     
			$.validator.addMethod("notLabelText",
				
				function(value, element) {
					// compate elements value with its label 
					// excluding the error label generated by the validation script
					// usin jQuery selector filter element[attribute!=value]
					var result = ($(element).val() == $('label[for=' + $(element).attr('id') + '][generated!=true]').text()) ? false : true;
					return result;
				} 		
			);
			
			$("#SiteContactUsForm").validate({
				highlight: function(element, errorClass) {
					$(element).animate({
						opacity: 0.9
					}, 400, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#FBE3E4'); //red background for invalid data
						$(element).css('border-color','#FBC2C4'); //red border for invalid data
					});
				},
				unhighlight: function(element, errorClass) {
					$(element).animate({
						opacity: 1.0
					}, 400, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#E6EFC2'); //green background for valid data
						$(element).css('border-color','#C6D880'); //green border for valid data
					});
				},
				rules: {
					txt_title: {  
						required: true,  
						notLabelText: true            
					},
					txt_firstname: {  
						required: true,  
						notLabelText: true            
					},
					txt_lastname: {  
						required: true,  
						notLabelText: true            
					},
					txt_email: {
						required: true,
						email: true,  
						notLabelText: true 
					}
				},
				messages: {
					txt_title: "Please enter your title.",
					txt_firstname: "Please enter your first name.",
					txt_lastname: "Please enter your last name.",
					txt_email: "Please enter your email."
				}
			});
		}
		if($('#SiteSignUpForm').length > 0 ){ // check if element is on page
		
			//custom validation rule - text is not the prefilled content     
			$.validator.addMethod("notLabelText",
				
				function(value, element) {
					// compate elements value with its label 
					// excluding the error label generated by the validation script
					// usin jQuery selector filter element[attribute!=value]
					var result = ($(element).val() == $('label[for=' + $(element).attr('id') + '][generated!=true]').text()) ? false : true;
					return result;
				} 		
			);
			
			$("#SiteSignUpForm").validate({
				highlight: function(element, errorClass) {
					$(element).animate({
						opacity: 0.9
					}, 400, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#FBE3E4'); //red background for invalid data
						$(element).css('border-color','#FBC2C4'); //red border for invalid data
					});
				},
				unhighlight: function(element, errorClass) {
					$(element).animate({
						opacity: 1.0
					}, 400, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#E6EFC2'); //green background for valid data
						$(element).css('border-color','#C6D880'); //green border for valid data
					});
				},
				rules: {
					txt_news_email: {
						required: true,
						email: true
					}
				},
				messages: {
					txt_news_email: "Please enter your email."
				}
			});
		}
	}
	
	
	/*!
	 * unwrap - v0.1 - 7/18/2009
	 * http://benalman.com/projects/jquery-unwrap-plugin/
	 * 
	 * Copyright (c) 2009 "Cowboy" Ben Alman
	 * Licensed under the MIT license
	 * http://benalman.com/about/license/
	 */

	
	if(jQuery.fn.showhide){
		//apply show hide plugin for use in gallery
		if($('a.showhide').length > 0 ){
			$('a.showhide').showhide({
				animate:true,
				event:'click',
				target:'#large_img',
				animate_type:'custom'
			});
		}
	}
	
	
	if(jQuery.fn.inputfocus){
		if($('#home #main #main-center-panel .col-3 .form form div.input').length > 0 ){ // check if element is on page
			//apply form field effect
			$('#home #main #main-center-panel .col-3 .form form div.input').inputfocus({
				bgColourFocus:'#F0F7E8',
				bgColour:'#FFFFFF',			
				animate:true
			});
		}
		
		if($('#nav form div.input').length > 0 ){ // check if element is on page
			//apply form field effect
			$('#nav form div.input').inputfocus({
				bgColourFocus:'#F0F7E8',
				bgColour:'#FFFFFF',			
				animate:true
			});
		}
		
		if($('#SiteContactUsForm div.input').length > 0 ){ // check if element is on page
			//apply form field effect
			$('#SiteContactUsForm div.input').inputfocus({
				bgColourFocus:'#F0F7E8',
				bgColour:'#FFFFFF',			
				animate:true
			});
		}
	}
	
	if(jQuery.fn.cycle){
		if($('#quotes').length > 0){
			if($('#quotes').html().length > 0){ // check if element is on page and have some content
				$('#quotes').css('height','305px');//set height of quotes box
				$('#quotes').cycle({fx:'slideY',timeout:'8000'});
			}
		}
	}
	
	//apply overlay animations
	if($('#home div.item div.details div.header').length > 0 ){ // check if element is on page
		$('div.item').each(function(){
			
			var over_top = 73;
			var start_top = 148;
            var time = 250;
            var hideDelay = 500;
 			
            var hideDelayTimer = null;
 
            var beingShown = false;
            var shown = false;
			
			var details = $(this).children('div.details');
			
			if($(this).hasClass('nofade') == false){				
				
				//handle parent / child events
				$(this).mouseover(function(){
					if (hideDelayTimer) clearTimeout(hideDelayTimer);					   
					if (beingShown || shown) {
						// don't trigger the animation again
						return;
					} else {
						 // reset position of info box
                   		beingShown = true;
					
						// reset position of info box based on sttyle sheet values
						details.css({
							top: start_top,
							left: 0,
							display: 'block'
						}).animate({top: over_top}, time, 'swing', function() {
							beingShown = false;
							shown = true;
						}).children('div.content').animate({opacity: 0.9});
					}
					
					return false;
					
				}).mouseout(function(){					
					
					if (hideDelayTimer) clearTimeout(hideDelayTimer);
					hideDelayTimer = setTimeout(function () {
				   		hideDelayTimer = null;
						details.animate({top: start_top}, time, 'swing', function () {
							shown = false;
						}).children('div.content').animate({opacity: 1});
					}, hideDelay);
					
					return false;
				});
				
			}
		});
	}

	if(jQuery.fn.jcarousel){
		if($('#carousel').length > 0 ){ // check if element is on page
			$('#carousel').jcarousel({
				buttonNextHTML : '<a class="next action"><img src="/img/buttons/btn-next.gif" class="button" alt="next" /></a>',
				buttonPrevHTML : '<a class="prev action"><img src="/img/buttons/btn-prev.gif" class="button" alt="previous" /></a>',
				scroll : 2,
				vertical: true,
				wrap : 'both'
			});
		}
	}
	
	if($('.button').length > 0 ){ // check if element is on page
		//loop through all a tags if one has a nested image then apply a fade to it unless the image has a class set to 'nofade'	
		$('.button').each(function(){
		
			if($(this).attr('src')){
				var img = $(this).attr('src');
				var img_extension = img.substring(img.lastIndexOf(".")+1,img.length);
				var img_name_mouse_out = img.substring(0,img.lastIndexOf("."));
				var img_name_mouse_over = img_name_mouse_out + '-mouseover.' + img_extension;

				$(this).mouseover(function(){
					$(this).attr('src',img_name_mouse_over);
				});
					
				$(this).mouseout(function(){
					$(this).attr('src',img);
				});
			}
		});
	}
	
	
	
	//-------------------------------------------------------------------------------------------------
	//--- ORDERS ---

	//order delivery
	if ($('#form-order-delivery').length > 0){ // check if element is on page
		$("#form-order-delivery").livequery(function(){
			$(this).validate({
				rules: {
					f_fullname: "required",
					f_phone: "required",
					f_mobile: "required",
					f_email: {
						required: true,
						email: true
					},
					f_confirm_email: {
						required: true,
						email: true
					},
					f_bill_address1: "required",
					f_bill_town: "required",
					f_bill_county: "required",
					f_bill_postcode: "required",
					f_bill_country: "required"
				},
				messages: {
					f_fullname: "Please enter fullname.",
					f_phone: "Please enter phone.",
					f_mobile: "Please enter mobile.",
					f_email: "Please enter a valid email address.",
					f_confirm_email: "Please enter a valid email address.",
					f_bill_address1: "Please enter billing address 1",
					f_bill_town: "Please enter billing town",
					f_bill_county: "Please enter billing county",
					f_bill_postcode: "Please enter billing postcode",
					f_bill_country: "Please enter billing country"					
				}
			});	
		});
	}// check if element is on page
	
	//--- ORDERS ---
	//-------------------------------------------------------------------------------------------------
	
	

	//-------------------------------------------------------------------------------------------------
	//--- USERS ---
	
	//user register form
	if ($('#form-userregister').length > 0){ // check if element is on page
		$("#form-userregister").livequery(function(){
			$(this).validate({
				rules: {
					txt_title: "required",
					txt_firstname: "required",
					txt_surname: "required",
					txt_address: "required",
					txt_postcode: "required",
					txt_country: "required",
					txt_phone: "required",					
					txt_bill_address1: "required",
					//txt_bill_address2: "required",
					txt_bill_town: "required",
					txt_bill_county: "required",
					txt_bill_postcode: "required",
					txt_bill_country: "required",
					txt_heard_about_us: "required",
					txt_mailing_list: "required",					
					txt_reg_email: {
						required: true,
						email: true
					},
					txt_password: "required",
					txt_repeat_password: {
						required: true,
						equalTo: "#txt_password"
					}
				},
				messages: {
					txt_title: "Please enter your title.",
					txt_firstname: "Please enter your first name.",
					txt_surname: "Please enter your surname.",
					txt_address: "Please enter your address.",
					txt_postcode: "Please enter your postcode.",
					txt_country: "Please enter your country.",
					txt_phone: "Please enter your telephone number.",				
					txt_bill_address1: "Please enter billing address 1.",
					//txt_bill_address2: "Please enter billing address 2.",
					txt_bill_town: "Please enter billing town.",
					txt_bill_county: "Please enter billing county.",
					txt_bill_postcode: "Please enter billing postcode.",
					txt_bill_country: "Please enter billing country.",
					txt_heard_about_us: "Please enter how you heard about us.",	
					txt_mailing_list: "Please enter mailing list preference.",	
					txt_reg_email: "Please enter a valid email address.",
					txt_password: "Please enter a password.",			
					txt_repeat_password: { 
						required: "Please confirm password.", 
						equalTo: "Please enter the same password as above." 
					} 				
				}
			});	
		});
	}// check if element is on page


	//user edit form
	if ($('#form-useredit').length > 0){ // check if element is on page
		$("#form-useredit").livequery(function(){
			$(this).validate({
				rules: {
					txt_title: "required",
					txt_firstname: "required",
					txt_surname: "required",
					txt_address: "required",
					txt_postcode: "required",
					txt_country: "required",
					txt_phone: "required",
					txt_bill_address1: "required",
					//txt_bill_address2: "required",
					txt_bill_town: "required",
					txt_bill_county: "required",
					txt_bill_postcode: "required",
					txt_bill_country: "required",
					txt_heard_about_us: "required",
					txt_mailing_list: "required",		
					txt_reg_email: {
						required: true,
						email: true
					},
					//txt_password: "required",
					txt_repeat_password: {
						//required: true,
						equalTo: "#txt_password"
					}
				},
				messages: {
					txt_title: "Please enter your title.",
					txt_firstname: "Please enter your first name.",
					txt_surname: "Please enter your surname.",
					txt_address: "Please enter your address.",
					txt_postcode: "Please enter your postcode.",
					txt_country: "Please enter your country.",
					txt_phone: "Please enter your telephone number.",
					txt_bill_address1: "Please enter billing address 1.",
					//txt_bill_address2: "Please enter billing address 2.",
					txt_bill_town: "Please enter billing town.",
					txt_bill_county: "Please enter billing county.",
					txt_bill_postcode: "Please enter billing postcode.",
					txt_bill_country: "Please enter billing country.",
					txt_heard_about_us: "Please enter how you heard about us.",	
					txt_mailing_list: "Please enter mailing list preference.",	
					txt_reg_email: "Please enter a valid email address.",
					//txt_password: "Please enter a password.",			
					txt_repeat_password: { 
						//required: "Please confirm password.", 
						equalTo: "Please enter the same password as above." 
					} 				
				}
			});	
		});
	}// check if element is on page
	
	
	//user reminder form
	if ($('#form-userreminder').length > 0){ // check if element is on page
		$("#form-userreminder").livequery(function(){
			$(this).validate({
				rules: {
					f_email: {
						required: true,
						email: true
					}
				},
				messages: {
					f_email: "Please enter a valid email address."				
				}
			});	
		});
	}// check if element is on page


/*	//user login form
	if ($('#form-login').length > 0){ // check if element is on page
		$("#form-login").livequery(function(){
			$(this).validate({
				rules: {
					f_email: {
						required: true,
						email: true
					},
					f_password: "required"
				},
				messages: {
					f_email: "Please enter a valid email address.",
					f_password: "Please enter your password."
				}
			});	
		});
	}// check if element is on page*/

	//login form validation
	if(jQuery.fn.validate){			
		if($('#form-login').length > 0 ){ // check if element is on page
			$("#form-login").validate({
				highlight: function(element, errorClass) {
					$(element).animate({
						opacity: 0.9
					}, 300, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#FBE3E4'); //red background for invalid data
						$(element).css('border-color','#FBC2C4'); //red border for invalid data
					});
				},
				unhighlight: function(element, errorClass) {
					$(element).animate({
						opacity: 1.0
					}, 300, function () {
						$(element).css('color','#000000'); //red background for invalid data
						$(element).css('background-color','#E6EFC2'); //green background for valid data
						$(element).css('border-color','#C6D880'); //green border for valid data
					});
				},
				rules: {
					f_email: "required",
					f_password: "required"
				},
				messages: {
					f_email: "Please enter your email.",
					f_password: "Please enter your password."
				}
			});
		}// check if element is on page
	}

	//--- USERS ---
	//-------------------------------------------------------------------------------------------------
	
	
	
	//-------------------------------------------------------------------------------------------------
	//--- NEWSLETTERS ---
	
	//user register form
	if ($('#form-newsletter-signup').length > 0){ // check if element is on page
		$("#form-newsletter-signup").livequery(function(){
			$(this).validate({
				rules: {
					txt_firstname: "required",
					txt_surname: "required",
					txt_nl_email: {
						required: true,
						email: true
					},
					txt_security_code: "required"
				},
				messages: {
					txt_firstname: "Please enter your first name.",
					txt_surname: "Please enter your surname.",
					txt_nl_email: "Please enter a valid email address.",
					txt_security_code: "Please enter the security code."
				}
			});	
		});
	}// check if element is on page
	
	//--- NEWSLETTERS ---
	//-------------------------------------------------------------------------------------------------
	
	
	
	
	//-------------------------------------------------------------------------------------------------
	//--- AJAX LINKS ---
	
	if($('#content-loading').length > 0 ){ // check if element is on page		
		//$('.ajaxify').ajaxify();
		
		//JPS augentius way dont seem to load tho - cos of 1.3 version of jquery
		$('.ajaxify').livequery(function(){
			
			//alert("grove");
			$('#main #main-center-panel .col-1').css({'position':'relative'});
			$('#main #main-center-panel #load-content').css({'position':'relative'});
			$('#content-loading').css({
			  'clear':'both',
			  'float':'left',
			  'width':'100%',
			  'text-align':'left',
			  //'position':'absolute',
			  'top':'0',
			  'left':'0',
			  'font-size':'1.3em'
			  });
			
			$(this).ajaxify({
				onStart:function(options){
					//$('#content-loading').fadeIn('slow');
					$('#content-loading').html("");		
				},
				onError:function(options,data){			
					$('#content-loading').html("<p class='error'>Error: Couldn't open &quot;"+options.link+"&quot;.</p>");	
				},
				onSuccess:function(options,data){
					$('#content-loading').css('display','none');
				},
				onComplete:function(options){
					$('#content-loading').css('display','none');
				},
				target: '#load-content',
				loadHash:'attr:title',
				//loading_txt:'Page loading...',
				//loading_img:'/img/jquery/loadingAnimation.gif',
				loading_target:'#content-loading'		
			});		
		});
	}//end check
	
	//--- AJAX LINKS ---
	//-------------------------------------------------------------------------------------------------



});
