// JavaScript Document
tinyMCE.init({
	mode  : "textareas",
	theme : "simple",
	editor_selector : "mceSimple",
	element_format : "html",
 	editor_deselector : "mceNoEditor",
inline_styles : false
});

tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	element_format : "html",
	editor_deselector : "mceNoEditor",
	inline_styles : false,
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
	theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true
});
function toggleEditor(id) {
	if (!tinyMCE.get(id))
		tinyMCE.execCommand('mceAddControl', false, id);
	else
		tinyMCE.execCommand('mceRemoveControl', false, id);
}
 function showHide(obj) {
   var div = document.getElementById(obj);
   if (div.style.display == 'none') {
     div.style.display = '';
   }
   else {
     div.style.display = 'none';
   }
 }
addOne = function()  { document.myForm.f_order.value = document.myForm.f_order.value*1 + 1 ;   } 
remOne = function()  { document.myForm.f_order.value = document.myForm.f_order.value*1 - 1 ;   } 
add_One = function() { document.myForm.f_order2.value = document.myForm.f_order2.value*1 + 1 ; } 
rem_One = function() { document.myForm.f_order2.value = document.myForm.f_order2.value*1 - 1 ; } 

$(document).ready(function(){
var option = {
  x:      1, 
  y:      2, 
  radius: 3,
  color:  "#000"
}

$("h1").textShadow( option );
$("h2").textShadow( option );

//var height1 = $(document).height(); // height of full document
//var height2 = $("#header").height(); // height of header
//var height_diff = height1 – height2 + "px";
//document. getElementById('ggg').style.height = height1; // Set the remaining height in test DIV.
})
