var $j = jQuery.noConflict();
$j(document).ready(function(){
			    $j("#navigation ul").addClass("nav superfish");
            	$j(".nav")
            	.superfish({
            		delay		: 250,
                    animation   : { opacity:"show",height:"show"}
            	})
            	.find(">li:has(ul)") /* .find(">li[ul]") in jQuery less than v1.2 */
            		.mouseover(function(){
            			$j("ul", this).bgIframe({opacity:false});
            		})
            		.find("a")
            			.focus(function(){
            				$j("ul", $j(".nav>li:has(ul)")).bgIframe({opacity:false});
            				/* $j("ul", $j(".nav>li[ul]")).bgIframe({opacity:false});
            				   in jQuery less than v1.2*/
            			});
            $j('.gang ul li a').cluetip({
                local:      true, 
                width:      400,
                cursor:     'pointer'
                
                });
            $j('.gang ul li a').click(disableLink);
            $j(".gang ul li div").append("<div style='clear: both'></div>");
            });

function disableLink() {
    return false;
}
function showBio1() {
    $j(this).next("p").toggle();
    return false;
}
//Video playback modal function
function showVideo() {
    a = $j(this);
    arrayOfLink = $j(this).attr('href');
    videoArray = arrayOfLink.split(".");
    var videoID = videoArray[0];    
    //ajax call for correct video
    var open=function(hash){ hash.w.fadeIn('normal').show(); };
    var close=function(hash) { hash.w.fadeOut('normal',function(){ hash.o.remove(); }); };
    $j('#videoBox').jqm({
        onShow: open,
      	onHide: close
    });
    $j.get(""+videoID+".html", function(response){
                 $j('#videoBox').html(response);
                 var videoText = $j('#videoBox').find('#'+videoID);
                 $j('#videoBox').html(videoText);
                 $j('#videoBox').prepend('<a href="#" id="closeWindow">Close</a>');
                 $j('#videoBox').jqmAddClose('#closeWindow');
                 $j("closeWindow").click(function () {
                  $j("#corazon").remove();
                 });
                 setTimeout("$j('#videoBox').jqmShow();",1);
          });
          return false;
}
