function slide(F,B,D,E,C,A){this.src=F;this.link=B;this.alt=D;this.text=E;this.target=C;this.attr=A;if(document.images){this.image=new Image()}this.loaded=false;this.load=function(){if(!document.images){return }if(!this.loaded){this.image.src=this.src;this.image.alt=this.alt;this.loaded=true}};this.hotlink=function(){var G;if(!this.link){return }if(this.target){if(this.attr){G=window.open(this.link,this.target,this.attr)}else{G=window.open(this.link,this.target)}if(G&&G.focus){G.focus()}}else{location.href=this.link}}}function slideshow(A){this.name=A;this.imgDir;this.repeat=true;this.prefetch=-1;this.image;this.textid;this.textarea;this.timeout=3000;this.slides=new Array();this.current=0;this.timeoutid=0;this.add_slide=function(B){var C=this.slides.length;if(this.prefetch==-1){B.load()}this.slides[C]=B};this.play=function(B){this.pause();if(B){this.timeout=B}if(typeof this.slides[this.current].timeout!="undefined"){B=this.slides[this.current].timeout}else{B=this.timeout}this.timeoutid=setTimeout(this.name+".loop()",B)};this.pause=function(){if(this.timeoutid!=0){clearTimeout(this.timeoutid);this.timeoutid=0}};this.update=function(){if(!this.valid_image()){return }if(typeof this.pre_update_hook=="function"){this.pre_update_hook()}var B=this.slides[this.current];var F=false;if(this.image&&typeof this.image.filters!="undefined"&&typeof this.image.filters[0]!="undefined"){F=true}B.load();if(F){if(B.filter&&this.image.style&&this.image.style.filter){this.image.style.filter=B.filter}this.image.filters[0].Apply()}this.image.src=B.src;this.image.alt=B.image.alt;if(F){this.image.filters[0].Play()}this.display_text();if(typeof this.post_update_hook=="function"){this.post_update_hook()}if(this.prefetch>0){var C,E,D;C=this.current;E=this.current;D=0;do{if(++C>=this.slides.length){C=0}if(--E<0){E=this.slides.length-1}this.slides[C].load();this.slides[E].load()}while(++D<this.prefetch)}};this.goto_slide=function(B){if(B==-1){B=this.slides.length-1}if(B<this.slides.length&&B>=0){this.current=B}this.update()};this.goto_random_slide=function(B){var C;if(this.slides.length>1){do{C=Math.floor(Math.random()*this.slides.length)}while(C==this.current);this.goto_slide(C)}};this.next=function(){if(this.current<this.slides.length-1){this.current++}else{if(this.repeat){this.current=0}}this.update()};this.previous=function(){if(this.current>0){this.current--}else{if(this.repeat){this.current=this.slides.length-1}}this.update()};this.shuffle=function(){var D,E,B,C;B=new Array();for(D=0;D<this.slides.length;D++){B[D]=this.slides[D]}C=new Array();do{D=Math.floor(Math.random()*B.length);C[C.length]=B[D];for(E=D+1;E<B.length;E++){B[E-1]=B[E]}B.length--}while(B.length);this.slides=C};this.get_text=function(){return(this.slides[this.current].text)};this.get_all_text=function(C,B){all_text="";for(i=0;i<this.slides.length;i++){slide=this.slides[i];if(slide.text){all_text+=C+slide.text+B}}return(all_text)};this.display_text=function(B){if(!B){B=this.slides[this.current].text}if(this.textarea&&typeof this.textarea.value!="undefined"){this.textarea.value=B}if(this.textid){r=this.getElementById(this.textid);if(!r){return false}if(typeof r.innerHTML=="undefined"){return false}r.innerHTML=B}};this.hotlink=function(){this.slides[this.current].hotlink()};this.save_position=function(B){if(!B){B=this.name+"_slideshow"}document.cookie=B+"="+this.current};this.restore_position=function(B){if(!B){B=this.name+"_slideshow"}var C=B+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(C);if(offset!=-1){offset+=C.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}this.current=parseInt(unescape(document.cookie.substring(offset,end)))}}};this.noscript=function(){$html="\n";for(i=0;i<this.slides.length;i++){slide=this.slides[i];$html+="<P>";if(slide.link){$html+='<a href="'+slide.link+'">'}$html+='<img src="'+slide.src+'" ALT="slideshow image">';if(slide.link){$html+="</a>"}if(slide.text){$html+="<BR>\n"+slide.text}$html+="</P>\n\n"}$html=$html.replace(/\&/g,"&amp;");$html=$html.replace(/</g,"&lt;");$html=$html.replace(/>/g,"&gt;");return("<pre>"+$html+"</pre>")};this.loop=function(){if(this.current<this.slides.length-1){next_slide=this.slides[this.current+1];if(next_slide.image.complete==null||next_slide.image.complete){this.next()}}else{this.next()}this.play()};this.valid_image=function(){if(!this.image){return false}else{return true}};this.getElementById=function(B){if(document.getElementById){return document.getElementById(B)}else{if(document.all){return document.all[B]}else{if(document.layers){return document.layers[B]}else{return undefined}}}};this.set_image=function(B){if(!document.images){return }this.image=B};this.set_textarea=function(B){this.textarea=B;this.display_text()};this.set_textid=function(B){this.textid=B;this.display_text()}}SLIDES=new slideshow("SLIDES");SLIDES.timeout=2000;SLIDES.prefetch=-1;SLIDES.repeat=true;var theSlides=new Array();var thelinks=new Array();var theAltTexts=new Array();theSlides[0]="img/clients/baby-logo.jpg";thelinks[0]="http://www.bobebe.com/";theAltTexts[0]="Bobebe Lifestyle";theSlides[1]="img/clients/macs-logo.jpg";thelinks[1]="http://www.macs.ca";theAltTexts[1]="Macs Convenience Stores Inc";theSlides[2]="img/clients/punjabisweet-logo.jpg";thelinks[2]="http://dvrshark.com";theAltTexts[2]="Punjabi Sweet House and Restaurant";theSlides[3]="img/clients/impark-logo.jpg";thelinks[3]="http://impark.com";theAltTexts[3]="Imperial Parking";theSlides[4]="img/clients/Husky-logo.jpg";thelinks[4]="www.huskyenergy.ca";theAltTexts[4]="Husky";theSlides[5]="img/clients/northill-logo.gif";thelinks[5]="http://www.dvrshark.com/";theAltTexts[5]="Northhill Bottle Depot";theSlides[6]="img/clients/dairyqueen-logo.gif";thelinks[6]="http://www.dairyqueen.com/ca-en/";theAltTexts[6]="Dairy Queen Restaurants";theSlides[7]="img/clients/subway-logo.jpg"; thelinks[7]="http://www.subway.com/";theAltTexts[7]="Subway Restaurants";theSlides[8]="img/clients/rightpriceauto-logo.jpg";thelinks[8]="http://rightpriceauto.com/";theAltTexts[8]="Right Price Auto";theSlides[9]="img/clients/papajohns-logo.jpg";thelinks[9]="http://www.papajohns.com/index.shtm";theAltTexts[9]="Papa Johns Pizza";theSlides[10]="img/clients/bellconnections.jpg";thelinks[10]="http://www.bell.ca";theAltTexts[10]="Bell Connections";theSlides[11]="img/clients/a1spice-logo.jpg";thelinks[11]="http://dvrshark.com";theAltTexts[11]="A-1 Spice & Movie Center";for(i=0;i<theSlides.length;i++){s=new slide();s.src=theSlides[i];s.link=thelinks[i];s.alt=theAltTexts[i];s.target="_blank";s.text=unescape("");s.attr="width=1024, height=800,location=yes, menubar=no, resizable=yes, scrollbars=yes, status=yes, titlebar=no, toolbar=no, directories=no";s.filter="";SLIDES.add_slide(s)};