// JavaScript Document
var sampImage;
var fontFamily1="Monotype Corsiva";
function resizeProject4(){
var windowWidth, windowHeight, allResized;
	
	windowWidth=getWindowWidth();	
	windowHeight=getWindowHeight();
	myBorder=Math.round(windowWidth/1000)+"px solid #BF617E";
    myBorderWidth = Math.round(windowWidth/1000);
	
	if (!myProject4.appendChild(homePic8)) { return false; }
	if (!scaleToWidth(homePic8, mainDiv.offsetWidth)) { return false; }
	homePic8.style.position="absolute";
	
//	greenPic.style.height=Math.round(homePic8.offsetHeight) + "px";
		
	//for the title text
	fontSize=Math.round(bodyDiv.offsetWidth/30) + "px";
	if (!myProject4.appendChild(project4Title)) { return false; }
	project4Title.style.top=myMargin*3 + "px";
	project4Title.style.left=myMargin*1.5 + "px";
	project4Title.style.fontSize=fontSize;
	project4Title.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Title.style.position="absolute";
	
	//for the text 
	fontSize=Math.round(bodyDiv.offsetWidth/70) + "px";
	if (!myProject4.appendChild(project4Txt)) { return false; }
	project4Txt.style.top=Math.round(homePic8.offsetHeight/6.5) + "px";
	project4Txt.style.left=Math.round(mainDiv.offsetWidth/11) + "px";
	project4Txt.style.fontSize=fontSize;
	project4Txt.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt1)) { return false; }
	project4Txt1.style.top=Math.round(homePic8.offsetHeight/6.5) + "px";
	project4Txt1.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	project4Txt1.style.fontSize=fontSize;
	project4Txt1.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt2)) { return false; }
	project4Txt2.style.top=Math.round(homePic8.offsetHeight/4.9) + "px";
	project4Txt2.style.left=Math.round(mainDiv.offsetWidth/11) + "px";
	project4Txt2.style.fontSize=fontSize;
	project4Txt2.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt3)) { return false; }
	project4Txt3.style.top=Math.round(homePic8.offsetHeight/4.9) + "px";
	project4Txt3.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	project4Txt3.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt3.style.fontSize=fontSize;
	project4Txt3.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt4)) { return false; }
	project4Txt4.style.top=Math.round(homePic8.offsetHeight/2.9) + "px";
	project4Txt4.style.left=Math.round(mainDiv.offsetWidth/11) + "px";
	project4Txt4.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt4.style.fontSize=fontSize;
	project4Txt4.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt5)) { return false; }
	project4Txt5.style.top=Math.round(homePic8.offsetHeight/2.9) + "px";
	project4Txt5.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	project4Txt5.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt5.style.fontSize=fontSize;
	project4Txt5.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt6)) { return false; }
	project4Txt6.style.top=Math.round(homePic8.offsetHeight/2.05) + "px";
	project4Txt6.style.left=Math.round(mainDiv.offsetWidth/11) + "px";
	project4Txt6.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt6.style.fontSize=fontSize;
	project4Txt6.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt7)) { return false; }
	project4Txt7.style.top=Math.round(homePic8.offsetHeight/2.05) + "px";
	project4Txt7.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	project4Txt7.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt7.style.fontSize=fontSize;
	project4Txt7.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt8)) { return false; }
	project4Txt8.style.top=Math.round(homePic8.offsetHeight/1.6) + "px";
	project4Txt8.style.left=Math.round(mainDiv.offsetWidth/11) + "px";
	project4Txt8.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt8.style.fontSize=fontSize;
	project4Txt8.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt9)) { return false; }
	project4Txt9.style.top=Math.round(homePic8.offsetHeight/1.6) + "px";
	project4Txt9.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	project4Txt9.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt9.style.fontSize=fontSize;
	project4Txt9.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt10)) { return false; }
	project4Txt10.style.top=Math.round(homePic8.offsetHeight/1.3) + "px";
	project4Txt10.style.left=Math.round(mainDiv.offsetWidth/11) + "px";
	project4Txt10.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt10.style.fontSize=fontSize;
	project4Txt10.style.position="absolute";
	
	if (!myProject4.appendChild(project4Txt11)) { return false; }
	//project4Txt11.style.top=project4Txt10.offsetTop + "px";
	project4Txt11.style.top=Math.round(homePic8.offsetHeight/1.3) + "px";
	project4Txt11.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	project4Txt11.style.width=Math.round(mainDiv.offsetWidth*0.5) + "px";
	project4Txt11.style.fontSize=fontSize;
	project4Txt11.style.position="absolute";
	
	if (!myProject4.appendChild(arrow3)) { return false; }
	if (!scaleToWidth(arrow3, mainDiv.offsetWidth*0.04)) { return false; }
	arrow3.style.top=Math.round(homePic8.offsetHeight/1.04) + "px";
	arrow3.style.left=Math.round(mainDiv.offsetWidth/2) + "px";
	arrow3.style.position="absolute";
	
	if (!myProject4.appendChild(arrow4)) { return false; }
	if (!scaleToWidth(arrow4, mainDiv.offsetWidth*0.04)) { return false; }
	arrow4.style.top=Math.round(homePic8.offsetHeight/1.04) + "px";
	arrow4.style.left=Math.round(mainDiv.offsetWidth/1.8) + "px";
	arrow4.style.position="absolute";
	
	myProject4.style.height = Math.round(homePic8.offsetHeight) + "px";
				
	myProject4.style.visibility="hidden";
	
	return true;
}

