/******************************************************************************
 * Javascript Tarot                                                        *
 * by C. David Dent (c) 2008                                                  *
 * http://wildandbad.com:8181/tarot                                           *
 *                                                                            *
 * Partially based on the css Playing Card Javascript Card Objects            *
 * copyright 2001 Mike Hall                                                   *
 * Mike Hall http://www.brainjar.com for terms of use.                        *
 * Do not remove this notice.                                                 *
 ******************************************************************************/
 // These layouts are in the public domain or are copyright by their creator 
 // (where noted) only the CODING format of the layouts is covered by the 
 // GNU Licence
layouts['PLANETS'] = {
	code:'PLANETS',
	name:'Asteres Planetai (The Planets)',
	cards:[
		'Earth - This planetary position gives insight into the querent and his or her immediate situation.',
		'Moon -  Those things immediately surrounding or effecting the querent within close proximity.  This could be an individual or a spiritual subtext for the issue at hand',
		'Mars - This position represents those issues in adversity to the querent, opposing his or her position.  Possibly a person, a spiritual state, or a quality the querent is currently lacking in his or her current state of mind.',
		'Jupiter - The massive planet of Jupiter with its 63 moons represents achievement, gain and expansion.',
		'Saturn - The ringed planet Saturn represents judgement and an overall assesment of the your position. In some cases it may also represent a restriction on the your situation.',
		'Mercury - The fast moving Mercury gives insight into business and professional matters, business associates or acquaintances.',
		'Venus - Venus represents love and personal relationships. This position gives insight into matters of the heart and the your romantic present and future.',
		'The Sun - The Sun represents aspirations, fame and accomplishment.  This position gives insight into the overall goals and the success (or failure) of the your ambitions.'
	],
	positions:[
	   [1,2.6],[2,2.6],[0,2],[0,0.6],[3,2],[3,0.6],[1.5,0],[1.5,1.3]
	]
	//    [7]
	// [4]   [6]
	//    [8]   
	// [3]   [5]
	//  [1] [2]
};

layouts['TREE'] = {
	code:'TREE',
	name:'The Tree of Life',
	cards:[
	 'The Treetop - Aims and Ideals. What internal forces or desires are at work?  What overall issues affect these goals?',
	 'Upper Branches - Influence. What outside forces add a secondary influence to the situation? This position may reflect a person, spiritual state, or an area of endeavor.',
	 'Upper Branches - Nature. Additional information into the current forces affecting you.',
	 'The High Trunk - Unseen. A trait of, or influence on the situation which operates unseen.',
	 'The East Branch - The Present. These can be spiritual states, people or short term ambitions/setbacks.',
	 'The West Branch - The Future. Those forces that will come into play in the days ahead.',
	 'Lower Branches - Effects. What might bring to bear upon the circumstances? Or, perhaps, what forces should you avoid bringing?',
	 'Lower Branches - Surroundings.  Who in the immeidate vicinity will have influence?  What forces will come into play from those in proximity to you?',
	 'The Trunk - Hopes and Fears.  What could lead to victory?  What could lead to ruin?',
	 'The Root - The Core Outcome.  What will the final outcome of the situation be?  What is its ultimate message?  Its ultimate summation?  Or pehaps its warning?'
	],
	positions:[
	   [2,0],[3,0.5],[1,0.5],[2,1],[4,1],[0,1],[4,2],[0,2],[2,2],[2,3]
	]
	//       [1]
	//    [2]   [3]
	//[6]    [4]   [5]
	//[8]    [9]   [7]
   //      [10]
};

