/*
Copyright (c) 2009 SymfoniP / CRM technik Limited
V1.1  Stacks symSlider Solo Nav Scroller Automated - now with cicular motion as standard
*/
jQuery.fn.resizeImage=function(a,b){if(this.is("img")){lWidth=this.width();lHeight=this.height();if(b*lWidth/lHeight>a){lHeight=Math.round(lHeight*a/lWidth);lWidth=a}else{lWidth=Math.round(lWidth*b/lHeight);lHeight=b}wPad=Math.round((a-lWidth)/2);hPad=Math.round((b-lHeight)/2);this.width(lWidth).height(lHeight);this.css({paddingLeft:wPad,paddingRight:wPad,paddingTop:hPad,paddingBottom:hPad})}return this};jQuery.noConflict();jQuery(document).ready(function(c){var a={tWidth:100,tHeight:75,circ:false,mwheel:true,Width:450,Height:300,rlPadding:90,tbPadding:50};if(typeof sliOpts=="object"){a=c.extend({},a,sliOpts)}c(".scrollable").width(a.Width+2*a.rlPadding);var b=0;c("div.symimagegrab div.centered_image img").each(function(){if(c(this).parent().is("a")){c(this).parent().attr("id","symsoloa"+b);c(this).resizeImage(a.tWidth,a.tHeight).attr("id","symsolo"+b).appendTo("div.items")}else{c(this).resizeImage(a.tWidth,a.tHeight).appendTo("div.items")}b++});c("div.scrollable").scrollable({size:Math.floor((a.Width+2*a.rlPadding)/128),hoverClass:"hover"});if(a.mwheel){c("div.scrollable").mousewheel()}if(a.circ){c("div.scrollable").circular()}c(".items img").click(function(){if(isNaN(parseInt(c(this).attr("id").substr(7)))){return true}imgNum=parseInt(c(this).attr("id").substr(7));window.document.location=c("#symsoloa"+imgNum).attr("href")})});