	function getStyles (imageWidth, imageHeight, printAspectRatio){
		//var top, right, bottom, left,aspectRatio,width,height, originalAR; 
		//calculate the original Aspect Ratio for use later    

		//imageWidth = photoManager.getImageWidth();
		//imageHeight = photoManager.getImageHeight();
        imageAspectRatio =  imageWidth / imageHeight;
		
        var printThumbWidth;	
		var printThumbHeight;
        var top;
		var right;
		var bottom;
		var left;

		var leftCrop = .5;
		var topCrop = .5;
		var rightCrop =.5;
		var bottomCrop = .5;

		//calculated output height and width
		if (imageWidth < imageHeight) { // if portrait
			printThumbWidth = imageWidth;
			printThumbHeight = imageWidth / printAspectRatio;
		} else {
			printThumbHeight = imageHeight;
			printThumbWidth = imageHeight / printAspectRatio;
		}

		var widthCSS = imageWidth + "px";
		var widthStyle = new Array ('width', widthCSS);
		
		var heightCSS = imageHeight + "px";
		var heightStyle = new Array ('height', heightCSS);
		
        	top = (imageHeight - printThumbHeight) * topCrop;
        	left = (imageWidth - printThumbWidth) * leftCrop;
        	right = imageWidth - ((imageWidth - printThumbWidth) * rightCrop);
		bottom = imageHeight - ((imageHeight - printThumbHeight) * bottomCrop);

		var styles = "";

		styles += "clip:rect(" + top + "px " + right + "px " + bottom + "px " + left + "px); ";
		// reposition the object to the origin
		
		styles += "top:" + (0 - top) + "px; ";		
		styles += "left:" + (0 - left) + "px";
		//alert (styles);

		return styles;
		
	}