function submission(){if(document.getElementById){if(submission=document.getElementById("submission")){if(submission.style){submission.style.display="block";document.location="#submission";return false;}}}}function initials(a,b){if(document.getElementById){if(initiala=document.getElementById("sublocations-"+a))if(initiala.style)initiala.style.display="block";if(initiala=document.getElementById("initials-"+a))if(initiala.style)initiala.style.display="block";if(initialb=document.getElementById("sublocations-"+b))if(initialb.style)initialb.style.display="none";if(initialb=document.getElementById("initials-"+b))if(initialb.style)initialb.style.display="none";}return false;}function initials_pagination(initials,initial){if(document.getElementById){document.write("<div class=\"block\" id=\"initials-"+initial+"\"><div class=\"pagination\">");for(var x=0;x<initials.length;x++){this_initial=initials.substring(x,x+1);if(this_initial !=initial)document.write("<a href=\"#\" onclick=\"return initials('"+this_initial+"','"+initial+"')\">"+this_initial.toUpperCase()+"</a>");else document.write("<s>"+this_initial.toUpperCase()+"</s>");if(x !=initials.length-1)document.write(" / ");}document.write("</div></div>");}}function getCookie(name){var name=name+"=";var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];while(cookie.charAt(0)==" ")cookie=cookie.substring(1,cookie.length);if(cookie.indexOf(name)==0)return cookie.substring(name.length,cookie.length);}return null;}function getRealReferrer(){var referrer=document.referrer;if(!referrer||referrer.indexOf("/eSearch/")!=-1||referrer.indexOf("exitjunction.com/")!=-1){var realReferrer=decodeURIComponent(getCookie("rR"));var realReferrerExpires=getCookie("rRE");var date=new Date();if(!realReferrer||realReferrerExpires<date.getTime())realReferrer="";if(realReferrer&&typeof pageTracker=="object")pageTracker._setReferrerOverride(realReferrer);}}var referrer=document.referrer;if(referrer.length > 0&&referrer.indexOf("/eSearch/")==-1&&referrer.indexOf("exitjunction.com/")==-1&&!/^(http|https):\/\/(([^/]*)\.)?volmi\.com\//.test(document.referrer)){var date=new Date();date.setTime(date.getTime()+60*1000);document.cookie="rR="+encodeURIComponent(referrer)+"; path=/";document.cookie="rRE="+date.getTime()+"; path=/";}function searchCallback(){var searcher=new google.search.WebSearch();searcher.setNoHtmlGeneration();searcher.setResultSetSize(google.search.Search.LARGE_RESULTSET);searcher.setSearchCompleteCallback(null,completeCallback,[searcher]);searcher.execute(searchKeyword);}function completeCallback(searcher){var html="";if(searcher.results&&searcher.results.length>0){var html="<table class=\"pages\">";for(var i=0;i<searcher.results.length;i++){var result=searcher.results[i];var snippet=result.content.replace(/<b>/gi,"");snippet=snippet.replace(/<\/b>/gi,"");var thumbnailUrl=(!searchThumbnail)?"http://snapcasa.com/Get.aspx?code=4760&size=t&mark=1&url="+encodeURIComponent(result.url.replace("http://","")):searchThumbnail;html+="<tr>";html+="<td><a href=\""+result.url+"\" target=\"_blank\" onclick=\"if(typeof pageTracker=='object')pageTracker._trackEvent('Google Listing','Click','Thumbnail')\"><img src=\""+thumbnailUrl+"\" width=\"100\" height=\"75\" alt=\""+result.titleNoFormatting.replace("\"","&quot;")+"\" /></a></td>";html+="<td>";html+="<div class=\"domain\">"+result.visibleUrl+"</div>";html+="<div class=\"title\"><a href=\""+result.url+"\" target=\"_blank\" onclick=\"if(typeof pageTracker=='object')pageTracker._trackEvent('Google Listing','Click','Text Link')\">"+result.titleNoFormatting+"</a></div>";html+="<div class=\"description\">"+snippet+"</div>";html+="</td>";html+="</tr>";}html+="</table>";}else html=searchNoResults;document.getElementById("results").innerHTML=html;}function googleSearch(){google.load("search","1",{"language":searchLanguage});google.setOnLoadCallback(searchCallback);}var defaultImage="http://static.volmi.com/_images/snapshot-queued.jpg";var loadedImages=[];function stopImages(){images=document.getElementsByTagName("img");for(x in images){if(images[x].src)if(images[x].src.indexOf("snapcasa")!=-1){images[x].onload=function(){loadedImages[this.src]=true;};images[x].src=images[x].src;window.setTimeout("if(!loadedImages['"+images[x].src+"'])images["+x+"].src=defaultImage",100);}}}function stopLoad(){setTimeout("stopImages()",2000);}