onBoutiqueOut = function(){
    $('#overboutique').hide();
    $('#boutique').show();
}
onBoutiqueOver = function(){
    $('#boutique').hide();
    $('#overboutique').show();
}
overDivColor = function(elemento, overImg, colore){
    if (overImg != null) {
        $(elemento).find('img').attr('src', overImg);
    }
	$(elemento).css("borderColor",colore);
	$(elemento).css("cursor",'pointer');
}
outDivColor = function(elemento, outImg, colore, coloreBottom){
    if (outImg != null) {
        $(elemento).find('img').attr('src', outImg);
    }
	$(elemento).css("borderColor",colore);
	if (typeof coloreBottom != 'undefined') {
	    $(elemento).css("borderBottomColor",coloreBottom);
	}
	$(elemento).css("cursor",'default');
}
changeImage = function(id, file) {
	$(id).attr("src", file);
}
init = function () {
    $('#overboutique').hide();
    $('#languagemenu').hide();
    $('#chooselanguage').hover(
        function(){return;},
        function(){
            $('#languagemenu').slideUp(100);
        }
    );
    $('#currentlanguage').hover(
        function() {
            $('#languagemenu').slideDown(100);
        },
        function(){return;}
    );
}
function apri(l){
    window.open(l,'neww','left=0,top=0,menubar=no,location=yes,titlebar=no,directories=no,resizable=yes,scrollbars=no,status=no, width='+screen.width+', height='+screen.height);
}

function OpenNew(page){
    newWin = window.open(page,'new','resizable=no,scrollbars=yes,status=no,width=500,height=420');
}
function openCredits(page){
    newWin = window.open(page,'new','resizable=no,scrollbars=yes,status=no,width=500,height=420');
}
function apriConScrollbars(l){
    window.open(l,'neww','left=0,top=0,menubar=no,location=yes,titlebar=no,directories=no,resizable=yes,scrollbars=yes,status=no, width='+screen.width+', height='+screen.height)
}

function loadflash(file, width, height, transparent, bgcolor) {
    document.write('<object type="application/x-shockwave-flash" data="'+file+'" width="'+width+'" height="'+height+'">');
    document.write('<param name="movie" value="'+file+'" />');
    document.write(' <param name="allowScriptAccess" value="always" />');
    if (transparent) {
        document.write('<param name="wmode" value="transparent" />');
    }
    if (bgcolor) {
        document.write('<param name="bgcolor" value="'+bgcolor+'" />');
    }
    document.write('<param name="quality" value="high" />');
    document.write('<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" />');
    document.write('</object>');
}