$(document).ready(function () {
//////////////  This is the script for the tabbed rollovers    ////////////////////////////////////////	


		$('div.tabs').each(function () { var tabContainers = $('> div', this); var tabs = $('> ul.tabNavigation li a', this);

		$('ul.tabNavigation a', this).mouseover(function () {
		  tabContainers.hide().filter(this.hash).show();
		
		  tabs.removeClass('selected');
		  $(this).addClass('selected');
		
		  return false;
		}).filter(':first').mouseover();
		}); 



//////////////  This is the script where you can add the swf's    ////////////////////////////////////////	


			// Route to the .swf
			
			$('#flashLogo').flash({
				"src":"http://www.i-bussol.com/images/layout/header/i-bussol.swf",
				"width":220,
				"height":61,
				"color":"#fff",
				"quality":"high",
				"wmode":"transparent"
			});
			
			$('#crm').flash({
				"src":"http://www.i-bussol.com/images/layout/buttons/MIC1421_CRM_120x600.swf",
				"width":120,
				"height":600,
				"color":"#fff",
				"quality":"high",
				"wmode":"transparent"
			});



//////////////  This is the script for the contact form validation  ////////////////////////////////////////	



		// show a simple loading indicator
		var loader = $('<div id="loader"><img src="/images/layout/elements/loading.gif" alt="loading..." style="padding: 0px 10px 5px 10px; margin-left: 70px;"  /></div>')
			.css({position: "relative"})
			.appendTo("#ajax-success")
			.hide();
		$().ajaxStart(function() {
			loader.show();
		}).ajaxStop(function() {
			loader.hide();
		}).ajaxError(function(a, b, e) {
			throw e;
		});
		
		var v = $("#commentForm").validate({
			submitHandler: function(form) {
				$(form).ajaxSubmit({
					target: "#ajax-success"
				});
			}
		});
		
		var v = $("#loginForm").validate({
			submitHandler: function(form) {
				$(form).ajaxSubmit({
					target: "#ajax-success"
				});
			}
		});
		
		$("#reset").click(function() {
			v.resetForm();
		});



//////////////  This is the script for the image scaling 1 - 10 for 10 images. Add more if required with a unique number ////////////////////////////////////////
		
			/* This is basic - uses default settings */
		
			
    		$('.gallery a, a.zoom1, a.zoom2, a.zoom3, a.zoom4, a.zoom5, a.zoom6, a.zoom7, a.zoom8, a.zoom9, a.zoom10').lightBox({fixedNavigation:true});



//////////////		
		
});
		