$.noConflict();
jQuery(document).ready(function ($) {
    //set the dropdown menu
    $("#CategoryNavigation ul.sf-menu").superfish({
        speed: 'fast',
        autoArrows: false,
        dropShadows: false,
        delay: 800
    });

    //activate the image cycle
    $('#image-cycle').cycle({ fx: 'fade', speed: 1500, timeout: 4000, delay: 0 });

    //activate links on focus areas
    if ($('.gradient-box').length > 0) {
        $('.gradient-box').each(function () {
            $(this).attr('title', $(this).find('.focus-content-text a').attr('title'));
			var gethtml = $(this).attr('title', $(this).find('.focus-content-text a').attr('title'));
			//alert(gethtml);
			if(gethtml != undefined) {
				$(this).click(function (event) {
					event.preventDefault();
					window.location.href = $(this).find('.focus-content-text a').attr('href');
				});
			} else { }
        });
    }

    //activate self service items
    if ($('.self-service-boxes').length > 0) {
        $('.self-service-box input').click(function () {
            window.location.href = $(this).prev().val();
        });
    }

    //google translate link
    $('#ToolTranslateLink,#translate-close a').click(function (event) {
        event.preventDefault();
        $('#translate-con').slideToggle('fast');
    });

    //box-shortcut
    $('.box-shortcut a.box-shortcut-opener').click(function (event) {
        event.preventDefault();
        $(this).find('.shortcut_arrow').toggleClass('open');
        $(this).parents('.box-shortcut').find('.box-shortcut-content').stop(true, true).slideToggle();
    });
});
