//*********************************************************
//Learnhanzi Flashcards (www.learnhanzi.com/flashcards)
//Version 0.0.1
//
//This is the javascript file for hanzi flashcards portlet
//Link this file to your site, or cut and paste the code below
//and you will have a nice hanzi flashcard portlet on your site.
//
//You also need a stylesheet named lhfc.css
//If you don't have it get it at www.learnhanzi.com/flashcards
//It can be used to customize the look of the portlet
//
//You can use this code and redistribute it on the condition
//that you include this header
//
//For feedback, questions etc contact feedback@learnhanzi.com
//For more information and latest version, go to http://www.learnhanzi.com/flashcards
//
//****** IMPORTANT ********
//Copyright to this code and all the code dynamically loaded by this script
//belongs to Komut Konsult EF (www.komut.se)
//This code and all the code dynamically loaded by this script
//is distributed WITHOUT ANY WARRANTY;
//without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//By using this code you agree to not hold Komut Konsult liable
//for any problems it might cause whatsoever
//************************************************************


//***** CONFIGURATION *******

//**** Positioning ****
//Default is absolute positioning,
//the portlet layer will positioned relative to the upper left corner at lf_x, lf_y as set below,
lf_x = 5;
lf_y = 5;

//If you want to use realtive positioning, set this to true,
//and add this html to your page where you want the portlet: <div id='lf_div'></div>
//The portlet will be positioned at lf_x, lf_y relative to this element
//NOTE: If you want the portlet center-aligned with relative positioning you must use this element:
//<div id='lf_div' align='center'></div>
//Otherwise Firefox/Mozilla will display the small feedback-cards incorrectly
lf_relative = true;

//**** Region ****
//This is to control from where the portlet will load data, to make it faster
//Set this to "cn" if most of your visitors view your site form inside mainland China, otherwise leave blank
lf_region = "";

//For more information on configuration go to http://www.learnhanzi.com/flashcards/index.php#configuration 
//------- End Configuration -------

var lf_js=document.createElement("script");
lf_js.type="text/javascript";
lf_js.id="lf_js";
lf_js.src="http://www.learnhanzi.com/";
lf_js.src+="flashcards/lf_js.php?x="+lf_x+"&y="+lf_y+"&r="+lf_relative;
document.getElementsByTagName("head")[0].appendChild(lf_js);
//End script