/* Swap Image */
function changeImage(targetID, targetImage) {
	document.getElementById(targetID).src = targetImage;
}

/* Resizing Height of Background Image */
function changeBgHeight() {
	var docH = document.body.scrollHeight;
	$('body').css({
		'height': docH
	});
}

/* jQuery */
$(function() {
		   
changeBgHeight();

$(this).find('iframe').each(function() {
	var src = $(this).attr('src');
	$(this).attr('src',src + '&amp;wmode=transparent');
});

/* Preloading of images */
var images = ["music_about_over.png","music_discography_over.png","music_gallery_over.png","music_schedule_over.png","band.png","band_ro_isaiah.png","band_ro_soils.png","band_ro_mei.png","band_ro_caz.png","band_ro_okai.png","band_ro_tama.png","band_ro_yuichi.png","band_ro_amu.png","band_ro_sticky.png"];

$.each(images, function() {
	$("<img>").attr("src", this);
});

/* Change alpha of Main-Menu buttons */
$("#btnMusicImage,#btnSoapImage,#buynowImage,#brfEarImage,#sub_aboutband,#sub_discography,#sub_gallery,#sub_liveschedule").hover(
	function(){
		$(this).stop().fadeTo("fast",0.6);
	},
	function(){
		$(this).stop().fadeTo("fast",1.0);
	}
);

/* サブメニューのフェードイン・アウト */
$("ul.submenu").hide();
$("ul#mainmenu>li").hover(function() {
	$("ul:not(:animated)",this).fadeIn();
},function() {
	$("ul",this).fadeOut();
}).find("ul").hide();

/*  Resizing window */
$(window).resize(function(){
	changeBgHeight();
});

/* PrettyPhoto */
$("a[rel^='prettyPhoto']").prettyPhoto();
$("area[rel^='prettyPhoto']").prettyPhoto();

});

/*Colorbox*/
/*$(".group1").colorbox({rel:'group1'});
$(".ajax").colorbox();*/

/*
$(document).bind('cbox_complete', function(){
	var cb = document.getElementById('cboxClose');
	cb.style.visibility = "visible";
});*/



