var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [1150, 380], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://happo-corp.info/wordpress/wp-content/themes/happo_ver2/images/top/img_main007.jpg", "http://happo-corp.info/solarpower/", "", ""],
["http://happo-corp.info/wordpress/wp-content/themes/happo_ver2/images/top/img_main006.jpg", "http://happo-corp.info/lineup/", "", ""],
["http://happo-corp.info/wordpress/wp-content/themes/happo_ver2/images/top/img_main001.jpg", "http://happo-corp.info/modelhouse/", "", ""],
["http://happo-corp.info/wordpress/wp-content/themes/happo_ver2/images/top/img_main002.jpg", "http://happo-corp.info/modelhouse/", "", ""],
["http://happo-corp.info/wordpress/wp-content/themes/happo_ver2/images/top/img_main003.jpg", "http://happo-corp.info/modelhouse/", "", ""],
["http://happo-corp.info/wordpress/wp-content/themes/happo_ver2/images/top/img_main004.jpg", "http://happo-corp.info/modelhouse/", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1200, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})

ec3.start_of_week=1;
ec3.month_of_year=new Array('1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月');
ec3.month_abbrev=new Array('1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月');
ec3.myfiles='http://happo-corp.info/wordpress/wp-content/plugins/event-calendar';
ec3.home='http://happo-corp.info';
ec3.viewpostsfor="%2$s年%1$sの投稿を表示";

(function($) {
colorboxSelector = function() {

colorboxMaxWidth = colorboxImageMaxWidth;
colorboxMaxHeight = colorboxImageMaxHeight;
colorboxHeight = colorboxImageHeight;
colorboxWidth = colorboxImageWidth;
$("a:has(img):not(.colorbox-off)").each(function(index, obj) {
if ($(obj).attr("href").match(COLORBOX_IMG_PATTERN)) {
colorboxImage(index, obj)
}
});
$(COLORBOX_LINK_CLASS).each(function(index, obj) {
colorboxLink(index, obj)
});
}
})(jQuery);
(function($) {
colorboxImage = function(index, obj) {
var $image = $(obj).find("img:first");
var $linkClasses = $(obj).attr("class");
colorboxGroupId = $linkClasses.match(COLORBOX_CLASS_MATCH) || $linkClasses.match(COLORBOX_MANUAL);
if (!colorboxGroupId) {
var $imageClasses = $image.attr("class");
if (!$imageClasses.match(COLORBOX_OFF)) {
colorboxGroupId = $imageClasses.match(COLORBOX_CLASS_MATCH) || $imageClasses.match(COLORBOX_MANUAL);
}
if (colorboxGroupId) {
colorboxGroupId = colorboxGroupId.toString().split('-')[1];
if (colorboxGroupId == "manual") {
colorboxGroupId = "nofollow";
}
colorboxTitle = $image.attr("title");

colorboxWrapper(obj);
}
}
}
})(jQuery);
(function($) {
colorboxLink = function(index, obj) {
colorboxTitle = $(obj).attr("title");
if ($(obj).attr("href").match(COLORBOX_INTERNAL_LINK_PATTERN)) {
colorboxInline = true;
} else {
colorboxIframe = true;
}
colorboxGroupId = "nofollow";
colorboxMaxWidth = false;
colorboxMaxHeight = false;
colorboxHeight = colorboxLinkHeight;
colorboxWidth = colorboxLinkWidth;
if ($(obj).attr("href").match(COLORBOX_IMG_PATTERN)) {
colorboxIframe = false;
colorboxMaxWidth = colorboxImageMaxWidth;
colorboxMaxHeight = colorboxImageMaxHeight;
colorboxHeight = colorboxImageHeight;
colorboxWidth = colorboxImageWidth;
}
colorboxWrapper(obj);
}
})(jQuery);

(function($) {
colorboxWrapper = function(obj) {
$(obj).colorbox({
rel:colorboxGroupId,
title:colorboxTitle,
maxHeight:colorboxMaxHeight,
maxWidth:colorboxMaxWidth,
initialHeight:colorboxInitialHeight,
initialWidth:colorboxInitialWidth,
height:colorboxHeight,
width:colorboxWidth,
slideshow:colorboxSlideshow,
slideshowAuto:colorboxSlideshowAuto,
scalePhotos:colorboxScalePhotos,
preloading:colorboxPreloading,
overlayClose:colorboxOverlayClose,
loop:colorboxLoop,
escKey:colorboxEscKey,
arrowKey:colorboxArrowKey,
scrolling:colorboxScrolling,
opacity:colorboxOpacity,
transition:colorboxTransition,
speed:colorboxSpeed,
slideshowSpeed:colorboxSlideshowSpeed,
close:colorboxClose,
next:colorboxNext,
previous:colorboxPrevious,
slideshowStart:colorboxSlideshowStart,
slideshowStop:colorboxSlideshowStop,
current:colorboxCurrent,
inline:colorboxInline,
iframe:colorboxIframe
});
}
})(jQuery);

var COLORBOX_INTERNAL_LINK_PATTERN = /^#.*/;
var COLORBOX_IMG_PATTERN = /\.(?:jpe?g|gif|png|bmp)/i;
var COLORBOX_MANUAL = "colorbox-manual";
var COLORBOX_OFF_CLASS = ".colorbox-off";
var COLORBOX_LINK_CLASS = ".colorbox-link";
var COLORBOX_OFF = "colorbox-off";
var COLORBOX_CLASS_MATCH = "colorbox-[0-9]+";

var colorboxInline = false;
var colorboxIframe = false;
var colorboxGroupId;
var colorboxTitle;
var colorboxWidth = false;
var colorboxHeight = false;
var colorboxMaxWidth = false;
var colorboxMaxHeight = false;
var colorboxSlideshow = true;
var colorboxSlideshowAuto = false;
var colorboxScalePhotos = true;
var colorboxPreloading = false;
var colorboxOverlayClose = false;
var colorboxLoop = true;
var colorboxEscKey = true;
var colorboxArrowKey = true;
var colorboxScrolling = true;
var colorboxOpacity = "0.85";
var colorboxTransition = "elastic";
var colorboxSpeed = 350;
var colorboxSlideshowSpeed = 2500;
var colorboxClose = "close";
var colorboxNext = "next";
var colorboxPrevious = "previous";
var colorboxSlideshowStart = "start slideshow";
var colorboxSlideshowStop = "stop slideshow";
var colorboxCurrent = "{current} of {total} images";

var colorboxImageMaxWidth = "900px";
var colorboxImageMaxHeight = false;
var colorboxImageHeight = false;
var colorboxImageWidth = false;

var colorboxLinkHeight = false;
var colorboxLinkWidth = false;

var colorboxInitialHeight = 100;
var colorboxInitialWidth = 300;

jQuery(document).ready(function() {
colorboxSelector();
});
