﻿var globalso = "";
var globalswfpath = "flash/swf/";
var globalswfversion = "9";

sIFR.replaceElement(named({sSelector:".chicken", sFlashSrc:"flash/swf/sifr_chickenbasket.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"", sHoverColor:"#0b5a82", sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=2"}));

function enlarge(flv, title)
{
	window.open("fullscreen.aspx?flv=" + flv + "&title=" + title, "recipe", "width=1000, height=650, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes");
}

function ReplaceGridHeaders()
{

$(document).ready(function(){
    $('.gridHeader').flash(
        { 
            src: '/kitchen/flash/swf/sifr_chickenbasket.swf', 
            wmode : 'transparent'

            
            /*
            flashvars: { 
                css: [
                    '* { color: #000000;}',
                    'a { color: #0099CC; text-decoration: none; }',
                    'a:hover { text-decoration: underline; }'
                ].join(' ')
            }*/
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = $(this.firstChild).children('a').height();
            htmlOptions.width = $(this.firstChild).children('a').width();
            htmlOptions.flashvars.w = $(this.firstChild).children('a').width();
            htmlOptions.flashvars.h = $(this.firstChild).children('a').height();
            htmlOptions.flashvars.offsetTop = 2;

            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
});

}




