/*!
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */

		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='c-window01']").colorbox();
			$("a[rel='c-window02']").colorbox({transition:"fade"});
			$("a[rel='c-window03']").colorbox({transition:"none", width:"90%", height:"90%", previous:"前へ", next:"次へ", close:"×閉じる"});
			$("a[rel='c-window04']").colorbox({slideshow:true});
			$(".c-window05").colorbox();
			$(".c-window06").colorbox({iframe:true, innerWidth:425, innerHeight:344});
			$(".c-window07").colorbox({width:"80%", height:"80%", iframe:true, previous:"前へ", next:"次へ", close:"×閉じる"});
			$(".c-window07-kaiyu").colorbox({width:"580px", height:"480px", iframe:true, previous:"前へ", next:"次へ", close:"×閉じる"});
			$(".c-window07-nosi").colorbox({width:"735px", height:"735px", iframe:true, previous:"前へ", next:"次へ", close:"×閉じる"});
			$(".c-window07-hoso").colorbox({width:"735px", height:"585px", iframe:true, previous:"前へ", next:"次へ", close:"×閉じる"});
			$(".c-window08").colorbox({width:"50%", inline:true, href:"#inline_example1"});
			$(".c-window09").colorbox({
				onOpen:function(){ alert('onOpen: colorbox is about to open'); },
				onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
				onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
				onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
				onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
			});
			
			//Example of preserving a JavaScript event for inline calls.
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
		});

