		var links = new Array();
        var slides = new Array();
		si = 0;
		count=4;
		
         links[0] = "http://daltileproducts.com/home.cfm?s=1";
        slides[0] = "images/vendorlogos/daltile.gif";
		
		links[1] = "http://www.mohawkflooring.com/product-gallery/gallery-ceramic.aspxp";
        slides[1] = "images/vendorlogos/mohawk.gif";
		
		links[2] = "http://www.shawfloors.com/ceramic-flooring/ceramic";
        slides[2] = "images/vendorlogos/shaw.gif";  
        
        links[3] = "http://www.armstrong.com/resflram/na/ceramics/en/us/";
        slides[3] = "images/vendorlogos/armstrong.gif";
		
		links[4] = "http://www.mannington.com/residential/porcelain/new.aspx?type=14";
        slides[4] = "images/vendorlogos/mannington.gif";

		links[5] = "http://daltileproducts.com/home.cfm?s=1";
        slides[5] = "images/vendorlogos/daltile.gif";
				
		if($("#floor_gallery").length>0){
var simpleGallery_navpanel={
	panel: {height:'45px', opacity:0.5, paddingTop:'5px', fontStyle:'bold 11px Verdana'}, //customize nav panel container
	images: [ $('#siteaddress').val() + '/images/left.gif', $('#siteaddress').val() + '/images/play.gif', $('#siteaddress').val() + '/images/right.gif', $('#siteaddress').val() + '/images/pause.gif'], //nav panel images (in that order)
	imageSpacing: {offsetTop:[-4, 0, -4], spacing:10}, //top offset of left, play, and right images, PLUS spacing between the 3 images
	slideduration: 600 //duration of slide up animation to reveal panel
}

var mygallery=new simpleGallery({
	wrapperid: "floor_gallery", //ID of main gallery container,
	dimensions: [248, 288], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		[$("#siteaddress").val() + "/gallery/tile/1.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/2.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/3.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/4.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/5.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/6.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/7.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/8.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/9.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""],
		[$("#siteaddress").val() + "/gallery/tile/10.jpg", "", "", ""],
		[$("#homename").val() + "/shopathome/ads/ad.jpg", "/f101ads", "_new", ""],
		[$("#homename").val() + "/shopathome/centerpiece.jpg", "/shopathome", "_new", ""]
	],
	autoplay: [true, 2500, 50], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	oninit:function(){ //event that fires when gallery has initialized/ ready to run
		//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
	},
	onslide:function(curslide, i){ //event that fires after each slide is shown
		//Keyword "this": references current gallery instance
		//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
		//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
	}
})	
}
