
pbx.cupid={reloadHeader:function(sessionCode)
{if(typeof(sessionCode)=='undefined')
{sessionCode=pbx.babel.session.code;}
if(typeof(sessionCode)=='undefined')
{return;}
$.ajax
({type:"POST",url:'/includes/ajax/nav/header',data:{'_layout':'one_col','_custom_menu':'none','_custom_nav_links':'extra','_custom_nav_basket_links':'chat','_custom_nav_logo':'small'},dataType:"html",success:function(result)
{$('#pbx_header').replaceWith(result);pbx.babel.init();pbx.ajaxContentInit('#pbx_header');var session_key=pbx.babel.get_session_key();document.cookie=session_key+'='+sessionCode+';path=/;domain='+location.host;}});},showSandO:function()
{$('div.pbx_cupid').find('embed').attr('height','0px');$('div.pbx_cupid').find('object').height(0);$('div.pbx_sando').removeClass('pbx_hidden').show().children('a').media({width:params.width||975,height:params.height,autoplay:true,attrs:{id:'SandO',name:'SandO'},params:{wmode:'',AllowScriptAccess:'always',allowFullScreen:true},flashvars:pbx.obj.flash.sando_vars,caption:false});},hideSandO:function()
{$('div.pbx_sando').hide();$('div.pbx_cupid').find('embed').attr('height',params.height+'px');$('div.pbx_cupid').find('object').height(params.height);},forceFlashPlayerVersion:function(version,swfcontainer)
{$(document).ready(function()
{var popupCallback=function()
{if(!swfobject.hasFlashPlayerVersion(version))
{$(swfcontainer).remove();var dialog=pbx.dialog.open({component:"/includes/dialog/flash_version_error",title:pbx.obj.tokens["90938"],width:450,height:250,params:{version:version}});}
else
{$(swfcontainer).removeClass("pbx_hidden");}};if(typeof swfobject=="undefined")
{$.include("/assets/js/lib/swfobject.js",popupCallback);}
else
{popupCallback();}});}};