// picViewer Javascript File
// Author: Sharon Lev
//
// This function opens high resolution images from the highres folder
// The function recieves the ID number of the hi res image, and the type of image it is:
// 0 = landscape
// 1 = portrait slim
// 2 = portrait wide
function openHighResPic(picID, picType){
	var picHTMLFile = "images/HighRes/high_res_" + picID + ".html";
	return private_OpenImagePage(picHTMLFile, picType);
}

function openCelebrityPic(picID, picType){
	var picHTMLFile = "images/celebrities/celebrity_" + picID + ".html";
	return private_OpenImagePage(picHTMLFile, picType);
}

function openDoveNoteFigure(figID){
	var picHTMLFile = "images/dove_notes/dove_notes_" + figID + ".html";
	return private_OpenImagePage(picHTMLFile,3);
}

function private_OpenImagePage(pageName, pageType){
	switch (pageType){
		case 0://Landscape
			picView=window.open(pageName,'picView','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=620,height=520,left=100,top=100'); 
			break;
		case 1://Portrait Slim
			picView=window.open(pageName,'picView','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=430,height=710,left=100,top=100'); 				
			break;
		case 2://Portrait Wide
			picView=window.open(pageName,'picView','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=710,left=100,top=100');
			break;
		case 3://Dove Notes Figures
			picView=window.open(pageName,'picView','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=520,height=470,left=100,top=100'); 				
			break;
		default://Default
			break;
	}

	return false;

}

function openTuxedoMeasurements(){
	HTMLView = window.open('prod_tuxedo_measurements.html','HTMLViewer','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width= 550 ,height= 750 ,left=100,top=100'); 
	return false;
}