function show_ad_created()
{
var overlay = new Overlay('overlay_container');
overlay._set_content_placeholder('
Your Ad Was Created!
Once we review and approve it, your stats and tweets will start to display.
While you\'re waiting, why don\'t you invite a few of your friends to experience Twitter Sparq so you have some other people to chat about it with.
And, while we\'re not saying inviting others will bump you up the approval queue, we\'re also not saying it won\'t.
', 'top');
overlay._add_button_placeholder('Share the Experience', function() { this.obj._close(); });
overlay._spawn();
}
function adjust_cost_per_tweet(object)
{
if (object.checked == true) {
direction = 'down';
} else {
direction = 'up';
}
if (direction == 'up') {
document.getElementById('cost_per_tweet').value = '1 million, billion dollars :)';
} else if (direction == 'down') {
document.getElementById('cost_per_tweet').value = '$0';
}
}
function show_tweet_prefix_help()
{
var overlay = new Overlay('overlay_container');
overlay._set_content_placeholder(' The tweet prefix provides you with the opportunity to guide user tweets.
Examples:
This example prefills the entire tweet.
Ad Text: Movie X opens tomorrow. Tweet to alert your friends that you\'re going!
Tweet Prefix: Movie X is opening, and I\'m going! RT if you\'re coming!
This example prefills a very open ended tweet.
Ad Text: Movie X opens tomorrow. What do you think about it?
Tweet Prefix: Movie X is opening, and I think it\'s going to be ...
Your Link:
To include your link in the tweet prefix, type {SHORT_URL} and we\'ll insert it automatically.
Tweet Prefix: Movie X {SHORT_URL} opens tomorrow. Tweet to alert your friends that you\'re going!
If you do not include a {SHORT_URL}, we will automatically include one for you. But we recommend you insert it yourself.
', 'top');
overlay._add_button_placeholder('close', function() { this.obj._close(); });
overlay._spawn();
}
function show_tou_dialog()
{
var overlay = new Overlay('overlay_container');
overlay._set_content_placeholder(' If you\'re so inclined, you can read the laundry list of terms here.
For your convenience, here is a summary.
» The service is currently free. This is so we can screw up here and there without being financially liable for much, or rather, anything.
» Our ads come without warranty, and some assembly is required.
» Stuff may break. We\'ll do our best to fix it. Though, we make no guarantees regarding how good our best will actually be.
» We reserve the right to not run your ads or stop running one that is running, and then interrogate you to figure out how you ran it in the first place.
» We may block you for any number of reasons, including some we probably haven\'t thought of yet. Please do not innovate along these lines.
', 'top');
overlay._add_button_placeholder('close', function() { this.obj._close(); });
overlay._spawn();
}
function show_create_ad_help()
{
var overlay = new Overlay('overlay_container');
overlay._set_content_placeholder(' You are about to create an ad. It will run on twitter sites and look something like this:
Each ad drives clicks and tweets.
Ad Label: An ID you give the ad for the purpose of identification. No one will see this.
Ad Title: The header, or "Pepsi" in the ad above.
Ad Link: Your landing page URL.
Ad Text: The body of the ad.
Ad Keywords: A list of keywords that will be used to target your ad. For the time being, keywords are used to enhance the relevancy of ads we show users, as opposed to excluding the ad from being seen by people who don\'t match the keyword.
Tweet Prefix: The text that will be pre-poulated when the user choses to tweet. Your link will automatically be embedded at the end of the prefix, so do not enter a link in your prefix. If you want your link to be somewhere other than at the end of the prefix, you can type {SHORT_URL} where you want it.
', 'top');
overlay._add_button_placeholder('start now', function() { this.obj._close(); });
overlay._spawn();
}
function show_create_ad_welcome()
{
var overlay = new Overlay('overlay_container');
overlay._set_content_placeholder(' Welcome to Twitter Sparq!
You are about to create your first ad. It will look something like this.
Each ad drives clicks and tweets (which in turn drive more clicks).
However, users do NOT get paid to tweet. They opt-in in a transparent, non-automated fashion.
In short, we spark authentic tweets and conversations around whatever topic you desire.
If you get confused when creating your ad, check out the ad creation guide to the right.
', 'top');
overlay._add_button_placeholder('start now', function() { this.obj._close(); });
overlay._spawn();
}
function set_ad_example(type)
{
var title;
var body;
var prefix;
if (type == 'basic') {
document.getElementById('fake_title_link').innerHTML = 'Your Ad Title goes here.';
document.getElementById('fake_ad_text').innerHTML = 'Your Ad Text will go here and should ideally prompt the user to tweet something.';
document.getElementById('fake_tweet_box').innerHTML = 'Your Tweet Prefix will pre-populate the twitter.com or client status box when the user choses to tweet. The user will complete the tweet and send it to all their followers.';
} else if (type == 'event') {
document.getElementById('fake_title_link').innerHTML = 'Ad Title: Event X';
document.getElementById('fake_ad_text').innerHTML = 'Ad Text: Are you planning to attend Event X? Tweet now to RSVP and see who else is going!';
document.getElementById('fake_tweet_box').innerHTML = 'Tweet Prefix: I just RSVP\'d to Event X! RT this message to RSVP too!';
} else if (type == 'question') {
document.getElementById('fake_title_link').innerHTML = 'Ad Title: What do you think about Y?';
document.getElementById('fake_ad_text').innerHTML = 'Ad Text: Good? Bad? Indifferent? Tweet your thoughts!';
document.getElementById('fake_tweet_box').innerHTML = 'Tweet Prefix: I think Y is ...';
} else if (type == 'gift') {
document.getElementById('fake_title_link').innerHTML = 'Ad Title: Gift Z';
document.getElementById('fake_ad_text').innerHTML = 'Ad Text: Show your followers you appreciate them and send a virtual Z! Tweet now to send!';
document.getElementById('fake_tweet_box').innerHTML = 'Tweet Prefix: I just sent you a Z! Check it out at {SHORT_URL}! ';
} else if (type == 'movie') {
document.getElementById('fake_title_link').innerHTML = 'Ad Title: Movie X Is Opening!';
document.getElementById('fake_ad_text').innerHTML = 'Ad Text: Movie X is opening this weekend. If you\'re going, share why you\'re excited about the movie!';
document.getElementById('fake_tweet_box').innerHTML = 'Tweet Prefix: I\'m excited about movie X because ...';
} else if (type == 'cause') {
document.getElementById('fake_title_link').innerHTML = 'Ad Title: Help Support Y';
document.getElementById('fake_ad_text').innerHTML = 'Ad Text: If 1,000 people tweet their support for Y, $1,000 will be donated the cause!';
document.getElementById('fake_tweet_box').innerHTML = 'Tweet Prefix: I support cause Y, and you should too because ...';
} else if (type == 'preview') {
document.getElementById('fake_title_link').innerHTML = document.getElementById('ad_header').value;
document.getElementById('fake_ad_text').innerHTML = document.getElementById('ad_prompt').value;
document.getElementById('fake_tweet_box').innerHTML = document.getElementById('tweet_prefix').value;
}
}