/**
 * Content blocks 
 *
 * Copyright: (c)2007 CK Web Technologies
 * Author:    Chris Knowles <chris.knowles@ckweb.com.au>
 * Version:   $Id: Content.js 22 2007-11-13 04:31:39Z Chris $
 */

var Content = function()
{
    this.intro =
        "<h2>Please do one of the following...</h2>";
    
    this.signup =
        "<div id='signup'><h2>New Users</h2><form action='signup' method='post' id='signupForm' onsubmit='return false;'><div class='field'><label for='signupEmail'>Email</label><input type='text' id='signupEmail' /></div><div class='field'><label for='playlistName'>Playlist Name</label><input type='text' id='playlistName' /></div><div class='field'><label for='signupPassword'>Password</label><input type='password' id='signupPassword' /></div><div class='field'><label for='signupChkPassword'>Confirm Password</label><input type='password' id='signupChkPassword' /></div><div class='field'><input type='submit' id='signupButton' value='Signup &raquo;' class='but' /></div></form></div>";
    
    this.login =
        "<div id='login'><h2>Login</h2><form action='login' method='post' id='loginForm' onsubmit='return false;'><div class='field'><label for='loginEmail'>Email</label><input type='text' id='loginEmail' /></div><div class='field'><label for='loginPassword'>Password</label><input type='password' id='loginPassword' /></div><div class='field'><input type='submit' id='loginButton' value='Login &raquo;' class='but' /></div></form><p><a href='send_password/'  id='pwdLink'>Forgotten password &raquo;</a></p></div>";
    
    this.forgottenPassword =
        "<div id='login'><h2>Forgotten password</h2><form action='send_password/' method='post' id='forgottenPasswordForm' onsubmit='return false;'><div class='field'><label for='loginEmail'>Email</label><input type='text' id='loginEmail' /></div><div class='field'><input type='submit' id='pwdButton' value='Send Password &raquo;' class='but' /></div><p><a href='login/' id='loginLink'>Back to login &raquo;</a></p></form></div><div id='return'><h2>Cancel and go back to the playlist...</h2><br /><div id='saveLater' class='but'>Cancel &raquo;</div></div><p class='disclaimer'><br /><br /><strong>Please Note:</strong> we do not use your email address for anything other than to help you save your playlist and retrieve it later!</p>";
    
    this.saveLater =
        "<div id='return'><h2>Cancel and go back to the playlist...</h2><br /><div id='saveLater' class='but'>Cancel &raquo;</div></div>";
    
    this.disclaimer =
        "<p class='disclaimer'><br /><br /><strong>Please Note:</strong> we do not use your email address for anything other than to help you save your playlist and retrieve it later!</p>";
        
    this.all =
        this.signup + this.login + this.saveLater + this.disclaimer;
    
    this.loginOnly =
        this.login + this.saveLater + this.disclaimer;
        
    this.songlistIntro = 
        "<h2>Welcome to the Mobydisc playlist builder!</h2><ul><li>Search for songs</li><li>Select songlists from the menu</li><li>Listen to a 10 second snippet of each song</li><li>Add songs to your playlist</li><li>Save your playlist</li><li>Come back later, login and continue building your playlist</li><li>Print your playlist and bring it along on the day!</li></ul><h2>System Requirements</h2><ul><li><strong>Music Player:</strong> you must allow the browser to load it's default media player to listen to samples (in Internet Explorer, say yes when it asks you to allow the Active X control)</li><li><strong>Scripting</strong> Your browser must have Javascript enabled</li></ul>";
        
    this.playlistIntro = 
        "<h2>Already saved a playlist?</h2><p><a id='introLogin' class='button'>Login &raquo;</a> <a id='introPwd' class='button'>Forgotten password &raquo;</a></p><h2>New User?</h2><p>Start building a playlist and when you click the save button you will be asked to create an account. Then your playlist will be saved and you can log back in later to continue building it.</p><h2>Help!</h2><p>If you have problems, please contact <a href='mailto:playlist@ckweb.com.au'>playlist@ckweb.com.au</a> with specific details of what you were doing when the problem occurred</p>";
        
    this.confirmOverride = 
        "<div class='confirm'><h2>You have started a new playlist but you have previously saved one</h2><form id='confirmOverride' method='post' onsubmit='return false;'><div class='field'><input type='submit' id='savedList' value='Use the SAVED playlist &raquo;' class='but' /></div><div class='field'><input type='submit' id='newList' value='Use the NEW playlist &raquo;' class='but' /></div></form></div>";
        
    this.exitedUnsaved = 
        "<div class='confirm'><h2>You previously left the page without saving.<br />We have your last saved list and a backed up version of the list as it was when you exited.</h2><form id='exitedUnsaved' method='post' onsubmit='return false;'><div class='field'><input type='submit' id='exitSavedList' value='Use the last SAVED playlist &raquo;' class='but' /></div><div class='field'><input type='submit' id='exitBackedUpList' value='Use the last BACKED UP playlist &raquo;' class='but' /></div></form></div>";
        
    this.logoutSave = 
        "<div class='confirm'><h2>Save playlist updates before logging out?</h2><form id='logoutSave' method='post' onsubmit='return false;'><div class='field'><input type='submit' id='saveList' value='Save updates &raquo;' class='but' /></div><div class='field'><input type='submit' id='ignoreList' value='Ignore updates &raquo;' class='but' /></div></form></div>";

};
