

function getTopLeft(){
 var viewportwidth;
 var viewportheight;
 var topleft;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }

//topleft= (viewportwidth-752)/2 +270;
topleft= 285;
topleft2= (viewportwidth-752)/2 +430;
topleft3= (viewportwidth-752)/2 +10;
document.getElementById('text-content').style.marginLeft = topleft+"px";
//document.getElementById('pdf-content').style.marginLeft = topleft2+"px";
//document.getElementById('logos-content').style.marginLeft = topleft3+"px";
//alert("document.getElementById('text-content').style.marginLeft ="+ topleft+"px;");
}

function showtextcontent(){
setTimeout("document.getElementById('text-content').style.display = 'block'",1500);
}
function showpdfcontent(){
setTimeout("document.getElementById('pdf-content').style.display = 'block'",1500);
}
function showlogoscontent(){
setTimeout("document.getElementById('logos-content').style.display = 'block'",1500);
}
function shownewscontent(){
setTimeout("document.getElementById('news-content').style.display = 'block'",1500);
}
function minsize(){
 var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }

 if (viewportwidth<500){
	window.resizeTo(1000,700);

 }
}
