var TrixTG_templatecode = new Array();
var TrixTG_optcode = new Array();
var TrixTG_SF1,TrixTG_SF2,TrixTG_MF;
/*
// JavaScript Document
0 - Background Color 
1 - Background Image
2 - Text font
3 - Text font size
4 - text color
5 - font weight
6 - font style
7 - text decoration
8 - text align
9 - text transform
10 - width
11 - height
12 - float
13 - margin
14 - padding
15 - border
16 - opacity
17 - minimum width
*/
function TrixTG_generatecode()
{
	TrixTG_initgencode();
	TrixTG_genhtmlcode();
}
function TrixTG_initgencode()
{
	var i;var eId;var eType;
	var myform = document.getElementById("TrixTG");
	var formid = myform.id;
	var n = myform.length;	
	for(i=0;i<=100;i++)
	{
		TrixTG_templatecode[i]='';
		TrixTG_optcode[i] = '';
	}
	TrixTG_SF1 = "",TrixTG_SF2 = "",TrixTG_MF = "";
	document.getElementById("TrixTG_showcode").value="";
/*	for(i=0;i<11;i++)
	{
        eId = document.getElementById(TrixTG_genids[i]);
		if(eId.type == 'text' || eId.type == "select-one")
			    TrixTG_codevar[eId.id] = eId.value;
		else if (eId.type == "checkbox") 
			{
				if (eId.checked==true)
				    TrixTG_codevar[eId.id] = 1;
				else
				    TrixTG_codevar[eId.id] = 0;
			}
	}   */
	for (i = 0; i < n; i++)
 	 {	
		eId  = myform[i].id;
		eType = myform[i].type;
		if (eType == "text" || eType == "select-one" || eType=='textarea')
		    TrixTG_codevar[eId] =myform.elements[eId].value; 
		else if (eType == "checkbox") 
			{
				if (myform.elements[eId].checked==true)
				    TrixTG_codevar[eId] = 1;
				else
				    TrixTG_codevar[eId] = 0;
			}
	 }
}

