( function (){ var params_arr = new Array(); /* You MUST specify one these before loading this script: * yn_identifier, * yn_crunchbase_permalink, * yn_organization_guid, * yn_360_identifier */ if (typeof yn_identifier != 'undefined') { params_arr.push('younoodle_identifier=' + yn_identifier); } else if (typeof yn_crunchbase_permalink != 'undefined'){ params_arr.push('crunchbase_permalink=' + crunchbase_permalink); } else if (typeof yn_organization_guid != 'undefined'){ params_arr.push('organization_guid=' + yn_organization_guid); } else if (typeof yn_360_identifier != 'undefined'){ params_arr.push('360_identifier=' + yn_360_identifier); } else { alert("An identifier MUST be specified"); } if (typeof yn_widget_api_key != 'undefined') { params_arr.push('key=' + yn_widget_api_key); } else { params_arr.push('key=public'); } if (typeof yn_widget_internal != 'undefined') { params_arr.push('internal=' + (yn_widget_internal == true ? '1' : '0')); } else { params_arr.push('internal=0'); } if (typeof yn_clean_widget != 'undefined') { params_arr.push('clean=' + (yn_clean_widget == true ? '1' : '0')); } else { params_arr.push('clean=0'); } var height = 150; if (typeof yn_widget_height != 'undefined') { height = yn_widget_height; } params_arr.push('height=' + height); var frame_height; if (typeof yn_clean_widget != 'undefined' && yn_clean_widget == true) { frame_height = height - 40; } else { frame_height = height; } var width = 240; if (typeof yn_widget_width != 'undefined') { width = yn_widget_width; } params_arr.push('width=' + width); if (typeof yn_widget_theme != 'undefined') { params_arr.push('theme=' + yn_widget_theme); } else { params_arr.push('theme=default'); } var params_str = params_arr.join('&'); var widget_url = '/widget/score/startup/html?' + params_str; var html = ''; document.write(html); } )();