function sidefileMod(element){
	
var height =  findLivePageHeight();	
var width =  findLivePageWidth();		
var object4 = document.getElementById(element);
 //896 is width of rest of window
if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1){
var remain2 = width - 895;
object4.style.width = remain2 +'px';
}//end if ie browser
else{
var remain2 = width - 912;
object4.style.width = remain2 +'px';
}//end else
if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1){
object4.style.height = 880 +'px';
}//end if ie browser
else{
object4.style.height = 880 +'px';
}//end else


}//end function


function findLivePageHeight(){

if(window.innerHeight)
return window.innerHeight;

if(document.documentElement.clientHeight) 

return document.documentElement.clientHeight;

if(document.body.clientHeight)
return document.body.clientHeight;

return null();

}




function findLivePageWidth(){

if(window.innerWidth)
return window.innerWidth;

if(document.documentElement.clientWidth) 

return document.documentElement.clientWidth;

if(document.body.clientWidth)
return document.body.clientWidth;

return null();

}

function secondSection(){

pageHeight = findLivePageHeight();
pageWidth = findLivePageWidth();

var remain2 = pageWidth - 225;

 if (remain2 > 0){
var object4 = document.getElementById('third-section');
object4.style.marginLeft=remain2 +'px';

}

if(pageHeight < 575){
var object = document.getElementById('second-ad');
object.style.display = 'block';

}

if(pageHeight < 670){
  if(pageHeight > 575){
    var object2 = document.getElementById('second-section');
    object2.style.display = 'block';
    var object = document.getElementById('second-ad');
    object.style.display = 'block';
   
   }
}



if(pageHeight > 670 ){
  if(pageHeight < 744){
   var object2 = document.getElementById('second-section');
   object2.style.display = 'block';
   var object3 = document.getElementById('third-ad');
   object3.style.display = 'block';
   pageWidth = findLivePageWidth();



  }

}

if(pageHeight > 744){
var object2 = document.getElementById('second-section');
object2.style.display = 'block';


var object3 = document.getElementById('third-ad');
object3.style.display = 'block';
 
 
   var remain = ((pageWidth - 200)/2);
  

object3.style.marginLeft=remain +'px';
object3.style.marginTop=90 +'px';




}



}





function openwindow()
{
window.open("Tourguide/Thealhondiga.php","_blank");
}


