// JavaScript Document



//START QUOTES
var textnumber = 6 ; 
var randomnumber = Math.random() ; 
var rand1 = Math.round( (textnumber-1) * randomnumber) + 1 ; 
text = new Array 

text[1] = '<p class="text">&quot;I am delighted to praise the work that these home stagers have done in this unit. It gives a very finished, spacious and uncluttered appearance, as well there is no doubt in my mind that it will make selling this unit much easier. And that makes my job easier too! Thank You.&quot;</p><p class="sign"> - Judi Whyte R.I. with Prudential Sussex, West Vancouver BC</p>';

text[2] = '<p class="text">&quot;Christine and her team did a great job of redesigning my home.  My living room is much more comfortable for conversation and the art has been skillfully rearranged.  My family room is easier to navigate and much more open.  We are enjoying our new setting.&quot;</p><p class="sign"> - Joan, Vancouver BC</p>';
text[3] = '<p class="text">&quot;We were thrilled when we came home after the team had spent the day redesigning our place.  They had very creatively hung our pictures in beautiful groupings, arranged the rooms to show off the new furniture, and we loved the way they had arranged our entrance - it feels brand new! Most of all they made our house feel like a home. Thanks again to you and your team for all your hard work.  We really are so happy with what you have done.&quot;</p><p class="sign"> - Peter &amp; Laura, Vancouver</p>';
text[4] = '<p class="text">&quot;Just wanted to say thank you for the great service you provided to my clients. Their move was very stressful for them and they really appreciated your advice on where to put their pictures and a few odds and ends. A neutral expert opinion is always welcome. I know you went over time just to get the last few pictures placed; the extra time and effort was much appreciated. I look forward to working with you again.&quot;</p><p class="sign"> - Valerie Berg, <br />MacDonald Olympic Realty</p>';
text[5] = '<p class="text">&quot;The difference from before Stage Right Home Staging to after was absolutely Night and Day! My clients really "connected" with Christine and I am convinced beyond a doubt, that her work was INSTRUMENTAL in effecting a quick sale in a slow, almost dead market. I will recommend Christine with confidence, if you want it sold, it has got to show its best!&quot;</p><p class="sign"> - Chris Shields Sutton, <br />Premier Realty, Surrey, BC</p>';
text[6] = '<p class="text">&quot;I\’ve had the pleasure of working with Christine over the past year. I\’m a Realtor who is a big believer in what home staging can do for my clients. Christine meets with my clients in their home &amp; goes through the home, room by room with suggestions for improvement. She educates my clients on the why part of home staging and teaches them little tricks to easily get that "show-home" feel in their home. Christine is notably efficient and my clients love her style! She is an excellent communicator and produces amazing transformations.<br /><br />Christine is a valued member of our team and I would recommend her to any home-owner or Realtor who would like to secure a sale faster &amp; at a higher price.&quot;</p><p class="sign"> - Janet Rathbun,<br />RE/MAX Performance Realty</p>';

var mytext = text[rand1];
//END QUOTES



//Second Function
var theImages = new Array()

//Random-loading images
theImages[0] = '/images/staging-sample-7.jpg' 
theImages[1] = '/images/staging-sample-1.jpg' 
theImages[2] = '/images/staging-sample-2.jpg' 
theImages[3] = '/images/staging-sample-3.jpg' 
theImages[4] = '/images/staging-sample-4.jpg' 
theImages[5] = '/images/staging-sample-5.jpg' 
theImages[6] = '/images/staging-sample-6.jpg' 

var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
if(whichImage==0){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}
else if(whichImage==1){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}
else if(whichImage==2){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}
else if(whichImage==3){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}
else if(whichImage==4){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}
else if(whichImage==5){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}
else if(whichImage==6){
document.write('<img src="'+theImages[whichImage]+'" border=0 width="310" height="368" alt="Staging Sample">');
}



}


//pop-up window function
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

