var findContents;
(function($) {

	// コラボ Grani のバナー注意事項を展開 ++START++
	window.findContents = function findContents(name1, name2){
		$(document.getElementById(name1)).hide().prepend('<div id="white" style="width:100%;background:#FFF;position:absolute;" />');
		$(document.getElementById(name2)).one('focus', function(){
			var h = $(document.getElementById(name1)).height() + 1;
			$('#white').height(h);
			$(document.getElementById(name1)).css({height:0, display:'block'}).animate({height:h}, function(){
				$(this).height('');
				setTimeout(function(){
					$('#white').animate({'opacity':0.0, duration:'fast'}, function(){
						$(this).remove();
					});
				}, 10);
			});
		});
	}
	// コラボ Grani のバナー注意事項を展開 --END--

})(jQuery);
$= jQuery;
jQuery(function($){

	$.getScript("http://www.google-analytics.com/ga.js", function(){
		try{
			pageTracker = _gat._getTracker('UA-2005247-1');
			pageTracker._setDomainName(".fenrir.co.jp");
			pageTracker._trackPageview();
		}catch(e){}
	});
	
});

// スタートページに Sleipnir Start を設定する
function fLib_setStartPage(){

	function isEnabledSetHomePage() {
		var ret = false;
		try {
			window.external.setHomePage;
		}
		catch( e ) {
			ret = true;
		}
		return ret;
	}

	if ( isEnabledSetHomePage() ) {
		window.external.setHomePage('http://www.sleipnirstart.com/');
	}
	else{
		document.body.style.behavior = 'url( #default#homepage )';
		document.body.setHomePage('http://www.sleipnirstart.com/');
	}
}


function ga(q){
	try{
		pageTracker._trackPageview(q);
	}catch(e){}
}

/* Overture K.K.タグ1 */
window.ysm_customData = new Object();
window.ysm_customData.conversion = "transId=,currency=,amount=";
var ysm_accountid;

function overtureKK1(trackStat){
	try{

		ysm_accountid ="1GAAKPHKI1M01TKNJ2AAN9SB3IC";

		pageTracker._trackPageview(trackStat);

		YAHOO.util.Get.script("http://srv2.wa.marketingsolutions.yahoo.com/script/ScriptServlet?aid="+ysm_accountid);

	}catch(e){}
}



/* Overture K.K.タグ2 */
function overtureKK2(){
	try{

		var transaction_id = "";
		var amount = "";
		var accountid ="dZsCo1UOLDXsCHX_CySX";
		
		var imgTag = document.createElement("img");
		imgTag.src = "http://b90.yahoo.co.jp/c?account_id=" + accountid + "&transaction_id=" + transaction_id + "&amount=" + amount;
		imgTag.width = "1";
		imgTag.height = "1";
		imgTag.border = "0";
		document.body.appendChild(imgTag);

	}catch(e){}
}





function rollover(id, type) {
	if(type==1) {
		$opacity(id, 100, 0, 600);
	} else {
		$opacity(id, 0, 100, 600);
	}
}

/*
SimpleJS ver 0.1 beta
----------------------
SimpleJS is developed by Christophe "Dyo" Lefevre (http://bleebot.com/)
*/
function $(id){
	return document.getElementById(id);
}
function STO(_24,_25){
	return window.setTimeout(_24,_25);
}

function act_width(id){
	width=$(id).clientWidth;
	if(width==0){
		width=$(id).offsetWidth;
	}
	return width;
}

function $opacity(id,_35,_36,_37){
	$=jQuery;
	//if($(id).width==0){
		//$(id).width=act_width(id);
		$(id).width($("body").innerWidth());
	//}
	var _38=Math.round(_37/100);
	var _39=0;
	if(_35>_36){
		for(i=_35;i>=_36;i--){
			STO("changeOpac("+i+",'"+id+"')",(_39*_38));
			_39++;
		}
	}else{
		if(_35<_36){
			for(i=_35;i<=_36;i++){
				STO("changeOpac("+i+",'"+id+"')",(_39*_38));
				_39++;
			}
		}
	}
}

function changeOpac(_3a,id){
	var ids=$("#"+id);
	ids.css("opacity",_3a/100);
//	ids.opacity=(_3a/100);
//	ids.MozOpacity=(_3a/100);
//	ids.KhtmlOpacity=(_3a/100);
//	ids.filter="alpha(opacity="+_3a+")";
}




