<!--
	function open_print_popup(url, width, height, winname) {
        var old = self;
        //var trails="width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no";
        var trails="width=" + width + ",height=" + height + ",toolbar=yes,location=no,status=yes,scrollbars=yes,resizable=yes,left=0,top=0";
        newWindow=window.open(url,winname,trails);
        newWindow.focus();
        return false;
    }


(function($) {
    var _rootUrl = '/cms/', _serverUrl = _rootUrl + 'ezjscore/', _seperator = '@SEPERATOR$';

// FIX: Ajax is broken on IE8 / IE7 on jQuery 1.4.x as it's trying to use the broken window.XMLHttpRequest object
if ( window.XMLHttpRequest && window.ActiveXObject )
    $.ajaxSettings.xhr = function() { try { return new window.ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {} };

    // (static) jQuery.ez() uses jQuery.post() (Or jQuery.get() if post paramer is false)
    //
    // @param string callArgs
    // @param object|array|string|false post Optional post values, uses get request if false or undefined
    // @param function Optional callBack
    function _ez( callArgs, post, callBack )
    {
        callArgs = callArgs.join !== undefined ? callArgs.join( _seperator ) : callArgs;
        var url = _serverUrl + 'call/';
        if ( post )
        {
            // support serializeArray() format
            if ( post.join !== undefined )
                post.push( { 'name': 'ezjscServer_function_arguments', 'value': callArgs } );
            else if ( typeof(post) === 'string' )
                post += ( post !== '' ? '&' : '' ) + 'ezjscServer_function_arguments=' + callArgs;
            else
                post['ezjscServer_function_arguments'] = callArgs;
            return $.post( url, post, callBack, 'json' );
        }
        return $.get( url + encodeURIComponent( callArgs ), {}, callBack, 'json' );
    };
    _ez.url = _serverUrl;
    _ez.root_url = _rootUrl;
    _ez.seperator = _seperator;
    $.ez = _ez;

    // Method version, for loading response into elements
    // NB: Does not use json (not possible with .load), so ezjscore/call will return string
    function _ezLoad( callArgs, post, selector, callBack )
    {
        callArgs = callArgs.join !== undefined ? callArgs.join( _seperator ) : callArgs;
        var url = _serverUrl + 'call/';
        if ( post )
            post['ezjscServer_function_arguments'] = callArgs;
        else
            url += encodeURIComponent( callArgs );

        return this.load( url + ( selector ? ' ' + selector : '' ), post, callBack );
    };
    $.fn.ez = _ezLoad;
})(jQuery);
        

$(document).ready(function(){


/** 
 *  Slider
 */
$('#slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:1,
        animSpeed: 500, //Slide transition speed
        pauseTime: 3000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:false, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:false, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity: 1, //Universal caption opacity
        captionAnimSpeed: 0, //Universal caption opacity
        prevText: 'Zurück', // Prev directionNav text
        nextText: 'Weiter', // Next directionNav text
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
$('#top_slider a img').parent().unwrap().unwrap().unwrap().unwrap();
$('#top_slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:1,
        animSpeed: 500, //Slide transition speed
        pauseTime: 4500,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:false, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:false, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:false, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity: 0, //Universal caption opacity
        captionAnimSpeed: 0, //Universal caption opacity
        prevText: 'Zurück', // Prev directionNav text
        nextText: 'Weiter', // Next directionNav text
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
 
/** 
 * Navigation
 */
function menuAnimateIn() {

				var ul = $(this).children("ul");

				ul.animate({ height:"show", opacity:1 }, {duration:200 });

			};

			

			function menuAnimateOut() {

				var ul = $(this).children("ul");

				ul.animate({ height:"hide", opacity:0 }, {duration:200 });

			};

			
$("#jMenu").removeClass('nojs');
			$("#jMenu li").hoverIntent({ over:menuAnimateIn, timeout:500, out:menuAnimateOut});

	
/**
 * Search 
 **/
var e = new Object();
e['Suche'] = 'Suche';
e['Benutzer'] = 'Benutzer';
e['Passwort'] = 'Passwort';

if ($("input#searchtext").attr('value') == '') {
	$("input#searchtext").attr('value', e['Suche']);
}
//$("input#s[value='']").attr('value',  e['Suche']);
$('input#searchtext').focus(function(){
   if ($(this).attr('value') == e['Suche']) {
 		$(this).attr('value',  '');
   	}
}).blur(function () {
   	if ($(this).attr('value') == '') {
   		$(this).attr('value',  e['Suche']);
   	}
});
	
/**
 * User 
 **/
if ($("input#t_user").attr('value') == '') {
	$("input#t_user").attr('value', e['Benutzer']);
}
$('input#t_user').focus(function(){
   if ($(this).attr('value') == e['Benutzer']) {
 		$(this).attr('value',  '');
   	}
}).blur(function () {
   	if ($(this).attr('value') == '') {
   		$(this).attr('value',  e['Benutzer']);
   	}
});
	
/**
 * User 
 **/
if ($("input#t_pass").attr('value') == '') {
	$("input#t_pass").attr('value', e['Passwort']);
}
$('input#t_pass').focus(function(){
   if ($(this).attr('value') == e['Passwort']) {
 		$(this).attr('value',  '');
   	}
}).blur(function () {
   	if ($(this).attr('value') == '') {
   		$(this).attr('value',  e['Passwort']);
   	}
});


/**
 * Corner
 */
$('#col2_content .contactperson .attribute-image,'+
'#frontpage_top .attribute-image,'+
'#col2_content .infobox .attribute-image ').prepend('<span class="corner"></span>');

$('#col2_content .infobox.box-id-1345 .corner').remove();

/** Arrow 
 * **/
$('#frontpage_studiengaenge .colorbox h3 a').wrapInner('<span class="arrow" />');

/** 
 * Lightbox
 */
$('#col1_content .lightbox a').colorbox({
	title: ' ',
	close: 'Schließen',
	next: 'Weiter',
	previous: 'Zurück',
	current: 'Bild {current} von {total}',
	slideshowStart: 'Starte Slideshow',
	slideshowStop: 'Stoppe Slideshow',
	initialWidth: 437,
	initialHeight: 100,
	maxWidth: '90%',
	maxHeight: '90%',
	slideshow: true,
	slideshowAuto: false,
	rel:'group'
});

/**
 * FAQ
 */

//$('.content-view-line.item .class-iuce_FAQ h2 a').eq(2).parents('.class-iuce_FAQ:first').find('div:first').css('background','red');

var desc_all = $('#col1_content .class-iuce_FAQ .content-view-line.item > .attribute-short');

desc_all.hide()

$('#col1_content .class-iuce_FAQ .content-view-line.item h2 a').click(function(event) {
	event.preventDefault();
	desc_this = $(this).parents('.content-view-line.item:first').find('> .attribute-short:first');
	
	desc_all.not(desc_this).slideUp('fast');
	//$(this).parents('.class-iuce_FAQ:first').find('.attribute-short:first').css('background','red');
	
  	desc_this.slideToggle('fast',function() {
    // Animation complete.
    });
});

/** Frontpage **/
$("#frontpage_top a img").mouseover(function() {
    $(this).fadeTo( 'fast', 0.8);
  }).mouseout(function(){
     $(this).fadeTo( 'fast', 1);
  });



var box_all = $('#frontpage_studiengaenge .colorbox .attribute-image');

//box_all.not(box_all.eq(0)).hide();

box_all.eq(0).css('z-index',10);

$('#frontpage_studiengaenge .colorbox h3 a').mouseover(function(event) {
	//event.preventDefault();
	box_this = $(this).parents('.colorbox:first').find('.attribute-image:first');
	
	box_all.not(box_this).css('z-index',0);
	//box_this.hide();
	box_this.css('z-index',10);
	//box_this.fadeIn('slow');
    // Animation complete.*/
}).mouseout(function(){
	box_all.css('z-index',0);
	//box_all.not(box_all.eq(0)).hide();
    box_all.eq(0).css('z-index',10);
});

var login_form = jQuery(
	'<form action="http://www.intranet.iu-ce.de/script/login.php" target="_blank" id="intranet-login">'+
	'<fieldset>'+
	'<p class="text"><label for="username">Benutzername</label>'+
		'<input type="text" id="username" name="username" />'+
	'</p>'+
	
	'<p class="text"><label for="passwd">Passwort</label>'+
		'<input type="password" id="passwd" name="passwd" />'+
	'</p>'+
	
	'<p class="submit">'+
		'<input type="submit" value="Login &gt;" />'+
	'</p>'+
	'</fieldset>'+
	'</form>'
);

$('.path-0-intranet #col1_content .class-folder').append(login_form);



}); // READY ENDE
//-->
