/* Text to flash*/
$(document).ready(function(){
 $('#nav h2').flash(
        { 
            src: 'jfr.swf', 
			wmode: 'transparent',
            flashvars: { 
                css: [
                    '* { color: #006699; }',
                    '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 = $alt.height();
            htmlOptions.width = $alt.width();
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
});

/* NAV HEIGHT */
$(document).ready(function(){
		if($("#nav").height() < 155){
			$("#nav").height("155px")
		}
						   })
/* flash */
$(document).ready(function(){
	$('#header').flash({
        src: '/images/header.swf',
		width: '100%',
    	height: 347,
		wmode: 'transparent',
		flashvars: { }

    });
	
    $('#logos1').flash({
        src: 'baner/baner.swf',
		width: 160,
    	height: 80,
		flashvars: { url: 'baner/baner.php?id=1' }

    });
	
	 $('#logos2').flash({
        src: 'baner/baner.swf',
		width: 160,
    	height: 80,
		flashvars: { url: 'baner/baner.php?id=2' }
    });
	 
	 $('#logos3').flash({
        src: 'baner/baner.swf',
		width: 160,
    	height: 80,
		flashvars: { url: 'baner/baner.php?id=3' }
    });
});





$(document).ready(function(){
// virtual tour						   
$("a.virtual").each(function(){
 url = this.href;							 
 $(this).parent().append("<iframe src='"+url+"' width='600px' height='450px' marginheight='0' frameborder='0'  scrolling='no'></iframe>");
 $(this).remove();
});

});