/**
*
*	LightBox風ポップアップライブラリ
*	※要 simple.js
*
*
*/


	/*********************************************************************************************
	[使い方]
		ポップアップさせたいものに　onlclick="popup('URL', 'HEIGHT'. 'WIDTH') return false;"
		URL   : 表示させたいもののURL(画像可)
		HEIGHT: ポップアップの高さ(画像の場合は未指定でも可)
		WIDTH : ポップアップ幅(画像の場合は未指定でも可)
	**********************************************************************************************/
	function popup(obj, width, height)
	{
		url = obj.href;
		
		if(!height){
			height = 480;
		}
		if(!width) {
			width = 640;
		}
		
		//背景
		var background = createBg();
		
		//表示用エリア作成
		var content    = createContent();
		
		
		
		
		
		
		
		//読み込み
		if(url.indexOf('.png') != -1 || url.indexOf('.jpg') != -1 || url.indexOf('.jpeg') != -1 || url.indexOf('.gif') != -1) {
			//画像
			content.innerHTML = '<img scrolling="no" src="' + url + '" id="POPUP_image" width="' + width + '" height="' + height + '">';
		} else {
			//通常のHTML
			content.innerHTML = '<iframe scrolling="no" src="' + url + '" frameborder="0" width="' + width + '" height="' + height + '" id="POPUP_frame"></iframe>';
		}
		
		//表示&位置あわせ
		background.style.display = 'block';
		content.style.top = (document.documentElement.scrollTop || document.body.scrollTop) + ((document.documentElement.clientHeight || document.body.clientHeight) - height) / 2 + 'px';
		//背景表示
		$opacity(background.id, 0, 70, 200);

		//内容表示
		var timeout = setTimeout(function(){
			clearTimeout(timeout);
			content.style.display = 'block';
			$opacity(content.id, 0, 100, 200);
			}, 200);
		
	}
	
	
	
	
	/**
	*
	*	appendPopUp
	*	特定のリンクにポップアップを適用する
	*
	*/
	function appendPopUp()
	{
		var link = document.getElementsByTagName('a');
		for(var i=0 ; i<link.length ; i++)
		{
			if(link[i].className == '_popup') {
				link[i].href = "javascript:;";
				link[i].target="_self";
			}
		}
	}
	
	/**
	*
	*	背景作成
	*
	*/
	function createBg()
	{
		if(document.getElementById('POPUP_background')) {
			return document.getElementById('POPUP_background');
		}
		
		var screen   = document.createElement("div");
		var objBody  = document.getElementsByTagName("body").item(0);   
	
		objBody.appendChild(screen);
		screen.id = "POPUP_background";
	
		screen.style.display = 'none';
		$opacity(screen.id, 100, 0, 0);
		screen.style.height = (document.documentElement.scrollHeight || document.body.scrollHeight) + 'px';
		screen.style.width  = "100%";
		screen.style.backgroundColor = "#000000";
		screen.style.position = "absolute";
		screen.style.top = "0px";
		screen.style.left = "0px";
		screen.style.zIndex = '9999';
		
		//非表示設定
		screen.onclick = closeContent;

		return screen;
	}
		
	/**
	*
	*	表示エリア作成
	*
	*/
	function createContent()
	{
		if(document.getElementById('POPUP_content')) {
			return document.getElementById('POPUP_content');
		}
		
		var content = document.createElement("div");
		var objBody  = document.getElementsByTagName("body").item(0);
		
		objBody.appendChild(content);
		content.style.display = 'none';
		content.id = "POPUP_content";
		$opacity(content.id, 100, 0, 0);
		content.style.position = "absolute";
		//content.style.top = (document.documentElement.scrollTop || document.body.scrollTop + 200) + 'px';
		content.style.left = "0px";
		content.style.textAlign = "center";
		content.style.width  = "100%";
		content.style.zIndex = '10000';
		
		//非表示設定
		content.onclick = closeContent;
		return content;
	}
	
	
	/**
	*
	*	表示を止める
	*
	*/
	function closeContent()
	{
		$opacity("POPUP_content", 100, 0, 200);
		$opacity("POPUP_background", 70, 0, 200);
	
		var timeout = setTimeout(function(){
				clearTimeout(timeout);
				document.getElementById('POPUP_background').style.display = 'none';
				document.getElementById('POPUP_content').style.display = 'none';}, 420);
	
	
	}
	


window.onload = function(){
					createBg();
					createContent();
}





// FancyZoom.js - v1.1 - http://www.fancyzoom.com
//
// Copyright (c) 2008 Cabel Sasser / Panic Inc
// All rights reserved.
// 
//     Requires: FancyZoomHTML.js
// Instructions: Include JS files in page, call setupZoom() in onLoad. That's it!
//               Any <a href> links to images will be updated to zoom inline.
//               Add rel="nozoom" to your <a href> to disable zooming for an image.
// 
// Redistribution and use of this effect in source form, with or without modification,
// are permitted provided that the following conditions are met:
// 
// * USE OF SOURCE ON COMMERCIAL (FOR-PROFIT) WEBSITE REQUIRES ONE-TIME LICENSE FEE PER DOMAIN.
//   Reasonably priced! Visit www.fancyzoom.com for licensing instructions. Thanks!
//
// * Non-commercial (personal) website use is permitted without license/payment!
//
// * Redistribution of source code must retain the above copyright notice,
//   this list of conditions and the following disclaimer.
//
// * Redistribution of source code and derived works cannot be sold without specific
//   written prior permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

var includeCaption = false; // Turn on the "caption" feature, and write out the caption HTML
var zoomTime       = 5;    // Milliseconds between frames of zoom animation
var zoomSteps      = 15;   // Number of zoom animation frames
var includeFade    = 1;    // Set to 1 to fade the image in / out as it zooms
var minBorder      = 90;   // Amount of padding between large, scaled down images, and the window edges
var shadowSettings = '0px 5px 25px rgba(0, 0, 0, '; // Blur, radius, color of shadow for compatible browsers

var zoomImagesURI   = ''; // Location of the zoom and shadow images

// Init. Do not add anything below this line, unless it's something awesome.

var myWidth = 0, myHeight = 0, myScroll = 0; myScrollWidth = 0; myScrollHeight = 0;
var zoomOpen = false, preloadFrame = 1, preloadActive = false, preloadTime = 0, imgPreload = new Image();
var preloadAnimTimer = 0;

var zoomActive = new Array(); var zoomTimer  = new Array(); 
var zoomOrigW  = new Array(); var zoomOrigH  = new Array();
var zoomOrigX  = new Array(); var zoomOrigY  = new Array();

var zoomID         = "ZoomBox";
var theID          = "ZoomImage";
var zoomCaption    = "ZoomCaption";
var zoomCaptionDiv = "ZoomCapDiv";

if (navigator.userAgent.indexOf("MSIE") != -1) {
	var browserIsIE = true;
}

// Zoom: Setup The Page! Called in your <body>'s onLoad handler.

function setupZoom() {
	zoomImagesURI   = document.getElementsByTagName("base")[0].href + 'ImageCss/20100301/images/FancyZoom/'; // Location of the zoom and shadow images

	prepZooms();
	insertZoomHTML();
	zoomdiv = document.getElementById(zoomID);  
	zoomimg = document.getElementById(theID);
}

// Zoom: Inject Javascript functions into hrefs pointing to images, one by one!
// Skip any href that contains a rel="nozoom" tag.
// This is done at page load time via an onLoad() handler.

