/***************************************************************************
- File: superscope.js
- Version: 11.8.18
***************************************************************************/

$m.trick.superscope={};
$m.t.superscope = { name: "superscope", rndm_img_start: 1, rndm_img_stop: 6, rndm_img_path: "images/banners/", img_div_top_id: "bnr_homepage_div_top", img_div_bottom_id: "bnr_homepage_div_bottom", img_full_id: "bnr_homepage_full", urls: ["---", "http://staging.aspdotnetstorefront.superscopetechnologies.com.local/_template.html", "http://staging.aspdotnetstorefront.superscopetechnologies.com/", "http://staging.aspdotnetstorefront.superscopetechnologies.com/default.aspx", "http://www.superscopetechnologies.com/default.aspx", "http://www.superscopetechnologies.com/"], construct: function() {
    this.tmnls =
$m.trick.superscope.tmnls;this.set_rndm_img()},set_rndm_img:function(){var a=$m.t.superscope.get_rndm_num(this.rndm_img_stop),d='<p class="margin_bottom_5"><img src="'+this.rndm_img_path+"bnr_homepage_thumb_"+a+'.jpg" alt="" width="985" height="71"></p>',b=(window.location+"").split("?"),b=$m.is.in_array($m.t.superscope.urls,b[0].toLowerCase());if(b!==!1)$m.id(this.img_full_id).src=this.rndm_img_path+"bnr_homepage_"+a+".jpg",$m.id(this.img_div_bottom_id).innerHTML=d;if(b===!1)$m.id(this.img_div_top_id).innerHTML=
d},set_rndm_tmnls:function(a,d){var b='<div data-mjf="vscroller" data-mjf_vscroller_autostart="true" data-mjf_vscroller_delay="'+d+'" class="motion_vscroller" id="vscroll_1">';$m.t.superscope.shuffled_tmnls(a);for(var c=0,e=a.length;c<e;c++)b+='<div><p class="bg_testimonial_box" id="bg_testimonial_'+a[c].name+'" onclick="window.location=\'/t-'+a[c].link+".aspx';\">",b+='<a href="/t-'+a[c].link+'.aspx">&ldquo;'+a[c].quote+'&rdquo;<span class="margin_left_20">'+a[c].author+"</span></a></p></div>\n";
b+="</div>";$m.id("box_rndm_tmnls").innerHTML=b},get_rndm_num:function(a){return Math.floor(Math.random()*a+1)},shuffled_tmnls:function(a){for(var d,b,c=a.length;c;d=parseInt(Math.random()*c),b=a[--c],a[c]=a[d],a[d]=b);return a}};

