function center(object,margin,position){
	$("._container").height($(window).height());
	$("._container").width($(window).width());
	phh = ($(object).parent().height()/2)*-1;
	pww = ($(object).parent().width()/2)*-1;
	ww = ($(object).width()/2)*-1;
	hh = ($(object).height()/2)*-1;
	ll = "50%";
	tt = "50%";
	o = "0px";
	if((ww-margin)<pww){ww=(parseInt(pww)+parseInt(margin));};
	if((hh-margin)<phh){hh=(parseInt(phh)+parseInt(margin));};
	$(object).css({"position":"absolute"});
	if(position.match("tl")){ $(object).css({"left":o,"top":o,"margin-left":o,"margin-top":o});};
	if(position.match("tm")){ $(object).css({"left":ll,"top":o,"margin-left":ww,"margin-top":o});};
	if(position.match("tr")){ $(object).css({"right":o,"top":o,"margin-right":o,"margin-top":o});};
	if(position.match("cl")){ $(object).css({"left":o,"top":tt,"margin-left":o,"margin-top":hh});};
	if(position.match("cm")){ $(object).css({"left":ll,"top":tt,"margin-left":ww,"margin-top":hh});};
	if(position.match("cr")){ $(object).css({"right":o,"top":tt,"margin-right":o,"margin-top":hh});};
	if(position.match("bl")){ $(object).css({"left":o,"bottom":o,"margin-left":o,"margin-bottom":o});};
	if(position.match("bm")){ $(object).css({"left":ll,"bottom":o,"margin-left":ww,"margin-bottom":o});};
	if(position.match("br")){ $(object).css({"right":o,"bottom":o,"margin-right":o,"margin-right":o});};
	if(position.match("r")){ $("._om").css("overflow-x","hidden")};
	if(position.match("br")){ $("._om").css("overflow-y","hidden")};
}
