function slideContent(node) {
	window.addEvent('domready', function() {
		var node_id = new Fx.Slide('id_'+node+'_child', {duration: 500});
		node_id.hide();
		
		$('id_'+node+'_parent').addEvent('click', function(e){
			node_id.toggle();
			e.stop();
		});
	});
}

function references() {
    window.addEvent("domready", function() {  
        new iCarousel("ref", {
            idPrevious: "undefined",
            idNext: "undefined",
            item: {klass: "content-view-listitemref"},  
            animation: {  
                type: "fade",
                transition: Fx.Transitions.linear,
                rotate: {
                    type: "auto",
                    interval: 8000
                }  
            }  
            });  
    });
}

function showRightArticles(node, link) {
    $('popup_background_'+node).style.display = 'block'; 
    var navigator_name = navigator.appName;
    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
	 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	 if (ieversion>6)
        $('popup_background_'+node).style.position = 'fixed';
	}
    else 
    {
        $('popup_background_'+node).style.position = 'fixed';
    }
    $('popup_background_'+node).style.width = document.body.offsetWidth  + 'px';
    $('popup_background_'+node).style.height = '100%';   
    $(node).className = 'parent_show';
    $each($$('div.video'), function(obj, index){
        obj.style.display = 'none' ;
	});
}

function hideRightArticles(node) {
    $(node).className = 'parent_hide';  
    $('popup_background_'+node).style.display = 'none';
    
    $each($$('div.video'), function(obj, index){
        obj.style.display = 'block' ;
    });
}