function prepZooms() {
	if (! document.getElementsByTagName) {
		return;
	}
	var links = document.getElementsByTagName("a");
	for (i = 0; i < links.length; i++) {
		if (links[i].getAttribute("href")) {
			if (links[i].getAttribute("href").search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff)/gi) != -1) {
				if (links[i].getAttribute("rel") != "nozoom") {
					links[i].onclick = function (event) { return zoomClick(this, event); };
					links[i].onmouseover = function () { zoomPreload(this); };
				}
			}
		}
	}
}

// Zoom: Load an image into an image object. When done loading, function sets preloadActive to false,
// so other bits know that they can proceed with the zoom.
// Preloaded image is stored in imgPreload and swapped out in the zoom function.

function zoomPreload(from) {

	var theimage = from.getAttribute("href");

	// Only preload if we have to, i.e. the image isn't this image already

	if (imgPreload.src.indexOf(from.getAttribute("href").substr(from.getAttribute("href").lastIndexOf("/"))) == -1) {
		preloadActive = true;
		imgPreload = new Image();

		// Set a function to fire when the preload is complete, setting flags along the way.

		imgPreload.onload = function() {
			preloadActive = false;
		}

		// Load it!
		imgPreload.src = theimage;
	}
}

// Zoom: Start the preloading animation cycle.

function preloadAnimStart() {
	preloadTime = new Date();
	document.getElementById("ZoomSpin").style.left = (myWidth / 2) + 'px';
	document.getElementById("ZoomSpin").style.top = ((myHeight / 2) + myScroll) + 'px';
	document.getElementById("ZoomSpin").style.visibility = "visible";	
	preloadFrame = 1;
	document.getElementById("SpinImage").src = zoomImagesURI+'zoom-spin-'+preloadFrame+'.png';  
	preloadAnimTimer = setInterval("preloadAnim()", 100);
}

// Zoom: Display and ANIMATE the jibber-jabber widget. Once preloadActive is false, bail and zoom it up!

function preloadAnim(from) {
	if (preloadActive != false) {
		document.getElementById("SpinImage").src = zoomImagesURI+'zoom-spin-'+preloadFrame+'.png';
		preloadFrame++;
		if (preloadFrame > 12) preloadFrame = 1;
	} else {
		document.getElementById("ZoomSpin").style.visibility = "hidden";    
		clearInterval(preloadAnimTimer);
		preloadAnimTimer = 0;
		zoomIn(preloadFrom);
	}
}

// ZOOM CLICK: We got a click! Should we do the zoom? Or wait for the preload to complete?
// todo?: Double check that imgPreload src = clicked src

function zoomClick(from, evt) {

	var shift = getShift(evt);

	// Check for Command / Alt key. If pressed, pass them through -- don't zoom!
	if (! evt && window.event && (window.event.metaKey || window.event.altKey)) {
		return true;
	} else if (evt && (evt.metaKey|| evt.altKey)) {
		return true;
	}

	// Get browser dimensions
	getSize();

	// If preloading still, wait, and display the spinner.
	if (preloadActive == true) {
		// But only display the spinner if it's not already being displayed!
		if (preloadAnimTimer == 0) {
			preloadFrom = from;
			preloadAnimStart();	
		}
	} else {
		// Otherwise, we're loaded: do the zoom!
		zoomIn(from, shift);
	}
	
	return false;
	
}

// Zoom: Move an element in to endH endW, using zoomHost as a starting point.
// "from" is an object reference to the href that spawned the zoom.

function zoomIn(from, shift) {
	var yt = document.getElementById("ytDiv");
	var zoomImg = document.getElementById("ZoomImage");
	if(yt && zoomImg.src.match(/\/yt_640385_.*\.png$/)){
		if( yt.firstChild ){
			yt.style.visibility = 'hidden';
			yt.firstChild.style.width = yt.firstChild.lastChild.style.width = yt.style.width = '0';
			yt.firstChild.style.height = yt.firstChild.lastChild.style.height = yt.style.height = '0';
		}
	}

	zoomimg.src = from.getAttribute("href");

	// Determine the zoom settings from where we came from, the element in the <a>.
	// If there's no element in the <a>, or we can't get the width, make stuff up

	if (from.childNodes[0].width) {
		startW = from.childNodes[0].width;
		startH = from.childNodes[0].height;
		startPos = findElementPos(from.childNodes[0]);
	} else {
		startW = 50;
		startH = 12;
		startPos = findElementPos(from);
	}

	hostX = startPos[0];
	hostY = startPos[1];

	// Make up for a scrolled containing div.
	// TODO: This HAS to move into findElementPos.
	
	if (document.getElementById('scroller')) {
		hostX = hostX - document.getElementById('scroller').scrollLeft;
	}

	// Determine the target zoom settings from the preloaded image object

	endW = imgPreload.width;
	endH = imgPreload.height;

	// Start! But only if we're not zooming already!

	if (zoomActive[theID] != true) {

		// Clear everything out just in case something is already open

		if (document.getElementById("ShadowBox")) {
			document.getElementById("ShadowBox").style.visibility = "hidden";
		} else if (! browserIsIE) {
		
			// Wipe timer if shadow is fading in still
			if (fadeActive["ZoomImage"]) {
				clearInterval(fadeTimer["ZoomImage"]);
				fadeActive["ZoomImage"] = false;
				fadeTimer["ZoomImage"] = false;			
			}
			
			document.getElementById("ZoomImage").style.webkitBoxShadow = shadowSettings + '0.0)';			
		}
		
		document.getElementById("ZoomClose").style.visibility = "hidden";     

		// Setup the CAPTION, if existing. Hide it first, set the text.

		if (includeCaption) {
			document.getElementById(zoomCaptionDiv).style.visibility = "hidden";
			if (from.getAttribute('title') && includeCaption) {
				// Yes, there's a caption, set it up
				document.getElementById(zoomCaption).innerHTML = from.getAttribute('title');
			} else {
				document.getElementById(zoomCaption).innerHTML = "";
			}
		}

		// Store original position in an array for future zoomOut.

		zoomOrigW[theID] = startW;
		zoomOrigH[theID] = startH;
		zoomOrigX[theID] = hostX;
		zoomOrigY[theID] = hostY;

		// Now set the starting dimensions

		zoomimg.style.width = startW + 'px';
		zoomimg.style.height = startH + 'px';
		zoomdiv.style.left = hostX + 'px';
		zoomdiv.style.top = hostY + 'px';

		// Show the zooming image container, make it invisible

		if (includeFade == 1) {
			setOpacity(0, zoomID);
		}
		zoomdiv.style.visibility = "visible";

		// If it's too big to fit in the window, shrink the width and height to fit (with ratio).

		sizeRatio = endW / endH;
		if (endW > myWidth - minBorder) {
			endW = myWidth - minBorder;
			endH = endW / sizeRatio;
		}
		if (endH > myHeight - minBorder) {
			endH = myHeight - minBorder;
			endW = endH * sizeRatio;
		}

		zoomChangeX = ((myWidth / 2) - (endW / 2) - hostX);
		zoomChangeY = (((myHeight / 2) - (endH / 2) - hostY) + myScroll);
		zoomChangeW = (endW - startW);
		zoomChangeH = (endH - startH);
		
		// Shift key?
	
		if (shift) {
			tempSteps = zoomSteps * 7;
		} else {
			tempSteps = zoomSteps;
		}

		// Setup Zoom

		zoomCurrent = 0;

		// Setup Fade with Zoom, If Requested

		if (includeFade == 1) {
			fadeCurrent = 0;
			fadeAmount = (0 - 100) / tempSteps;
		} else {
			fadeAmount = 0;
		}

		// Do It!
		
		zoomTimer[theID] = setInterval("zoomElement('"+zoomID+"', '"+theID+"', "+zoomCurrent+", "+startW+", "+zoomChangeW+", "+startH+", "+zoomChangeH+", "+hostX+", "+zoomChangeX+", "+hostY+", "+zoomChangeY+", "+tempSteps+", "+includeFade+", "+fadeAmount+", 'zoomDoneIn(zoomID)')", zoomTime);		
		zoomActive[theID] = true; 
	}
}

