function nav2() {

}
nav2.prototype.draw = function() {
	this.myDiv = document.createElement("div");
	this.myDiv.setAttribute("class","navArea2");
	this.myDiv.setAttribute("className","navArea2");
	this.addLogo();
	this.addArrows();
	return this.myDiv;
}
nav2.prototype.addLogo = function() {
	this.logoDiv = document.createElement("div");
	this.logoDiv.setAttribute("class","logoHolder2");
	this.logoDiv.setAttribute("className","logoHolder2");
	this.logoDiv.myParent = this;
	this.logoImage = document.createElement("img");
	this.logoImage.setAttribute("src","images/navigation2/chipwass.png");
	this.logoDiv.appendChild(this.logoImage);
	this.myDiv.appendChild(this.logoDiv);
	this.logoDiv.onmouseover = function(e) {
		this.myParent.logoImage.setAttribute("src","images/navigation2/chipwass_o.png");
	}
	this.logoDiv.onmouseout = function(e) {
		this.myParent.logoImage.setAttribute("src","images/navigation2/chipwass.png");
	}
	this.logoDiv.onclick = function(e) {
		top.location.href="http://www.chipwass.com/";	
	}
}
nav2.prototype.addArrows = function() {
	this.leftArrowDiv = document.createElement("div");
	this.leftArrowDiv.setAttribute("class","leftArrowHolder2");
	this.leftArrowDiv.setAttribute("className","leftArrowHolder2");
	this.leftArrowDiv.myParent = this;
	this.leftArrowImage = document.createElement("img");
	this.leftArrowImage.setAttribute("src","images/navigation2/left.gif");
	this.leftArrowDiv.appendChild(this.leftArrowImage);
	this.myDiv.appendChild(this.leftArrowDiv);
	this.leftArrowDiv.onmousedown = function(e) {
		this.myParent.myParent.hideDetails();
		this.myParent.startScroll(1);
	}

	this.leftArrowDiv.onmouseup = function(e) {
		this.myParent.stopScroll(1);
	}
	this.leftArrowDiv.onmouseover = function(e) {
		this.myParent.leftArrowImage.setAttribute("src","images/navigation2/left_o.gif");
		myPage.sound.playSound("mp3s/ARROWS.mp3");
	}
	this.leftArrowDiv.onmouseout = function(e) {
		this.myParent.leftArrowImage.setAttribute("src","images/navigation2/left.gif");
		myPage.sound.stopSound();
	}
	this.rightArrowDiv = document.createElement("div");
	this.rightArrowDiv.setAttribute("class","rightArrowHolder2");
	this.rightArrowDiv.setAttribute("className","rightArrowHolder2");
	this.rightArrowDiv.myParent = this;
	this.rightArrowImage = document.createElement("img");
	this.rightArrowImage.setAttribute("src","images/navigation2/right.gif");
	this.rightArrowDiv.appendChild(this.rightArrowImage);
	this.myDiv.appendChild(this.rightArrowDiv);
	this.rightArrowDiv.onmousedown = function(e) {
		this.myParent.myParent.hideDetails();
		this.myParent.startScroll(-1);
	}
	this.rightArrowDiv.onmouseup = function(e) {
		this.myParent.stopScroll(-1);
	}
	this.rightArrowDiv.onmouseover = function(e) {
		this.myParent.rightArrowImage.setAttribute("src","images/navigation2/right_o.gif");
		myPage.sound.playSound("mp3s/ARROWS.mp3");
	}
	this.rightArrowDiv.onmouseout = function(e) {
		this.myParent.rightArrowImage.setAttribute("src","images/navigation2/right.gif");
		myPage.sound.stopSound();
	}
}
nav2.prototype.startScroll = function(direction) {
	this.myParent.myScrollArea.startScroll(direction);
}
nav2.prototype.stopScroll = function(direction) {
	this.myParent.myScrollArea.stopScroll(direction);
}