function TrixTG_showhtmlcode()
{
  var string = '';
  for(i=0;i<=100;i++)
		string = string + TrixTG_templatecode[i];
		
  string = string + "<body>"+TrixTG_optcode[1]+TrixTG_optcode[2]+"\n  <div id='outer-wrapper'>"+TrixTG_optcode[3]+TrixTG_optcode[4]+
"\n\n    <!-- skip links for text browsers -->\n    <span id='skiplinks' style='display:none;'>\n      <a href='#main'>skip to main</a> |\n      <a href='#sidebar'>skip to sidebar</a>\n    </span>\n\n    <div id='header-wrapper'>"+TrixTG_optcode[5]+TrixTG_optcode[6]+"\n      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>\n"+TrixTG_optcode[7]+TrixTG_optcode[8]+TrixTG_optcode[9]+TrixTG_optcode[10]+TrixTG_optcode[11]+"      </b:section>\n    "+TrixTG_optcode[12]+TrixTG_optcode[13]+"</div>\n    <div style='clear:both'></div>\n    <div id='content-wrapper'>"+TrixTG_optcode[14]+TrixTG_optcode[15]+"\n      <div id='crosscol-wrapper'>"+TrixTG_optcode[16]+TrixTG_optcode[17]+TrixTG_optcode[18]+TrixTG_optcode[19]+TrixTG_optcode[20]+"</div>\n      "+TrixTG_optcode[38]+"      <div id='main-wrapper'>"+TrixTG_optcode[21]+TrixTG_optcode[22]+"\n      <b:section class='main' id='main' showaddelement='no'>\n        <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>\n          <b:includable id='main' var='top'>\n            \n<div class='blog-posts hfeed'>\n              <b:include data='top' name='status-message'/>\n              <data:adStart/>\n              <b:loop values='data:posts' var='post'>\n                "+TrixTG_optcode[23]+TrixTG_optcode[24]+"<div class='single-post'>\n                <b:if cond='data:post.dateHeader'>\n                  "+TrixTG_optcode[25]+TrixTG_optcode[26]+"<h2 class='date-header'><data:post.dateHeader/></h2>"+TrixTG_optcode[27]+TrixTG_optcode[28]+"\n                </b:if>\n               <b:include data='post' name='post'/>\n               <b:if cond='data:blog.pageType == &quot;item&quot;'>\n                 <b:include data='post' name='comments'/>\n               </b:if>\n               <b:if cond='data:post.includeAd'>\n                 <data:adEnd/>\n                 <data:adCode/>\n                 <data:adStart/>\n               </b:if>\n             </div>"+TrixTG_optcode[52]+TrixTG_optcode[53]+"\n             </b:loop>\n             <data:adEnd/>\n           </div>\n\n           <!-- navigation -->\n           <b:include name='nextprev'/>\n\n           <!-- feed links -->\n           <b:include name='feedLinks'/>\n           <b:if cond='data:top.showStars'>\n             <script src='http://www.google.com/jsapi' type='text/javascript'/>\n             <script type='text/javascript'>\n               google.load(&quot;annotations&quot;, &quot;1&quot;, {&quot;locale&quot;: &quot;<data:top.languageCode/>&quot;});\n               function initialize() {\n                 google.annotations.setApplicationId(<data:top.blogspotReviews/>);\n                 google.annotations.createAll();\n                 google.annotations.fetch();\n               }\n               google.setOnLoadCallback(initialize);\n             </script>\n           </b:if>\n         </b:includable>\n        <b:includable id='nextprev'>\n        <div class='blog-pager' id='blog-pager'>\n          <b:if cond='data:newerPageUrl'>\n            <span id='blog-pager-newer-link'>\n              <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>\n            </span>\n          </b:if>\n          <b:if cond='data:olderPageUrl'>\n            <span id='blog-pager-older-link'>\n              <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>\n            </span>\n          </b:if>\n          <b:if cond='data:blog.homepageUrl != data:blog.url'>\n            <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>\n            <b:else/>\n            <b:if cond='data:newerPageUrl'>\n              <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>\n            </b:if>\n          </b:if>\n          </div>\n          <div class='clear'/>\n        </b:includable>\n        <b:includable id='post' var='post'>\n          <div class='post hentry uncustomized-post-template'>\n            <a expr:name='data:post.id'/>\n            <b:if cond='data:post.title'>\n              "+TrixTG_optcode[30]+TrixTG_optcode[31]+"<h3 class='post-title entry-title'>\n              <b:if cond='data:post.link'>\n                <a expr:href='data:post.link'><data:post.title/></a>\n              <b:else/>\n               <b:if cond='data:post.url'>\n                 <a expr:href='data:post.url'><data:post.title/></a>\n               <b:else/>\n                 <data:post.title/>\n               </b:if>\n             </b:if>\n             </h3>"+TrixTG_optcode[32]+TrixTG_optcode[33]+"\n           </b:if>\n\n           <div class='post-header-line-1'/>\n\n           <div class='post-body entry-content'>\n             "+TrixTG_optcode[58]+TrixTG_optcode[59]+"<div class='post-content'>\n             <data:post.body/>\n             </div>"+TrixTG_optcode[60]+TrixTG_optcode[61]+"\n             <div style='clear: both;'/> <!-- clear for photos floats -->\n           </div>\n           "+TrixTG_optcode[62]+TrixTG_optcode[63]+"<div class='post-footer'>\n             <div class='post-footer-line post-footer-line-1'>\n               <span class='post-author vcard'>\n                 <b:if cond='data:top.showAuthor'>\n                   <data:top.authorLabel/>\n                  <span class='fn'><data:post.author/></span>\n                </b:if>\n              </span>\n\n               <span class='post-timestamp'>\n                 <b:if cond='data:top.showTimestamp'>\n                   <data:top.timestampLabel/>                   <b:if cond='data:post.url'>                     <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>\n                   </b:if>\n                 </b:if>\n              </span>\n\n               <span class='reaction-buttons'>\n                 <b:if cond='data:top.showReactions'>\n                   <table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>\n                     <td class='reactions-label-cell' nowrap='nowrap' valign='top' width='1%'>\n                       <span class='reactions-label'>\n                       <data:top.reactionsLabel/></span>&#160;</td>\n                     <td><iframe allowtransparency='true' class='reactions-iframe' expr:src='data:post.reactionsUrl' frameborder='0' name='reactions' scrolling='no'/></td>\n                   </tr></table>\n                 </b:if>\n               </span>\n\n               <span class='star-ratings'>\n                 <b:if cond='data:top.showStars'>\n                   <div expr:g:background-color='data:backgroundColor' expr:g:text-color='data:textColor' expr:g:url='data:post.absoluteUrl' g:height='42' g:type='RatingPanel' g:width='280'/>\n                 </b:if>\n               </span>\n\n               <span class='post-comment-link'>\n                 <b:if cond='data:blog.pageType != &quot;item&quot;'>\n                   <b:if cond='data:post.allowComments'>\n                     <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>\n                   </b:if>\n                 </b:if>\n               </span>\n\n               <!-- backlinks -->\n               <span class='post-backlinks post-comment-link'>\n                 <b:if cond='data:blog.pageType != &quot;item&quot;'>\n                   <b:if cond='data:post.showBacklinks'>\n                     <a class='comment-link' expr:href='data:post.url + &quot;#links&quot;'><data:top.backlinkLabel/></a>\n                   </b:if>\n                 </b:if>\n               </span>\n\n               <span class='post-icons'>\n                 <!-- email post links -->\n                 <b:if cond='data:post.emailPostUrl'>\n                   <span class='item-action'>\n                     <a expr:href='data:post.emailPostUrl' expr:title='data:top.emailPostMsg'><img alt='' class='icon-action' height='13' src='http://www.blogger.com/img/icon18_email.gif' width='18'/></a>\n                   </span>\n                 </b:if>\n\n                 <!-- quickedit pencil -->\n                 <b:include data='post' name='postQuickEdit'/>\n               </span>\n             </div>\n             <div class='post-footer-line post-footer-line-2'>\n               <span class='post-labels'>\n                 <b:if cond='data:post.labels'>\n                   <data:postLabelsLabel/>\n                   <b:loop values='data:post.labels' var='label'>\n                     <a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>\n                   </b:loop>\n                 </b:if>\n               </span>\n             </div>\n\n             <div class='post-footer-line post-footer-line-3'/>\n           </div>"+TrixTG_optcode[64]+TrixTG_optcode[65]+"\n         </div>\n        </b:includable>\n        <b:includable id='postQuickEdit' var='post'>\n          <b:if cond='data:post.editUrl'>\n            <span expr:class='&quot;item-control &quot; + data:post.adminClass'>\n              <a expr:href='data:post.editUrl' expr:title='data:top.editPostMsg'><img alt='' class='icon-action' height='18' src='http://www.blogger.com/img/icon18_edit_allbkg.gif' width='18'/></a>\n            </span>\n          </b:if>\n        </b:includable>\n        <b:includable id='commentDeleteIcon' var='comment'>\n          <span expr:class='&quot;item-control &quot; + data:comment.adminClass'>\n            <a expr:href='data:comment.deleteUrl' expr:title='data:top.deleteCommentMsg'><img src='http://www.blogger.com/img/icon_delete13.gif'/></a>\n          </span>\n        </b:includable>\n        <b:includable id='backlinkDeleteIcon' var='backlink'>\n          <span expr:class='&quot;item-control &quot; + data:backlink.adminClass'>\n            <a expr:href='data:backlink.deleteUrl' expr:title='data:top.deleteBacklinkMsg'><img src='http://www.blogger.com/img/icon_delete13.gif'/></a>\n          </span>\n        </b:includable>\n       <b:includable id='comments' var='post'>\n         <div class='comments' id='comments'>\n           <a name='comments'/>\n             <b:if cond='data:post.allowComments'>\n               <h4>\n                 <b:if cond='data:post.numComments == 1'>\n                   1 <data:commentLabel/>:\n                 <b:else/>\n                   <data:post.numComments/> <data:commentLabelPlural/>:\n                 </b:if>\n               </h4>\n             <b:if cond='data:post.commentPagingRequired'>\n               <span class='paging-control-container'>\n                 <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'><data:post.oldestLinkText/></a>\n                 &#160;\n                 <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a>\n                 &#160;\n                 <data:post.commentRangeText/>\n                 &#160;\n                 <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'><data:post.newerLinkText/></a>\n                 &#160;\n                 <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'><data:post.newestLinkText/></a>\n               </span>\n             </b:if>\n\n             <dl id='comments-block'>\n               <b:loop values='data:post.comments' var='comment'>\n          <dt expr:class='&quot;comment-author &quot; + data:comment.authorClass' expr:id='data:comment.anchorName'>\n            <a expr:name='data:comment.anchorName'/>\n            <b:if cond='data:comment.authorUrl'>\n              <a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>\n            <b:else/>\n              <data:comment.author/>\n            </b:if>\n            <data:commentPostedByMsg/>\n          </dt>\n          <dd class='comment-body'>\n            <b:if cond='data:comment.isDeleted'>\n              <span class='deleted-comment'><data:comment.body/></span>\n            <b:else/>\n              <p><data:comment.body/></p>\n            </b:if>\n          </dd>\n          <dd class='comment-footer'>\n            <span class='comment-timestamp'>\n              <a expr:href='data:comment.url' title='comment permalink'>\n                <data:comment.timestamp/>\n              </a>\n              <b:include data='comment' name='commentDeleteIcon'/>\n            </span>\n          </dd>\n        </b:loop>\n      </dl>\n\n      <b:if cond='data:post.commentPagingRequired'>\n        <span class='paging-control-container'>\n          <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'>\n            <data:post.oldestLinkText/>\n          </a>\n          <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'>\n            <data:post.olderLinkText/>\n          </a>\n          &#160;\n          <data:post.commentRangeText/>\n          &#160;\n          <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'>\n            <data:post.newerLinkText/>\n          </a>\n          <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'>\n            <data:post.newestLinkText/>\n          </a>\n        </span>\n      </b:if>\n\n      <p class='comment-footer'>\n\n        <b:if cond='data:post.embedCommentForm'>\n          <b:include data='post' name='comment-form'/>\n        <b:else/>\n          <b:if cond='data:post.allowComments'>\n            <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>\n          </b:if>\n        </b:if>\n\n      </p>\n    </b:if>\n\n    <div id='backlinks-container'>\n    <div expr:id='data:widget.instanceId + &quot;_backlinks-container&quot;'>\n       <b:if cond='data:post.showBacklinks'>\n         <b:include data='post' name='backlinks'/>\n       </b:if>\n    </div>\n    </div>\n  </div>\n</b:includable>\n<b:includable id='comment-form' var='post'>\n  <div class='comment-form'>\n    <a name='comment-form'/>\n    <h4 id='comment-post-message'><data:postCommentMsg/></h4>\n    <p><data:blogCommentMessage/></p>\n    <data:blogTeamBlogMessage/>\n    <a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>\n    <iframe allowtransparency='true' class='blogger-iframe-colorize' frameborder='0' height='275' id='comment-editor' scrolling='no' src='' width='100%'/>\n    <data:post.iframeColorizer/>\n  </div>\n</b:includable>\n<b:includable id='backlinks' var='post'>\n  <a name='links'/><h4><data:post.backlinksLabel/></h4>\n  <b:if cond='data:post.numBacklinks != 0'>\n    <dl class='comments-block' id='comments-block'>\n      <b:loop values='data:post.backlinks' var='backlink'>\n        <div class='collapsed-backlink backlink-control'>\n          <dt class='comment-title'>\n            <span class='backlink-toggle-zippy'>&#160;</span>\n            <a expr:href='data:backlink.url' rel='nofollow'><data:backlink.title/></a>\n            <b:include data='backlink' name='backlinkDeleteIcon'/>\n          </dt>\n         <dd class='comment-body collapseable'>\n            <data:backlink.snippet/>\n          </dd>\n          <dd class='comment-footer collapseable'>\n            <span class='comment-author'><data:post.authorLabel/> <data:backlink.author/></span>\n            <span class='comment-timestamp'><data:post.timestampLabel/> <data:backlink.timestamp/></span>\n          </dd>\n        </div>\n      </b:loop>\n    </dl>\n  </b:if>\n  <p class='comment-footer'>\n    <a class='comment-link' expr:href='data:post.createLinkUrl' expr:id='data:widget.instanceId + &quot;_backlinks-create-link&quot;' target='_blank'><data:post.createLinkLabel/></a>\n   </p>\n</b:includable>\n<b:includable id='feedLinks'>\n  <b:if cond='data:blog.pageType != &quot;item&quot;'> <!-- Blog feed links -->\n    <b:if cond='data:feedLinks'>\n      <div class='blog-feeds'>\n        <b:include data='feedLinks' name='feedLinksBody'/>\n      </div>\n    </b:if>\n\n    <b:else/> <!--Post feed links -->\n    <div class='post-feeds'>\n      <b:loop values='data:posts' var='post'>\n        <b:if cond='data:post.allowComments'>\n          <b:if cond='data:post.feedLinks'>\n            <b:include data='post.feedLinks' name='feedLinksBody'/>\n          </b:if>\n        </b:if>\n      </b:loop>\n    </div>\n  </b:if>\n</b:includable>\n<b:includable id='feedLinksBody' var='links'>\n  <div class='feed-links'>\n  <data:feedLinksMsg/>\n  <b:loop values='data:links' var='f'>\n     <a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a>\n  </b:loop>\n  </div>\n</b:includable>\n<b:includable id='status-message'>\n  <b:if cond='data:navMessage'>\n  <div class='status-msg-wrap'>\n    <div class='status-msg-body'>\n      <data:navMessage/>\n    </div>\n    <div class='status-msg-border'>\n      <div class='status-msg-bg'>\n        <div class='status-msg-hidden'><data:navMessage/></div>\n      </div>\n    </div>\n  </div>\n  <div style='clear: both;'/>\n  </b:if>\n</b:includable>\n</b:widget>\n</b:section>\n      "+TrixTG_optcode[34]+TrixTG_optcode[35]+"</div>\n\n      "+TrixTG_optcode[39]+"\n      <!-- spacer for skins that want sidebar and main to be the same height-->\n      <div class='clear'>&#160;</div>\n    "+TrixTG_optcode[40]+TrixTG_optcode[41]+"</div> <!-- end content-wrapper -->\n\n    <div style='clear:both' />\n     <div id='footer-wrapper'>"+TrixTG_optcode[42]+TrixTG_optcode[43]+TrixTG_optcode[56]+TrixTG_optcode[44]+TrixTG_optcode[45]+"</div>\n\n   <div id='pagefooter'>"+TrixTG_optcode[46]+TrixTG_optcode[47]+TrixTG_optcode[48]+TrixTG_optcode[49]+"</div>\n     "+TrixTG_optcode[57]+"\n\n     "+TrixTG_optcode[50]+TrixTG_optcode[51]+"</div> <!-- end outer-wrapper -->\n\n  "+TrixTG_optcode[54]+TrixTG_optcode[55]+"\n</body>\n</html>";	

  document.getElementById("TrixTG_showcode").value=string;
  alert("Thank you for having interest in my template generator. Hope you liked the application. Make sure you take a back up of your widgets and make sure you have a backup of the html code already available with you so that you can recover if you find any problems. If you are willing, make a contribution towards it. Report any bugs or give your valuable suggestion to improve the application. Thank you once again.");
}
function TrixTG_genhtmlcode()
{
	 var string = '';var temp=temp1=temp2=temp3=temp4=temp11=temp12=temp13=temp14=temp21=temp22=temp23=temp24='';
	 TrixTG_templatecode[0]="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>\n<head>\n<b:include data='blog' name='all-head-content'/>\n<title><data:blog.pageTitle/></title>\n<b:skin><![CDATA[/\*\n-----------------------------------------------\nDesigned Using: Trix Template Generator v1\nURL: http://e-infotainment.com\n----------------------------------------------- */\n";
	 TrixTG_templatecode[99] = "]]></b:skin>\n</head>\n";
	 
	 
	 /*
// JavaScript Document
0 - Background Color 
1 - Background Image
2 - Text font
3 - Text font size
4 - text color
5 - font weight
6 - font style
7 - text decoration
8 - text align
9 - text transform
10 - width
11 - height
12 - float
13 - margin
14 - padding
15 - border
16 - opacity
17 - minimum width
*/

	 TrixTG_templatecode[1] = TrixTG_returnstyle("body","body",[1,1,1,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1,1],0);
	 TrixTG_templatecode[2] = TrixTG_returnstyle("body","#body-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[2]!=''){ TrixTG_optcode[1]="<div id='body-inner1'>";TrixTG_optcode[55]="</div>\n";}
	 TrixTG_templatecode[3] = TrixTG_returnstyle("body","#body-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2);
	 if(TrixTG_templatecode[3]!=''){ TrixTG_optcode[2]="<div id='body-inner2'>";TrixTG_optcode[54]="</div>\n";}
	
	
	 TrixTG_templatecode[4] = TrixTG_returnstyle("bodylinkulink","a",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);
	 TrixTG_templatecode[5] = TrixTG_returnstyle("bodylinkvlink","a:visited",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);
	 TrixTG_templatecode[6] = TrixTG_returnstyle("bodylinkmlink","a:hover",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);
	 TrixTG_templatecode[7] = "\na img\n{\nborder-width: 0px;\n}\n";
	 
	 TrixTG_templatecode[8] = TrixTG_returnstyle("outer","#outer-wrapper",[1,1,1,1,1,1,1,0,1,0,1,0,0,0,1,1,1,1,1],0);
	 TrixTG_templatecode[9] = TrixTG_returnstyle("outer","#outer-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[9]!=''){ TrixTG_optcode[3]="<div id='outer-inner1'>";TrixTG_optcode[51]="</div>";}
	 TrixTG_templatecode[10] = TrixTG_returnstyle("outer","#outer-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[10]!=''){ TrixTG_optcode[4]="<div id='outer-inner2'>";TrixTG_optcode[50]="</div>";}
	
	 
	 if(document.getElementById("TrixTG_selectblock3").checked == true)
	 {
		TrixTG_templatecode[11] = TrixTG_returnstyle("genhdr","#header-wrapper",[1,1,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,0],0);
		TrixTG_templatecode[12] = TrixTG_returnstyle("genhdr","#header-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	    if(TrixTG_templatecode[12]!=''){ TrixTG_optcode[5]="<div id='header-inner1'>";TrixTG_optcode[13]="</div>";}
		TrixTG_templatecode[13] = TrixTG_returnstyle("genhdr","#header-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2);
	    if(TrixTG_templatecode[13]!=''){ TrixTG_optcode[6]="<div id='header-inner2'>";TrixTG_optcode[12]="</div>";}
		
	 
	    TrixTG_optcode[7]="        <b:widget id='HTML1' locked='true' title='Header' type='HTML'>\n          <b:includable id='main'>\n";
	    
	    if(TrixTG_codevar["TrixTG_genhdrtittext"]!=''){
			TrixTG_templatecode[14] = TrixTG_returnstyle("genhdrtit","#titlewrapper",[0,0,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,1],0);
			TrixTG_templatecode[14] += TrixTG_returnstyle("genhdrtit","#titlewrapper a,#titlewrapper a:visited,#titlewrapper a:hover ",[0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0],0);
			
			TrixTG_optcode[8]="            <h1 id='titlewrapper'><b:if cond='data:blog.url == data:blog.homepageUrl'>"+TrixTG_codevar["TrixTG_genhdrtittext"]+"<b:else/><a expr:href='data:blog.homepageUrl'>"+TrixTG_codevar["TrixTG_genhdrtittext"]+"</a></b:if></h1>\n";}
		if(TrixTG_codevar["TrixTG_genhdrdestext"]!=''){
			TrixTG_templatecode[15] = TrixTG_returnstyle("genhdrdes","#descriptionwrapper",[0,0,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,1],0);
			TrixTG_optcode[9]="            <div id='descriptionwrapper'>"+TrixTG_codevar["TrixTG_genhdrdestext"]+"</div>\n";}
		
		temp = parseInt(TrixTG_codevar["TrixTG_hdrmenlinksno"]);
		if(temp!=0)
		{
			TrixTG_templatecode[16] = TrixTG_returnstyle("hdrmen","#menuwrapper",[1,1,1,1,0,1,1,0,0,0,1,1,0,0,1,1,1,0,1],0);
			temp1 = temp1+ "            <div id='menuwrapper'>";temp2 = "</div>"+temp2;
			TrixTG_templatecode[17] = TrixTG_returnstyle("hdrmen","#menuwrapper-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
			if(TrixTG_templatecode[17]!=''){temp1= temp1+"<div id='menuwrapper-inner1'>";temp2="</div>"+temp2;}
			TrixTG_templatecode[18] = TrixTG_returnstyle("hdrmen","#menuwrapper-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2);
			if(TrixTG_templatecode[18]!=''){temp1= temp1+"<div id='menuwrapper-inner2'>";temp2="</div>"+temp2;}
			
			TrixTG_templatecode[19] = TrixTG_returnstyle("menulink","#menuwrapper a",[1,1,0,0,1,0,0,0,0,0,1,1,0,0,1,1,1,0,0],0);
			TrixTG_templatecode[20] = TrixTG_returnstyle("menulinkm","#menuwrapper a:hover",[1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0],0);	
			
			temp1 = temp1+"\n                <ul style='list-style:none; margin:0px; padding:0px '>";
			for(i=1;i<=temp;i++)
			{
				temp3 = (TrixTG_linkvar[i][0]=='')?"javascript:void": TrixTG_linkvar[i][0];
			    temp1 = temp1+"<li><a href='"+temp3+"' class='menuclass' target='_blank'>"+TrixTG_linkvar[i][1]+"</a></li>";			
			}
			TrixTG_optcode[10]=temp1+"</ul><div style='clear:both'/>\n            "+temp2+"\n";
		}
		TrixTG_optcode[11]="          </b:includable>\n        </b:widget>\n"; 
	  
     	
	 }
     
	 TrixTG_templatecode[22] = TrixTG_returnstyle("content","#content-wrapper",[1,1,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,0],0);
	 TrixTG_templatecode[23] = TrixTG_returnstyle("content","#content-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[23]!=''){ TrixTG_optcode[14]="<div id='content-inner1'>";TrixTG_optcode[41]="</div>";} 
	 TrixTG_templatecode[24] = TrixTG_returnstyle("content","#content-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[24]!=''){ TrixTG_optcode[15]="<div id='content-inner2'>";TrixTG_optcode[40]="</div>";}

     temp = "no";
 	 if(document.getElementById("TrixTG_selectblock5").checked == true)
	 {
		 temp = "yes";
		 TrixTG_templatecode[25] = TrixTG_returnstyle("crossgen","#crosscol-wrapper",[1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1],0);

		 TrixTG_templatecode[26] = TrixTG_returnstyle("crossgen","#crosscol-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
		 if(TrixTG_templatecode[26]!=''){ TrixTG_optcode[16]="<div id='crosscol-inner1'>";TrixTG_optcode[20]="</div>";} 
		 TrixTG_templatecode[27] = TrixTG_returnstyle("crossgen","#crosscol-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
		 if(TrixTG_templatecode[27]!=''){ TrixTG_optcode[17]="<div id='crosscol-inner2'>";TrixTG_optcode[19]="</div>";}
	 
	 	 TrixTG_templatecode[28] = TrixTG_returnstyle("crosstit","#crosscol-wrapper h2",[1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1],0);
	 	 TrixTG_templatecode[29] = TrixTG_returnstyle("crosswidget",".crosscol .widget",[1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0],0);
         TrixTG_templatecode[30] = TrixTG_returnstyle("crosscontent",".crosscol .widget-content",[1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,0,1],0);
		 
	 }
	 TrixTG_optcode[18]="        <b:section class='crosscol' id='crosscol' showaddelement='"+temp+"'/>\n    ";
	 
	
	 TrixTG_templatecode[31] = TrixTG_returnstyle("maingen","#main-wrapper",[1,1,1,1,1,1,1,0,1,0,1,0,0,0,1,1,1,1,1],0);
	 TrixTG_templatecode[32] = TrixTG_returnstyle("maingen","#main-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[32]!=''){ TrixTG_optcode[21]="<div id='main-inner1'>";TrixTG_optcode[35]="</div>";} 
	 TrixTG_templatecode[33] = TrixTG_returnstyle("maingen","#main-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[33]!=''){ TrixTG_optcode[22]="<div id='main-inner2'>";TrixTG_optcode[34]="</div>";}
	 TrixTG_optcode[183]="\n";TrixTG_optcode[227]="      ";
	 
     TrixTG_templatecode[34] = TrixTG_returnstyle("singlepost",".main .single-post",[1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0],0);
	 TrixTG_templatecode[35] = TrixTG_returnstyle("singlepost",".main .singlepost-outer1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[35]!=''){TrixTG_optcode[24]="<div class='singlepost-outer1'>";TrixTG_optcode[52]="</div>";}
	 TrixTG_templatecode[36] = TrixTG_returnstyle("singlepost",".main .singlepost-outer2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[36]!=''){TrixTG_optcode[23]="<div class='singlepost-outer2'>";TrixTG_optcode[53]="</div>";}


	 TrixTG_templatecode[37] = TrixTG_returnstyle("dateheader",".main .date-header",[1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1],0);
	 TrixTG_templatecode[38] = TrixTG_returnstyle("dateheader",".main .dateheader-outer1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[38]!=''){TrixTG_optcode[26]="<div class='dateheader-outer1'>";TrixTG_optcode[27]="</div>";}
	 TrixTG_templatecode[39] = TrixTG_returnstyle("dateheader",".main .dateheader-outer2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[39]!=''){TrixTG_optcode[25]="<div class='dateheader-outer2'>";TrixTG_optcode[28]="</div>";}

	 TrixTG_templatecode[40] = TrixTG_returnstyle("posttit",".main h3",[1,1,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,0,1],0);
	 TrixTG_templatecode[41] = TrixTG_returnstyle("posttit",".main .h3-outer1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[41]!=''){TrixTG_optcode[31]="<div class='h3-outer1'>";TrixTG_optcode[32]="</div>";}
	 TrixTG_templatecode[42] = TrixTG_returnstyle("posttit",".main .h3-outer2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[42]!=''){TrixTG_optcode[30]="<div class='h3-outer2'>";TrixTG_optcode[33]="</div>";}

	 TrixTG_templatecode[43] = TrixTG_returnstyle("postheadulink",".post h3 a, .post h3 a:visited",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);
	 TrixTG_templatecode[44] = TrixTG_returnstyle("postheadmlink",".post h3 a:hover",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);

	 TrixTG_templatecode[45] = TrixTG_returnstyle("post",".main .post-content",[1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,0,1],0);
	 TrixTG_templatecode[46] = TrixTG_returnstyle("post",".main .postcontent-outer1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[46]!=''){TrixTG_optcode[59]="<div class='postcontent-outer1'>";TrixTG_optcode[60]="</div>";}
	 TrixTG_templatecode[47] = TrixTG_returnstyle("post",".main .postcontent-outer2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[47]!=''){TrixTG_optcode[58]="<div class='postcontent-outer2'>";TrixTG_optcode[61]="</div>";}

	 TrixTG_templatecode[48] = TrixTG_returnstyle("postedby",".main .post-footer",[1,1,1,1,1,0,0,0,1,1,0,0,0,0,1,1,1,0,1],0);
	 TrixTG_templatecode[49] = TrixTG_returnstyle("postedby",".main .postfooter-outer1'",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
	 if(TrixTG_templatecode[49]!=''){TrixTG_optcode[63]="<div class='postfooter-outer1'>";TrixTG_optcode[64]="</div>";}
	 TrixTG_templatecode[50] = TrixTG_returnstyle("postedby",".main .postfooter-outer2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
	 if(TrixTG_templatecode[50]!=''){TrixTG_optcode[62]="<div class='postfooter-outer2'>";TrixTG_optcode[65]="</div>";}


	 TrixTG_templatecode[51] = TrixTG_returnstyle("timeandcommentulink",".post-footer a, .post-footer a:visited",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);
	TrixTG_templatecode[52] = TrixTG_returnstyle("timeandcommentmlink",".post-footer a:hover",[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],0);
	 
	 TrixTG_templatecode[53] = TrixTG_returnstyle("blockquote",".post-body blockquote",[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0],0);
	 
	 TrixTG_templatecode[54]="\n.profile-img\n{\n float: left;\n margin: 0px 5px 5px 0px;\n padding: 4px;\n}\n\n.profile-data\n{\n margin:0;\n text-transform:uppercase;\n letter-spacing:.1em;\n"+TrixTG_returntextfontcode("maingen")+TrixTG_returntextcolorcode("sidetit")+" font-weight: bold;\n line-height: 1.6em;\n}\n\n.profile-datablock\n{\nmargin:.5em 0 .5em;\n}\n\n.profile-textblock\n{\n margin: 0.5em 0;\n line-height: 1.6em;\n}\n\n.profile-link\n{\n"+TrixTG_returntextfontcode("maingen")+" text-transform: uppercase;\n letter-spacing: .1em;\n}\n";
	  
	 
	 TrixTG_templatecode[55] = "\n#comments h4\n{\n margin:1em 0;\n font-weight: bold;\n line-height: 1.4em;\n text-transform:uppercase;\n letter-spacing:.2em;\n"+TrixTG_returntextcolorcode("sidetit")+"}\n\#comments-block\n{\n margin:1em 0 1.5em;\n line-height:1.6em;\n}\n\n#comments-block .comment-author\n{\n margin:.5em 0;\n}\n\n#comments-block .comment-body\n{\n margin:.25em 0 0;\n}\n\n#comments-block .comment-footer\n{\n margin:-.25em 0 2em;\n line-height: 1.4em;\n text-transform:uppercase;\n letter-spacing:.1em;\n}\n\n#comments-block .comment-body p\n{\n margin:0 0 .75em;\n}\n\n.deleted-comment\n{\n font-style:italic;\n}\n\n.feed-links\n{\n clear: both;\n line-height: 2.5em;\n}\n\n#blog-pager-newer-link\n{\n float: left;\n}\n\n#blog-pager-older-link\n{\n float: right;\n}\n\n#blog-pager\n{\n text-align: center;\n}\n";
	 
	
	 if(document.getElementById("TrixTG_selectblock7").checked == true)
	 {
		 	
		 if(TrixTG_SF2=='')
		 {
			 temp1 = temp2 = temp3 = temp4 = '';
             TrixTG_templatecode[59] = TrixTG_returnstyle("sidefull",".singlesidebar",[1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0],0);
	        TrixTG_templatecode[60] = TrixTG_returnstyle("sidefull",".singlesidebar-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
			 if(TrixTG_templatecode[60]!=''){temp21="<div class='singlesidebar-inner1'>";temp24="</div>";}
			TrixTG_templatecode[61] = TrixTG_returnstyle("sidefull",".singlesidebar-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
			 if(TrixTG_templatecode[61]!=''){temp22="<div class='singlesidebar-inner2'>";temp23="</div>";}
			 
			 
			 temp11 = "        <div class='singlesidebar' style='width:100%'>"+temp21+temp22+"\n          <b:section class='sidebar' id='sidebar' preferred='yes'>\n        </b:section>\n        "+temp23+temp24+"</div>\n";
			 temp12 = "        <div style='width:100%'><div class='singlesidebar' style='width:50%; float:left;'>"+temp21+temp22+"\n          <b:section class='sidebar' id='sidebar1' preferred='yes'>\n          </b:section>\n        "+temp23+temp24+"</div>\n        <div class='singlesidebar' style='width:50%;float:right;'>"+temp21+temp22+"\n          <b:section class='sidebar' id='sidebar2' preferred='yes'>\n          </b:section>\n        "+temp23+temp24+"</div>\n        </div><div style='clear:both' />\n";
			 temp13 = "        <div class='singlesidebar' style='width:100%'>"+temp21+temp22+"\n          <b:section class='sidebar' id='sidebar3' preferred='yes'>\n        </b:section>\n        "+temp23+temp24+"</div>\n";
			 temp14 = "        <div style='width:100%'><div class='singlesidebar' style='width:50%; float:left;'>"+temp21+temp22+"\n          <b:section class='sidebar' id='sidebar4' preferred='yes'>\n          </b:section>\n        "+temp23+temp24+"</div>\n        <div class='singlesidebar' style='width:50%;float:right;'>"+temp21+temp22+"\n          <b:section class='sidebar' id='sidebar5' preferred='yes'>\n          </b:section>\n        "+temp23+temp24+"</div>\n        </div><div style='clear:both' />\n";
			 
			 TrixTG_templatecode[56] = TrixTG_returnstyle("sidegen","#sidebar-wrapper",[1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1],0);
			 TrixTG_templatecode[57] = TrixTG_returnstyle("sidegen","#sidebar-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
			 if(TrixTG_templatecode[57]!=''){temp1="<div id='sidebar-inner1'>";temp4="</div>";}
			 TrixTG_templatecode[58] = TrixTG_returnstyle("sidegen","#sidebar-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
			 if(TrixTG_templatecode[58]!=''){temp2="<div id='sidebar-inner2'>";temp3="</div>";}
			 temp = document.getElementById("TrixTG_gensetsidebar_1type").value;
			 if(temp == '1')
				   TrixTG_optcode[38] = temp11;
			 else if(temp == '2')
				   TrixTG_optcode[38] = temp11+temp12;
			 else if(temp == '3')
				   TrixTG_optcode[38] = temp12+temp13;
			 else if(temp == '4')
				   TrixTG_optcode[38] = temp12+temp13+temp14;
			 else
			 	   TrixTG_optcode[38] = temp11 + temp12+temp13;


		
			 
			 TrixTG_optcode[39] = "<div id='sidebar-wrapper'>"+temp1+temp2+"\n"+TrixTG_optcode[38]+"      "+temp3+temp4+"</div>\n";
			 TrixTG_templatecode[62] = TrixTG_returnstyle("sidetit","#sidebar-wrapper h2",[1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1],0);
   		     TrixTG_templatecode[63] = TrixTG_returnstyle("widget",".sidebar .widget",[1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0],0);
  	         TrixTG_templatecode[64] = TrixTG_returnstyle("sidebarcontent",".sidebar .widget-content",[1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,0,1],0);
			 
			 TrixTG_optcode[38]='';
		 }
		 else
		 {
			 temp1 = temp2 = temp3 = temp4 = '';
			 TrixTG_templatecode[69] = TrixTG_returnstyle("sidefull",".singlesidebar",[1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1],0);
	         TrixTG_templatecode[70] = TrixTG_returnstyle("sidefull",".singlesidebar-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
			 if(TrixTG_templatecode[70]!=''){temp1="<div class='singlesidebar-inner1'>";temp4="</div>";}
			 TrixTG_templatecode[71] = TrixTG_returnstyle("sidefull",".singlesidebar-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
			 if(TrixTG_templatecode[71]!=''){temp2="<div class='singlesidebar-inner2'>";temp3="</div>";}
			 
			 
			 TrixTG_templatecode[65] = TrixTG_returnstyle("sidegen","#sidebar-wrapper1",[1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1],0);
			 TrixTG_templatecode[66] = TrixTG_returnstyle("sidegen","#sidebar-wrapper2",[1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1],0);
			 
			 TrixTG_templatecode[67] = TrixTG_returnstyle("sidegen","#sidebar-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
			 if(TrixTG_templatecode[67]!=''){temp11="<div id='sidebar-inner11'>";temp14="</div>";temp21="<div id='sidebar-inner21'>";temp24="</div>";}
			 TrixTG_templatecode[68] = TrixTG_returnstyle("sidegen","#sidebar-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
			 if(TrixTG_templatecode[68]!=''){temp12="<div id='sidebar-inner12'>";temp13="</div>";temp22="<div id='sidebar-inner22'>";temp23="</div>";}
			 
			 
			 TrixTG_optcode[38] = "      <div id='sidebar-wrapper1'>"+temp11+temp12+"\n        <div class='singlesidebar'>"+temp1+temp2+"\n        <b:section class='sidebar' id='sidebar1' preferred='yes'>\n        </b:section>\n      "+temp3+temp4+"</div>\n      "+temp13+temp14+"</div>\n";
			 TrixTG_optcode[39] = "      <div id='sidebar-wrapper2'>"+temp21+temp22+"\n        <div class='singlesidebar'>"+temp1+temp2+"\n        <b:section class='sidebar' id='sidebar2' preferred='yes'>\n        </b:section>\n      "+temp3+temp4+"</div>\n      "+temp23+temp24+"</div>\n";
			 
			 TrixTG_templatecode[72] = TrixTG_returnstyle("sidetit","#sidebar-wrapper1 h2, #sidebar-wrapper2 h2",[1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1],0);
   		     TrixTG_templatecode[73] = TrixTG_returnstyle("widget",".sidebar .widget",[1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0],0);
 	         TrixTG_templatecode[74] = TrixTG_returnstyle("sidebarcontent",".sidebar .widget-content",[1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,0,1],0);
		 }		
	}
	else 
	    TrixTG_optcode[39] = "      <div id='sidebar-wrapper'>\n        <b:section class='sidebar' id='sidebar' showaddelement='no'/>\n      </div>";
		
    TrixTG_templatecode[75]="\n.sidebar ul\n{\n list-style:none;\n margin:0 0 0;\n padding:0 0 0;\n}\n\n.sidebar li\n{\n margin:0;\n padding:0px 0px .25em 15px;\n text-indent:-15px;\n line-height:1.5em;\n}\n";
	
	if(document.getElementById("TrixTG_selectblock8").checked == true)
	{
		 TrixTG_templatecode[76] = TrixTG_returnstyle("footer","#pagefooter",[1,1,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,0],0);
		 TrixTG_templatecode[77] = TrixTG_returnstyle("footer","#pagefooter-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
		 if(TrixTG_templatecode[77]!=''){TrixTG_optcode[46]="<div id='pagefooter-inner1'>";TrixTG_optcode[49]="</div>";}
		 TrixTG_templatecode[78] = TrixTG_returnstyle("footer","#pagefooter-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
		 if(TrixTG_templatecode[78]!=''){TrixTG_optcode[47]="<div id='pagefooter-inner2'>";TrixTG_optcode[48]="</div>";}	 
		
		 TrixTG_templatecode[79] = TrixTG_returnstyle("footergen","#footer-wrapper",[1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1],0);
		 TrixTG_templatecode[80] = TrixTG_returnstyle("footergen","#footer-inner1",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],1);
		 if(TrixTG_templatecode[80]!=''){TrixTG_optcode[42]="<div id='footer-inner1'>";TrixTG_optcode[45]="</div>";}
		 TrixTG_templatecode[81] = TrixTG_returnstyle("footergen","#footer-inner2",[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],2); 
		 if(TrixTG_templatecode[81]!=''){TrixTG_optcode[43]="<div id='footer-inner2'>";TrixTG_optcode[44]="</div>";}	
		 
		 
		 TrixTG_templatecode[82] = TrixTG_returnstyle("footertit","#footer-wrapper h2",[1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1],0);
		 TrixTG_templatecode[83] = TrixTG_returnstyle("footerwidget",".footer .widget",[1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0],0);
         TrixTG_templatecode[84] = TrixTG_returnstyle("footercontent",".footer .widget-content",[1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,0,1],0);
		 
	}
	else
	    TrixTG_optcode[56]="\n      <b:section class='footer' id='footer' showaddelement='yes'/>\n   ";
		
	
	
	if(document.getElementById("TrixTG_navbar").value =="none")
	      TrixTG_templatecode[85] = "#navbar-iframe {\n height:0px;\n visibility:hidden;\n display:none;\n}\n";
		  
	temp = document.getElementById("TrixTG_backlink").value;
	if(temp != "remove")
	      TrixTG_optcode[57] = "<div style='width:100%; text-align:center; display:"+temp+"'>Template designed using <a href='http://e-infotainment.com'>TrixTG</a></div>";
		  
	TrixTG_showhtmlcode();																																																																																																																																

}
function TrixTG_returnstyle(id,name,prop,no)
{
	var string = '',temp;
	if(prop[0]==1 || prop[1] ==1)
	    string = string + TrixTG_returnbackgroundcode(id,no);
	if(prop[2]==1)	
	    string = string + TrixTG_returntextfontcode(id);
	if(prop[3]==1)	
	    string = string + TrixTG_returntextsizecode(id);
	if(prop[4]==1)	
	    string = string + TrixTG_returntextcolorcode(id);
	if(prop[5]==1)	
	    string = string + TrixTG_returntextboldcode(id);
	if(prop[6]==1)	
	    string = string + TrixTG_returntextitaliccode(id);
	if(prop[7]==1)	
	    string = string + TrixTG_returntextunderlinecode(id);
	if(prop[8]==1)	
	    string = string + TrixTG_returntextaligncode(id);
	if(prop[9]==1)	
	    string = string + TrixTG_returntexttransformcode(id);
	if(prop[18]==1)
	    string = string + TrixTG_returnlineheightcode(id)+TrixTG_returnletterspacingcode(id);
		
	if(prop[10]==1)	
	    string = string + TrixTG_returnwidthcode(id);
	if(prop[11]==1)	
	    string = string + TrixTG_returnheightcode(id);
	if(prop[12]==1)	
	    string = string + TrixTG_returnminwidthcode(id);			
	if(prop[14]==1)	
	    string = string + TrixTG_returnmarpadcode(id,'margin');	
	if(prop[15]==1)	
	    string = string + TrixTG_returnmarpadcode(id,'padding');
	if(prop[16]==1)	
	    string = string + TrixTG_returnbordercode(id,no);
	if(prop[17]==1)	
	    string = string + TrixTG_returnopacitycode(id);	
	if((id=="maingen" || id=="sidegen")	&& no==0)
	    string = string + " word-wrap: break-word;\n overflow: hidden;\n" 
	
	if(id=="menulink")
	    string = string + " display: block;\n";
    else if(id == "maingen" && no==0)
	{
		if(document.getElementById("TrixTG_selectblock7").checked == true)
		{
			if(document.getElementById("TrixTG_gensetsidebarno").value == '1')
			{
				temp = document.getElementById("TrixTG_gensetsidebar_1order").value; 
				if(temp== '1'){
					 TrixTG_MF = " float: right\n"; TrixTG_SF1 = " float: left\n";}
				else if(temp == '2'){
					 TrixTG_MF = " float: left\n"; TrixTG_SF1 = " float: right\n";}
			}
			else{
				     TrixTG_SF1=" float: left\n"; TrixTG_MF = " float: left\n"; TrixTG_SF2 = " float: right\n";}
		}
	    string = string + TrixTG_MF;
	}
	
	else if(id=="sidegen" && no==0 && name=="#sidebar-wrapper")
	{
	    string = string + TrixTG_SF1;		
	}
	else if(name=="#sidebar-wrapper1") string = string + TrixTG_SF1;
	else if(name=="#sidebar-wrapper2") string = string + TrixTG_SF2;
			
	if(string != '')
	    string = "\n"+name + "\n{\n"+string+"}\n";
	
	if(id=="hdrmen" && no=="0")
	{
	    string = string + "\n.menuclass\n{\n text-align: center;\n text-decoration: none;\n}\n";
		string = string + "\n#menuwrapper ul\n{\n list-style:none;\n margin:0px;\n padding:0px;\n}\n";
		string = string + "\n#menuwrapper ul li\n{\n float:left;\n margin:0px;\n padding:0px;\n}\n";
	}
	return string;	
}
function TrixTG_returnbackgroundcode(id,no)
{
	var string='';
  	if(TrixTG_codevar["TrixTG_"+id+"bgcolor"]!='' && no==0)
	  string = "#"+TrixTG_codevar["TrixTG_"+id+"bgcolor"];
	if(id!="blockquote")
		if(TrixTG_backgroundvar[id][no][0]!='')
		{
		  string = string + " url("+TrixTG_backgroundvar[id][no][0]+")";	
		  string = string + " " +TrixTG_backgroundvar[id][no][1];    
		  string = string + " " +TrixTG_backgroundvar[id][no][4]+((TrixTG_backgroundvar[id][no][5]=="pixel")?"px":"%");
		  string = string + " " +TrixTG_backgroundvar[id][no][2]+((TrixTG_backgroundvar[id][no][3]=="pixel")?"px":"%");
		  string = string + " " +TrixTG_backgroundvar[id][no][6];
		}
	if(string != '')
	  string = " background: "+string+";\n";
	return string;  
}
function  TrixTG_returntextfontcode(id)
{
	var string ='',temp=',';
	var tempfont=TrixTG_codevar["TrixTG_"+id+"textfont"];
	var tempfamily=TrixTG_codevar["TrixTG_"+id+"textfontfamily"];
	if(tempfont=="default"){ tempfont='';temp =''; }
	if(tempfamily=="default"){ tempfamily='';temp =''; }
	string = tempfont+temp+tempfamily;
    if(string != '')
	   string = " font-family: "+string+";\n";
	return string;	    
}
function TrixTG_returntextsizecode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"textsize"]!='')
	  string = " font-size: "+TrixTG_codevar["TrixTG_"+id+"textsize"]+"px;\n";
	return string;
}
function TrixTG_returntextcolorcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"textcolor"]!='' && TrixTG_codevar["TrixTG_"+id+"textcolor"]!='inherit')
	  string = " color: #"+TrixTG_codevar["TrixTG_"+id+"textcolor"]+";\n";
	else if(id=='genhdrtit' || id=='menulink')
	  string = " color: inherit;\n";
	else if(id=='postheadulink' || id=='timeandcommentulink')
	  string = " color: #0000ff;\n";
	return string;
}
function TrixTG_returntextboldcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"textbold"]!='' && TrixTG_codevar["TrixTG_"+id+"textbold"]!='inherit')
	  string = " font-weight: "+TrixTG_codevar["TrixTG_"+id+"textbold"]+";\n";
	else if(id=='posttit')
	  string = " font-weight: bold;\n";
	else if(id=='timeandcommentulink')
	  string = " font-weight: normal;\n";
	return string;
}
function TrixTG_returntextitaliccode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"textitalic"]!='' && TrixTG_codevar["TrixTG_"+id+"textitalic"]!='inherit')
	  string = " font-style: "+TrixTG_codevar["TrixTG_"+id+"textitalic"]+";\n";
	else if(id=='posttit' || id=='timeandcommentulink')
	  string = " font-style: normal;\n";	  
	return string;
}
function TrixTG_returntextunderlinecode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"textunderline"]!='' && TrixTG_codevar["TrixTG_"+id+"textunderline"]!='inherit')
	  string = " text-decoration: "+TrixTG_codevar["TrixTG_"+id+"textunderline"]+";\n";
	else if(id=='posttit' || id=='timeandcommentulink')
	  string = " text-decoration: underline;\n";
	else if(id=='genhdrtit')
	  string = " text-decoration: none;\n";
	
	return string;
}
function TrixTG_returntextaligncode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"textalign"]!='inherit')
	  string = " text-align: "+TrixTG_codevar["TrixTG_"+id+"textalign"]+";\n";
	return string;
}
function TrixTG_returntexttransformcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"texttransform"]!='none')
	  string = " text-transform: "+TrixTG_codevar["TrixTG_"+id+"texttransform"]+";\n";
	return string;
}
function TrixTG_returnlineheightcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"lineheight"]!='')
	  string = " line-height: "+TrixTG_codevar["TrixTG_"+id+"lineheight"]+"%;\n";
	return string;
}
function TrixTG_returnletterspacingcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"letterspacing"]!='')
	  string = " letter-spacing: "+TrixTG_codevar["TrixTG_"+id+"letterspacing"]+"pt;\n";
	return string;
}
function TrixTG_returnwidthcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"width"]!='')
	  string = " width: "+TrixTG_codevar["TrixTG_"+id+"width"]+(TrixTG_codevar["TrixTG_"+id+"widthtype"]=="pixel"?"px":"%")+";\n";
	return string;
}
function TrixTG_returnheightcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"height"]!='')
	  string = " height: "+TrixTG_codevar["TrixTG_"+id+"height"]+"px;\n";
	return string;
}
function TrixTG_returnminwidthcode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"minwidth"]!='')
	    return (" min-width: "+TrixTG_codevar["TrixTG_"+id+"minwidth"]+"px;\n");
	return string;
}
function TrixTG_returnmarpadcode(id,prop)
{
	var string = '';
	var temp1 = TrixTG_codevar["TrixTG_"+id+prop+"top"];var temp2=TrixTG_codevar["TrixTG_"+id+prop+"right"];
	var temp3 =TrixTG_codevar["TrixTG_"+id+prop+"bottom"];var temp4 = TrixTG_codevar["TrixTG_"+id+prop+"left"];
	var temp5 = TrixTG_codevar["TrixTG_"+id+prop+"toptype"];var temp6=TrixTG_codevar["TrixTG_"+id+prop+"righttype"];
	var temp7 =TrixTG_codevar["TrixTG_"+id+prop+"bottomtype"];var temp8 = TrixTG_codevar["TrixTG_"+id+prop+"lefttype"];	
    if(temp6=="auto" || temp8=="auto" || temp5=="auto" || temp7=="auto" || temp1 !='0' || temp2 !='0' || temp3 !='0' || temp4 !='0' ){
	temp1 = (temp5=="auto")?"auto ":temp1+((temp5=="pixel")?"px ":"% ");
	temp2 = (temp6=="auto")?"auto ":temp2+((temp6=="pixel")?"px ":"% ");
	temp3 = (temp7=="auto")?"auto ":temp3+((temp7=="pixel")?"px ":"% ");
	temp4 = (temp8=="auto")?"auto":temp4+((temp8=="pixel")?"px":"%");
	string = " "+prop+" : "+temp1+temp2+temp3+temp4+";\n"}
	else if(id=='body' || id=='outer' || id=='crosstit' || id=='sidetit' || id=='footertit' || id=='dateheader' || id=='genhdrtit' || 'posttit')
	    string = " "+prop +": 0px;\n";
    return string;
}
function TrixTG_returnbordercode(id,no)
{
	string = '';
	if(TrixTG_codevar["TrixTG_"+id+"borderselect"] == "yes")
	{
	    if(TrixTG_bordervar[id][0][2]!='0')
           string = " border: "+TrixTG_bordervar[id][0][2]+"px "+TrixTG_bordervar[id][0][1]+" #"+TrixTG_bordervar[id][0][0]+";\n";
		else {
			if(TrixTG_bordervar[id][1][2]!='0')
			  string += " border-top: "+TrixTG_bordervar[id][1][2]+"px "+TrixTG_bordervar[id][1][1]+" #"+TrixTG_bordervar[id][1][0]+";\n";
			if(TrixTG_bordervar[id][2][2]!='0')
			  string += " border-right: "+TrixTG_bordervar[id][2][2]+"px "+TrixTG_bordervar[id][2][1]+" #"+TrixTG_bordervar[id][2][0]+";\n";
			if(TrixTG_bordervar[id][3][2]!='0')
			  string += " border-bottom: "+TrixTG_bordervar[id][3][2]+"px "+TrixTG_bordervar[id][3][1]+" #"+TrixTG_bordervar[id][3][0]+";\n";
			if(TrixTG_bordervar[id][4][2]!='0')
			  string += " border-left: "+TrixTG_bordervar[id][4][2]+"px "+TrixTG_bordervar[id][4][1]+" #"+TrixTG_bordervar[id][4][0]+";\n";}
	}	
	if((TrixTG_bordervar[id][0][2]!='0' || TrixTG_bordervar[id][1][2]!='0' || TrixTG_bordervar[id][2][2]!='0' ||  TrixTG_bordervar[id][3][2]!='0' ||  TrixTG_bordervar[id][4][2]!='0') &&  TrixTG_bordervar[id][0][3]!='0'){
			string += " border-radius: "+TrixTG_bordervar[id][0][3]+"px;\n";
			string += " -moz-border-radius: "+TrixTG_bordervar[id][0][3]+"px;\n";
			string += " -webkit-border-radius: "+TrixTG_bordervar[id][0][3]+"px;\n"; }
	return string;
}
function TrixTG_returnopacitycode(id)
{
	var string ='';
	if(TrixTG_codevar["TrixTG_"+id+"opacity"]!='100')
	  string = " opacity: "+TrixTG_codevar["TrixTG_"+id+"opacity"]+"%;\n";
	return string;
}