layouts['HORSESHOE'] = {
	code:'HORSESHOE',
	name:'5-Card Horseshoe',
	cards:[
		'Recent Past',
		'Present',
		'The Unexpected',
		'Near Future',
		'Further Future'
	],
	positions:[
	 [0,0],[.3,1],[1.3,1.5],[2.3,1],[2.6,0]
	]
// [1]         [5]
//    [2]   [4]
//       [3]
};
// Egg Spreads from Dragon's Moon
// http://tarotcards.wetpaint.com/page/Tarot+Spreads
layouts['EGG1'] = {
	code:'EGG1',
	name:'Project and Ideas EGG',
	cards:[
	  'Magician - The Creator/Builder',
	  'High Priestess - The Muse/Mother of Invention',
	  'Empress - Creative Thoughts',
	  'Emperor - Logical Thoughts',
	  'Hierophant - Logical Actions',
	  'Lovers - Creative Actions',
	  'Chariot - Project/ideas Potential'
	],
	positions:[
	 [0.4,3],[1.6,3],[0,2],[2,2],[0.3,1],[1.7,1],[1,0]
	]
//       [7]
//    [5]   [6]
//   [4]     [3]
//     [1] [2]
};
layouts['EGG2'] = {
	code:'EGG2',
	name:'Relationship EGG',
	cards:[
	  'Magician - Your past.',
	  'High Priestess - Your interest\u0027s past.',
	  'Empress - Emotions involved',
	  'Emperor - Thoughts involved',
	  'Hierophant - Structure of your relationship',
	  'Lovers - The connection you have',
	  'Chariot - The potential relationship'
	],
	positions:[
	 [0.4,3],[1.6,3],[0,2],[2,2],[0.3,1],[1.7,1],[1,0]
	]
//       [7]
//    [5]   [6]
//   [4]     [3]
//     [1] [2]
};
//http://www.iamonetarot.com
layouts['SPIRAL'] = {
	code: 'SPIRAL',
	name: 'The Spiral (copyright 2008 Maya Britan - I am One Tarot)',
	cards: [
		'1)Main Idea. The main reason for opening a reading and the most important subject at the moment. Also communication skills.',
		'2)Energy. The energy level and force at which the reading is spiritually generated by. Issues of spirituality and the creative force. Also family relations, especially to the mother figure. Obtain some clues to hidden secrets.',
		'3)Will. The most hidden wishes of the heart. Also one’s romantic status and related experiences.',
		'4)Present Action. The obvious reality or present situation. This house shows how the number 1 subject has been handled through present action.',
		'5)Lesson. A specific and important learning experience that is motivating other events in the reading. Issues that need to be accomplished and done with before taking the next step.',
		'6)Relationship. The nature of mating, coupling, and marriages, as happening to you or the person you are reading the cards for. Also participation in relationships, partnerships, or groups.',
		'7)Practice. Subjects that are in the process of development while one is still in the practice period of developing special skills. Also shows the overall level of male energy that is integrating with the subject.',
		'8)Career. The professional work and career related issues. Also a belief structure, religion, and social status.',
		'9)Advice. Important advice regarding the present situation. Also psychological issues that are dominating the reading as well as and the intelligence capacity of the one who is dealing with all this.',
		'10)Destiny. One’s destiny or the destination of the current subject or project. Also indicates a time-frame regarding future events which are being presented during a reading.',
		'11)Personality. Prevailing personal issues and character type in general and in regard to friends and dear ones. Also the social status of the subject within the immediate environment. Twin souls and mates may appear in this house.',
		'12)Help. Areas or issues that need assistance or help. Also shows dependencies and weak points by which one should be working on.',
		'13)Karma/Past. Past events as related to the current subject of the reading. May also show selected and correlated karmic events affecting the present, or perhaps be the cause of the present circumstance.',
		'14)Correction. Specific correcting action that is most required before taking any step forward. Otherwise, this house reveals the inner blue print structure and design of the subject matter.',
		'15)The Mind. Thoughts and opinions that operate in the mind only and thus are not necessarily real. Also, this is the state of mind that is going to lead to accordingly manifested events in the near future.',
		'16)Nature. One’s primal raw nature and the impact of free spirit. Also, a fixed behavior being demonstrated every time, when one is pushed against the wall.',
		'17)Talent. Special talents, gifts, and blessings given to each one or to the whole subject matter involved. Also, the type of communication or experience that is going on in the mind’s dream state.',
		'18)Repeated Pattern. Very important issues, situations, behaviors, and one’s overall predicted approach, as all of this is moving in cyclic repetition. Understanding this pattern is most important when predicting the nature of next future event.',
		'19)The Right Action. A confirmation of certain actions one is taking at the present. Also shows certain things that are happening regardless and beyond personal control at which are proven to be firm and correct in the long run. Indicates the most positive aspect of the whole reading.',
		'20)Self Knowledge, The relationship one have with thy own self, based on the depth of soul knowing and development of psychic awareness, insight, and intuition.',
		'21)Achievement. Past, present, and future achievements. Also, the level of self-fulfillment in regard to the person’s overall life experience. This house holds a clue for a wish to come true.',
		'22)Potential. The amount of raw potential that can be unfolded during one’s lifetime or in regard to a specific subject of concern. Also shows the faith of one.',
		'23)The Wonderer. This is a surprise card we put hidden right beneath the 22nd.  We look at this card only by the end of a reading in order to get a clue of what the next reading is going to be like. Otherwise, this house will show only that which one will have to re-do next time in order to overcome this current reading and its challenges.'
	],
	positions: [
		[3.5,1.5],[3.5,3.5],[2,2.5],[4,2],[5,2.5],[5.5,4],[3.5,4.5],[1.5,4],[1.5,1],[3.5,0.5],
		[5.5,1],[6,2.5],[6.5,5],[4,5],[0.5,5],[1,2.5],[0,2.5],[.5,.5],[3,0],[6.5,0.5],
		[7,2.5],[3,3],[3.5,2.5]
	]
// This is only a very close appoximation
//
//    [18]  [19][10]      [20]
//      [09]    [01][04][11]
//[17][16][03]  [23]  [05][12][21]
//      [08][22][02]    [06]
//    [15]      [07][14]  [13]
//
};
// http://www.byzant.com
// Calendar Spreads

