function getCenter(pwidth,pheight){
	wwidth=screen.width;
	wheigth=screen.height;
	lpos= (wwidth - pwidth)/2;
	tpos= (wheigth - pheight)/2;
	return lpos, tpos;
}

function getWindowHeight(){
	var windowHeight = 0;
	if(typeof(window.innerHeight) == 'number'){
		windowHeight = window.innerHeight;
	}else{
		if(document.documentElement && document.documentElement.clientHeight){
			windowHeight = document.documentElement.clientHeight;
		}else{
			if(document.body && document.body.clientHeight){
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function setFooter(){
	if (document.getElementById){
		var windowHeight = getWindowHeight();
		if (windowHeight>0){
			var contentHeight = document.getElementById('wrapper').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			if (windowHeight - (contentHeight + footerHeight)>= 0) {
				footerElement.style.marginTop = (windowHeight - (contentHeight+footerHeight)) + 'px';
			}else{
				footerElement.style.marginTop = '0';
			}
		}
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function form1(){window.open("http://www.gebe.com.tr/sikayetform.aspx", "pencere", "scrollbars=yes,height=605,width=716,status=no,toolbar=no,menubar=no,location=no,resizable=yes");}
function form2(){window.open("http://www.gebe.com.tr/degerlendirmeform.aspx", "pencere", "scrollbars=yes,height=605,width=716,status=no,toolbar=no,menubar=no,location=no,resizable=yes");}
function teaser(){window.showModalDialog("video.html",window,"dialogWidth:560px;dialogHeight:490px");}
//function teaser(){window.open("popup.html", "pencere", "scrollbars=yes,width=560,height=475,status=no,toolbar=no,menubar=no,location=no,resizable=yes");}



window.onload = function() {
    var links = document.getElementsByTagName('a');
    for (var i=0;i < links.length;i++) {
        if (links[i].className == 'yenipencere') {
            links[i].onclick = function() {
                window.open(this.href);
                return false;
            };
        }
    }
    setFooter();
};

window.onresize = function () {
    setFooter();
}

function varGonder(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar",myVar);
}
function varGonder2(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar2",myVar);
}
function varGonder3(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar3",myVar);
}
function varGonder4(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar4",myVar);
}
function varGonder5(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar5",myVar);
}
function varGonder6(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar6",myVar);
}
function varGonder7(){
var myVar="true"
document.geBe.SetVariable("/:htmlVar7",myVar);
}