
/*hide*/
/*j$(document).ready(function(){
j$( '.srilanka_box2_1_info' ).css( 'display' , 'none' );
});
j$(document).ready(function(){
j$( '.srilanka_box2_2_info' ).css( 'display' , 'none' );
});
j$(document).ready(function(){
j$( '.srilanka_box2_3_info' ).css( 'display' , 'none' );
});
j$(document).ready(function(){
j$( '.srilanka_box2_1_map' ).css( 'display' , 'none' );
});
j$(document).ready(function(){
j$( '.srilanka_box2_2_map' ).css( 'display' , 'none' );
});
j$(document).ready(function(){
j$( '.srilanka_box2_3_map' ).css( 'display' , 'none' );
});*/


/*fade #seasonContent*/
function AccessFadeIn(){
$('#access').fadeIn(0);
$('#viewerFrameBg').fadeIn(0);
$('#contact').fadeOut(0);
}
function ContactFadeIn(){
$('#contact').css( 'top' , '130px' );
$('#contact').fadeIn(0);
$('#viewerFrameBg').fadeIn(0);
$('#access').fadeOut(0);
}
function ContactRecFadeIn(){
$('#contact').css( 'top' , '1300px' );
$('#contact').fadeIn(0);
$('#viewerFrameBg').fadeIn(0);
$('#access').fadeOut(0);
}
function AllFadeOut(){
$('#contact').fadeOut(0);
$('#access').fadeOut(0);
$('#viewerFrameBg').fadeOut(0);
}

/*ミリ秒でスピード設定*/
/*j$("#seasonContent").fadeIn(5000);*/




var ua        = navigator.userAgent.toLowerCase(); 
var is_pc_ie  = ( (ua.indexOf('msie') != -1 ) && ( ua.indexOf('win') != -1 ) && ( ua.indexOf('opera') == -1 ) && ( ua.indexOf('webtv') == -1 ) );

function setClipboard(){
	if (is_pc_ie) {
		copytext = document.f.code.createTextRange();
		copytext.execCommand("Copy");
	}else{
		document.getElementById('copy').innerHTML = "";
		var swf = "<embed src='http://www.net-b.net/js/setClipboard.swf' FlashVars='code="+encodeURIComponent(document.f.code.value)+"' width='0' height='0' type='application/x-shockwave-flash'></embed>";
		document.getElementById('copy').innerHTML = swf;
	}
	//document.f.code.value = ''; // ← 要素のクリアを廃止（08.7.14 eda）
	// ハイライトでクリアの代替
	doHighlight( document.f.code, 0, 3, 100 );
}

function doHighlight(target, step, max, interval) {
	var cols = [
		{ color : "#444", backgroundColor : "#FFAC40" },
		{ color : "#000", backgroundColor : "#FFF" }
	];
	var p = cols[ (step % cols.length) ];
	$.extend( target.style, p );
	if( ++step < cols.length * max ) {
		setTimeout( function() {
			doHighlight( target, step, max, interval );
		}, interval );
	}
}