// Zoom it back out.

function zoomOut(from, evt) {

	var yt = document.getElementById("ytDiv");
	var zoomImg = document.getElementById("ZoomImage");
	if(yt && zoomImg.src.match(/\/yt_640385_.*\.png$/)){
		if( yt.firstChild ){
			yt.style.visibility = 'hidden';
			yt.firstChild.style.width = yt.firstChild.lastChild.style.width = yt.style.width = '0';
			yt.firstChild.style.height = yt.firstChild.lastChild.style.height = yt.style.height = '0';
			setTimeout(function(){
				yt.innerHTML = '';
			},500);
		}
	//	yt.style.display = 'none';
	//	yt.innerHTML = '';
	//	yt.style.top = '0';
	//	yt.style.left = '0';
	}

	// Get shift key status.
	// IE events don't seem to get passed through the function, so grab it from the window.

	if (getShift(evt)) {
		tempSteps = zoomSteps * 7;
	} else {
		tempSteps = zoomSteps;
	}	

	// Check to see if something is happening/open
  
	if (zoomActive[theID] != true) {

		// First, get rid of the shadow if necessary.

		if (document.getElementById("ShadowBox")) {
			document.getElementById("ShadowBox").style.visibility = "hidden";
		} else if (! browserIsIE) {
		
			// Wipe timer if shadow is fading in still
			if (fadeActive["ZoomImage"]) {
				clearInterval(fadeTimer["ZoomImage"]);
				fadeActive["ZoomImage"] = false;
				fadeTimer["ZoomImage"] = false;			
			}
			
			document.getElementById("ZoomImage").style.webkitBoxShadow = shadowSettings + '0.0)';			
		}

		// ..and the close box...

		document.getElementById("ZoomClose").style.visibility = "hidden";

		// ...and the caption if necessary!

		if (includeCaption && document.getElementById(zoomCaption).innerHTML != "") {
			// fadeElementSetup(zoomCaptionDiv, 100, 0, 5, 1);
			document.getElementById(zoomCaptionDiv).style.visibility = "hidden";
		}

		// Now, figure out where we came from, to get back there

		startX = parseInt(zoomdiv.style.left);
		startY = parseInt(zoomdiv.style.top);
		startW = zoomimg.width;
		startH = zoomimg.height;
		zoomChangeX = zoomOrigX[theID] - startX;
		zoomChangeY = zoomOrigY[theID] - startY;
		zoomChangeW = zoomOrigW[theID] - startW;
		zoomChangeH = zoomOrigH[theID] - startH;

		// Setup Zoom

		zoomCurrent = 0;

		// Setup Fade with Zoom, If Requested

		if (includeFade == 1) {
			fadeCurrent = 0;
			fadeAmount = (100 - 0) / tempSteps;
		} else {
			fadeAmount = 0;
		}

		// Do It!

		zoomTimer[theID] = setInterval("zoomElement('"+zoomID+"', '"+theID+"', "+zoomCurrent+", "+startW+", "+zoomChangeW+", "+startH+", "+zoomChangeH+", "+startX+", "+zoomChangeX+", "+startY+", "+zoomChangeY+", "+tempSteps+", "+includeFade+", "+fadeAmount+", 'zoomDone(zoomID, theID)')", zoomTime);	
		zoomActive[theID] = true;
	}
}

// Finished Zooming In

