<!--
//トップ用

$(document).ready(function(){

if(($.os.name == 'iphone') | ($.os.name == 'ipod') | ($.os.name == 'ipad')) {
var len = 6;
var arr = new Array(
'/images/no-flash/home1.jpg',
'/images/no-flash/home2.jpg',
'/images/no-flash/home3.jpg',
'/images/no-flash/home4.jpg',
'/images/no-flash/home5.jpg',
'/images/no-flash/home6.jpg'
);
var rand = Math.floor( Math.random() * len);
var top_swf_mini_code = '<img src="'+arr[rand]+'" alt="" class="i-photo">';
}
else{
var top_swf_mini_code = '<object width="870" height="582">'+
                                  '<param name="movie-home-top" value="/home/loader02.swf"></param>'+
                                  '<param name="allowScriptAccess" value="sameDomain"></param>'+
                                  '<param name="allowFullScreen" value="false"></param>'+
                                  '<param name="quality" value="high"></param>'+
                                  '<param name="wmode" value="transparent"></param>'+
                                  '<embed src="/home/loader02.swf" quality="high" width="870" height="582" name="movie-home-top" wmode="transparent" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_jp"></embed>'+
                                  '</object>';
}
if((document.domain + location.pathname).match(document.domain +"/index")){
$("#home-contents .swf-area").html(top_swf_mini_code);
//$(".hyde .text-area").css("display","none");
}
//else if {rootpath.match("/company/")}
else{$("#home-contents .swf-area").html("&nbsp;");}
//$("#home-contents .swf-area").css("display","none");}

$('#slide_panel01 .pul_in').click(function () {
$("#home-contents .swf-area").html(top_swf_mini_code);
$("#home-contents .swf-area").fadeIn("slow");

$("#recruit-contents .swf-area").html("&nbsp;");
$("#company-contents .swf-area").html("&nbsp;");
/*$("#recruit-contents .swf-area").animate(
    {opacity: "0",complete: function(){$("#recruit-contents .swf-area").html("&nbsp;");}
	});
$("#company-contents .swf-area").animate(
    {opacity: "0",complete: function(){$("#campany-contents .swf-area").html("&nbsp;");}
	});*/

});


});
// -->

