var current_select = ''; function SelectPopUp(tar_obj) { if (EnableMenus) { var DropDownType = tar_obj.id.replace(/_select/, ""); var drop_contents = document.getElementById(DropDownType+'_drop'); if(drop_contents.style.display == 'block') { drop_contents.style.display = 'none'; current_select = ""; IFrame_UnMask(DropDownType+'_drop'); } else { bodyclick() drop_contents.style.display = 'block'; drop_contents.style.width = 'auto'; drop_contents.style.left = findPosX(tar_obj)+'px'; drop_contents.style.top = findPosY(tar_obj)+ tar_obj.offsetHeight-1 +'px'; IFrame_Mask(DropDownType+'_drop'); current_select = DropDownType+'_drop'; } } } function bodyclick() { if(document.getElementById(current_select) && document.getElementById(current_select).style.display == 'block') { document.getElementById(current_select).style.display = 'none'; IFrame_UnMask(current_select); } } function close_pseudo_select() { this.style.display='none'; } function PseudoSelect(name, default_option, part) { if (part == 1) { document.write('
'); document.write('
  
'); document.write('
'+default_option+'
'); document.write('
'); } else { document.write('
'); document.write(''+default_option+'
'); } } function PseudoSelectSearch(name, default_option, part) { if (part == 1) { document.write('
'); document.write('
  
'); document.write('
'+default_option+'
'); document.write('
'); } else { document.write('
'); document.write(''+default_option+'
'); } } function AddOption(link, val, type) { var url_path=""; if (type=="item") url_path = 'bike-shop'; else if (type=="team") url_path = 'team'; else if (type=="player") url_path = 'player'; url_path = 'http://www.biking.com/' + url_path; //if(val != '' && type != "item") // return ''+link+''; //else if(val != '') return ''+link+''; else return ''+link+''; }