/* constants go here */
var Cmap={
	all:"Everyone",
	net:"My Network",
	me:"Just Me",
	nm:"Not Me",

	tmark:"Top Markers",
	tprod:"Most Products",
	tprom:"Top Promoters",
	tsell:"Top Sellers",
	trate:"Top Rated",
	ttrnd:"Top Trend",
	tview:"Most Views",

	ncom:"New Comments",
	pncom: "New Comments",
	nmark:"New Marks",
	"new":"New",
	rand:"Random",

	pr0:"$0 - $100",
	pr1:"$100 - $500",
	pr2:"$500 - $1500",
	pr3:"$1500+",
	pr4:"All Prices",

	"-1":"All Products",
	0:'All Products',
	1:'Fashion',
	2:'Entertainment',
	3:'Sports + Outdoors',
	4:'Beauty + Health',
	5:'Electronics',
	6:'Kids + Baby',
	7:'Auto + Tools',
	8:'Home + Garden',
	9:'Supplies',

	10:'Apparel',
	11:'Automotive',
	12:'Baby',
	13:'Beauty',
	14:'Bedding + Bath',
	15:'Books',
	16:'Camera + Photo',
	17:'Car Electronics + GPS',
	18:'Cell Phones + Service',
	19:'Dresses',
	20:'Exercise + Fitness',
	21:'Fan Apparel + Costume',
	22:'Furniture',
	23:'Grocery',
	24:'Health + Personal Care',
	25:'Home Appliances',
	26:'Audio + Theatre',
	27:'Jewelry',
	28:'Motorcycle + ATV',
	29:'Movies',
	30:'Music',
	31:'Musical Instruments',
	32:'Outdoor Equipment',
	33:'Patio Lawn + Garden',
	34:'Pet Supplies',
	35:'Power + Hand Tools',
	36:'Recreation',
	37:'Shoes',
	38:'Sports',
	39:'Toys + Games',
	40:'Costumes',
	41:'TV + Video',
	42:'Storage',
	43:'Educational',
	44:'Components',
	45:'Kitchen + Dining',
	46:'Office Supplies',
	47:'Posters + Artwork',
	48:'Computer + Printer',
	49:'Luggage',
	50:'Memorabilia',
	51:'Lighting + Electrical',
	52:'Floor + Carpets',
	53:'Decor',
	54:'Handbags + Briefcases',
	56:'Crafts + Art',
	57:'Cleaning',
	58:'Event + Party',
	59:'Medical',
	60:'Supplements',
	61:'Accessory',
	62:'Hardware + Accessories',
	63:'Eyewear',
	64:'Hardware',
	65:'Faucets + Plumbing',
	66:'Hats',
	67:'Scarves + Ties',
	68:'Swimwear',
	69:'Dress Shirts',
	70:'T-Shirts',
	71:'Jackets',
	72:'Sweaters',
	73:'Pants',
	74:'Wallets + Belts',
	75:'Shorts',
	76:'Undergarments',
	77:'Gloves',
	MAX: 77,
	999:'Ignore'
},
// sed {s/"^\s*"//g\;s/'[",]'//g\;s/"'"//g} | awk -F : '{ if(NF>1){print "\""$2"\":\""$1"\","}else{print""} }'
CmapRev={
	"Everyone":"all",
	"My Network":"net",
	"Just Me":"me",
	"Not Me":"nm",

	"Top Markers":"tmark",
	"Most Products":"tprod",
	"Top Promoters":"tprom",
	"Top Sellers":"tsell",
	"Top Rated":"trate",
	"Top Trend":"ttrnd",
	"Most Views":"tview",

	"New Comments":"ncom",
	" New Comments":"pncom",
	"New Marks":"nmark",
	"New":"new",
	"Random":"rand",

	"$0 - $100":"pr0",
	"$100 - $500":"pr1",
	"$500 - $1500":"pr2",
	"$1500+":"pr3",
	"All Prices":"pr4",

	"All Products":"-1",
	"All Products":"0",
	"Fashion":"1",
	"Entertainment":"2",
	"Sports + Outdoors":"3",
	"Beauty + Health":"4",
	"Electronics":"5",
	"Kids + Baby":"6",
	"Auto + Tools":"7",
	"Home + Garden":"8",
	"Supplies":"9",

	"Apparel":"10",
	"Automotive":"11",
	"Baby":"12",
	"Beauty":"13",
	"Bedding + Bath":"14",
	"Books":"15",
	"Camera + Photo":"16",
	"Car Electronics + GPS":"17",
	"Cell Phones + Service":"18",
	"Dresses":"19",
	"Exercise + Fitness":"20",
	"Fan Apparel + Costume":"21",
	"Furniture":"22",
	"Grocery":"23",
	"Health + Personal Care":"24",
	"Home Appliances":"25",
	"Audio + Theatre":"26",
	"Jewelry":"27",
	"Motorcycle + ATV":"28",
	"Movies":"29",
	"Music":"30",
	"Musical Instruments":"31",
	"Outdoor Equipment":"32",
	"Patio Lawn + Garden":"33",
	"Pet Supplies":"34",
	"Power + Hand Tools":"35",
	"Recreation":"36",
	"Shoes":"37",
	"Sports":"38",
	"Toys + Games":"39",
	"Costumes":"40",
	"TV + Video":"41",
	"Storage":"42",
	"Educational":"43",
	"Components":"44",
	"Kitchen + Dining":"45",
	"Office Supplies":"46",
	"Posters + Artwork":"47",
	"Computer + Printer":"48",
	"Luggage":"49",
	"Memorabilia":"50",
	"Lighting + Electrical":"51",
	"Floor + Carpets":"52",
	"Decor":"53",
	"Handbags + Briefcases":"54",
	"Crafts + Art":"56",
	"Cleaning":"57",
	"Event + Party":"58",
	"Medical":"59",
	"Supplements":"60",
	"Accessory":"61",
	"Hardware + Accessories":"62",
	"Eyewear":"63",
	"Hardware":"64",
	"Faucets + Plumbing":"65",
	"Hats":"66",
	"Scarves + Ties":"67",
	"Swimwear":"68",
	"Dress Shirts":"69",
	"T-Shirts":"70",
	"Jackets":"71",
	"Sweaters":"72",
	"Pants":"73",
	"Wallets + Belts":"74",
	"Shorts":"75",
	"Undergarments":"76",
	"Gloves":"77",
	"Ignore":"999"
},
// mapped to g_common.php ($Csub)
// Run CFUNC.sort to sort
Csub = {
	2:[15, 21, 29, 30, 31],
	3:[20, 50, 36, 38],
	4:[13, 23, 24, 60],
	9:[57, 56, 58, 59, 46],
	7:[11, 62, 28, 32, 35],
	6:[10, 12, 40, 43, 39],
	1:[69, 19, 63, 77, 66, 71, 27, 49, 73, 54, 67, 37, 75, 72, 68, 70, 76, 74],
	5:[61, 26, 16, 17, 18, 44, 48, 41],
	8:[14, 53, 65, 52, 22, 64, 25, 45, 51, 33, 34, 47, 42]
},
Cc={
	puser: ["all", "net", "me" ],
	pcat:  [0, 1, 2, 3, 4, 5, 7, 8, 9, 6],
	psort: [/*"ttrnd",*/ "new"],
	price: ["pr0", "pr1", "pr2", "pr3", "pr4"],
	uuser: ["all", "net", "me" ],
	usort: ["ttrnd", "pncom" ],
	muser: ["all", "net", "me", "nm" ],
	msort: [/*"ttrnd", "tview",*/ "new"/*, "ncom", "nmark"*/]
},
Cel = {	
	// ttl: title for status (in GPager)
	// lvl: order of display
	// def: default value
	// t: title elements
	// el: element list
	// v: current value (declared in filterTrack)
	// q: current numeric value
	// -cjm 2009.09.14
	puser:{t:[],l:[], ttl: 'at', lvl: 2, def:"all"},
	pcat:{t:[],l:[], el:[], ttl: 'looking in', lvl: 1, def:0 },
	psort:{t:[],l:[], ttl: 'order by', lvl:3, def:"new" },
	price:{t:[],l:[], ttl: 'between', lvl:3, def:"pr4" },
	uuser:{t:[],l:[], ttl: 'fixme', lvl:3, def:"fixme" },
	usort:{t:[],l:[], ttl: 'fixme', lvl:3, def:"fixme" },
	muser:{t:[],l:[], ttl: 'in network', lvl:3, def:"all" },
	msort:{t:[],l:[], ttl: 'sorting by', lvl:2, def:"new" }
},
	// json_encode3 should have this translation table also
	CY='Youtube',
	// null
	CN='Youtube',
	CH='Hulu',
	CB='Break',
