function mouseoverFunction(id){mouseFunction(id,"over");changeText(id)}function mouseoutFunction(id){mouseFunction(id,"out")}function mouseFunction(id,direction){getBGImage(id)}function getBGImage(id){document.getElementById("get_started_table").style.backgroundImage="url(/assets/img/mortgage-course/mc-home-rollover-"+id+".gif)"}function changeText(id){var sentence=new Array();sentence[1]="Get the right home at the right price.";sentence[2]="Make wise financial decisions.";sentence[3]="Who is looking out for you?";sentence[4]="Strategies to save you thousands.";sentence[5]="Avoid expensive, last minute glitches.";document.getElementById("get_started_text").innerHTML=sentence[id]}function preloadImages(){var httpVar="http://s.credit.com";if(isPageSecure()){httpVar="https://s.credit.com"}if(!isWWW()){httpVar=""}images=new Array();images[1]="url("+httpVar+"/assets/img/mortgage-course/mc-home-rollover-1.gif)";images[2]="url("+httpVar+"/assets/img/mortgage-course/mc-home-rollover-2.gif)";images[3]="url("+httpVar+"/assets/img/mortgage-course/mc-home-rollover-3.gif)";images[4]="url("+httpVar+"/assets/img/mortgage-course/mc-home-rollover-4.gif)";images[5]="url("+httpVar+"/assets/img/mortgage-course/mc-home-rollover-5.gif)";imageObj=new Image();for(var i=1;i<images.length;i++){imageObj.src=images[i]}}preloadImages();function isPageSecure(){str=document.URL;if(str.indexOf("https")!=-1){return true}else{return false}}function isWWW(){str=document.URL;if(str.indexOf("www")!=-1){return true}else{return false}}function homeBuyerTip(){var tipSpace=document.getElementById("home_buyer_tips_p");var tipText=new Array();tipText[1]='Be careful at "Open Houses"; often the agent working for the seller will try to pick up home buyers at these events, so that they can represent both the buyer and the seller for the house (and thereby make a 6% comission)<br /><span id="find_a_top_realtor">Read More in <a href="/mortgage-course/find-realtor/">"Find a Top Realtor"</a></span>';tipText[2]='Many borrowers mistakenly believe that some lenders charge points and other lenders don\'t. Some also believe that when they pay no points, they are getting something for free. Not true.<br /><span id="find_a_top_realtor">Read More in <a href="/mortgage-course/get-loan/rate-fee/">"Get the Best Loan"</a></span>';tipText[3]='Your prospective home\'s inspector should be licensed, and of your own choosing. Never use an inspector recommended by the seller or listing agent! That inspector might conveniently overlook certain problems with the home.<br /><span id="find_a_top_realtor">Read More in <a href="/mortgage-course/close-deal/get-appraisal/">"Close the Deal"</a></span>';tipText[4]='How do you negotiate with someone who won\'t respond?  You can\'t. You have to get them to believe that you are a serious buyer who will actually complete the transaction.<br /><span id="find_a_top_realtor">Read More in <a href="/mortgage-course/make-offer/smart-negotiator/">"Make an Offer"</a></span>';tipText[5]='Why are condos less expensive? They increase the density of homes on a property, thereby spreading the cost of the expensive land over more units...<br /><span id="find_a_top_realtor">Read More in <a href="/mortgage-course/find-realtor/search-home/">"Find a Top Realtor"</a></span>';tipNumber=Math.ceil(Math.random()*(tipText.length-1));tipSpace.innerHTML=tipText[tipNumber]};