function zoomDoneIn(zoomdiv, theID) {

	// Note that it's open

	zoomOpen = true;
	zoomdiv = document.getElementById(zoomdiv);




	if (document.getElementById("ZoomClose")) {
	//	setOpacity(0, "ZoomClose");
		closediv = document.getElementById("ZoomClose");

		closeLeft = parseInt(zoomdiv.style.left) - 23;
		closeTop = parseInt(zoomdiv.style.top) + 88;

		closediv.style.overflow = 'hidden';
		closediv.style.left = closeLeft + 'px';
		closediv.style.top = closeTop + 'px';
		//fadeElementSetup("ZoomClose", 0, 100, 5);
		
	}

	// Position the table shadow behind the zoomed in image, and display it

	if (document.getElementById("ShadowBox")) {

		setOpacity(0, "ShadowBox");
		shadowdiv = document.getElementById("ShadowBox");

		shadowLeft = parseInt(zoomdiv.style.left) - 13;
		shadowTop = parseInt(zoomdiv.style.top) - 8;
		shadowWidth = zoomdiv.offsetWidth + 26;
		shadowHeight = zoomdiv.offsetHeight + 26; 
	
		shadowdiv.style.width = shadowWidth + 'px';
		shadowdiv.style.height = shadowHeight + 'px';
		shadowdiv.style.left = shadowLeft + 'px';
		shadowdiv.style.top = shadowTop + 'px';

		document.getElementById("ShadowBox").style.visibility = "visible";
		fadeElementSetup("ShadowBox", 0, 100, 5);
		
	} 
	
	// Position and display the CAPTION, if existing
  
	if (includeCaption && document.getElementById(zoomCaption).innerHTML != "") {
		// setOpacity(0, zoomCaptionDiv);
		zoomcapd = document.getElementById(zoomCaptionDiv);
		zoomcapd.style.top = parseInt(zoomdiv.style.top) + (zoomdiv.offsetHeight + 15) + 'px';
		zoomcapd.style.left = (myWidth / 2) - (zoomcapd.offsetWidth / 2) + 'px';
		zoomcapd.style.visibility = "visible";
		// fadeElementSetup(zoomCaptionDiv, 0, 100, 5);
	}   
	
	// Display Close Box (fade it if it's not IE)

	//if (!browserIsIE) setOpacity(0, "ZoomClose");
	document.getElementById("ZoomClose").style.visibility = "visible";
	//if (!browserIsIE) fadeElementSetup("ZoomClose", 0, 100, 5);

	// Get keypresses
	document.onkeypress = getKey;
	
	var zoomImg = document.getElementById("ZoomImage");
	var yt = document.getElementById("ytDiv");
	if(zoomImg.src.match(/\/mosa\/yt_640385_.*\.png$/) && yt){
		setTimeout(function(){
			if(zoomImg.src.match(/\/mosa\/yt_640385_blank2\.png$/)){
				yt.innerHTML = '<object width="640" height="385" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/eUd54jWLVWw&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&autoplay=1" /><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" /><embed bgcolor="#000000" src="http://www.youtube.com/v/eUd54jWLVWw&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';
			}else{
				yt.innerHTML = '<object width="640" height="385" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/OuIw90D11z0&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&autoplay=1" /><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" /><embed bgcolor="#000000" src="http://www.youtube.com/v/OuIw90D11z0&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';

			}

			yt.firstChild.style.width = yt.firstChild.lastChild.style.width = yt.style.width = zoomImg.style.width;
			yt.firstChild.style.height = yt.firstChild.lastChild.style.height = yt.style.height = zoomImg.style.height;
//			jQuery(zoomImg).animate({opacity:0},"normal",function(){
//				setTimeout(function(){
					yt.style.visibility = 'visible';
//				}, 1500);
//			});
		}, 10);
	}
	else if(zoomImg.src.match(/\/inkiness_ipad\/yt_640385_.*\.png$/) && yt){
		setTimeout(function(){
			yt.innerHTML = '<object width="640" height="385" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/9M7SUnYDaEg&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&autoplay=1" /><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" /><embed bgcolor="#000000" src="http://www.youtube.com/v/9M7SUnYDaEg&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';

			yt.firstChild.style.width = yt.firstChild.lastChild.style.width = yt.style.width = zoomImg.style.width;
			yt.firstChild.style.height = yt.firstChild.lastChild.style.height = yt.style.height = zoomImg.style.height;
//			jQuery(zoomImg).animate({opacity:0},"normal",function(){
//				setTimeout(function(){
					yt.style.visibility = 'visible';
//				}, 1500);
//			});
		}, 10);
	}
}

// Finished Zooming Out

function zoomDone(zoomdiv, theID) {

	// No longer open
  
	zoomOpen = false;

	// Clear stuff out, clean up

	zoomOrigH[theID] = "";
	zoomOrigW[theID] = "";
	document.getElementById(zoomdiv).style.visibility = "hidden";
	zoomActive[theID] == false;

	// Stop getting keypresses

	document.onkeypress = null;

}

// Actually zoom the element

