﻿// javascript.

// バナーのスクロール位置を返します.
function getBrowserHeight() {
        if ( window.innerHeight ) {
                return window.innerHeight;
        }
        else if ( document.documentElement && document.documentElement.clientHeight != 0 ) {
                return document.documentElement.clientHeight;
        }
        else if ( document.body ) {
                return document.body.clientHeight;
        }
        return 0;
}

function getBannerY() {
	var banner = $('flashcontent_i');
	var cumulative = Position.cumulativeOffset( banner );
	var real = Position.realOffset( banner );
	var aaa = getBrowserHeight();
	return cumulative[1]-real[1]+(1000-aaa);
}

