var GalleryId = 0;

function create_gallery(id) {
    GalleryId = id;
}

function StartGallery($) {
    var sSummaryQuery = "/mod_cms/images/gallery_html.aspx?id=" + GalleryId;
    //load results
    $('div#flash-gallery-container').load(sSummaryQuery);
    return false;
}

jQuery.noConflict();
jQuery(document).ready(function($) {
    StartGallery($);
    //GaPushEvents($);
    if(!($.browser.msie && 
	($.browser.version == 6.0 
	|| $.browser.version == 7.0 
	|| $.browser.version == 8.0)))
    {
	StartGlossary($);
    }
    StartPubmed($);
    
    /*$('#container').easyTabs({ defaultContent: 1 });*/

    $(function() {
        $.unobtrusivelib();
        prettyPrint();
        $("div.example-1").carousel();
        $("div.example-2").carousel({ direction: "vertical" });
        $("div.example-3").carousel({ loop: true });
        $("div.example-4").carousel({ dispItems: 3 });
        $("div.example-5").carousel({ pagination: true });
        $("div.example-7").carousel({ autoSlide: true, loop: true });
        $("div.example-8").carousel({ autoSlide: true, loop: true, autoSlideInterval: 5000 });
        $("div.example-9").carousel({ autoSlide: true, loop: true, autoSlideInterval: 5000, delayAutoSlide: 2000 });
        $("div.example-10").carousel({ effect: "fade" });
        $("div.example-11").carousel({ slideEasing: "easeOutBounce" });
        $("div.example-12").carousel({ animSpeed: "slow" });
        $("#examples").simpletabs({ noresize: true });
    });

});



/*
function create_gallery(id)
{

var str				= "";
var requiredMajorVersion 	= 8;
var requiredMinorVersion 	= 0;
var requiredRevision 		= 0;

var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if (hasReqestedVersion)
{

str = AC_FL_RunContent(
			
"src", "/mod_product/design/media/gallery.swf?o="+id,
"width", "100%",
"height", "444",
"align", "middle",
"id", "mov",
"quality", "high",
"name", "flash_gallery",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"wmode", "transparent",
'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
"pluginspage", "http://www.macromedia.com/go/getflashplayer"
				
);



} else {

str = 'You need Flash player 8 for this bit!';

}

document.getElementById('flash-gallery-container').innerHTML = str;

}
*/
