// JavaScript Document

var popUpPath = "popUp/ct_p_";
var widthPopUp = 600;
var heightPopUp = 404;

function openPopUp(objectImg){
	name = objectImg.src
	//alert(name.substring(0,name.lastIndexOf(".")) + "Full_size.jpg")
	imgString = name.substring(0,name.lastIndexOf(".")) + "Full_size.html";
	//alert(imgString)
	MM_openBrWindow(imgString,null,widthPopUp,heightPopUp)
}
function openPopUpPortrait(objectImg){
	name = objectImg.src
	//alert(name.substring(0,name.lastIndexOf(".")) + "Full_size.jpg")
	imgString = name.substring(0,name.lastIndexOf(".")) + "Full_size.html";
	//alert(imgString)
	MM_openBrWindow(imgString,null,400,604)
}
function MM_openBrWindow(popUpPath,winName,width,height) { //v2.0
	var urlPath1 = popUpPath

	if(returnBrowser() == "IE"){
		width += 17;
	}

	var features = "width="+width+",height="+height;
	features = features + ",toolbar=no,menubar=no,scrollbars=yes" ;
	//alert(features)
	window.open(popUpPath,"_blank",features);
	//alert(newWiondow.clientWidth)
	//window.open("Sample.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
	//window.open(urlPath1,winName,features);
}

function returnBrowser(){
	if(navigator.userAgent.indexOf("Firefox") != -1){
		//alert("returning MF");
		return ("Firefox");
	}else if(navigator.userAgent.indexOf("IE") != -1){
		//alert("returning IE");
		return ("IE");
	}
}