function zoomElement(zoomdiv, theID, zoomCurrent, zoomStartW, zoomChangeW, zoomStartH, zoomChangeH, zoomStartX, zoomChangeX, zoomStartY, zoomChangeY, zoomSteps, includeFade, fadeAmount, execWhenDone) {

	// console.log("Zooming Step #"+zoomCurrent+ " of "+zoomSteps+" (zoom " + zoomStartW + "/" + zoomChangeW + ") (zoom " + zoomStartH + "/" + zoomChangeH + ")  (zoom " + zoomStartX + "/" + zoomChangeX + ")  (zoom " + zoomStartY + "/" + zoomChangeY + ") Fade: "+fadeAmount);
    
	// Test if we're done, or if we continue

	if (zoomCurrent == (zoomSteps + 1)) {
		zoomActive[theID] = false;
		clearInterval(zoomTimer[theID]);

		if (execWhenDone != "") {
			eval(execWhenDone);
		}
	} else {
	
		// Do the Fade!
	  
		if (includeFade == 1) {
			if (fadeAmount < 0) {
				setOpacity(Math.abs(zoomCurrent * fadeAmount), zoomdiv);
			} else {
				setOpacity(100 - (zoomCurrent * fadeAmount), zoomdiv);
			}
		}
	  
		// Calculate this step's difference, and move it!
		
		moveW = cubicInOut(zoomCurrent, zoomStartW, zoomChangeW, zoomSteps);
		moveH = cubicInOut(zoomCurrent, zoomStartH, zoomChangeH, zoomSteps);
		moveX = cubicInOut(zoomCurrent, zoomStartX, zoomChangeX, zoomSteps);
		moveY = cubicInOut(zoomCurrent, zoomStartY, zoomChangeY, zoomSteps);
	
		document.getElementById(zoomdiv).style.left = moveX + 'px';
		document.getElementById(zoomdiv).style.top = moveY + 'px';
		zoomimg.style.width = moveW + 'px';
		zoomimg.style.height = moveH + 'px';
	
		zoomCurrent++;
		
		clearInterval(zoomTimer[theID]);
		zoomTimer[theID] = setInterval("zoomElement('"+zoomdiv+"', '"+theID+"', "+zoomCurrent+", "+zoomStartW+", "+zoomChangeW+", "+zoomStartH+", "+zoomChangeH+", "+zoomStartX+", "+zoomChangeX+", "+zoomStartY+", "+zoomChangeY+", "+zoomSteps+", "+includeFade+", "+fadeAmount+", '"+execWhenDone+"')", zoomTime);
	}
}

// Zoom Utility: Get Key Press when image is open, and act accordingly

function getKey(evt) {
	if (! evt) {
		theKey = event.keyCode;
	} else {
		theKey = evt.keyCode;
	}

	if (theKey == 27) { // ESC
		zoomOut(this, evt);
	}
}

////////////////////////////
//
// FADE Functions
//

function fadeOut(elem) {
	if (elem.id) {
		fadeElementSetup(elem.id, 100, 0, 10);
	}
}

function fadeIn(elem) {
	if (elem.id) {
		fadeElementSetup(elem.id, 0, 100, 10);	
	}
}

// Fade: Initialize the fade function

var fadeActive = new Array();
var fadeQueue  = new Array();
var fadeTimer  = new Array();
var fadeClose  = new Array();
var fadeMode   = new Array();

function fadeElementSetup(theID, fdStart, fdEnd, fdSteps, fdClose, fdMode) {

	// alert("Fading: "+theID+" Steps: "+fdSteps+" Mode: "+fdMode);

	if (fadeActive[theID] == true) {
		// Already animating, queue up this command
		fadeQueue[theID] = new Array(theID, fdStart, fdEnd, fdSteps);
	} else {
		fadeSteps = fdSteps;
		fadeCurrent = 0;
		fadeAmount = (fdStart - fdEnd) / fadeSteps;
		fadeTimer[theID] = setInterval("fadeElement('"+theID+"', '"+fadeCurrent+"', '"+fadeAmount+"', '"+fadeSteps+"')", 15);
		fadeActive[theID] = true;
		fadeMode[theID] = fdMode;
		
		if (fdClose == 1) {
			fadeClose[theID] = true;
		} else {
			fadeClose[theID] = false;
		}
	}
}

// Fade: Do the fade. This function will call itself, modifying the parameters, so
// many instances can run concurrently. Can fade using opacity, or fade using a box-shadow.

function fadeElement(theID, fadeCurrent, fadeAmount, fadeSteps) {

	if (fadeCurrent == fadeSteps) {

		// We're done, so clear.

		clearInterval(fadeTimer[theID]);
		fadeActive[theID] = false;
		fadeTimer[theID] = false;

		// Should we close it once the fade is complete?

		if (fadeClose[theID] == true) {
			document.getElementById(theID).style.visibility = "hidden";
		}

		// Hang on.. did a command queue while we were working? If so, make it happen now

		if (fadeQueue[theID] && fadeQueue[theID] != false) {
			fadeElementSetup(fadeQueue[theID][0], fadeQueue[theID][1], fadeQueue[theID][2], fadeQueue[theID][3]);
			fadeQueue[theID] = false;
		}
	} else {

		fadeCurrent++;
		
		// Now actually do the fade adjustment.
		
		if (fadeMode[theID] == "shadow") {

			// Do a special fade on the webkit-box-shadow of the object
		
			if (fadeAmount < 0) {
				document.getElementById(theID).style.webkitBoxShadow = shadowSettings + (Math.abs(fadeCurrent * fadeAmount)) + ')';
			} else {
				document.getElementById(theID).style.webkitBoxShadow = shadowSettings + (100 - (fadeCurrent * fadeAmount)) + ')';
			}
			
		} else {
		
			// Set the opacity depending on if we're adding or subtracting (pos or neg)
			
			if (fadeAmount < 0) {
				setOpacity(Math.abs(fadeCurrent * fadeAmount), theID);
			} else {
				setOpacity(100 - (fadeCurrent * fadeAmount), theID);
			}
		}

		// Keep going, and send myself the updated variables
		clearInterval(fadeTimer[theID]);
		fadeTimer[theID] = setInterval("fadeElement('"+theID+"', '"+fadeCurrent+"', '"+fadeAmount+"', '"+fadeSteps+"')", 15);
	}
}

////////////////////////////
//
// UTILITY functions
//

// Utility: Set the opacity, compatible with a number of browsers. Value from 0 to 100.

function setOpacity(opacity, theID) {

	var object = document.getElementById(theID).style;

	// If it's 100, set it to 99 for Firefox.

	if (navigator.userAgent.indexOf("Firefox") != -1) {
		if (opacity == 100) { opacity = 99.9999; } // This is majorly awkward
	}

	// Multi-browser opacity setting

	object.filter = "alpha(opacity=" + opacity + ")"; // IE/Win
	object.opacity = (opacity / 100);                 // Safari 1.2, Firefox+Mozilla

}

