function goToPage(page) {window.location = page;} /****** FAQ Item Highlighting ******/ function HighlightFAQItem(link) { $("#FAQList > li").removeClass("active"); link.parentNode.className = "active"; } /****** ScreenShotGallery functions ******/ var ScreenShotGalleryCurrentIndex = 0; //current index of scroller var ScreenShotGalleryItemCount; //total number of thumbnails in collection var ScreenShotGalleryDisplayCount = 3; //the number of thumbnails onscreen at one time var ScreenShotGalleryScrollIncrement = 75; //distance to move the scroller on each scroll increment var ScreenShotGalleryItems; //list of urls for screen shot display //var ScreenShotGalleryZoomImages; //list of urls for zoomed screen shot display //relay function to keep html insulated from javascript library implementation function ScreenShotGalleryLoad() { jQuery(ScreenShotGalleryInit); } function ScreenShotGalleryInit() { $("#SSGNext").bind("click", ScreenShotGalleryNext); $("#SSGPrevious").bind("click", ScreenShotGalleryPrevious); //$("#SSGRestore").bind("click", ScreenShotGalleryHome); ScreenShotGalleryItemCount = $("#SSGScroll > *").length; $("#SSGScroll > a").lightBox({ imageLoading: '/app_themes/spritesoftware/components/lightbox/lightbox-ico-loading.gif', imageBtnClose: '/app_themes/spritesoftware/components/lightbox/lightbox-btn-close.gif', imageBtnPrev: '/app_themes/spritesoftware/components/lightbox/lightbox-btn-prev.gif', imageBtnNext: '/app_themes/spritesoftware/components/lightbox/lightbox-btn-next.gif' }); $("#SSGScroll > a").bind("click", ScreenShotGalleryThumbnailClick); } function ScreenShotGalleryNext() { if (ScreenShotGalleryCurrentIndex < ScreenShotGalleryItemCount - ScreenShotGalleryDisplayCount) { ScreenShotGalleryCurrentIndex++; ScreenShotGalleryScroll(); } return false; } function ScreenShotGalleryPrevious() { if (ScreenShotGalleryCurrentIndex != 0) { ScreenShotGalleryCurrentIndex--; ScreenShotGalleryScroll(); } return false; } function ScreenShotGalleryScroll() { var position = "-" + ScreenShotGalleryScrollIncrement * ScreenShotGalleryCurrentIndex + "px"; $("#SSGScroll").animate({ left: position }, 200, "swing"); } function ScreenShotGalleryThumbnailClick() { $("#SSGScroll > a.active").removeAttr("class"); this.className = "active"; if (ScreenShotGalleryItems) { var item = ScreenShotGalleryItems[$("#SSGScroll > a").index(this)]; // $("#SSGScreenShotContainer > img").attr("src", item.medium); // $("#SSGScreenShotContainer > a").attr("href", item.zoom); // $("#SSGScreenShotContainer > a").attr("title", item.title); // $("#SSGNavigation > span").text(item.title); } return false; } function DisplayFeedback() { // var tab_options = {} // tab_options.placement = "left"; // left, right, bottom, hidden // tab_options.color = "#222"; // hex (#FF0000) or color (red) // GSFN.feedback('http://getsatisfaction.com/spritemobile/feedback/topics/new?display=overlay&style=question', tab_options); GSFN.show(); // var content = '