// Home Gallery Functions


function home1()
{
document.getElementById("mainimg").src ="images/gallery/home/home1.jpg";
}

function home2()
{
document.getElementById("mainimg").src ="images/gallery/home/home2.jpg";
}

function home3()
{
document.getElementById("mainimg").src ="images/gallery/home/home3.jpg";
}



function home4()
{
document.getElementById("mainimg").src ="images/gallery/home/home4.jpg";
}


function home5()
{
document.getElementById("mainimg").src ="images/gallery/home/home5.jpg";
}



// Navigation Scroll Script

/***********************************************
* Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
var bustcacheparameter=""

function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
if (bustcachevar) //if bust caching of external page
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}





// 3D On Mouse Over Functions


function bathover()
{
document.getElementById("bath1a").style.visibility ="visible";
document.getElementById("home3").src ="images/home-popup-nav-bathroom.png";
document.getElementById("mainimg").src ="images/3d-bathroom-onclick.jpg";
document.getElementById("tagline2").style.background ="#DD581B";
document.getElementById("tagline2").style.width ="150px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Bathroom Pods";
document.getElementById("tagline3").style.background ="#DD581B";
document.getElementById("tagline3").style.width ="235px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "all part of the experience";
var curtextval = document.getElementById("bath1b");
    curtextval.innerHTML = "Bathroom Pod&#44;&nbsp;all part of the service";
document.getElementById("bath1b").style.fontWeight ="normal";
}

function bathout()
{
document.getElementById("bath1a").style.visibility ="hidden";
document.getElementById("home3").src ="images/home-popup-nav-bathroom-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("bath1b");
    curtextval.innerHTML = "Bathroom Solutions";
document.getElementById("bath1b").style.fontWeight ="bold";
}



function commover()
{
document.getElementById("comm1a").style.visibility ="visible";
document.getElementById("home7").src ="images/home-popup-nav-comm.png";
document.getElementById("mainimg").src ="images/3d-commercial-onclick.jpg";
document.getElementById("tagline2").style.background ="#5B57A6";
document.getElementById("tagline2").style.width ="155px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "The experience";
document.getElementById("tagline3").style.background ="#5B57A6";
document.getElementById("tagline3").style.width ="100px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "to deliver";
var curtextval = document.getElementById("comm1b");
    curtextval.innerHTML = "Commercial buildings with pioneering designs";
document.getElementById("comm1b").style.fontWeight ="normal";
}

function commout()
{
document.getElementById("comm1a").style.visibility ="hidden";
document.getElementById("home7").src ="images/home-popup-nav-comm-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("comm1b");
    curtextval.innerHTML = "Commercial Solutions";
document.getElementById("comm1b").style.fontWeight ="bold";
}



function custover()
{
document.getElementById("home6").src ="images/home-popup-nav-custod.png";
document.getElementById("cust1a").style.visibility ="visible";
document.getElementById("mainimg").src ="images/3d-custodial-onclick.jpg";
document.getElementById("tagline2").style.background ="#9D9FA2";
document.getElementById("tagline2").style.width ="175px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Providing modern";
document.getElementById("tagline3").style.background ="#9D9FA2";
document.getElementById("tagline3").style.width ="185px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "day secure facilities";
var curtextval = document.getElementById("cust1b");
    curtextval.innerHTML = "Ideal solutions for custodial needs";
document.getElementById("cust1b").style.fontWeight ="normal";
}


function custout()
{
document.getElementById("home6").src ="images/home-popup-nav-custod-no.png";
document.getElementById("cust1a").style.visibility ="hidden";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("cust1b");
    curtextval.innerHTML = "Custodial Solutions";
document.getElementById("cust1b").style.fontWeight ="bold";
}



function devover()
{
document.getElementById("dev1a").style.visibility ="visible";
document.getElementById("home5").src ="images/home-popup-nav-dev.png";
document.getElementById("mainimg").src ="images/3d-developer-onclick.jpg";
document.getElementById("tagline2").style.background ="#BD1A8D";
document.getElementById("tagline2").style.width ="135px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Where quality";
document.getElementById("tagline3").style.background ="#BD1A8D";
document.getElementById("tagline3").style.width ="175px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "meets productivity";
var curtextval = document.getElementById("dev1b");
    curtextval.innerHTML = "Affordable homes and accommodation";
document.getElementById("dev1b").style.fontWeight ="normal";
}

function devout()
{
document.getElementById("dev1a").style.visibility ="hidden";
document.getElementById("home5").src ="images/home-popup-nav-dev-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("dev1b");
    curtextval.innerHTML = "Developer Solutions";
document.getElementById("dev1b").style.fontWeight ="bold";
}



function eduover()
{
document.getElementById("edu1a").style.visibility ="visible";
document.getElementById("mainimg").src ="images/3d-education-onclick.jpg";
document.getElementById("home1").src ="images/home-popup-nav-educa.png";
document.getElementById("tagline2").style.background ="#F26522";
document.getElementById("tagline2").style.width ="185px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "We make it as easy";
document.getElementById("tagline3").style.background ="#F26522";
document.getElementById("tagline3").style.width ="75px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "as ABC";
var curtextval = document.getElementById("edu1b");
    curtextval.innerHTML = "High quality learning spaces";
document.getElementById("edu1b").style.fontWeight ="normal";
}


function eduout()
{
document.getElementById("edu1a").style.visibility ="hidden";
document.getElementById("home1").src ="images/home-popup-nav-educa-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("edu1b");
    curtextval.innerHTML = "Education Solutions";
document.getElementById("edu1b").style.fontWeight ="bold";
}




function environover()
{
document.getElementById("environ1a").style.visibility ="visible";
document.getElementById("home9").src ="images/home-popup-nav-environ.png";
document.getElementById("mainimg").src ="images/3d-environment-onclick.jpg";
document.getElementById("tagline2").style.background ="#8DC63F";
document.getElementById("tagline2").style.width ="275px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "It doesn't have to";
document.getElementById("tagline3").style.background ="#8DC63F";
document.getElementById("tagline3").style.width ="200px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "cost the earth";
var curtextval = document.getElementById("environ1b");
    curtextval.innerHTML = "Our commitment to sustainable solutions";
document.getElementById("environ1b").style.fontWeight ="normal";
}


function environout()
{
document.getElementById("environ1a").style.visibility ="hidden";
document.getElementById("home9").src ="images/home-popup-nav-environ-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("environ1b");
    curtextval.innerHTML = "Environmental Solutions";
document.getElementById("environ1b").style.fontWeight ="bold";
// document.getElementById("environ1b").style.textAlign ="center";
}





function healthover()
{

document.getElementById("health1a").style.visibility ="visible";
document.getElementById("mainimg").src ="images/3d-health-onclick.jpg";
document.getElementById("home2").src ="images/home-popup-nav-health.png";
document.getElementById("tagline2").style.background ="#00AEEF";
document.getElementById("tagline2").style.width ="275px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Fast , effective and innovative";
document.getElementById("tagline3").style.background ="#00AEEF";
document.getElementById("tagline3").style.width ="185px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "healthcare solutions";
var curtextval = document.getElementById("health1b");
    curtextval.innerHTML = "Quick, efficient healthcare solutions";
document.getElementById("health1b").style.fontWeight ="normal";
}

function healthout()
{
document.getElementById("health1a").style.visibility ="hidden";
document.getElementById("home2").src ="images/home-popup-nav-health-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("health1b");
    curtextval.innerHTML = "Healthcare Solutions";
document.getElementById("health1b").style.fontWeight ="bold";
}





function hireover()
{
document.getElementById("hire1a").style.visibility ="visible";
document.getElementById("home8").src ="images/home-popup-nav-hire.png";
document.getElementById("mainimg").src ="images/3d-hire-onclick.jpg";
document.getElementById("tagline2").style.background ="#FFC20E";
document.getElementById("tagline2").style.width ="115px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Flexible hire";
document.getElementById("tagline3").style.background ="#FFC20E";
document.getElementById("tagline3").style.width ="85px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "solutions";
var curtextval = document.getElementById("hire1b");
    curtextval.innerHTML = "Hire agreements for bespoke buildings";
document.getElementById("hire1b").style.fontWeight ="normal";
}


function hireout()
{
document.getElementById("hire1a").style.visibility ="hidden";
document.getElementById("home8").src ="images/home-popup-nav-hire-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("hire1b");
    curtextval.innerHTML = "Hire Solutions";
document.getElementById("hire1b").style.fontWeight ="bold";
// document.getElementById("hire1b").style.textAlign ="center";
}




function modover()
{
document.getElementById("mod1a").style.visibility ="visible";
document.getElementById("home6").src ="images/home-popup-nav-mod.png";
document.getElementById("mainimg").src ="images/3d-mod-onclick.jpg";
document.getElementById("tagline2").style.background ="#967347";
document.getElementById("tagline2").style.width ="50px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "MOD";
document.getElementById("tagline3").style.background ="#967347";
document.getElementById("tagline3").style.width ="85px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "Solutions";
var curtextval = document.getElementById("mod1b");
    curtextval.innerHTML = "Fast solutions for the military&#39;s unique needs";
document.getElementById("mod1b").style.fontWeight ="normal";
}


function modout()
{
document.getElementById("mod1a").style.visibility ="hidden";
document.getElementById("home6").src ="images/home-popup-nav-mod-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("mod1b");
    curtextval.innerHTML = "MOD Solutions";
document.getElementById("mod1b").style.fontWeight ="bold";
}






function vidover()
{
document.getElementById("vid1a").style.visibility ="visible";
document.getElementById("home4").src ="images/home-popup-nav-video.png";
document.getElementById("mainimg").src ="images/home-image-video.jpg";
document.getElementById("tagline2").style.background ="#9D9FA2";
document.getElementById("tagline2").style.width ="195px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "See our construction";
document.getElementById("tagline3").style.background ="#9D9FA2";
document.getElementById("tagline3").style.width ="50px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "video";
var curtextval = document.getElementById("vid1b");
    curtextval.innerHTML = "See our video";
document.getElementById("vid1b").style.fontWeight ="normal";
}


function vidout()
{
document.getElementById("vid1a").style.visibility ="hidden";
document.getElementById("home4").src ="images/home-popup-nav-video-no.png";
document.getElementById("tagline2").style.background ="#FF0000";
document.getElementById("tagline2").style.width ="240px";
var curtextval = document.getElementById("tagline2");
    curtextval.innerHTML = "Leading the way in offsite";
document.getElementById("tagline3").style.background ="#FF0000";
document.getElementById("tagline3").style.width ="205px";
var curtextval = document.getElementById("tagline3");
    curtextval.innerHTML = "construction solutions";
var curtextval = document.getElementById("vid1b");
    curtextval.innerHTML = "See our construction video";
document.getElementById("vid1b").style.fontWeight ="bold";
}






// Home Page Links
// Get the Current Path
var path = document.location.pathname;


function bathlink()
{
window.location= 'bathroom-pod.php';
}


function commlink()
{
window.location= 'commercial.php';
}



function custlink()
{
window.location= 'custodial.php';
}



function devlink()
{
window.location= 'developer.php';
}



function edulink()
{
window.location= 'education.php';
}


function environlink()
{
window.location= 'environment.php';
}



function hirelink()
{
window.location= 'hire.php';
}


function healthlink()
{
window.location= 'health.php';
}



function modlink()
{
window.location= 'mod.php';
}






// Home Page Preloader
// Home 3D Nav Mouse Over Images
// Home Gallery

pic1= new Image(800,250); 
pic1.src="images/3d-commercial-onclick.jpg"; 

pic2= new Image(800,250); 
pic2.src="images/3d-custodial-onclick.jpg"; 


pic3= new Image(800,250); 
pic3.src="images/3d-developer-onclick.jpg"; 


pic4= new Image(800,250); 
pic4.src="images/3d-education-onclick.jpg"; 


pic5= new Image(800,250); 
pic5.src="images/3d-environment-onclick.jpg"; 

pic6= new Image(800,250); 
pic6.src="images/3d-health-onclick.jpg"; 

pic7= new Image(800,250); 
pic7.src="images/3d-hire-onclick.jpg"; 

pic8= new Image(800,250); 
pic8.src="images/3d-mod-onclick.jpg"; 

pic9= new Image(800,250); 
pic9.src="images/gallery/home/home-mod.jpg"; 

pic10= new Image(800,250); 
pic10.src="images/gallery/home/home-about.jpg"; 


pic11= new Image(800,250); 
pic11.src="images/gallery/home/home-comm.jpg"; 


pic12= new Image(800,250); 
pic12.src="images/gallery/home/home-cust.jpg"; 


pic13= new Image(800,250); 
pic13.src="images/gallery/home/home-dev.jpg"; 


pic14= new Image(800,250); 
pic14.src="images/gallery/home/home-educa.jpg"; 


pic15= new Image(800,250); 
pic15.src="images/gallery/home/home-environ.jpg"; 


pic16= new Image(800,250); 
pic16.src="images/gallery/home/home-health.jpg"; 


pic17= new Image(800,250); 
pic17.src="images/gallery/home/home-hire.jpg"; 


pic18= new Image(800,250); 
pic18.src="images/gallery/home/home.jpg"; 


pic19= new Image(185,175); 
pic19.src="images/home-popup-nav-educa-no.png"; 

pic20= new Image(185,175); 
pic20.src="images/home-popup-nav-educa.png"; 


pic21= new Image(185,175); 
pic21.src="images/home-popup-nav-health-no.png"; 


pic22= new Image(185,175); 
pic22.src="images/home-popup-nav-health.png"; 


pic23= new Image(185,175); 
pic23.src="images/home-popup-nav-bathroom-no.png"; 


pic24= new Image(185,175); 
pic24.src="images/home-popup-nav-bathroom.png"; 


pic25= new Image(185,175); 
pic25.src="images/home-popup-nav-custod-no.png"; 


pic26= new Image(185,175); 
pic26.src="images/home-popup-nav-custod.png"; 


pic27= new Image(185,175); 
pic27.src="images/home-popup-nav-dev-no.png"; 


pic28= new Image(185,175); 
pic28.src="images/home-popup-nav-dev.png"; 


pic29= new Image(185,175); 
pic29.src="images/home-popup-nav-dev-no.png"; 


pic30= new Image(185,175); 
pic30.src="images/home-popup-nav-dev.png"; 


pic31= new Image(185,175); 
pic31.src="images/home-popup-nav-mod-no.png"; 


pic32= new Image(185,175); 
pic32.src="images/home-popup-nav-mod.png"; 


pic33= new Image(185,175); 
pic33.src="images/home-popup-nav-comm-no.png"; 


pic34= new Image(185,175); 
pic34.src="images/home-popup-nav-comm.png"; 