// Utility: Math functions for animation calucations - From http://www.robertpenner.com/easing/
//
// t = time, b = begin, c = change, d = duration
// time = current frame, begin is fixed, change is basically finish - begin, duration is fixed (frames),

function linear(t, b, c, d)
{
	return c*t/d + b;
}

function sineInOut(t, b, c, d)
{
	return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
}

function cubicIn(t, b, c, d) {
	return c*(t/=d)*t*t + b;
}

function cubicOut(t, b, c, d) {
	return c*((t=t/d-1)*t*t + 1) + b;
}

function cubicInOut(t, b, c, d)
{
	if ((t/=d/2) < 1) return c/2*t*t*t + b;
	return c/2*((t-=2)*t*t + 2) + b;
}

function bounceOut(t, b, c, d)
{
	if ((t/=d) < (1/2.75)){
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)){
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)){
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
}


// Utility: Get the size of the window, and set myWidth and myHeight
// Credit to quirksmode.org

function getSize() {

	// Window Size

	if (self.innerHeight) { // Everyone but IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		myScroll = window.pageYOffset;
	} else if (document.documentElement && document.documentElement.clientHeight) { // IE6 Strict
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		myScroll = document.documentElement.scrollTop;
	} else if (document.body) { // Other IE, such as IE7
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		myScroll = document.body.scrollTop;
	}

	// Page size w/offscreen areas

	if (window.innerHeight && window.scrollMaxY) {	
		myScrollWidth = document.body.scrollWidth;
		myScrollHeight = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight) { // All but Explorer Mac
		myScrollWidth = document.body.scrollWidth;
		myScrollHeight = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		myScrollWidth = document.body.offsetWidth;
		myScrollHeight = document.body.offsetHeight;
	}
}

// Utility: Get Shift Key Status
// IE events don't seem to get passed through the function, so grab it from the window.

function getShift(evt) {
	var shift = false;
	if (! evt && window.event) {
		shift = window.event.shiftKey;
	} else if (evt) {
		shift = evt.shiftKey;
		if (shift) evt.stopPropagation(); // Prevents Firefox from doing shifty things
	}
	return shift;
}

// Utility: Find the Y position of an element on a page. Return Y and X as an array

function findElementPos(elemFind)
{
	var elemX = 0;
	var elemY = 0;
	do {
		elemX += elemFind.offsetLeft;
		elemY += elemFind.offsetTop;
	} while ( elemFind = elemFind.offsetParent )

	return Array(elemX, elemY);
}





// FancyZoomHTML.js - v1.0
// Used to draw necessary HTML elements for FancyZoom
//
// Copyright (c) 2008 Cabel Sasser / Panic Inc
// All rights reserved.

function insertZoomHTML() {

	// All of this junk creates the three <div>'s used to hold the closebox, image, and zoom shadow.
	
	var inBody = document.getElementsByTagName("body").item(0);
	
	// WAIT SPINNER
	
	var inSpinbox = document.createElement("div");
	inSpinbox.setAttribute('id', 'ZoomSpin');
	inSpinbox.style.position = 'absolute';
	inSpinbox.style.left = '10px';
	inSpinbox.style.top = '-100px';
	//inSpinbox.style.visibility = 'hidden';
	inSpinbox.style.zIndex = '525';
	inBody.insertBefore(inSpinbox, inBody.firstChild);
	
	var inSpinImage = document.createElement("img");
	inSpinImage.setAttribute('id', 'SpinImage');
	inSpinImage.setAttribute('src', zoomImagesURI+'zoom-spin-1.png');
	inSpinbox.appendChild(inSpinImage);
	
	// ZOOM IMAGE
	//
	// <div id="ZoomBox">
	//   <a href="javascript:zoomOut();"><img src="/images/spacer.gif" id="ZoomImage" border="0"></a> <!-- THE IMAGE -->
	// </div>
	
	var inZoombox = document.createElement("div");
	inZoombox.setAttribute('id', 'ZoomBox');
	
	inZoombox.style.position = 'absolute'; 
	inZoombox.style.left = '10px';
	inZoombox.style.top = '10px';
	inZoombox.style.visibility = 'hidden';
	inZoombox.style.zIndex = '499';
	
	inBody.insertBefore(inZoombox, inSpinbox.nextSibling);
	
	var inImage1 = document.createElement("img");
	inImage1.onclick = function (event) { zoomOut(this, event); return false; };	
	inImage1.setAttribute('src',zoomImagesURI+'spacer.gif');
	inImage1.setAttribute('id','ZoomImage');
	inImage1.setAttribute('border', '0');
	// inImage1.setAttribute('onMouseOver', 'zoomMouseOver();')
	// inImage1.setAttribute('onMouseOut', 'zoomMouseOut();')
	
	// This must be set first, so we can later test it using webkitBoxShadow.
	inImage1.setAttribute('style', '-webkit-box-shadow: '+shadowSettings+'0.0)');
	inImage1.style.display = 'block';
	inImage1.style.width = '10px';
	inImage1.style.height = '10px';
	inImage1.style.cursor = 'pointer'; // -webkit-zoom-out?
	inZoombox.appendChild(inImage1);
	
	var yt = document.createElement("div");
	yt.id = 'ytDiv';
	yt.style.position = 'absolute';
	yt.style.top = '0';
	yt.style.left = '0';
	yt.style.width = '640px';
	yt.style.height = '385px';
	yt.style.visibility = 'hidden';
	yt.style.zIndex = '10001';
//	yt.innerHTML = '<object width="640" height="385" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/eUd54jWLVWw&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eUd54jWLVWw&hl=ja_JP&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';
	inZoombox.appendChild(yt);

	var inClosebox = document.createElement("div");
	inClosebox.setAttribute('id', 'ZoomClose');
	inClosebox.style.position = 'absolute';
	inClosebox.style.width = '30px';
	inClosebox.style.height = '30px';
	
	// In MSIE, we need to put the close box inside the image.
	// It's 2008 and I'm having to do a browser detect? Sigh.
		inClosebox.style.left = '-1px';
		inClosebox.style.top = '0px';	

	
	inClosebox.style.visibility = 'hidden';
	inSpinbox.appendChild(inClosebox);
	var inImage2 = document.createElement("div");
	if ( ! browserIsIE) {
	inImage2.style.backgroundImage = 'url('+zoomImagesURI+'closebox.png)';
	}
	inImage2.onclick = function (event) { zoomOut(this, event); return false; };
	inImage2.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+zoomImagesURI+'closebox.png")';
	inImage2.style.width = '30px';
	inImage2.style.height = '30px';
	inImage2.style.cursor = 'pointer';
	inClosebox.appendChild(inImage2);
}


