
//colorbox
$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$("#goIMG").colorbox({iframe:true, innerWidth:725, width:780, height:600, innerHeight:530});
	$("#goKatacom").colorbox({iframe:true, innerWidth:800, innerHeight:530});
	$("#goMACHIKO").colorbox({iframe:true, innerWidth:500, innerHeight:350});
});


var goFLG=true;
//roundabout
$(document).ready(function() {
      $('ul#gwRoundabout').roundabout({
         duration: 450, // in milliseconds, of course
         minOpacity: 0.2, // invisible!
         minScale: 0.4, // tiny!
		 tilt: -2.4,
		 btnNext:"#gwgNEXT",
		 btnPrev:"#gwgPREV",
		 easing:'easeOutElastic'
      });
   
   

   $("#gwgGO").live("mouseover",function(){
		   goFLG=true;
		   
			$("#gwgGO").live("mouseout",function(){
				goFLG=false;
			});
			gonext(goFLG);			
   });
});

function gonext(){
   	if(goFLG){
		//$("#NEXT").click();
		var ii=$('ul#gwRoundabout').roundabout_animateToPreviousChild(500,"easeOutCubic");
var iii=ii;
		setTimeout(function(){
			gonext();
		},600);
	}
}


