// Frank Ritter Photography General API(javascript)
// Author : EJFIIIWebDesign.com

//Variable Pre-Assignments
var isIE=false; var isNN=false; var isOP=false; isFF=false; 

//Browser Brand Determination
if (navigator.userAgent.indexOf("Opera")!=-1) isOP=true;
if ((navigator.appName.indexOf("Microsoft")!=-1) && (navigator.userAgent.indexOf("Opera")==-1)) isIE=true;
if (navigator.userAgent.indexOf("Firefox")!=-1) isFF=true;
if ((navigator.appName.indexOf("Netscape")!=-1) && (navigator.userAgent.indexOf("Firefox")==-1)) isNN=true;

//Screen Resolution Style Sheet Load 
	if (screen.availWidth < 801) {
		document.write("<link rel='stylesheet' href='frpStyle800x600.css' type='text/css' />");
		}
	else {
		document.write("<link rel='stylesheet' href='frpStyle.css' type='text/css' />");
		}
	if (isOP) document.getElementById("clipImage").style.left="130px";

// Set Default Window.Status Message
	function stat(){
		window.status=("Frank Ritter Photography");
		}

// Pop Up Window 
	function createpopUpWin(image) {
	popWin=window.open(image+".html",image, "width=680px,height=480px,toolbar=0,status=0,scrollbars='no',resizable=yes");
	if (screen.availWidth > 800) {
		if (isIE) popWin.moveTo(192,210);
		if (isFF) popWin.moveTo(200,200);
		if (isNN) popWin.moveTo(197,230);
		if (isOP) popWin.moveTo(200,125);
	}else{
		popWin.moveTo(50,40);
	}
	popWin.focus();
	}