
/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

// for Second Navigation
$(document).ready(function($){
	$('#mega-menu-1').dcMegaMenu({
		rowItems: '4',
		speed: 'fast',
		effect: 'fade'
	});
		});


<!--expand-->
$(function() {
    // --- first section initially expanded:
   // $("h2.expand").toggler({initShow: "div.collapse:first"});
    // --- Other options:
    //$("h2.expand").toggler({method: "toggle", speed: 0});
    //$("h2.expand").toggler({method: "toggle"});
    //$("h2.expand").toggler({speed: "fast"});
    $(".expand").toggler({method: "fadeToggle"});
    //$("h2.expand").toggler({method: "slideFadeToggle"});    
    $("#content").expandAll({trigger: ".expand", ref: "div.testimonials",  speed: 300, oneSwitch: false});
});
<!--end expand-->

<!--testimonial scroller-->
$(function(){
	$('#testimonial-box').vTicker({ 
		speed: 500,
		pause: 3000,
		animation: 'fade',
		mousePause: false,
		showItems: 3
	});
});

<!--end testimonial scroller-->


<!--google map-->
  
    var map = null;
    var geocoder = null;
	
	/*var addresses = ["Arizona","California","2492 SW 57th Avenue Hollywood, Florida 33023,(954) 989-3684","Kalua Kona","Baton Rouge","Clinton","Las Vegas",
					  "Reno/Reno Auto Body","Reno","Belmont","Indian Trail","Tuxedo","638 West Genesee St. Syracuse, NY 13204","Queens, NYC","Cincinnati","Houston","Shelton"]; */
	

