/* =========================================================
// jquery.xhibit.js
// Datum: 2008-05-29
// Firm: Xplore.net
// Autor: Robin Gorry
// Mail: robin@xplore.net
// ========================================================= */
jQuery(function($)
{
$('.swapLink').click(function(){ //add onClick function
var imgAlt = this.alt; //get the href so we can break it up and get the image path
var imgHref = this.href; //get the href so we can break it up and get the image path
var imgArr = imgHref.split('=');
var imgSrc = imgArr[1].split('&');
$.get("/snippets/xhibit/getImages.php",
{xhibit_id: imgArr[2], image_path: imgSrc[0], pass: 'getImg'},
function(data)
{
var rtnArr = data.split('#');
if(rtnArr[2] != 0) //if the image is set to have link then add it
{
var rtnLink = "";
var rtnEndLink = "";
}else{
var rtnLink = '';
var rtnEndLink = '';
}
$('#headSwap').html(rtnLink+""+rtnEndLink+"
"+rtnArr[1]+"
"); }); return false; }) jQuery('a[rel*=facebox]').facebox(); var twoHeight = $("#insideColTwo").height(); $("#subNav").height(twoHeight - 22); });