function activateTiltViewer(){
  jQuery('#tiltviewer').each(function(){
    // Note, this is using the newer swfobject format, so the parameter list is a bit different to the simpleviewer examples
    var flash = swfobject.embedSWF("/assets/templates/personadesign/TiltViewer.swf", 
                                   'tiltviewer', 
                                   "100%", 
                                   "100%", 
                                   "9.0.0", 
                                   '', 
                                   {
                                      "useFlickr": "false", 
                                      // "zoomedInDistance": "2000",
                                      "zoomedOutDistance": "5300",
                                      "xmlURL": "/assets/templates/personadesign/gallery.xml",
                                      "useReloadButton": "false",
                                      "columns": "5",
                                      "rows": "3", 
                                      "maxJPGSize":"1000",
                                      "fontName":"Trebuchet MS",
                                      "linkLabel": "Click here for the case study",
                                      "linkTextColor":"0xEF3CA6",
                                      "linkBkgndColor":"0xFFFFFF",
                                      "frameColor": "0xeeeeee",
                                      "backColor": "0xffffff",
                                      "bkgndInnerColor": "0xffffff",
                                      "bkgndOuterColor": "0xffffff",
                                      "tiltAmountIn": "30",
                                      "tiltAmountOut": "30",
                                      "linkTarget": "_self",
                                      "titleFontSize":"30",
                                      "descriptionFontSize":"20"
                                    },
                                   {
                                     "allowFullScreen": "true"
                                   });
  });
}



jQuery(function(){ 
  activateTiltViewer();
});