jQuery.noConflict();

jQuery(window).ready(function ($) {
	//load pushbox plugin/*
	jQuery('div.pushbox').Pushbox({
		navigation: false,
		interval: window.intPushBoxInterval || 5,
		transition: 'fade'
	});

	// sets the rating of a product in stars
	setRating();

	// enables rating of a product
	rateProduct();

	// sets jQuery UI tabs
	// initializes text links: add class 'tab_link' to a text link and href to tab name (reviews/service/technical_specifcation/general_info)
	initTabs(jQuery('div.tabs_holder'));

	// FAQ multi-level accordion
	faqAccordion();

	// submits form using javascript on hyperlinks with class submit
	submitForm();

	// Equalize height of headings within landing overview list items:
	equalizeHeightWithin('ul.landing_overview > li', 'h2', 3);

	// Lightbox functionality:
	closeLightbox();
	initLightbox();

	// Creates lightbox links from links with a "lightbox" classname set in the RTE:
	if (jQuery('a.lightbox').length > 0) {
		Shadowbox.setup(jQuery('a.lightbox'));
	}

	// Opens links with the deprecated target attribute externally in a new window:
	deprecatedExternalLinks();

	resizeHeaderImage();
});

jQuery(window).load(function ($) {
	// init carrousel
	initCarrousel();

	//switch language
	switchLanguage();
	
	// init map
	initGoogleMaps();
	
	// Application Pushbox interaction
	practicePushbox();

	// Equalize height of landing overview list items:
	equalizeHeight('ul.landing_overview > li');
	equalizeHeight('ul.sitemap > li');

	// Euqailzes the height of columns
	equalizeHeight(jQuery('div.col_sub, div.col_content, div.col_content_large, div.col_side'));
	
	// Equalize height of downloads list items:
	equalizeHeightOfDownloads();

	jQuery('input.search').SearchInput();

	resizeHeaderImage();
});
