/* init js */
$(document).ready(function(){
	$('a[href^=#]').click(function(){
		var target;
		target = $( $(this).attr('href') );
		if (target.length == 0) {
			return;
		}
		$('html, body').animate({scrollTop: target.offset().top});
		return false;
	});
});

//GET RSS URL
var linkURIs = new Array();
function getRSSurl(idName){
	var linkURI = "";
	if(linkURIs[idName] != undefined){
		linkURI = linkURIs[idName];
	}
	else{
		if(document.all){
			linkURI = document.all(idName).href;
		}
		else if(document.getElementById){
			linkURI = document.getElementById(idName).href;
		}
	}
	prompt("RSSを登録するには下記のURLをご登録ください",linkURI);
	linkURIs[idName] = linkURI;
	if(document.all){
		document.all(idName).href = 'javascript:void(0);';
	}
	else if(document.getElementById){
		document.getElementById(idName).href = 'javascript:void(0);';
	}
	
	return false;
}

function loadFlash(url,width,height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" width="'+width+'" height="'+height+'">');
	document.write('</embed>');
	document.write('</object>');
}

function this_year(){
	var da = new Date();
	document.write(da.getFullYear());
}
