// JavaScript Document

var _portShow = 0;
var _profileShow = 0;

function overProfile() {
	_profileShow = 200
	_dropMenu1.appear();
}

function showPort() {
	_portShow = fullYR - 194;
	_barPortfolio.style.top = (fullY - 164) + "px";
	_portfolio.setPosition(0,0);
	_barPortfolio.style.height = "164px";
	_portfolio.moveTo(0,0,500);
}

function hidePort() {
	_portShow = 0;
	_barPortfolio.style.top = (fullY - 60) + "px";
	_barPortfolio.style.height = "60px";
	_portfolio.moveTo(0,0,250);
}

function mouseDetect(e) {
	if (document.all) {
		x = window.event.clientX;
		y = window.event.clientY;
	}
	else {
		x = e.pageX;
		y = e.pageY;
	}
	if (bIE) {
		x += document.body.scrollLeft;
		y += document.body.scrollTop;
	}
	if (_portShow > 0) {
		if (y < _portShow) hidePort();
	}
	if (_profileShow > 0) {
		if (y > _profileShow) {
			_dropMenu1.appear(false);
			_profileShow = 0;
		}
	}
}

function portToPage(n) {
	_moveSlide.toPage(n,500);
}

function portToNext() {
	_moveSlide.goNext(500);
}

function portToBack() {
	_moveSlide.goBack(500);
}

function seekTo(n) {
	_mainScroll.setPosAnima(0,n,1000);
}