var addresses = [{address:'S.W. 57th Avenue,Hollywood,FL  33023 (954) 989-4285',
				  info:'<strong>James McHugh\'s Auto Collision</strong><br>Jim McHugh<br>2492 S.W. 57th Avenue<br>Hollywood, FL  33023<br> (954) 989-4285 <br><a href="experience_james_b_mchugh.html" class="map-link" target="_blank">Location Experience</a><span>|</span><a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'Kailua Kona, HI  96740,(808) 329-7776',
				  info:'<strong>Wreck Check Car Scan Centers of Hawaii</strong><br>David Lelm<br>73-4820 Kanalani St. Bay 7<br>Kailua Kona, HI  96740<br>(808) 329-7776 <br> <a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'1816 Lucylle Ct.,Saint Charles, IL  60174,(630) 584-1458',
				  info:'<strong>Wreck Check Car Scan Centers of Chicago</strong><br>William Byrne<br>1816 Lucylle Ct.<br>Saint Charles, IL  60174<br>(630) 584-1458 <br> <a href="#" class="map-link" target="_blank">Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'P.O. Box 458,Alexandria, KY  41007,(859) 640-2383',
				  info:'<strong>Wreck Check Car Scan Centers of Cincinnati</strong><br>Phillip Mosley<br>P.O. Box 458<br>Alexandria, KY  41007<br>(859) 640-2383 <br> <a href="experience_phillip_mosley.html" class="map-link" target="_blank">Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				 {address:'5275 Kincaid Ave.,Baton Rouge, LA  70805,(225) 357-7983',				  info:'<strong>Medine\'s Collision Center</strong><br>Chris Medine<br>5275 Kincaid Ave.<br>Baton Rouge, LA  70805<br>(225) 357-7983 <br> <a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'6715 Old Alexanderia Ferry Rd.,Clinton, MD  20735,(301) 868-8840',
				  info:'<strong>Color Crafters Collision Center</strong><br>Mark Venables<br>6715 Old Alexanderia Ferry Rd.<br>Clinton, MD  20735<br>(301) 868-8840 <br> <a href="#" class="map-link" target="_blank">Location Experience</a> <span>|</span> <a href="http://www.colorcrafters.com/" class="map-link" target="_blank"> Website</a>'},
				 {address:'6425 Central Avenue,Glendale, NY  11385,(718) 821-7868',
				  info:'<strong>Central Avenue Collision Works</strong><br>Michael Porcelli<br>6425 Central Avenue<br>Glendale, NY  11385<br>(718) 821-7868 <br> <a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'638 West Genesee St.,Syracuse, NY  13204,(315) 471-8521',
				  info:'<strong>Nick Orso\'s Body Shop</strong><br>Nick Orso<br>638 West Genesee St.<br>Syracuse, NY  13204<br>(315) 471-8521 <br><a href="experience_michael_orso_syracuse.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.nickorso.com/" class="map-link" target="_blank"> Website</a>'},
				 {address:'114 Green Lane,Bedford HIlls, NY  10501,(914) 241-1234',
				   info:'<strong>North State Custom</strong><br>Greg Coccaro<br>114 Green Lane<br>Bedford HIlls, NY  10501<br>(914) 241-1234 <br><a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'Belmont NC  28012',
				  info:'<strong>Pack Brothers Body Shop</strong><br>Ronnie Pack<br>6116 Wilkinson Blvd.<br>Belmont, NC  28012<br>(704) 825-9271 <br> <a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank">Website</a>'},
				 {address:'9621 Heritage LaneIndian Trail, NC  28079 (704) 753-4741',
				  info:'<strong>Wreck Check Car Scan Centers of Indian Trail</strong><br>Sheridan Hinson<br>9621 Heritage Lane<br>Indian Trail, NC  28079<br>(704) 753-4741 <br> <a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'800 S. Buchanan Amarillo, TX  79101,(806) 342-3137',
				  info:'<strong>Bernard\'s Advance Collision</strong><br>Shane Bernard<br>800 S. Buchanan<br>Amarillo, TX  79101<br>(806) 342-3137 <br> <a href="experience_shane_bernard.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://bernardsadvancedcollision.com" class="map-link" target="_blank"> Website</a>'},
				 {address:'12221 Veterans Memorial Houston, TX  77067 (281) 893-6341',
				  info:'<strong>Richey Collision Inc.</strong><br>Chris Watts<br>12221 Veterans Memorial<br>Houston, TX  77067<br>(281) 893-6341 <br> <a href="#" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {address:'W. 101 Hulbert Rd. Shelton  WA  98584 (360) 426-0805',
				  info:'<strong>Perfect Reflections Auto Body</strong><br>Robert Rosie<br>W.  101 Hulbert Rd.<br>Shelton, WA  98584<br>(360) 426-0805 <br> <a href="experience_robert_rosie.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="#" class="map-link" target="_blank"> Website</a>'},
				 {//address:'2570 Tacchino St., NV  89512, USA',
				  address:'89434,Sparks,NV  89512, USA',
				  info:'<strong>Paramount Auto Body<br>Steve Waldren</strong><br>2570 Tacchino St.<br>Reno, NV  89512<br>(775) 329-6691 <br> <a href="experience_steven_m_waldren.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.paramountautobody.com" class="map-link" target="_blank"> Website</a>'},
				 {address:'1975 Kuenzli St.,Reno, NV  89502,(775) 322-4594',
				  info:'<strong>Reno Auto Body</strong><br>Barry Roberts<br>1975 Kuenzli St.<br>Reno, NV  89502<br>(775) 322-4594 <br> <a href="experience_barry_roberts.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				 {address:'5258 S. Eastern Ave. Suite 207,Las Vegas, NV 89119,800 762-2671',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>5258 S. Eastern Ave. Suite 207<br>Las Vegas, NV 89119<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				  {address:'Phoenix AZ',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>5258 S. Eastern Ave. Suite 207<br>Las Vegas, NV 89119<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				 {address:'Los Angeles',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>234 N. Irena St Ste. 5<br>Redondo Beach, CA 90277<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				  {address:'San Diego',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>234 N. Irena St Ste. 5<br>Redondo Beach, CA 90277<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				  {address:'Bakersfield',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>234 N. Irena St Ste. 5<br>Redondo Beach, CA 90277<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				  {address:'Barstow',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>234 N. Irena St Ste. 5<br>Redondo Beach, CA 90277<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				  {address:'San Francisco',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>234 N. Irena St Ste. 5<br>Redondo Beach, CA 90277<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'},
				  {address:'Sacramento',
				  info:'<strong>Wreck Check Car Scan Centers</strong><br>234 N. Irena St Ste. 5<br>Redondo Beach, CA 90277<br>800 762-2671 <br> <a href="experience_rocco_avellini.html" class="map-link" target="_blank"> Location Experience</a> <span>|</span> <a href="http://www.wreckcheckcarscan.com" class="map-link" target="_blank"> Website</a>'}
				  
			   ];
	
	

    function initialize() {

      	if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(39.40224434029277, -111.3134765625), 4);
		
		
		GEvent.addListener(map, 'zoomstart', function() {
														 
    		//alert(map.getCenter());
  		});
		
       
		
		var mapControl = new GMapTypeControl();
		map.addControl(mapControl);
		map.addControl(new GLargeMapControl());
		map.enableScrollWheelZoom();
		//map.removeOverlay(); 
		
         
		/*for(i in addresses){
		   
			var address  = "";  
		 	address = addresses[i];
		 
		    geocoder = new GClientGeocoder();
		    if (geocoder) {
				
        		geocoder.getLatLng(address,function(point) {
            							if (!point) {
              								alert(address + " not found");
            								} else {
             // map.setCenter(point, 13);
			
              									var marker = new GMarker(point);
			  
			  									GEvent.addListener(marker, 'click', function() {
  
  													marker.openInfoWindowHtml(address);
			  									});
              		
												map.addOverlay(marker);

              // As this is user-generated content, we display it as
              // text rather than HTML to reduce XSS vulnerabilities.
             // marker.openInfoWindow(document.createTextNode(address));
            									}
          								}
        );
      }
		 }

      }*/
   
	addressCount = 0;
	function getAddress(address){
		
		 geocoder = new GClientGeocoder();
		  if (geocoder){
			  
			  geocoder.getLatLng(address,function(point){
					
					if (!point){
						//alert(address + " not found ");
					}else{
						
						var marker = new GMarker(point);
						
						GEvent.addListener(marker, 'dragend', function() {
                  
                     alert(geocodePosition(marker.getPosition()));
                 });
						
						var info = addresses[addressCount].info;
			  
			  			GEvent.addListener(marker, 'click', function() {
  
  								marker.openInfoWindowHtml(info);
			  			});
              			
						map.addOverlay(marker);
						
						
					}
					
					addressCount++;
					if(addressCount<addresses.length)
					getAddress(addresses[addressCount].address);
					
			  });
		  }
	}
	
	getAddress(addresses[addressCount].address);
	
	}
	}
<!--end google map-->

<!--lightbox-->

$(document).ready(function(){
$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'facebook',slideshow:2000, autoplay_slideshow: false});
$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000});

$("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
changepicturecallback: function(){ initialize(); }
});

$("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
custom_markup: '<div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
changepicturecallback: function(){ _bsap.exec(); }
});
});
<!--end lightbox-->

/*document.write("<script type='text/javascript' src='js/jquery.min.js'></script>");*/
document.write("<script type='text/javascript' src='js/dropdown/jquery.hoverIntent.minified.js'></script>");
document.write("<script type='text/javascript' src='js/dropdown/jquery.dcmegamenu.1.2.js'></script>");
document.write("<script type='text/javascript' src='js/expand.js'></script>");

document.write("<script type='text/javascript' src='js/jquery_002.js'></script>");
document.write("<script type='text/javascript' src='js/lightbox/jquery.prettyPhoto.js'></script>");
