var lang='en';

var thumbnails_dir='thumbnails';

var trans=new Array();

trans['loading']='Loading';
trans['orderby']='Order by';
trans['page']='Page';
trans['altversion.link']='http://www.lepuzzle.com/';
trans['altversion.text']='Version française';
trans['thematic_puzzles.page_prefix']='thematic-puzzles';
trans['topics.page_prefix']='themes';
trans['postcards.page_prefix']='postcards';
trans['your_puzzles.page_prefix']='your-puzzles';
trans['topics_puzzles.orderby']=new Array();
trans['topics_puzzles.orderby']['1']='date';
trans['topics_puzzles.orderby']['2']='title';
trans['topics_puzzles.orderby']['3']='votes';
trans['your_puzzles.orderby']=new Array();
trans['your_puzzles.orderby']['1']='date';
trans['your_puzzles.orderby']['2']='title';
trans['puzzles.play.prefix']='play';
trans['puzzles.player.fieldname']='player';
trans['puzzles.proposed_by']='proposed by';
trans['puzzles.votes']='votes';
trans['puzzles.dovote']='vote here';
trans['puzzles.vote']='vote';
trans['puzzles.scores']='scores';
trans['puzzles.picture']='picture';
trans['puzzles.credit']='credit';
trans['puzzles.topic']='theme';
trans['puzzles.noplayername']='Choose a player nickname to be able to record your score';
trans['puzzles.pieces']='pieces';
trans['puzzles.placed']='placed';
trans['puzzles.on']='on';
trans['puzzles.in']='in';
trans['topics.dir']='topics';
trans['topics.thumbnails_dir']='thumbnails';
trans['topic.unstressed']='topic';
trans['topics.listing']='themes';
trans['search.title']='Search for';
trans['search.mode.all']='With all the words';
trans['search.orderby']='Order by';
trans['create_puzzle.unstressed']='create-a-puzzle';
trans['activity.unstressed']='activity';
trans['players.unstressed']='players';
trans['topic.unstressed']='theme';
trans['other_games.page_prefix']='other-games';
trans['other_games.cryptext.page_prefix']='cryptext';
trans['other_games.pentamatch.page_prefix']='pentamatch';
trans['other_games.arkantis.page_prefix']='arkantis';
trans['forum.page_prefix']='forum';
trans['newsletter.page_prefix']='newsletter';
trans['postcards.send_as']='Send this puzzle<br />as a postcard';
trans['postcards.single']='postcard';
trans['postcards.new']='New';

function get_topic_url(session){
	if(session=='091225'){
		return 'http://advent-2009.jigsaw-puzzles.net/';
	}else if(session=='071222'){
		return '/advent2007/';
	}else if(session=='041224'){
		return '/advent2004/';
	}else if(session<'040825'){
		return 'http://www.lepuzzle.com/jpuzzles/themes/theme-'+session+'.html'
	}else if(session<'080310'){
		return '/jpuzzles/'+trans['topics.dir']+'/'+trans['topic.unstressed']+'-'+session+'.html';
	}else{
		return '/theme-'+session+'.html';
	}
}

function addFavorites(){
  if(document.all)
    window.external.AddFavorite('http://www.jigsaw-puzzles.net', 'Jigsaw-Puzzles.net - jigsaw puzzles online for free !');
  else
    alert('You can type CTRL + D to add this page to your bookmarks, or favorites.');
  return false;
}

function makeHomePage(obj){
  if(document.all && document.getElementById){
    obj.style.behavior='url(#default#homepage)';
    obj.setHomePage('http://www.jigsaw-puzzles.net');
  }else{
    alert('Sorry, this function is only available with Internet Explorer 5+');
  }
  return false;
}
