(function($){
		  
	$(document).ready(function(){
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////						   
		
		// -------------------------------------------------------------------------------------------------------
		// Translate
		// -------------------------------------------------------------------------------------------------------
		$.translate.load("CDE41417D7A80E43023AA729266374221CE87D38");
		$.translate(function(){
		
			function translateTo( destLang ){
		 		$('body').translate( 'en', destLang, {
		 			not: '.no-translate',
		 			toggle: true,
				});
				// If you want to translate page titles
				$('.slider-item').translate( 'english', destLang, { // Translate slides on homepage
					fromOriginal: true,
				});
				// If you want to translate page titles
				//$('title').translate( 'english', destLang, { // Translate page titles
				//	fromOriginal: true,
				//});
			}
			
			$.translate().ui({
				  tags: ['select', 'option'],
				  filter: ['en', 'es', 'fr'],
				  includeUnknown: false
			})
			.appendTo('#translator')    //insert the element to the page
			.val( 'en' )
			.change(function(){   //when selecting another language
				var newLang = $(this).val()
				//in v1.4 $(this).val() or $(this).attr("value") 
				// is always the exact language code!
				translateTo( $(this).val() );
				$.cookie('currLang', newLang, {path:'/'} );
				// set a cookie to remember the selected language
				// see: http://plugins.jquery.com/project/Cookie
				return false; //prevent default browser action
			});
			    
			var cookieLang = $.cookie('currLang',{path:'/'}); //get previously translated language
			if (cookieLang) {
				translateTo(cookieLang);
			}
			else{
				$.cookie('currLang', 'English', {path:'/'} );
				translateTo('English');
			}
		    
		});
		
		// -------------------------------------------------------------------------------------------------------
		// DD_belated - IE6 png transparency fix
		// -------------------------------------------------------------------------------------------------------
		
		if ( $.browser.msie ){
			if ( $.browser.version == 6 ){ // only apply the png transparency fix for Internet Explorer 6
				
				DD_belatedPNG.fix('#logo img');
				DD_belatedPNG.fix('.errormsg, .successmsg, .infomsg, .noticemsg. .pdf');
				DD_belatedPNG.fix('#index-slideshow-pager a, #index-slideshow-pager .activeSlide, .service h4');
				
			}
		}
		
		// -------------------------------------------------------------------------------------------------------
		// Tipsy - facebook like tooltips jQuery plugin
		// -------------------------------------------------------------------------------------------------------
		
		$('.tip').tipsy({gravity: 'w', fade: true});

		// -------------------------------------------------------------------------------------------------------
		// prettyPhoto - jQuery lightbox plugin
		// -------------------------------------------------------------------------------------------------------
		
		$("a[rel^='prettyPhoto']").prettyPhoto({
			opacity: 0.80, 						// Value between 0 and 1
			default_width: 500,
			default_height: 344,
			theme: 'light_square', 				// light_rounded / dark_rounded / light_square / dark_square / facebook 
			hideflash: false, 					// Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto 
			modal: false 						// If set to true, only the close button will close the window 
		});
		
		
		// -------------------------------------------------------------------------------------------------------
		//  Skinable Tabs
		// -------------------------------------------------------------------------------------------------------
		
		$('.tabs_holder').skinableSkins({
			effect: 'simple_fade',
			skin: 'skin7',
			position: 'left',
			skin_path: '/_site/js/tabs/'
		});
		
		// -------------------------------------------------------------------------------------------------------
		//  Accordion - jQuery accordion plugin
		// -------------------------------------------------------------------------------------------------------
		
		$('#productAccordion').dcAccordion({
				eventType: 'click',
				autoClose: true,
				saveState: true,
				disableLink: false,
				speed: 'fast',
				showCount: false,
				autoExpand: true,
				classArrow: 'dcjq-icon',
				cookie: 'dcjq-product',
				classExpand: 'selected'
			});
		
		$('#systemAccordion').dcAccordion({
				eventType: 'click',
				autoClose: true,
				saveState: true,
				disableLink: false,
				speed: 'fast',
				showCount: false,
				autoExpand: true,
				classArrow: 'dcjq-icon',
				cookie: 'dcjq-system',
				classExpand: 'selected'
			});
		
		// -------------------------------------------------------------------------------------------------------
		//  gMap - jQuery mapping plugin
		// -------------------------------------------------------------------------------------------------------
		
		  $('#officelocation').gmap3(
		    { action: 'addMarker',
		      latLng: [40.90606922334303, -74.58725452423096],
		      map:{ center: true, zoom: 12, mapTypeId: google.maps.MapTypeId.TERRAIN },
		      marker:{
		        options:{ draggable:false, icon: '/_site/images/combined.png'},
		      }
		    }
		  );		

	//////////////////////////////////////////////////////////////////////////////////////////////////////////////	
	});

})(window.jQuery);

// non jQuery plugins below