/*/////////////////
	SBM
/////////////////*/

function deliciousJSON(d) {
    var c = '';
    if ( d[0] && d[0].total_posts ) {
        c = d[0].total_posts;
    }
    var t = document.getElementById('delicious_count');
	if( t ){
	    if ( c ) {
	        t.style.backgroundColor = 'rgb(85, 146, 233)';
	        t.innerHTML = c;
	    }
	    else {
	        t.style.backgroundColor = '';
	        t.style.padding = 0;
	        t.innerHTML = c;
			t.style.display = 'none';
	    }
	}
}
function reqDelicious(u) {
    document.write('<script type="text/javascript" src="http://feeds.delicious.com/v2/json/urlinfo/blogbadge?url='+u+'&amp;callback=deliciousJSON"></script>');
}

function appendSBM(url,title,tag){
	$ = jQuery;

	var html = '<a href="http://b.hatena.ne.jp/entry/'+url+'" class="hatena-bookmark-button" data-hatena-bookmark-title="'+title+'" data-hatena-bookmark-layout="standard" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>'
			+ '<a href="http://twitter.com/share" class="twitter-share-button" data-related="fenrir_official" data-url="'+url+'" data-text="'+title+" "+tag+'" data-count="horizontal" data-lang="ja">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>'
			+ '<iframe src="http://www.facebook.com/plugins/like.php?href='+url+'&amp;layout=button_count&amp;show_faces=true&amp;width=104&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:104px; height:21px;" allowTransparency="true"></iframe>';
			//+ '<a href="http://mixi.jp/share.pl" class="mixi-check-button" data-key="bd5af414043c9cc4f83283f141b77da6be782a2f" data-url="'+url+'" data-button="button-1">mixiチェック</a><script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>'
			//+ '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script><a href="#" class="evernoteclip" onclick="Evernote.doClip({contentId:\'entry\',providerName:\''+title+'\'}); return false;"><img src="http://static.evernote.com/article-clipper-jp.png" alt="Clip to Evernote" /></a>';

	if (typeof document.body.style.maxHeight != "undefined") {
		if (!/*@cc_on!@*/false){
			// IE以外のブラウザ
			html += '<div id="___plusone_0" style="height: 24px; width: 106px; display: inline-block; text-indent: 0pt; margin: 0pt; padding: 0pt; background: none repeat scroll 0% 0% transparent; border-style: none; float: none;"><iframe width="100%" scrolling="no" frameborder="0" vspace="0" tabindex="-1" style="position: static; left: 0pt; top: 0pt; width: 106px; margin: 0px; height: 24px; visibility: visible;" src="https://plusone.google.com/u/0/_/+1/fastbutton?url='+url+'&amp;size=medium&amp;count=true&amp;db=1&amp;hl=en-US&amp;jsh=r%3Bgc%2F22821001-a70f00f0#id=I1_1312952964635&amp;parent=http%3A%2F%2Fwww.fenrir.co.jp&amp;rpctoken=258743805&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" name="I1_1312952964635" marginwidth="0" marginheight="0" id="I1_1312952964635" hspace="0" allowtransparency="true"></iframe></div>';
		}else if (document.documentMode >=8) {
			// IE8,IE9
			html += '<div id="___plusone_0" style="height: 24px; width: 106px; display: inline-block; text-indent: 0pt; margin: 0pt; padding: 0pt; background: none repeat scroll 0% 0% transparent; border-style: none; float: none;"><iframe width="100%" scrolling="no" frameborder="0" vspace="0" tabindex="-1" style="position: static; left: 0pt; top: 0pt; width: 106px; margin: 0px; height: 24px; visibility: visible;" src="https://plusone.google.com/u/0/_/+1/fastbutton?url='+url+'&amp;size=medium&amp;count=true&amp;db=1&amp;hl=en-US&amp;jsh=r%3Bgc%2F22821001-a70f00f0#id=I1_1312952964635&amp;parent=http%3A%2F%2Fwww.fenrir.co.jp&amp;rpctoken=258743805&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" name="I1_1312952964635" marginwidth="0" marginheight="0" id="I1_1312952964635" hspace="0" allowtransparency="true"></iframe></div>';
		}else {
			//IE7, IE8（IE7モード)
			//Goole ＋1 非表示
		}
	} else {
		// IE6またはそれより古いブラウザ
		//Goole ＋1 非表示
	}

	$('#appendSBM').append(html);

//	$(document).ready(function(){
//		if (typeof document.body.style.maxHeight != "undefined"){}else{
//			setTimeout(function(){
//				$(".evernoteclip img").attr("src","./img/common/blank.gif");
//				$(".evernoteclip img").css({"background":"none","width":"58px","height":"17px"});
//				$(".evernoteclip img").css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://static.evernote.com/article-clipper-jp.png', sizingMethod='crop')");
//				setTimeout(function(){
//					$(".mixi-check-button").text("");
//					$(".mixi-check-button").css({"background":"none","width":"58px","height":"20px","display":"inline-block","cursor":"pointer"});
//					$(".mixi-check-button").css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://static.mixi.jp/img/basic/mixicheck_entry/bt_check_1.png', sizingMethod='crop')");
//				},500);
//			},0);
//		}
//	});
}
