
/*----------------------------------------------

	Theme Name: design works onside inc.
	http://www.onside.com/
	Description: cost JavaScript　06-15-2010 (mm-dd-yyyy)
	Version: ver. 1.0

----------------------------------------------*/

$(document).ready(function() {

// 背景画像のスライド（jquery.BgImageTransition）
	var bgImages = [ 'contents_images_01.jpg', 'contents_images_02.jpg', 'contents_images_03.jpg', 'contents_images_04.jpg', 'contents_images_06.jpg', 'contents_images_07.jpg', 'contents_images_08.jpg' ];
	var currImage = 'contents_images_05.jpg';
	setInterval( function(){
		do{
			var randImage = bgImages[Math.ceil(Math.random()*(bgImages.length-1))];
		}while( randImage == currImage )
		currImage = randImage;
		$('#blaf').BgImageTransition( '/common/img/'+currImage );
	}, 5000)

	$('.contentsTop').click(function() {
		$('#tabsBlock').ScrollTo(1000, 'easeout');
		return false;
	});

});

	$(function() {
		//$('#tabsBlock > ul').tabs({ fx: { height: 'toggle' , opacity: 'toggle' , duration: 'normal' } });
		$('#tabsBlock').tabs({ fx: { height: 'toggle' , opacity: 'toggle' , duration: 'normal' } });
	});


	$(function() {
		var $tabs = $('#tabsBlock').tabs(); // <= Here I've added the assignment for $tabs 
		$('.my-text-link1').click(function() { // bind click event to link 
			$tabs.tabs('select', 0); // switch to third tab 
			return false; 
		});
		//$('#toolBox > a.nyroModal').nyroModal(); 
	});

	$(function() {
		var $tabs = $('#tabsBlock').tabs(); // <= Here I've added the assignment for $tabs 
		$('.my-text-link2').click(function() { // bind click event to link 
			$tabs.tabs('select', 1); // switch to third tab 
			return false; 
		});
		//$('#toolBox > a.nyroModal').nyroModal(); 
	});
	$(function() {
		var $tabs = $('#tabsBlock').tabs(); // <= Here I've added the assignment for $tabs 
		$('.my-text-link3').click(function() { // bind click event to link 
			$tabs.tabs('select', 2); // switch to third tab 
			return false; 
		});
		//$('#toolBox > a.nyroModal').nyroModal(); 
	});
