init = function () {       
	
    if (typeof bodyBackground != 'undefined' && bodyBackground != '') {
        setBackgroundImg(pathToIncludes + "/" + xmlPath + "/" + gender + "/" + bodyBackground);
    }
    
    $('#fading-div').css({opacity:0});
    $('#maintoolbar .selected').moveToFront();
    $('#gender-navigation').moveToFront();
    
    $('#menu').bind('mouseleave', function(){
        $('#fading-div').queue("fx", []);
        $('#fading-div').stop();
        $('#maintoolbar .selected').moveToFront();
        $('#gender-navigation').moveToFront();
        $('#fading-div').fadeTo(animationDuration, 0);
    });
    
    $('#menu').bind('mouseenter', function(){
        $('#fading-div').queue("fx", []);
        $('#fading-div').stop();
        $('#fading-div').fadeTo(animationDuration, 1, function(){
            $('#menu .clone-element').remove();
        });
    });
    
    $('#video').css({
    	height: videoheight,
    	width: videowidth
    });
    if ($('#video-area-full').offset()) {
        var videoAreaFullOffset = $('#video-area-full').offset().top|0;
    }
    
    $('#video-link').css({
    	top: $('#video').height() + 15
    });
    $('#close-video').css({
        top: $('#video').height() + 15
    });
    $('#caption').css({
        top: $('#video').height() + 15
    });
    if (dimension == '1024') {
    	if (gender == 'man') {
	    	$('#caption').css({
	            left: $('#stage').width() - $('#video').width()
	        });
    	}
	    else if (gender == 'woman') {
	    	$('#caption').css({
	            left: $('#video').width() - $('#caption').width()
	        });
	    }
    }
    
    var streamer = "rtmp://cp70242.edgefcs.net/ondemand/voddolcegabbana/";
    
    //alert (streamer+" "+urlvideo);
    var s1 = new SWFObject(pathToIncludes+'/include/swf/player.swf', 'player', videowidth, videoheight,'9');
    s1.addParam('allowfullscreen','true');
    s1.addParam('allowscriptaccess','always');
    s1.addParam('wmode','opaque');
    s1.addVariable('autostart','true');
    s1.addVariable('width', ''+videowidth+'');
    s1.addVariable('height', ''+videoheight+'');
    s1.addVariable('streamer', ''+streamer+'');
    s1.addVariable('file',''+urlvideo+'');
    s1.addVariable('type','rtmp');
    //s1.addVariable('controlbar','none');
    s1.write('video-flash');
    
    //swfobject.embedSWF(pathToIncludes + "/include/swf/flvplayer.swf?filename=" + urlvideo + "&videowidth=" + $('#video').width() + "&videoheight=" + $('#video').height(), "video-flash", $('#video').width(), $('#video').height(), "8.0.0", pathToIncludes + "/include/swf/expressInstall.swf");
}