this.testtip = function(){

	var pause = 2000; // define the pause for each tip (in milliseconds) 
	var roopTimes = 0;
	var roopLimit = 20;
	var timerId;

	this.viewint = function(){


	roopTimes = roopTimes + 1;		


	if(roopTimes > roopLimit){
	
        $(".fes").showBalloon({ contents: "祭",
        //offsetY:"-30",
        position: 'top', offsetX: 26, offsetY: -23,
        tipSize:"4",
        css: {
        padding: '0',
    fontSize: '150%',
    fontWeight: 'bold',
    backgroundColor: '#f00',
    color: '#fff',
    border:'none',
    classname: 'fespopup',
    keep: 500,
    }});
		
		clearInterval(timerId);
		return 0;
 	}


	$(".fes").showBalloon({ contents: "祭",
	//offsetY:"-30",
	position: 'top', offsetX: 26, offsetY: -23,
	tipSize:"4",
	css: {
	padding: '0',
    fontSize: '150%',
    fontWeight: 'bold',
    backgroundColor: '#f00',
    color: '#fff',
    border:'none',
    classname: 'fespopup',
    keep: 500,
    }});

	$(".fes").hideBalloon({ contents: "祭",
	//offsetY:"-30",
	position: 'top', offsetX: 26, offsetY: -23,
	tipSize:"4",
	css: {
	padding: '0',
	margin: 0,
    fontSize: '150%',
    fontWeight: 'bold',
    backgroundColor: '#f00',
    color: '#fff',
    border:'none',
    classname: 'fespopup',
    keep: 500,
    }});

		


	};
	timerId = setInterval(viewint,pause);

	
};

this.newtip = function(){

        var pause = 2000; // define the pause for each tip (in milliseconds)
        var roopTimes = 0;
        var roopLimit = 20;
        var timerId;

        this.viewint = function(){


        roopTimes = roopTimes + 1;


        if(roopTimes > roopLimit){

	        $(".new").showBalloon({ contents: "New",
        //offsetY:"-30",
        position: 'top', offsetX: 26, offsetY: -18,
        tipSize:"4",
        css: {
        padding: '3',
    fontSize: '100%',
    fontWeight: 'bold',
    backgroundColor: '#ff0',
    color: '#f00',
    border:'none',
    keep: 500,
    }});

                clearInterval(timerId);
                return 0;
        }


               $(".new").showBalloon({ contents: "New",
        //offsetY:"-30",
        position: 'top', offsetX: 26, offsetY: -18,
        tipSize:"4",
        css: {
        padding: '3',
    fontSize: '100%',
    fontWeight: 'bold',
    backgroundColor: '#ff0',
    color: '#f00',
    border:'none',
    keep: 500,
    }});

        $(".new").hideBalloon({ contents: "New",
        //offsetY:"-30",
        position: 'top', offsetX: 26, offsetY: -18,
        tipSize:"4",
        css: {
        padding: '3',
    fontSize: '100%',
    fontWeight: 'bold',
    backgroundColor: '#ff0',
    color: '#f00',
    border:'none',
    keep: 500,
    }});




        };
        timerId = setInterval(viewint,pause);


};



$(document).ready(function(){	
	testtip();

	newtip();
});



