function quoted(_1){
return (_1!=null)?"\""+_1+"\"":"\"\"";
}
function bb_encodeURIComponent(_2){
if(typeof (encodeURIComponent)=="function"){
return encodeURIComponent(_2);
}else{
return escape(_2);
}
}
function bb_append_url(_3,_4){
if(_4){
window.bb_ad_url+="&"+_3+"="+_4;
}
}
function bb_append_url_esc(_5,_6){
if(_6){
bb_append_url(_5,bb_encodeURIComponent(_6));
}
}
function bb_track(d,_8,te){
var _a=_8.indexOf("?");
var _b="http://srch.biggerboat.com/lib/imgs/trk.gif?event=";
_b+=te;
if(_a!=-1&&_a+1<_8.length){
_b+="&"+_8.substring(_a+1);
}
var _c="<img height=\"1\" width=\"1\" border=\"0\" "+"src="+quoted(_b)+" />";
d.write(_c);
}
function bb_get_bdata(w,_e){
var _f=w.screen;
var _10=navigator.javaEnabled();
var tz=-_e.getTimezoneOffset();
if(_f){
bb_append_url("b_h",_f.height);
bb_append_url("b_w",_f.width);
bb_append_url("b_ah",_f.availHeight);
bb_append_url("b_aw",_f.availWidth);
bb_append_url("b_cd",_f.colorDepth);
}
bb_append_url("b_tz",tz);
bb_append_url("b_his",history.length);
bb_append_url("b_java",_10);
if(navigator.plugins){
bb_append_url("b_nplug",navigator.plugins.length);
}
if(navigator.mimeTypes){
bb_append_url("b_nmime",navigator.mimeTypes.length);
}
}
function bb_write_ondemand(d,url,fr){
if(typeof (BB_Counter)=="undefined"){
BB_Counter=1;
}
var _15=BB_Counter++;
var id=fr+"_"+_15;
if(d.getElementById(id)==null){
d.write("<div id=\""+id+"\" style=\"width:auto;\"></div>");
}
var _17=function(){
if(typeof (BB_OnDemand)=="function"){
var _18="BB_OnDemand_"+_15;
var obj=(window[_18]=new BB_OnDemand());
obj.setBinding(_18);
obj.setId(id);
obj.load(url.replace(/(.*\?)(.*)/,"$1method=M"+_15+"&$2"));
}else{
setTimeout(_17,100);
}
};
if(typeof (BB_OnDemand)=="undefined"){
var el=d.createElement("SCRIPT");
el.charset="utf-8";
el.src="http://srch.biggerboat.com/api/bb_ondemand.js";
el.type="text/javascript";
d.getElementsByTagName("HEAD")[0].appendChild(el);
}
_17();
}
function bb_write_iframe(w,d,url,_1e){
url=url.substring(0,1000);
url=url.replace(/%\w?$/,"");
var h=w.bb_ad_frame_height||210;
if(_1e.toLowerCase()=="html_ifr"){
d.write("<iframe"+" name=\"bb_ads_frame\""+" id=\"bb_ads_frame\""+" width="+quoted(w.bb_ad_frame_width)+" height="+quoted(h)+" frameborder="+quoted(w.bb_ad_frameborder)+" src="+quoted(url)+" marginwidth=\"0\""+" marginheight=\"0\""+" vspace=\"0\""+" hspace=\"0\""+" allowtransparency=\"true\""+" scrolling=\"no\"  style=\"height:"+h+"px;\"");
bb_track(d,url,"noiframe");
d.write("</iframe>");
}else{
if(_1e.toLowerCase()=="html_div"){
bb_write_ondemand(d,url,"bb_ads_frame");
}
}
}
function xlate_cat(cat){
if(cat=="Popular"){
cat="popular_music";
}else{
if(cat=="Classical"){
cat="classical_music";
}else{
if(cat=="Movies"){
cat="movies";
}
}
}
return cat;
}
function bb_show_ad(){
var w=window;
var d=document;
var _23=new Date();
var _24=w.bb_ad_format;
w.onerror=w.bb_org_error_handler;
w.bb_ad_url=(typeof bb_ad_query!="undefined")?"http://srch.biggerboat.com/search/ad/svc?":"http://srch.biggerboat.com/ad/svc?";
if(typeof bb_client!="undefined"){
bb_ad_user=bb_client;
}
w.bb_ad_url+="user="+escape(bb_ad_user);
if(typeof bb_ad_token!="undefined"){
bb_append_url("token",bb_ad_token);
}
if(typeof bb_ad_type!="undefined"){
bb_append_url("adtype",bb_ad_type.substr(0,3));
}
if(typeof bb_ad_color!="undefined"){
bb_append_url("color",bb_ad_color);
}
if(typeof bb_ad_size!="undefined"){
bb_append_url("size",bb_ad_size);
}
if(typeof bb_ad_cat!="undefined"){
bb_ad_category=bb_ad_cat;
}
if(typeof bb_ad_category!="undefined"){
bb_append_url("category",xlate_cat(bb_ad_category));
}
if(typeof bb_ad_genre!="undefined"){
if(bb_ad_genre.indexOf("%")<0){
bb_ad_genre=bb_encodeURIComponent(bb_ad_genre);
}
bb_append_url("genre",bb_ad_genre);
}
if(typeof bb_ad_id!="undefined"){
if(bb_ad_id.indexOf("%")<0){
bb_ad_id=bb_encodeURIComponent(bb_ad_id);
}
bb_append_url("amgid",bb_ad_id);
}
if(typeof bb_ad_query!="undefined"){
if(bb_ad_query.indexOf("%")<0){
bb_ad_query=bb_encodeURIComponent(bb_ad_query);
}
bb_append_url("query",bb_ad_query);
}
if(typeof bb_ad_uuid!="undefined"){
bb_append_url("uuid",bb_ad_uuid);
}
if(typeof bb_ad_yob!="undefined"){
bb_append_url("yob",bb_ad_yob);
}
if(typeof bb_ad_yob=="undefine"&&typeof bb_ad_age!="undefined"){
bb_append_url("age",bb_ad_age);
}
if(typeof bb_ad_gender!="undefined"){
bb_append_url("gender",bb_ad_gender);
}
bb_ad_slots=typeof bb_ad_slots!="undefined"?bb_ad_slots:1;
bb_append_url("slots",bb_ad_slots);
bb_append_url("art","52");
if(w.bb_fr_type){
bb_ad_frame_type=(w.bb_fr_type=="ajx")?"html_div":"html_ifr";
}
if(w.bb_ad_output_format){
bb_ad_frame_type=w.bb_ad_output_format;
}else{
bb_ad_frame_type="html_div";
}
bb_append_url("output",bb_ad_frame_type);
bb_append_url("dt",_23.getTime());
bb_append_url("lmt",w.bb_last_modified_time);
bb_append_url_esc("url",w.bb_ad_page_url);
bb_append_url_esc("ref",w.bb_ad_referrer_url);
bb_get_bdata(w,_23);
bb_write_iframe(w,d,w.bb_ad_url,bb_ad_frame_type);
bb_reset(w);
}
function bb_error_handler(_25,url,_27){
bb_show_ad();
return true;
}
function bb_in_frame(w,d){
var de=d.documentElement;
if(w.top.location==d.location){
return false;
}
if(w.bb_ad_frame_width&&w.bb_ad_frame_height){
var wd=1;
var ht=1;
if(w.innerHeight){
wd=w.innerWidth;
ht=w.innerHeight;
}else{
if(de&&de.clientHeight){
wd=de.clientWidth;
ht=de.clientHeight;
}else{
if(d.body){
wd=d.body.clientWidth;
ht=d.body.clientHeight;
}
}
}
if(ht>2*w.bb_ad_frame_height||wd>2*w.bb_ad_frame_width){
return false;
}
}
return true;
}
function bb_reset(w){
var nv=null;
w.bb_ad_frameborder=nv;
w.bb_ad_format=nv;
bb_ad_output=nv;
bb_ad_output_format=nv;
bb_ad_id=nv;
bb_ad_cat=nv;
bb_ad_category=nv;
bb_ad_type=nv;
w.bb_ad_page_url=nv;
w.bb_ad_page_location=nv;
w.bb_ad_referrer_url=nv;
}
function bb_init(){
var w=window;
var d=document;
var _31=d.location;
var _32=d.referrer;
var nv=null;
w.bb_org_error_handler=w.onerror;
w.onerror=bb_error_handler;
if(w.bb_ad_frameborder==nv){
w.bb_ad_frameborder=0;
}
if(w.bb_ad_output==nv){
w.bb_ad_output="html";
}
if(w.bb_ad_format==nv&&w.bb_ad_output=="html"){
w.bb_ad_format=w.bb_ad_frame_width+"x"+w.bb_ad_frame_height;
}
if(w.bb_ad_page_url==nv){
w.bb_ad_page_url=_32;
if(!bb_in_frame(w,d)){
w.bb_ad_page_url=_31;
w.bb_ad_last_modified_time=Date.parse(d.lastModified)/1000;
w.bb_ad_referrer_url=_32;
}
}else{
w.bb_ad_page_location=_32;
if(!bb_in_frame(w,d)){
w.bb_ad_page_location=_31;
}
}
}
bb_init();
bb_show_ad();

