// Gallery tooltip plugin
/*function armtip(selector, selectname, atrribute){
jQuery(selector).each(function(i){
			if (jQuery(this).attr(atrribute) != ""){
				
			jQuery("#left-col").append("<div class='"+selectname+"' id='"+selectname+i+"'><div><img class='tooltipimg' src='"+jQuery(this).attr(atrribute)+"' alt='' width='100%' height='100%' /></div><span><img src='files/imgtip.png' alt='' /></span></div>");
			
			jQuery(this).mouseover(function(e){
					jQuery("#"+selectname+i).css({display:"none", visibility:"visible"}).fadeIn(400);
			}).mousemove(function(e){
					jQuery("#"+selectname+i).css({left:e.pageX+35, top:e.pageY+35});
			}).mouseout(function(){
					jQuery("#"+selectname+i).css({visibility:"hidden"});				  
			});
			
			
			}
		});
 	}*/

//Prevent conflicts with other  js frameworks
var $jq = jQuery.noConflict();

// Media > Audio [ td altering for songlist ]
$jq(document).ready(function() {	
							 $jq('table tr.audio_base:odd').addClass('odd');
});

// Media > Resources ( highlighting on mouse hover )
$jq(document).ready(function(){
	$jq('tr.audio_1').hover(
	   function(){
			$(this).addClass('hovered');
		},
		function(){
			$(this).removeClass('hovered');
		});
// Media > Video ( highlighting on mouse hover )		
	$jq('tr.video_1').hover(
	   function(){
			$(this).addClass('hovered_v');
		},
		function(){
			$(this).removeClass('hovered_v');
		});
});

// All contact form tooltip 
$jq(document).ready(function(){		
	$jq('.link a').tooltip({
						track: true, delay: 0, showURL: false, opacity: 1, fixPNG: true, fade:200, left:-10
						});
});

// Gallery tooltip (holder,cssname off tooltip,attribute)
/*$jq(document).ready(function(){
   armtip('.thumbnail-bg a, .thumbnail a', 'tooltip_image', 'href');
   });*/

/*$jq(document).ready(function(){   
   $jq(".thumbnail > a").fancybox({ 'zoomSpeedIn': 100, 'zoomSpeedOut': 300, 'overlayShow': true }); 
   });*/

function play_video(file,title)
{
  var popup=window.open('','name','status=0,height=342,width=608,resizable=0');
  
  popup.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
  popup.document.write('<html><head><title>'+ title +'</title>\n');
  popup.document.write('<link rel="stylesheet" href="/files/css/popup/style.css">\n');
  popup.document.write('<script src="/files/tv/swfobject.js" type="text/javascript"/></script>\n');
  popup.document.write('</head>\n<body>\n');
  popup.document.write('<div id="bigsetvideo"><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></div>');
  popup.document.write('\n<script type="text/javascript">\n var flashvars = {};\n var params = {};\n params.quality = "best";\n params.allowfullscreen = "true";\n params.allowscriptaccess = "sameDomain";\n params.wmode = "opaque";\n var attributes = {};\n swfobject.embedSWF("/files/tv/bigsetvideo.swf", "bigsetvideo", "608", "342", "9.0.0", "/files/tv/expressInstall.swf", flashvars, params, attributes);\n</script>\n</div>');
  popup.document.write('</body>\n</html>');
  popup.document.close();
}
