/*

	NOTES
		SEEALSO: 
				floatScroll.js
				ProductPage.js
				
*/
var yFromTop = 110;
var xFromRight = 30;
var objectFloat = 'PDFCoverDiv';

function DisplayImage(ImageCover,PDFLink) {
	document['PDFCover'].src = 'images/' + ImageCover;
	document.forms['GetPDF'].PDFLink.value = PDFLink;
	document.getElementById("PDFCoverDiv").style.borderWidth = 1;
	var newPos = '';
	if(document.forms['GetPDF'].MouseY){
		newPos = (document.forms['GetPDF'].MouseY.value)-310;
		newPos = newPos + 'px';
		var winEl = document.getElementById("PDFCoverDiv");
		winEl.style.top = newPos;
	}
}

var IE = false;
function runLitCover(){
	if (document.getElementById('getPDFForm')){
		if (navigator.appName == "Microsoft Internet Explorer"){IE = true}
		if (!IE){document.captureEvents(Event.MOUSEMOVE)}
		document.onmousemove = getMouseXY;
	}
}

function getMouseXY(m){
	if (IE)	{
		var tmpX = event.clientX;			
		var tmpY = event.clientY;
	}else{
		var tmpX = m.pageX;
		var tmpY = m.pageY;
 	}  
	if (!document.body.scrollTop) {
		 var iL = document.documentElement.scrollLeft;	
		 var iV = document.documentElement.scrollTop;
	}else{
		var iL = document.body.scrollLeft;	
		var iV = document.body.scrollTop;	
	}
	if(document.forms['GetPDF'].MouseY && document.forms['GetPDF'].MouseX){
 		document.forms['GetPDF'].MouseX.value = tmpX + iL;
		if (!IE){
			document.forms['GetPDF'].MouseY.value = tmpY;
		}else{
			document.forms['GetPDF'].MouseY.value = tmpY + iV;
		}
		//document.forms['GetPDF'].MouseY.value = tmpY;
	}
 }

function HidePdfImage(){
	document['PDFCover'].src = 'images/trans.gif';
	document.getElementById("PDFCoverDiv").style.borderWidth = '0';
}
function GetThePDF() {
	var PdfLink = document.forms['GetPDF'].PDFLink.value;
	window.open(PdfLink);
}
