$(document).ready(function(){

    $("#tabs").tabs();
    $("#tabs2").tabs();

    $('#tabs').attr('display', 'block');

    $('.menu-item-3778').click(function() {
        //javascript:
        if ($.browser.mozilla) {
            window.sidebar.addPanel('宝くじの福助','http://takarakuji-buy.jp/','');
        }else if($.browser.msie) {
            window.external.AddFavorite('http://takarakuji-buy.jp/','宝くじの福助');
        }else if($.browser.opera){
            
        }
        return false;
    });
});

$(function() {

    $(".imgover").hover(
        function()
        {
            this.src = this.src.replace("_off","_on");
        },
        function()
        {
            this.src = this.src.replace("_on","_off");
        }
        );
if ($.browser.msie && $.browser.version.substr(0,1)<7) {
}else{
    $(".thumb-box").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
		.animate({
			marginTop: '-110px',
			marginLeft: '-110px',
			top: '50%',
			left: '40%',
			width: '292px',
			height: '213px',
			padding: '0'
		}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */

	} , function() {
	$(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
	$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
		.animate({
			marginTop: '0', /* Set alignment back to default */
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '225px', /* Set width back to default */
			height: '164px', /* Set height back to default */
			padding: '0'
		}, 400);
    });


    $("div.zoom698-99").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-11px',
            top: '3px',
            left: '1px',
            width: '720px', /* Set new width */
            height: '111px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '698px', /* Set width back to default */
            height: '99px', /* Set height back to default */
            padding: '0'
        }, 400);
    });
    $("div.zoom698-69").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-11px',
            top: '3px',
            left: '1px',
            width: '720px', /* Set new width */
            height: '72px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '698px', /* Set width back to default */
            height: '69px', /* Set height back to default */
            padding: '0'
        }, 400);
    });



    $("div.zoom698-204").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-11px',
            top: '3px',
            left: '1px',
            width: '720px', /* Set new width */
            height: '210px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '698px', /* Set width back to default */
            height: '204px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom289-165").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-6px',
            top: '3px',
            left: '1px',
            width: '297px', /* Set new width */
            height: '170px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '289px', /* Set width back to default */
            height: '165px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom289-130").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-6px',
            top: '3px',
            left: '1px',
            width: '297px', /* Set new width */
            height: '134px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '289px', /* Set width back to default */
            height: '130px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom289-80").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-4px',
            top: '3px',
            left: '1px',
            width: '297px', /* Set new width */
            height: '83px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '289px', /* Set width back to default */
            height: '80px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom289-78").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-4px',
            top: '3px',
            left: '1px',
            width: '297px', /* Set new width */
            height: '83px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '289px', /* Set width back to default */
            height: '78px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom289-69").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-4px',
            top: '3px',
            left: '1px',
            width: '297px', /* Set new width */
            height: '72px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '289px', /* Set width back to default */
            height: '69px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom289-49").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0px', /* The next 4 lines will vertically align this image */
            marginLeft: '-4px',
            top: '3px',
            left: '1px',
            width: '297px', /* Set new width */
            height: '52px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '289px', /* Set width back to default */
            height: '49px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom104-91").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* The next 4 lines will vertically align this image */
            marginLeft: '-3px',
            top: '6px',
            left: '3px',
            width: '110px', /* Set new width */
            height: '94px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '104px', /* Set width back to default */
            height: '91px', /* Set height back to default */
            padding: '0'
        }, 400);
    });

    $("div.zoom104-64").hover(function() {
        $(this).css({
            'z-index' : '10'
        }); /*Add a higher z-index value so this image stays on top*/
        $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* The next 4 lines will vertically align this image */
            marginLeft: '-3px',
            top: '6px',
            left: '3px',
            width: '110px', /* Set new width */
            height: '65px', /* Set new height */
            padding: '0'
        }, 100); /* this value of "200" is the speed of how fast/slow this hover animates */

    } , function() {
        $(this).css({
            'z-index' : '0'
        }); /* Set z-index back to 0 */
        $(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
        .animate({
            marginTop: '0', /* Set alignment back to default */
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '104px', /* Set width back to default */
            height: '64px', /* Set height back to default */
            padding: '0'
        }, 400);
    });
}

$(".googlemap_nishiginza").append('<iframe width="635" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=ja&amp;msa=0&amp;msid=111945104406156669693.000476061eb43ff53fcab&amp;ll=35.67323,139.763625&amp;spn=0.005229,0.006437&amp;z=17&amp;output=embed"></iframe>');
$(".googlemap_daikokuten").append('<iframe width="635" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=ja&amp;msa=0&amp;msid=111945104406156669693.000476061eb43ff53fcab&amp;ll=35.675182,139.763389&amp;spn=0.005229,0.006437&amp;z=17&amp;output=embed"></iframe>');
$(".googlemap_shinbashi").append('<iframe width="635" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=ja&amp;msa=0&amp;msid=111945104406156669693.000476061eb43ff53fcab&amp;ll=35.66617,139.757767&amp;spn=0.00523,0.006437&amp;z=17&amp;output=embed"></iframe>');
$(".googlemap_osaka").append('<iframe width="635" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=ja&amp;ie=UTF8&amp;msa=0&amp;msid=111945104406156669693.000476061eb43ff53fcab&amp;ll=34.700095,135.499191&amp;spn=0.010585,0.012832&amp;z=17&amp;output=embed"></iframe>');
$(".googlemap_naeki").append('<iframe width="635" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=ja&amp;ie=UTF8&amp;oe=UTF8&amp;msa=0&amp;msid=111945104406156669693.000476061eb43ff53fcab&amp;ll=35.171177,136.882632&amp;spn=0.005262,0.006416&amp;z=17&amp;output=embed"></iframe>');

$(document).ready(function(){
        $(".head_close_pink").delay(2000).animate({ opacity:1.0, fontSize: "2em" }, 600).animate({ opacity:1.0, fontSize: "1.5em" }, 200);
});

$('a[@rel$="external"]').click(function(){
	this.target = "_blank";
});

});
