jiyiri.register_namespace('jiyiri.page.common');

(
function()
{
	var PromoShop_Pic_Standard = {
		ProductView_Zoom : 1,
		ProductView_View : 2,
		ProductView_List : 3,
		ProductView_Strategy : 4,
		ProductHistory_View : 5,
		ProductList_View	: 6,
		ProductBigImg_List  : 7,
		ProductBigImg_View	: 8,
		ProductSetDispatch_List	: 9
	};
	
	var PromoShop_Pic_Getter = {};
	
	PromoShop_Pic_Getter.getPic = function( original_url , standard ){
		
		$original_url_name 	= original_url.split( "." )[0];
		$original_url_pix 	= original_url.split( "." )[1];
		
		switch( standard ){
			case PromoShop_Pic_Standard.ProductView_Zoom:
				return $original_url_name + "_644x484" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductView_View:
				return $original_url_name + "_322x242" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductView_List:
				return $original_url_name + "_48x48" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductHistory_View:
				return $original_url_name + "_60x60" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductList_View:
				return $original_url_name + "_150x205" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductView_Strategy:
				return $original_url_name + "_60x60" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductBigImg_List:
				return $original_url_name + "_130x98" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductBigImg_View:
				return $original_url_name + "_644x484" + "." + $original_url_pix;
				break;
			case PromoShop_Pic_Standard.ProductSetDispatch_List:
				return $original_url_name + "_120x120" + "." + $original_url_pix;
				break;
				
		}
	}
	
	jiyiri.page.common.PromoShop_Pic_Getter   = PromoShop_Pic_Getter;
	jiyiri.page.common.PromoShop_Pic_Standard = PromoShop_Pic_Standard;
}
)
();