function createproject4Page(){
	//create home page
	myProject4 = createDiv();
	myProject4.style.position="absolute";
	clearMargins(myProject4);
	
	loading=displayText("Please wait Loading...");
	loading.style.visibility="hidden";
	loading.style.fontFamily="verdana";
	mainDiv.appendChild(loading);

	//for the detection of the browser in our main picture
	if (browserInfo().browserShortName=="Firefox") {
		
		//alert("Firefox")				
		homePic8 = xImage("images/avp_bg3.jpg");
		homePic8.oncontextmenu=protectImage;
		
	} else { if (browserInfo().browserShortName=="IE") {
	
		//alert("IE")
		homePic8 = xImage("images/avp_bg2.jpg");
		homePic8.oncontextmenu=protectImage;
		homePic8.style.height="620px";		
		}
	}
	//end of our browser detection
	
	//for the title text
	project4Title = document.createElement("p");
	project4Title.innerHTML="Projects Undertaken4";
	project4Title.style.textDecoration="underline";
	project4Title.style.fontWeight="bold";
	project4Title.style.fontFamily="monotype corsiva";
	
	//for the text 
	project4Txt = document.createElement("p");
	project4Txt.innerHTML="COMPANY OWNER";
	project4Txt.style.fontWeight="bold";
	project4Txt.style.fontFamily="verdana";
	
	project4Txt1 = document.createElement("p");
	project4Txt1.innerHTML="PROJECT DESCRIPTION / LOCATION";
	project4Txt1.style.fontWeight="bold";
	project4Txt1.style.fontFamily="verdana";
	
	project4Txt2 = document.createElement("p");
	project4Txt2.innerHTML="DPWH-CDO District";
	project4Txt2.style.fontFamily="verdana";
	
	project4Txt3 = document.createElement("p");
	project4Txt3.innerHTML="Cagayan de Oro Convention Center<br/>Access Road, Indahag, Mis.Or.</br>Date Started: October 29, 2004<br/>Date of Completion: April 10, 2007<br>Project Cost: P 6,759,850.64";
	project4Txt3.style.fontFamily="verdana";
	
	project4Txt4 = document.createElement("p");
	project4Txt4.innerHTML="Robinsons Homes, Inc.";
	project4Txt4.style.fontFamily="verdana";
	
	project4Txt5 = document.createElement("p");
	project4Txt5.innerHTML="Const. of Gate &amp; Guardhouse<br/>&#64; Richmond Hills, Cagayan de Oro City<br/>Date Started: April 16, 2007<br>Date of Completion: June 20, 2007<br>Project Cost: P 1,450,000.00";
	project4Txt5.style.fontFamily="verdana";
	
	project4Txt6 = document.createElement("p");
	project4Txt6.innerHTML="Makati Development Corp.";
	project4Txt6.style.fontFamily="verdana";
	
	project4Txt7 = document.createElement("p");
	project4Txt7.innerHTML="Site Development of Alegria Hills Phase 1<br/>&amp; Tranche 1, Camaman-an, Cagayan de Oro<br/>Project Cost: P 4,618,756.02<br/>Date of Completion: June, 2008";
	project4Txt7.style.fontFamily="verdana";
		
	project4Txt8 = document.createElement("p");
	project4Txt8.innerHTML="Crown Communities";
	project4Txt8.style.fontFamily="verdana";
	
	project4Txt9 = document.createElement("p");
	project4Txt9.innerHTML="Land Development of Gardens of Portico<br/>Phase 1-a, Gran Europa,Cagayan de Oro City<br/>Project Cost: P 8,854,000.00<br/>Date of Completion: July, 2008";
	project4Txt9.style.fontFamily="verdana";
	
	project4Txt10 = document.createElement("p");
	project4Txt10.innerHTML="Hanjin Heavy Industries &amp; <br/>Const. Co. LTD";
	project4Txt10.style.fontFamily="verdana";
	
	project4Txt11 = document.createElement("p");
	project4Txt11.innerHTML="Site Development of Roads @ Buena Bida <br/>Frontiera A &amp B<br/>Location: Buena Bida, Cagayan de Oro City<br/>Date Started: April 1997<br/>Date Completed: December 1997<br/>Project Cost: P 40 Million";
	project4Txt11.style.fontFamily="verdana";
		
	arrow3 = xImage("images/arrow4.gif");
	arrow3.oncontextmenu=protectImage;
	arrow3.id="ProjectUndertaken3";
	arrow3.onclick=basicMenuClick;
	arrow3.style.cursor="pointer";
		
	arrow4 = xImage("images/arrow3.gif");
	arrow4.oncontextmenu=protectImage;
	arrow4.id="ProjectUndertaken5";
	arrow4.onclick=basicMenuClick;
	arrow4.style.cursor="pointer";
	
	myProject4.resize=resizeProject4;
		
return myProject4;
}	
