function vCard(obj,position){
this.control=obj;
this.position=position;
}
vCard.prototype.page=function(){
if(document.body) return document.body;
var elements=document.getElementsByTagName("BODY");
if(elements.length>0) return elements[0];
else return null;
}
vCard.prototype.initialize=function(){
this.control.style.position="absolute";
this.control.style.zIndex=100;
}

vCard.prototype.setPosition=function(){
var dHeight,dWidth;
if(window.innerWidth){
	dHeight=window.innerHeight;
	dWidth=window.innerWidth;
}
else{
	dHeight=document.body.clientHeight;
	dWidth=document.body.clientWidth;
}
var cHeight=this.control.offsetHeight;
var cWidth=this.control.offsetWidth;
var cLeft=0;
var cTop=0;
if(this.position=="bottomRight"){
cLeft=dWidth-cWidth;
cTop=dHeight-cHeight;
	}

if(this.position=="bottomLeft"){
cTop=dHeight-cHeight;
	}
if(this.position=="TopRight"){
cLeft=dWidth-cWidth;
	}
	var objBody=this.page();
this.control.style.top=cTop + objBody.scrollTop;
this.control.style.left=cLeft;
}