C = {
	INIT: false,
	ISINDEX: false,
	EDITMODE: false,
	NOHASH: false,
	OFFSET: 180,
	HEIGHT: 180,
	FIRE: false,
	// popup
	YESNO: 1,
	OK: 2,
	WARN: 3,
	INPUT: 4,
	IMAGE: 5,
	FADE: 0,
	BASE: '',

	msgList: ['get started here', 'how iizuu works'],
	oHash: {},
	oHash$CTR: 0,
	
	days: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
	months: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],

	// mail
	CONNECTION: 1,
	NOTICE: 4,

	// temp constant
	PROD: 'iizuu.com', 

	adv: "Advanced",
	login: "<em>Please <a class=ov onclick=Gp.od('l.php&t=0')>sign in</a> to use this feature</em>",
	search: "Type the name of the recipient(s) above",
	dl: "Download Free Plugin",
	more: "show more",
	less: "show fewer",
	month: "month",
	year: "year",
	week: "week",
	day: "day",
	hour: "hour",
	minute: "minute",
	discard: "discard",
	popup:{
		cfrm: ['Cancel Changes', 'Are you sure you want to close this window?'],
		yes: 'Yes',
		no: 'No',
		ok: 'OK',
		cancel: 'Cancel'
	},
	prof:{
		twitEmpty: ["It's empty!", "Type something in the box above the 'share link' to share it on your page."],
		catDelNo: ['Not done', 'List not deleted'],
		manage: 'Manage',
		managing: 'Managing',
		finished: 'Finished',
		remove: 'Remove',
		listNew: ['New List', 'Name the new list'],
		connadd: ['Connection Added', ' has been added to your connection list.']
	},
	game:{
		topx: 10,
		ptypes: {
			//"GAME_PTS_PROFILENEW": 1,
			//"GAME_PTS_PRCHGT20": 2,
			//"GAME_PTS_PRCHGT15": 3,
			//"GAME_PTS_PRCHGT10": 4,
			//"GAME_PTS_PRCHGT05": 5,
			"GAME_PTS_CONNS": "GAME_PTS_CONNS", //6,
			"GAME_PTS_BUYCLKS": "GAME_PTS_BUYCLKS", //7,
			"GAME_PTS_LSTS": "GAME_PTS_LSTS", //8,
			"GAME_PTS_ASSOC": "GAME_PTS_ASSOC", //9, // associate products with videos
			"GAME_PTS_PHOTOS": "GAME_PTS_PHOTOS",  //10,
			//"GAME_PTS_TWTRPUSH": 11,
			//"GAME_PTS_FBPUSH": 12,
			//"GAME_PTS_POSFEEDBK": 13,
			"GAME_PTS_TOP10PROD": "GAME_PTS_TOP10PROD", //14,
			"GAME_PTS_TOP10VID": "GAME_PTS_TOP10VID", //15,
			//"GAME_PTS_POSCAT": 16,
			"GAME_PTS_PROFILEVW": "GAME_PTS_PROFILEVW", //17,
			"GAME_PTS_CMNTSNEW": "GAME_PTS_CMNTSNEW", //18,
			"GAME_PTS_MNGITM": "GAME_PTS_MNGITM", //19,
			"GAME_PTS_CLLECTP": "GAME_PTS_CLLECTP", //20,
			"GAME_PTS_CLLECTV": "GAME_PTS_CLLECTV" //21
			//"GAME_PTS_MODFEEDBK": 21
		}
	},
	page:{
		termDel: 'Remove this term',
		resPost: 'results found',
		search: 'search on iizuu'
	},
	mail:{
		YESNO: 1,
		OK: 2,
		// UID of automated IIZUU user
		IIZUU: 7,
		IIZUU$ANNOUNCE: 8,
		friend: {
			"approve" : "Approve",
			"delete" : "Deny"/*,
			"respond" : "Respond",
			"block" : "Block",
			"report" : "Report"*/
		},
		toggle:{
			"All" : "all",
			"Messages" : "msg",
			"Connection Requests" : "friend",
			"Notices" : "announce"
		},
		1: 'Connection Request',
		4: 'Notice',
		unselect: 'Unselect All',
		send: 'Send Message',
		said: 'said',
		sent: {
			ttl: "Message Sent",
			body: "Message sent successfully!"
		},
		nosub: "(no subject)",
		con: {	
			ttl: 'Connection Request',
			req: 'This is a Connection Request from ',
			good: {
				ttl: "Connection Successful",
				body: "has now been added to your connections list"
			},
			bad: {
				ttl: "Connection Error",
				body: "was unable to be added to your connections list",
				post: "(please try again later)"
			}
		},

		hdr: {
			sender: 'Sender',
			sentTo: 'Sent To',
			'date': 'Date',
			subject: 'Subject'
		},

		del: {
			ttl: "Delete Message",
			body: "Are you sure you want to send this message to the trash?"
		},
		noselect: ['Nothing Selected', 'Please select some messages first.'],
		empty: 'This folder is currently empty.',
		part: ['Show Participants', 'Participants Shown'],
	},
	MESSAGE: 0,
	FRIEND: 1,
	rm:{
		ttl: "Remove Confirmation",
		body: "Are you sure you want to remove this"
	},
	send: "send",
	views: ["wall", "gallery"/*, "list"*/],
	b:{
		thanks: "Thanks for your participation",
		add: "Add another comment",
		view: "View feedback",
		ttl: "Feedback"
	},
	o:['item', 'user', 'media'],
	o$s: {
		product: "item",
		media: "media",
		people: "member"
	},
	ot:{
		p: 0, 0: 'p',
		u: 1, 1: 'u',
		m: 2, 2: 'm'
	},
	c:{
		priv: "privacy policy",
		term: "terms of use",
		about: "about us"
	},
	img:{
		seldef: 'Select a Default Image',
		def: 'Use as Default',
		noselect: ['Nothing Selected', 'Please select some images by clicking on them.'],
		nodef: ['Nothing Selected', 'Please select a default image by clicking on it.']
	},
	cm:{
		add: 'add comment',
		load: ["load all","loading","loaded"],
		rm: ["Remove Comment?","Are you sure you want to remove this comment?"],
		all: "load all",
		thread: "get thread",
		reply: "reply",
		remove: "remove",
		hide: "hide",
		del: "[deleted]",
		types: ['Item:', '', 'Video:']
	},
	p: {
		feat: 'featured items',
		all: 'view all'
	},
	err: {
		vote:['Voting Error', 'There was an error in voting'],
	 	empty:['You have not typed anything', 'Type your message in the box above the add comment button and then click the button again'],
		post:['Unable to Post', 'There was an error in processing this request'],
		def:['Uknown Error', 'An unknown error occured']
	},
	help: "Learn how iizuu works by clicking the help link above to view our videos"

},
Cs = {
	product: "This user is currently not featuring any items.",
	media: "This user has not yet collected any videos.",
	marks: "This user has not made any marks.",
	people: "This user has not made any connections."
},
// helper text, Gv.* variable to check, limit when it should go away
// pc = product/feature count
// rc = (relation) mark count
// fc = friend count
// mc = media count
Cse = {
	sale: ['When you sell your items through iizuu, we market your items through videos across the internet. We expand your reach on the web. <a href=javascript:Gp.od("sell.php")>start now</a>', 'pc', 10],
	product: ['Browse <a href=/p_all.php>products for sale</a>, and collect your favorites. It\'s as easy as clicking the "collect item" button.  If you are a top fan of any item in your collection when it sells, you get a financial reward! <a onclick=Gp.oh("hindex.php#v_promote")>Learn more by watching our help video</a>.', 'pc', 14],
	media: ['Collect your favorite videos by becoming a fan.  <a href=m_all.php>Browse videos now</a>.', 'mc', 10],
	marks: ['Connect <a href=m_all.php>videos</a> to <a href=p_all.php>related items</a> for a financial reward when that item sells. <a onclick=Gp.oh("hindex.php#v_mark")>Learn more by watching our help video</a>.', 'rc', 10],
	people: ['iizuu helps you keep your friends, family, business and public connections categorized. Our technology allows you to control and organize even the largest network. <a href=/r_land.php>Invite your friends to join iizuu now.</a>', 'fc', 6],
	profile: ["Find your <a href=p_all.php>favorite products</a> on our site and add them to your collection.  When these items are purchased, you get a financial reward.  <a onclick=Gp.oh('hindex.php#v_promote')>Learn more by watching our help video</a>.", 'pc', 14]
};