// Raven's Spreads
//http://www.corax.com/tarot/index.html
layouts['NEWTON'] = {
	code:'NEWTON',
	name: "Newton Spread (copyright 1998-2008 Big Old Raven http://www.corax.com)",
	cards:[
		'First Law of Motion - The Inertia. The potential inside you that won\u0027t act up or get effective without another force or impulse that will bring it into activity.',
		'First Law of Motion - The moving force. That other force or impulse that will bring the existing power inside of you into action.',
		'Second Law of Motion - The Power. Your power, your best potential; or that what currently is the most weighty - good or bad.',
		'Second Law of Motion - The Mass. The raw massive precondition for the power of card 3 - you can take it as the "passive" part.',
		'Second Law of Motion - The Acceleration. Acting upon the "mass" to make the power of card 3 effective - you can take it as the "active" part.',
		'Third Law of Motion - Your Action (or force)',
		'Third Law of Motion - Direct Reaction (or opposing force) that your action provokes or activates.'
	],
	positions: [
	[0,0],[1,0],
	  [.5,1],  [1.75,1],[2.75,1],
	      [1,2],[2,2]
	]
};

layouts['4KNIGHTS'] = {
	code:'4KNIGHTS',
	name: "The Four Knights Defense (copyright 1998-2008 Big Old Raven http://www.corax.com)",
	cards:[
		'Your first move, your first step towards the other person (or towards the situation).',
		'The first move of the other one, the response from the other person to your first move, or the effect that your move has to the situation.',
		'Your first "knight" i.e. a stronger power that you set up for your second move.',
		'The other one\u0027s first "knight" that comes out in direct response to your first knight.',
		'Your second "knight", your back-up and your reserve potential. It also can stand for the feelings you keep back or hide from being exposed too early.',
		'Logically, is the other one\u0027s second "knight" and reserve potential, and might also represent the feelings that the other one keeps behind.'
	],
	positions:[
		[1.5,2.6],[1.5,0],[3,2],[0,.6],[0,2],[3,.6]
	]

//                2
//              /   \
//         4---/-----\---6
//          \ /       \ /
//           X         X
//          / \       / \
//         5---\-----/---3
//              \   /
//                1	
};
layouts['BRIDGE'] = {
	code:'BRIDGE',
	name: "The Raven's Bridge (copyright 1998-2008 Big Old Raven http://www.corax.com)",
	cards:[
		'The call - it is what you ask for, what you call for, what you want and expect.',
		'The answer you\u0027ll get.',
		'The seed - means that is what you actually do to achieve something, your active input.',
		'The result you\u0027ll achieve.',
		'The "bridge" for your call - it shows up what possibilities your call and its echo will open up for you. It also shows what chances are provided or - in case the echo to your call is "negative" - are left. It is a "bridge" - a bridge that you can use the best way you need it. If your call needs a bridge, use it for it. If your call was answered perfectly well, take it as a bridge to a proceeding or further improvement. If your call was poor and received the appropriate echo, take it as a bridge to an improvement of your own sweet self.',
		'The "bridge" for your seed and its harvest.',
		'The other side of the bridge - the future point where you will land. If this card happens to be a "bad" one although all those before were "good", you should fairly think about the whole endeavour once again.  If this card comes out being a "good" one although all the cards before were lousy, don\u0027t forget that all\u0027s well that ends well, when the result is worth the effort.'
	],
	positions:[
		[0,00],[1.25,0],[0,1.5],[1.25,1.5],[.5,.25],[.75,1.25],[.65,.75]
	]

//  [1][5][2]
//     [7]
//  [3][6][4]
};
layouts['RTREE'] = {
	code:'RTREE',
	name: "The Raven's Tree (copyright 1998-2008 Big Old Raven http://www.corax.com)",
	cards:[
		'Visible - The crown of the tree.',
		'Hidden - The roots of the crown.',
		'Visibile - The fruits',
		'Hidden - The roots for the fruits (good of roots)',
		'Visible - The falling leaves',
		'Hidden - The root for the falling leaves (Bad of roots/reason for falling)',
		'Connection - The trunk.'
	],
	positions:[
		[1,0],[1,2],[0,0.25],[0,1.75],[2,0.25],[2,1.75],[1,1]
	]

//  [3][1][5]
//     [7]
//  [4][2][6]
};
