jQuery(document).ready(function() {
	$("a[rel=gallery_group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' of ' + currentArray.length + ' ' + title + '</span>';
		}
	});
});

function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}

function roll(img_name, img_src)
   {
   document[img_name].src = img_src;
   }

// FAQ
function switchid(id){hideallids();showdiv(id)}function hideallids(){for(var i=0;i<ids.length;i++){hidediv(ids[i])}}function hidediv(id){idHeader="header"+id;id="txtbody"+id;if(document.getElementById){document.getElementById(id).style.display='none';document.getElementById(idHeader).className="faqheader"}else{if(document.layers){document.id.display='none';document.idHeader.className="faqheader"}else{document.all.id.style.display='none';document.all.idHeader.className="faqheader"}}}function showdiv(id){idHeader="header"+id;id="txtbody"+id;if(document.getElementById){document.getElementById(id).style.display='block';document.getElementById(idHeader).className="headerOn"}else{if(document.layers){document.id.display='block';document.idHeader.className="headerOn"}else{document.all.id.style.display='block';document.all.idHeader.className="headerOn"}}}
