// JavaScript Document
var scrolling;
var fshScrolledBy;
////////////////////////////////////////////////////////////////////////////////////////////
function newWindow(location){
	map = "images/maps/" + location;	
	window.open(map, "newWindow", "HEIGHT=275, WIDTH=375");
}
////////////////////////////////////////////////////////////////////////////////////////////
function onUpClick(){
	scrolling = setInterval("window.mainFrame.scrollBy(0, -10);", 100);
}
////////////////////////////////////////////////////////////////////////////////////////////
function onDownClick(){	
	scrolling = setInterval("window.mainFrame.scrollBy(0, 10);", 100);	
	//window.mainFrame.scrollBy(0, 10);
}
////////////////////////////////////////////////////////////////////////////////////////////
function onLeftClick(){	
	scrolling = setInterval("window.shopFrame.scrollBy(-10, 0);", 100);
}
////////////////////////////////////////////////////////////////////////////////////////////
function onRightClick(){
	scrolling = setInterval("window.shopFrame.scrollBy(10, 0);", 100);	
	//window.mainFrame.scrollBy(0, 10);
}
////////////////////////////////////////////////////////////////////////////////////////////
function onFshLeftClick(){
	scrolling = setInterval("fshScrollBy(-10);", 100);
}
////////////////////////////////////////////////////////////////////////////////////////////
function onFshRightClick(){
	scrolling = setInterval("fshScrollBy(10);", 100);
}
////////////////////////////////////////////////////////////////////////////////////////////
function fshScrollBy(amount){	
	window.fshDetails.scrollBy(amount, 0);	
	/*if(amount < 0){
		if(document.all.fshScrolledBy.value >= 10){
			var fshScrolledBy = new Number(document.all.fshScrolledBy.value);
			fshScrolledBy += amount;
			document.all.fshScrolledBy.value = fshScrolledBy;
		}
	}else{
		var fshScrolledBy = new Number(document.all.fshScrolledBy.value);
		fshScrolledBy += amount;
		document.all.fshScrolledBy.value = fshScrolledBy;
	}*/
}
////////////////////////////////////////////////////////////////////////////////////////////
function scrollFsh(){
	alert(parent.document.all.fshScrolledBy.value);
	parent.fshDetails.scrollBy(90, 0);
}
////////////////////////////////////////////////////////////////////////////////////////////
function stopScroll(){
	clearInterval(scrolling);
}
////////////////////////////////////////////////////////////////////////////////////////////
function mainFrameSrc(src){
	var MainFrame;
	if(document.all){
		MainFrame = document.all.mainFrame;
	}else{
		MainFrame = document.mainFrame;
	}
	MainFrame.src = src;
	MainFrame.height = "100%";
}
////////////////////////////////////////////////////////////////////////////////////////////
function headerSrc(src){
	if(document.all){
		document.all.headerFrame.src = src;
	}else{
		document.headerFrame.src = src;
	}
}
////////////////////////////////////////////////////////////////////////////////////////////
function changeSrc(srcMain, srcLeft){
	if(srcMain != ""){
		if(document.all){
			document.all.mainFrame.src = srcMain;
		}else{
			document.mainFrame.src = srcMain;
		}
	}
	if(srcLeft != ""){
		if(document.all){
			document.all.leftFrame.src = srcLeft;
		}else{
			document.leftFrame.src = srcLeft;
		}
	}
}
////////////////////////////////////////////////////////////////////////////////////////////
function slideBy(height){
	if(document.all){	
		document.all.leftFrame.scrollBy(-height, 0);
		for(i = 1; i <= height; i++){
			document.all.leftFrame.scrollBy(1, 0);
		}
	}else{
		document.leftFrame.src = srcLeft;
	}
}
////////////////////////////////////////////////////////////////////////////////////////////
function enableBrowse(on){
	if(on){
		document.all.picture.disabled = false;
	}else{
		document.all.picture.disabled = true;	
	}
}
////////////////////////////////////////////////////////////////////////////////////////////
function Body_MouseWheel(pEvtObj){
	window.scrollBy(0, -pEvtObj.wheelDelta / 10);
}