/*
JS Loaded: 
0.plugins+lightbox_0.5+jquery.lightbox-0.5.min_custom.js
1.base+js+flash.jquery.js
2.pop+default+js+actions+home.js
*/



 // Including ./plugins/lightbox_0.5/jquery.lightbox-0.5.min_custom.js 

/**
 * jQuery lightBox plugin
 * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
 * and adapted to me for use like a plugin from jQuery.
 * @name jquery-lightbox-0.5.js
 * @author Leandro Vieira Pinho - http://leandrovieira.com
 * @version 0.5
 * @date April 11, 2008
 * @category jQuery plugin
 * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
 * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
 */
(function($){$.fn.lightBox=function(settings){settings=jQuery.extend({overlayBgColor:'#000',overlayOpacity:0.8,fixedNavigation:false,imageLoading:'http://static.mofos.com/cdn_x/plugins/lightbox_0.5/lightbox-ico-loading.gif',imageBtnPrev:'http://static.mofos.com/cdn_x/plugins/lightbox_0.5/lightbox-btn-prev.gif',imageBtnNext:'http://static.mofos.com/cdn_x/plugins/lightbox_0.5/lightbox-btn-next.gif',imageBtnClose:'http://static.mofos.com/cdn_x/plugins/lightbox_0.5/lightbox-btn-close.gif',imageBlank:'http://static.mofos.com/cdn_x/plugins/lightbox_0.5/lightbox-blank.gif',containerBorderSize:10,containerResizeSpeed:400,txtImage:'Image',txtOf:'of',keyToClose:'c',keyToPrev:'p',keyToNext:'n',imageArray:[],activeImage:0},settings);var jQueryMatchedObj=this;function _initialize(){_start(this,jQueryMatchedObj);return false;}
function _start(objClicked,jQueryMatchedObj){$('embed, object, select').css({'visibility':'hidden'});_set_interface();settings.imageArray.length=0;settings.activeImage=0;if(jQueryMatchedObj.length==1){settings.imageArray.push(new Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));}else{for(var i=0;i<jQueryMatchedObj.length;i++){settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title')));}}
while(settings.imageArray[settings.activeImage][0]!=objClicked.getAttribute('href')){settings.activeImage++;}
_set_image_to_view();}
function _set_interface(){$('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+settings.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+settings.imageBtnClose+'"></a></div></div></div></div>');var arrPageSizes=___getPageSize();$('#jquery-overlay').css({backgroundColor:settings.overlayBgColor,opacity:settings.overlayOpacity,width:arrPageSizes[0],height:arrPageSizes[1]}).fadeIn();var arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(5),left:arrPageScroll[0]}).show();$('#jquery-overlay,#jquery-lightbox').click(function(){_finish();});$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function(){_finish();return false;});$(window).resize(function(){var arrPageSizes=___getPageSize();$('#jquery-overlay').css({width:arrPageSizes[0],height:arrPageSizes[1]});var arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]});});}
function _set_image_to_view(){$('#lightbox-loading').show();if(settings.fixedNavigation){$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}else{$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}
var objImagePreloader=new Image();objImagePreloader.onload=function(){$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);_resize_container_image_box(objImagePreloader.width,objImagePreloader.height);objImagePreloader.onload=function(){};};objImagePreloader.src=settings.imageArray[settings.activeImage][0];};function _resize_container_image_box(intImageWidth,intImageHeight){var intCurrentWidth=$('#lightbox-container-image-box').width();var intCurrentHeight=$('#lightbox-container-image-box').height();var intWidth=(intImageWidth+(settings.containerBorderSize*2));var intHeight=(intImageHeight+(settings.containerBorderSize*2));var intDiffW=intCurrentWidth-intWidth;var intDiffH=intCurrentHeight-intHeight;$('#lightbox-container-image-box').animate({width:intWidth,height:intHeight},settings.containerResizeSpeed,function(){_show_image();});if((intDiffW==0)&&(intDiffH==0)){if($.browser.msie){___pause(250);}else{___pause(100);}}
$('#lightbox-container-image-data-box').css({width:intImageWidth});$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({height:intImageHeight+(settings.containerBorderSize*2)});};function _show_image(){$('#lightbox-loading').hide();$('#lightbox-image').fadeIn(function(){_show_image_data();_set_navigation();});_preload_neighbor_images();};function _show_image_data(){$('#lightbox-container-image-data-box').slideDown('fast');$('#lightbox-image-details-caption').hide();if(settings.imageArray[settings.activeImage][1]){$('#lightbox-image-details-caption').html(settings.imageArray[settings.activeImage][1]).show();}
if(settings.imageArray.length>1){$('#lightbox-image-details-currentNumber').html(settings.txtImage+' '+(settings.activeImage+1)+' '+settings.txtOf+' '+settings.imageArray.length).show();}}
function _set_navigation(){$('#lightbox-nav').show();$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({'background':'transparent url('+settings.imageBlank+') no-repeat'});if(settings.activeImage!=0){if(settings.fixedNavigation){$('#lightbox-nav-btnPrev').css({'background':'url('+settings.imageBtnPrev+') left 15% no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}else{$('#lightbox-nav-btnPrev').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnPrev+') left 15% no-repeat'});},function(){$(this).css({'background':'transparent url('+settings.imageBlank+') no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}}
if(settings.activeImage!=(settings.imageArray.length-1)){if(settings.fixedNavigation){$('#lightbox-nav-btnNext').css({'background':'url('+settings.imageBtnNext+') right 15% no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}else{$('#lightbox-nav-btnNext').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnNext+') right 15% no-repeat'});},function(){$(this).css({'background':'transparent url('+settings.imageBlank+') no-repeat'});}).show().bind('click',function(){if((settings.activeImage+1)==(settings.imageArray.length-1)){window.location="/tour/join/";}
settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}}_enable_keyboard_navigation();}
function _enable_keyboard_navigation(){$(document).keydown(function(objEvent){_keyboard_action(objEvent);});}
function _disable_keyboard_navigation(){$(document).unbind();}
function _keyboard_action(objEvent){if(objEvent==null){keycode=event.keyCode;escapeKey=27;}else{keycode=objEvent.keyCode;escapeKey=objEvent.DOM_VK_ESCAPE;}
key=String.fromCharCode(keycode).toLowerCase();if((key==settings.keyToClose)||(key=='x')||(keycode==escapeKey)){_finish();}
if((key==settings.keyToPrev)||(keycode==37)){if(settings.activeImage!=0){settings.activeImage=settings.activeImage-1;_set_image_to_view();_disable_keyboard_navigation();}}
if((key==settings.keyToNext)||(keycode==39)){if(settings.activeImage!=(settings.imageArray.length-1)){settings.activeImage=settings.activeImage+1;_set_image_to_view();_disable_keyboard_navigation();}}}
function _preload_neighbor_images(){if((settings.imageArray.length-1)>settings.activeImage){objNext=new Image();objNext.src=settings.imageArray[settings.activeImage+1][0];}
if(settings.activeImage>0){objPrev=new Image();objPrev.src=settings.imageArray[settings.activeImage-1][0];}}
function _finish(){$('#jquery-lightbox').remove();$('#jquery-overlay').fadeOut(function(){$('#jquery-overlay').remove();});$('embed, object, select').css({'visibility':'visible'});}
function ___getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;};function ___getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;};function ___pause(ms){var date=new Date();curDate=null;do{var curDate=new Date();}
while(curDate-date<ms);};return this.unbind('click').click(_initialize);};})(jQuery);

 // Including ./base/js/flash.jquery.js 

/**
 * Flash (http://jquery.lukelutman.com/plugins/flash)
 * A jQuery plugin for embedding Flash movies.
 * 
 * Version 1.0
 * November 9th, 2006
 *
 * Copyright (c) 2006 Luke Lutman (http://www.lukelutman.com)
 * Dual licensed under the MIT and GPL licenses.
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.opensource.org/licenses/gpl-license.php
 * 
 * Inspired by:
 * SWFObject (http://blog.deconcept.com/swfobject/)
 * UFO (http://www.bobbyvandersluis.com/ufo/)
 * sIFR (http://www.mikeindustries.com/sifr/)
 * 
 * IMPORTANT: 
 * The packed version of jQuery breaks ActiveX control
 * activation in Internet Explorer. Use JSMin to minifiy
 * jQuery (see: http://jquery.lukelutman.com/plugins/flash#activex).
 *
 **/ 
;(function(){
    
var $$;

/**
 * 
 * @desc Replace matching elements with a flash movie.
 * @author Luke Lutman
 * @version 1.0.1
 *
 * @name flash
 * @param Hash htmlOptions Options for the embed/object tag.
 * @param Hash pluginOptions Options for detecting/updating the Flash plugin (optional).
 * @param Function replace Custom block called for each matched element if flash is installed (optional).
 * @param Function update Custom block called for each matched if flash isn't installed (optional).
 * @type jQuery
 *
 * @cat plugins/flash
 * 
 * @example $('#hello').flash({ src: 'hello.swf' });
 * @desc Embed a Flash movie.
 *
 * @example $('#hello').flash({ src: 'hello.swf' }, { version: 8 });
 * @desc Embed a Flash 8 movie.
 *
 * @example $('#hello').flash({ src: 'hello.swf' }, { expressInstall: true });
 * @desc Embed a Flash movie using Express Install if flash isn't installed.
 *
 * @example $('#hello').flash({ src: 'hello.swf' }, { update: false });
 * @desc Embed a Flash movie, don't show an update message if Flash isn't installed.
 *
**/
$$ = jQuery.fn.flash = function(htmlOptions, pluginOptions, replace, update) {
    
    // Set the default block.
    var block = replace || $$.replace;
    
    // Merge the default and passed plugin options.
    pluginOptions = $$.copy($$.pluginOptions, pluginOptions);
    
    // Detect Flash.
    if(!$$.hasFlash(pluginOptions.version)) {
        // Use Express Install (if specified and Flash plugin 6,0,65 or higher is installed).
        if(pluginOptions.expressInstall && $$.hasFlash(6,0,65)) {
            // Add the necessary flashvars (merged later).
            var expressInstallOptions = {
                flashvars: {      
                    MMredirectURL: location,
                    MMplayerType: 'PlugIn',
                    MMdoctitle: jQuery('title').text() 
                }                    
            };
        // Ask the user to update (if specified).
        } else if (pluginOptions.update) {
            // Change the block to insert the update message instead of the flash movie.
            block = update || $$.update;
        // Fail
        } else {
            // The required version of flash isn't installed.
            // Express Install is turned off, or flash 6,0,65 isn't installed.
            // Update is turned off.
            // Return without doing anything.
            return this;
        }
    }
    
    // Merge the default, express install and passed html options.
    htmlOptions = $$.copy($$.htmlOptions, expressInstallOptions, htmlOptions);
    
    // Invoke $block (with a copy of the merged html options) for each element.
    return this.each(function(){
        block.call(this, $$.copy(htmlOptions));
    });
    
};
/**
 *
 * @name flash.copy
 * @desc Copy an arbitrary number of objects into a new object.
 * @type Object
 * 
 * @example $$.copy({ foo: 1 }, { bar: 2 });
 * @result { foo: 1, bar: 2 };
 *
**/
$$.copy = function() {
    var options = {}, flashvars = {};
    for(var i = 0; i < arguments.length; i++) {
        var arg = arguments[i];
        if(arg == undefined) continue;
        jQuery.extend(options, arg);
        // don't clobber one flash vars object with another
        // merge them instead
        if(arg.flashvars == undefined) continue;
        jQuery.extend(flashvars, arg.flashvars);
    }
    options.flashvars = flashvars;
    return options;
};
/*
 * @name flash.hasFlash
 * @desc Check if a specific version of the Flash plugin is installed
 * @type Boolean
 *
**/
$$.hasFlash = function() {
    // look for a flag in the query string to bypass flash detection
    if(/hasFlash\=true/.test(location)) return true;
    if(/hasFlash\=false/.test(location)) return false;
    var pv = $$.hasFlash.playerVersion().match(/\d+/g);
    var rv = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String($$.pluginOptions.version).match(/\d+/g);
    for(var i = 0; i < 3; i++) {
        pv[i] = parseInt(pv[i] || 0);
        rv[i] = parseInt(rv[i] || 0);
        // player is less than required
        if(pv[i] < rv[i]) return false;
        // player is greater than required
        if(pv[i] > rv[i]) return true;
    }
    // major version, minor version and revision match exactly
    return true;
};
/**
 *
 * @name flash.hasFlash.playerVersion
 * @desc Get the version of the installed Flash plugin.
 * @type String
 *
**/
$$.hasFlash.playerVersion = function() {
    // ie
    try {
        try {
            // avoid fp6 minor version lookup issues
            // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
            var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
            try { axo.AllowScriptAccess = 'always';    } 
            catch(e) { return '6,0,0'; }                
        } catch(e) {}
        return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
    // other browsers
    } catch(e) {
        try {
            if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
                return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
            }
        } catch(e) {}        
    }
    return '0,0,0';
};
/**
 *
 * @name flash.htmlOptions
 * @desc The default set of options for the object or embed tag.
 *
**/
$$.htmlOptions = {
    height: 240,
    flashvars: {},
    pluginspage: 'http://www.adobe.com/go/getflashplayer',
    src: '#',
    type: 'application/x-shockwave-flash',
    width: 320        
};
/**
 *
 * @name flash.pluginOptions
 * @desc The default set of options for checking/updating the flash Plugin.
 *
**/
$$.pluginOptions = {
    expressInstall: false,
    update: true,
    version: '6.0.65'
};
/**
 *
 * @name flash.replace
 * @desc The default method for replacing an element with a Flash movie.
 *
**/
$$.replace = function(htmlOptions) {
    this.innerHTML = '<div class="alt">'+this.innerHTML+'</div>';
    jQuery(this)
        .addClass('flash-replaced')
        .prepend($$.transform(htmlOptions));
};
/**
 *
 * @name flash.update
 * @desc The default method for replacing an element with an update message.
 *
**/
$$.update = function(htmlOptions) {
    /*var url = String(location).split('?');
    url.splice(1,0,'?hasFlash=true&');
    url = url.join('');
    var msg = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';
    this.innerHTML = '<span class="alt">'+this.innerHTML+'</span>';
    jQuery(this)
        .addClass('flash-update')
        .prepend(msg);*/
        
        if($$.hasFlash(6,0,65))
        {
            $$.originalHTMLOption = htmlOptions;  
            var m_MMplayerType = "PlugIn";
            if(jQuery.browser.msie) m_MMplayerType = "ActiveX";
            jQuery(this).flash(
                    {
                        src: "http://scripts.brazzers.com/tours/bzn/tour3/player/playerProductInstall.swf",
                        'width': htmlOptions.width,
                        'height': htmlOptions.height,  
                        allowfullscreen: false,        
                        allowscriptaccess: "always",
                        allownetworkaccess: "always",            
                        flashvars: {      
                            MMredirectURL: location,
                            MMplayerType: m_MMplayerType,
                            MMdoctitle: jQuery('title').text() 
                        }                   
                    },
                    {
                     version:"6.0.65"
                    }    
                );
        }
};
/**
 *
 * @desc Convert a hash of html options to a string of attributes, using Function.apply(). 
 * @example toAttributeString.apply(htmlOptions)
 * @result foo="bar" foo="bar"
 *
**/
function toAttributeString() {
    var s = '';
    for(var key in this)
        if(typeof this[key] != 'function')
            s += key+'="'+this[key]+'" ';
    return s;        
};
/**
 *
 * @desc Convert a hash of flashvars to a url-encoded string, using Function.apply(). 
 * @example toFlashvarsString.apply(flashvarsObject)
 * @result foo=bar&foo=bar
 *
**/
function toFlashvarsString() {
    var s = '';
    for(var key in this)
        if(typeof this[key] != 'function')
            s += key+'='+encodeURIComponent(this[key])+'&';
    return s.replace(/&$/, '');        
};
/**
 *
 * @name flash.transform
 * @desc Transform a set of html options into an embed tag.
 * @type String 
 *
 * @example $$.transform(htmlOptions)
 * @result <embed src="foo.swf" ... />
 *
 * Note: The embed tag is NOT standards-compliant, but it 
 * works in all current browsers. flash.transform can be
 * overwritten with a custom function to generate more 
 * standards-compliant markup.
 *
**/
$$.transform = function(htmlOptions) {
    htmlOptions.toString = toAttributeString;
    if(htmlOptions.flashvars) htmlOptions.flashvars.toString = toFlashvarsString;
    return '<embed ' + String(htmlOptions) + '/>';        
};

/**
 *
 * Flash Player 9 Fix (http://blog.deconcept.com/2006/07/28/swfobject-143-released/)
 *
**/
if (window.attachEvent) {
    window.attachEvent("onbeforeunload", function(){
        __flash_unloadHandler = function() {};
        __flash_savedUnloadHandler = function() {};
    });
}
    
})();


 // Including ./pop/default/js/actions/home.js 

$(document).ready(function(){
	//lightbox
	$('a.lightbox').lightBox();

	//play the video sample
	$('div.preview_container a').click(function(e){
		e.preventDefault();
		$('div.preview_container a.play_button, div.preview_container img').css("display","none");
		var container_link = $(this).parent();
		container_link.find('div.lv_trailer_box').css({
			"visibility":"visible",
			"display":"inline"
		});
		trailer_id = container_link.attr('id').replace('latest_trailer_','');
		showPlayer(trailer_id);

		//tracking the play
		var video_identifier = container_link.attr('yahootrackid');
		YWATracker.setCF(2, video_identifier);
		YWATracker.setAction("03");
		YWATracker.submit_action();

	});

	// play button
	$('div.play_button').css('display','none');

	$('div.pic_preview02').hover(function(){
		$(this).find('div.play_button').css('display','inline-block');
	}, function(){
		$(this).find('div.play_button').css('display','none');
	});

	//play the video sample
	$('div.video_sample_block_v2').each(function(){
		var video_sample_box = $(this);
		var found = video_sample_box.find('span.status');
		if (found.length != 0)
		{
			video_sample_box.find('img.big_sample_img').click(function(e){
				e.preventDefault();
				var big_sample_img 	= $(this);
				var trailer_id 		= big_sample_img.parent().attr('id').replace('video_sample_img_id_','');
				play_video_sample(trailer_id);
				video_sample_box.find('a.play_button').css("display","none");

				//tracking the play
				var video_identifier = play_button.attr('yahootrackid');
				YWATracker.setCF(2, video_identifier);
				YWATracker.setAction("03");
				YWATracker.submit_action();
			});
			video_sample_box.find('a.play_button').click(function(e){
				e.preventDefault();
				var play_button 	= $(this);
				var trailer_id 		= play_button.attr('id').replace('video_sample_id_','');
				play_video_sample(trailer_id);
				play_button.css("display","none");

				//tracking the play
				var video_identifier = play_button.attr('yahootrackid');
				YWATracker.setCF(2, video_identifier);
				YWATracker.setAction("03");
				YWATracker.submit_action();
			});
		}
	});
});
function showPlayer(trailer_id)
{
	var force_join = 0;
	if(force_join == 1)
	{
		force_join = 1;
	}
	var	showinfo 			= 0;
	var autoplay			= 1;
	var type 				= 'trailer';

	var videooptions_url 	= "/default/scene_info/?scene_id=" + trailer_id + "&type=" + type + "&autoplay=" + autoplay + "&show_info=0&img=975x548";
	if(force_join == 1)
	{
		videooptions_url 	= "/default/scene_info/?scene_id=" + trailer_id + "&type=" + type + "&autoplay=" + autoplay + "&show_info=0&img=975x548&force=1";
	}
	var player 				= $('#lv_trailer_box_' + trailer_id);
	player.html("");
	player.flash(
	{
	    src: "http://static.mofos.com/player/wide_tour_player.swf",
	    'width': 699,
	    'height': 393,
	    wmode: "transparent",
	    align: "middlel",
	    allowfullscreen:true,
	    allowscriptaccess: "always",
	    allownetworkaccess: "always",
	    flashvars: {
	        options: videooptions_url
	    }
	},
	{version:"10.0.22"}
	);
}
function play_video_sample(trailer_id){
	player_identity = true;

	var	showinfo 			= 0;
	var autoplay			= 1;
	var type 				= 'trailer';
	var force_join 			= 0;
	var videooptions_url 	= "/default/scene_info/?scene_id=" + trailer_id + "&type=" + type + "&autoplay=" + autoplay + "&show_info=0&img=975x548";
	if(force_join == 1)
	{
		videooptions_url 	= "/default/scene_info/?scene_id=" + trailer_id + "&type=" + type + "&autoplay=" + autoplay + "&show_info=0&img=975x548&force=1";
	}
	var player 		= $('#video_sample_trailer_' + trailer_id);
	player.css({
		'display':'inline'
	});
	player.html("");
	player.flash(
	{
	    src: "http://static.mofos.com/player/wide_tour_player.swf",
	    'width': 459,
	    'height': 258,
	    wmode: "transparent",
	    align: "middlel",
	    allowfullscreen:true,
	    allowscriptaccess: "always",
	    allownetworkaccess: "always",
	    flashvars: {
	        options: videooptions_url
	    }
	},
	{version:"10.0.22"}
	);
}
function videoFinish(){
	$('div.lv_trailer_box').each(function(){
		var lv_trailer_box 			= $(this);
		var parent_lv_trailer_box 	= $(this).parent();
		lv_trailer_box.empty();
		lv_trailer_box.css({
			"visibility":"hidden",
			"display":"none"
		});
		lv_trailer_box.removeClass('flash-replaced');
		parent_lv_trailer_box.find('a.play_button').css("display","inline");
		parent_lv_trailer_box.find('img').css("display","inline");
	});

	$('div.video_sample_block_v2').each(function(){
		var video_sample_box = $(this);
		var player_container = video_sample_box.find('div.trailer_placement');
		player_container.empty();
		player_container.css("display","none");
		player_container.removeClass('flash-replaced');
		video_sample_box.find('a.play_button').css("display","inline");
	});
}
function videostart(){

}