function qteP(num)
{var ancien=eval(document.getElementById("q"+num).value);if(ancien<100)
document.getElementById("q"+num).value=ancien+1;}
function rien()
{alert('test');document.getElementsByName("keywords").value="a";}
function qteM(num)
{var ancien=eval(document.getElementById("q"+num).value);if(ancien>1)
document.getElementById("q"+num).value=ancien-1;}
this.screenshotPreview = function(){
        /* CONFIG */

                xOffset = 10;
                yOffset = 30;

                // these 2 variable determine popup's distance from the cursor
                // you might want to adjust to get the right result

        /* END CONFIG */
        $("a.screenshot").hover(function(e){
                this.t = this.title;
                this.title = "";
                var c = (this.t != "") ? "<br/>" + this.t : "";
                $("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");
                $("#screenshot")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px")
                        .fadeIn("fast");
    },
        function(){
                this.title = this.t;
                $("#screenshot").remove();
    });
        $("a.screenshot").mousemove(function(e){
                $("#screenshot")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px");
        });
};
this.imagePreview = function(){
        /* CONFIG */

                xOffset = 10;
                yOffset = 30;

                // these 2 variable determine popup's distance from the cursor
                // you might want to adjust to get the right result

        /* END CONFIG */
        $("a.preview").hover(function(e){
                this.t = this.title;
                this.title = "";
                var c = (this.t != "") ? "<br/>" + this.t : "";
                $("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");
                $("#preview")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px")
                        .fadeIn("fast");
    },
        function(){
                this.title = this.t;
                $("#preview").remove();
    });
        $("a.preview").mousemove(function(e){
                $("#preview")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px");
        });
};
this.tooltip = function(){
        /* CONFIG */
                xOffset = 10;
                yOffset = 20;
                // these 2 variable determine popup's distance from the cursor
                // you might want to adjust to get the right result
        /* END CONFIG */
        $("a.tooltip").hover(function(e){
                this.t = this.title;
                this.title = "";
                $("body").append("<p id='tooltip'>"+ this.t +"</p>");
                $("#tooltip")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px")
                        .fadeIn("fast");
    },
        function(){
                this.title = this.t;
                $("#tooltip").remove();
    });
        $("a.tooltip").mousemove(function(e){
                $("#tooltip")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px");
        });
};
$(document).ready(function(){
	screenshotPreview();
});

function changement_couleur()
{document.getElementById("a").style.color="#6AB023";document.getElementById("b").style.color="#FFF";document.getElementById("c").style.color="#FFF";document.getElementById("d").style.color="#FFF";}
function changement(idOnglet)
{switch(idOnglet)
{case"un":document.getElementById("a").style.color="#6AB023";document.getElementById("b").style.color="#FFF";document.getElementById("c").style.color="#FFF";document.getElementById("d").style.color="#FFF";document.getElementById("un").style.backgroundImage="url('images/onglets/1o.png')";document.getElementById("deux").style.backgroundImage="url('images/onglets/21o.png')";document.getElementById("trois").style.backgroundImage="url('images/onglets/3.png')";document.getElementById("quatre").style.backgroundImage="url('images/onglets/4.png')";break;case"deux":document.getElementById("a").style.color="#FFF";document.getElementById("b").style.color="#6AB023";document.getElementById("c").style.color="#FFF";document.getElementById("d").style.color="#FFF";document.getElementById("un").style.backgroundImage="url('images/onglets/1.png')";document.getElementById("deux").style.backgroundImage="url('images/onglets/2o.png')";document.getElementById("trois").style.backgroundImage="url('images/onglets/32o.png')";document.getElementById("quatre").style.backgroundImage="url('images/onglets/4.png')";break;case"trois":document.getElementById("a").style.color="#FFF";document.getElementById("b").style.color="#FFF";document.getElementById("c").style.color="#6AB023";document.getElementById("d").style.color="#FFF";document.getElementById("un").style.backgroundImage="url('images/onglets/1.png')";document.getElementById("deux").style.backgroundImage="url('images/onglets/2.png')";document.getElementById("trois").style.backgroundImage="url('images/onglets/3o.png')";document.getElementById("quatre").style.backgroundImage="url('images/onglets/4.png')";break;case"quatre":document.getElementById("a").style.color="#FFF";document.getElementById("b").style.color="#FFF";document.getElementById("c").style.color="#FFF";document.getElementById("d").style.color="#6AB023";document.getElementById("un").style.backgroundImage="url('images/onglets/1.png')";document.getElementById("deux").style.backgroundImage="url('images/onglets/2.png')";document.getElementById("trois").style.backgroundImage="url('images/onglets/34o.png')";document.getElementById("quatre").style.backgroundImage="url('images/onglets/4o.png')";break;}}
