<!-- Hide script from older browsers

	function poptk(url) 
	{
        	newWin = window.open(url,"win",'toolbar=0,titlebar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=300,height=50');
       	 	newWin.focus();
	}
		$(document).ready(function(){
		$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 10000, true); 
		$("#featured").hover(  
			function() {  
				$("#featured").tabs("rotate",0,true);  
			},  
			function() {  
				$("#featured").tabs("rotate",10000,true);
			}  
		);  
		}); 


	$(document).ready(function(){
  		$(":text").labelify();
		});

	$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a#fancybox1").fancybox();

			$("a#fancybox5").fancybox();

			$("a[rel=fancybox_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

         		$(".fancyvideo").click(function() {
                 	$.fancybox({
                  		'padding'             : 0,
                  		'autoScale'   : false,
                  		'transitionIn'        : 'none',
                  		'transitionOut'       : 'none',
				'title'               : this.title,
                  		'width'               : 640,
				'height'              : 510,
                  		'href'                : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
				'type'                : 'swf',    // <--add a comma here
                  		'swf'                 : {'allowfullscreen':'true', 'wmode':'transparent'} // <-- flashvars here
                  		});
                 		return false;
			}); 
		});
// end hiding contents -->

