/* Ist die Videostarter :: classes/lib/view/content-standard ....*/
///Function for video from content-pulldown
function y_video(){
    if($('a[hreflang|=en]').length>0){
   
        $('a[hreflang|=en]').each(function(){
            var a = $(this).attr('id');
            $('#'+a).flash(
            {
                height:220,
                width: 280
            },
            {
                version: 8
            },
            function(htmlOptions) {
                $this = $(this);
                htmlOptions.src = $this.attr('rel');
                $this.before($.fn.flash.transform(htmlOptions));
            }
            );
        });
    }
    if($('a[hreflang|=de]').length>0){
        $('a[hreflang|=de]').each(function(){
            var a = $(this).attr('id');
            $('#'+a).flash(
            {
                height:405,
                width: 520
            },
            {
                version: 8
            },
            function(htmlOptions) {
                $this = $(this);
                htmlOptions.src = $this.attr('rel');
                $this.before($.fn.flash.transform(htmlOptions));
            }
            );
        });
    }

}


//speziell youtube aus content per class
$(".youtubecontent").click(function() {
    $.fancybox({
        'padding'		: 0,
        'autoScale'		: false,
        'transitionIn'	: 'none',
        'transitionOut'	: 'none',
        'title'		: this.title,
        'width'		: 680,
        'height'		: 495,
        'href'		: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
        'type'		: 'swf',
        'swf'		: {
            'wmode'		: 'transparent',
            'allowfullscreen'	: 'true'
        }
    });

    return false;
});

//variabler Flashinhalt ... aus content per class
$(".flashcontent").fancybox({
    'padding'           : 0,
    'autoScale'         : false,
    'transitionIn'      : 'none',
    'transitionOut'     : 'none',
    'showNavArrows'     : false
});
