// ================= Global Block Starts ======================

var GlblBrandCompanyName='PowerOfSoftware'
var GlblAppName='Photo Pos Pro'
var GlblOrgAppName=GlblAppName
var GlblCompanyName='PowerOfSoftware Ltd.'
var GlblWebSiteUrl='http://www.photopos.com'
var GlblSupportEmailAddress='support@photopos.com'
var GlblPowerOfSoftware_3RdParty_Distributor='none'      // 'none','sduk'
var GlblLanguage='En' // 'En', 'Fr'
var GlblSoftwareType='Pro'  // 'Pro','Lite'

// Rebrand If Needed
// GlblBrandCompanyName='Bakhter'
// GlblBrandCompanyName='VMN'

switch(GlblBrandCompanyName)
{
     case 'PowerOfSoftware' :
	 	  {
	 	       GlblAppName='Photo Pos Pro'
			   GlblCompanyName='PowerOfSoftware Ltd.'
			   GlblWebSiteUrl='http://www.photopos.com'
			   GlblSupportEmailAddress='support@photopos.com'		   
			   break
		  }	 
	 case 'VMN' :
	 	  {
	 	      GlblAppName='VMN PhotoEdit'			   
			   GlblCompanyName='VMN'		
			   if (GlblLanguage=='Fr')
			   	  GlblWebSiteUrl='http://software.visicommedia.com/fr/products/vmnphotoedit/'
			  else
			   	  GlblWebSiteUrl='http://software.visicommedia.com/en/products/vmnphotoedit/'			  
			  
			   GlblSupportEmailAddress='support@vmn.net'					   	   
			   break			   		  
		  }
	 case 'Bakhter' :
	 	  {
	 	       GlblAppName='Bakhter Image Pro'
			   GlblCompanyName='Bakhter.com'		
			   GlblWebSiteUrl='http://www.bakhter.com'
			   GlblSupportEmailAddress='support@bakhter.com'					   	   
			   break			   		  
		  }	 
	 default :
	 	  {
	 	       GlblAppName='Photo Pos Pro'
			   GlblCompanyName='PowerOfSoftware Ltd.'			   
			   GlblWebSiteUrl='http://www.photopos.com'
			   GlblSupportEmailAddress='support@photopos.com'			   
			   break			   
		  }
}		  

// ================= Global Block Ends ======================

function Print_Purchase_Upgrade_URL()
{
 		 if (GlblPowerOfSoftware_3RdParty_Distributor=='softonic')
		 { 
		 document.write('<center><b><a href="http://photo-pos-pro.en.softonic.com" target="_blank"><big>Try It For Free</big></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://comercio.softonic.com/pv/5272" target="_blank"><big>Buy Now</big></a></b></center><br><br>')
		 }
}

function Get_PowerOfSoftware_3RdParty_Distributor1()
{
var tmp_info=''

switch(GlblPowerOfSoftware_3RdParty_Distributor)
   {
     case 'sduk' :
	 	  {
		   	  tmp_info='<li><a href="#SDUK"><b>UK & Ireland Purchases</b></a>'
			  break
		  }	 
	 default :
	 	  {	   
		  	   tmp_info=''
			   break			   
		  }
   }		  
   document.write(tmp_info)
}

function Get_PowerOfSoftware_3RdParty_Distributor2()
{
var tmp_info=''

switch(GlblPowerOfSoftware_3RdParty_Distributor)
   {
     case 'sduk' :
	 	  {
		   	  tmp_info='<a name="SDUK"><u><font size=+1>Purchase - UK & Ireland</u></font><br><br>'
			  tmp_info= tmp_info + 'Visit SoftDeko UK for single and volume license purchases.<br><a href="http://www.softdeko.co.uk/powerofsoftware.asp?RefferSrc=PhotoPosPro_HelpFile" target="new">http://www.softdeko.co.uk/powerofsoftware.asp</a><br><br>'
			  break
		  }	 
	 default :
	 	  {	   
		  	   tmp_info=''
			   break			   
		  }
   }		  
   document.write(tmp_info)
}

function PannelUp1()
{
   if (GlblBrandCompanyName=='PowerOfSoftware')
   {
   	  if (GlblSoftwareType=='Lite')
      	 document.write("<tr height='55'><td background='Images/PannelUpLite.bmp'></td></tr><tr><td><hr><!-- <font size=+2>PhotoPos Pro 1.0</font> --><font style='color:red'>NOTE: This help file is Photo Pos Pro's help file. Currently Photo Pos Lite does not have its own help file. You may however use this help file, since Photo Pos Pro contains all the features of Photo Pos Lite. Note that some of the features shown on this help file are not available in the Lite version</font></td></tr>")
	  else
      	 document.write('<tr height="55"><td background="Images/PannelUp.bmp"></td></tr>')	  
	  
   }
   else
   {
   	  if (GlblBrandCompanyName=='VMN')
	  {
   	   if (GlblSoftwareType=='Lite')
      	   document.write("<tr height='55'><td background='Images/PannelUp1_VMN_Fr_lite.bmp'></td></tr><tr><td><hr><!-- <font size=+2>PhotoPos Pro 1.0</font> --><font style='color:red'>NOTE: This help file is " + GlblAppName + "'s help file. Currently " + GlblAppName + " Lite does not have its own help file. You may however use this help file, since " + GlblAppName + " contains all the features of " + GlblAppName + " Lite. Note that some of the features shown on this help file are not available in the Lite version</font></td></tr>")
	   else	  
           document.write('<tr height="55"><td background="Images/PannelUp1_VMN_Fr.bmp"></td></tr>')	  
	  }
	  else
	  {
         document.write('<tr height="55"><td><font size=+4><b><i>' + GlblAppName + '</i></b></font</td></tr>')
	  }   
   }
}

function PannelDown1()
{
   if (GlblBrandCompanyName=='PowerOfSoftware')
   {
      document.write('<tr><td bgcolor="#d3d3d3"><center><img src="Images/LogoDown.bmp"></center></td></tr>')
   }
   else
   {
   	  if (GlblBrandCompanyName=='VMN')
	  {   
			if (GlblLanguage=='Fr')	  
      		   document.write('<tr><td bgcolor="#eaeaea"><center><font size=-1>Copyright (c) All rights reserved.<br>VMN Photo Edit / Lite (French) is the french version of Photo Pos Pro / Lite , distributed by Visicom Media.</font></center></td></tr>')
			else
      		   document.write('<tr><td bgcolor="#eaeaea"><center><font size=-1>Copyright (c) All rights reserved.<br>VMN Photo Edit / Lite (English) is the english version of Photo Pos Pro / Lite, distributed by Visicom Media.</font></center></td></tr>')			
	  }	  
	  else
	  {   
      	document.write('<tr><td bgcolor="#eaeaea"><center><font size=-1>Copyright (c) All rights reserved.</font></center></td></tr>')
	  }   
   }
}

function SoftwareName1()
{
 		 document.write(GlblAppName)
}

function SoftwareCompany1()
{
 		 document.write(GlblCompanyName)
}

function WebSiteUrl1()
{
 		 document.write("<a href='" + GlblWebSiteUrl + "' target='_blank'>" + GlblWebSiteUrl + "</a>")
}

function SupportEmailAddress1()
{
 		 document.write("<a href='mailto:" + GlblSupportEmailAddress + "'>" + GlblSupportEmailAddress + "</a>")
}

function JointLink1()
{
 	if (GlblLanguage=='Fr')
		document.write ("La boîte de dialogue comporte les commandes regroupées suivantes : <a href='JointCommands1.htm#ok'>Bouton OK,</a> <a href='JointCommands1.htm#Previsualiser'>Bouton Prévisualiser,</a> <a href='JointCommands1.htm#Annuler'>Bouton Annuler,</a> <a href='JointCommands1.htm#Help'>Bouton d'aide,</a> <a href='JointCommands1.htm#Avancé'>Bouton Avancé</a> (<a href='JointCommands1.htm#Opacité'>Curseur d'opacité,</a> <a href='JointCommands1.htm#Mode de fusion'>Zone de liste déroulante Mode de Fusion,</a> <a href='JointCommands1.htm#Normal'>Bouton Normal</a>), <a href='JointCommands1.htm#Prévisualisation automatique'>Case à cocher Prévisualisation automatique,</a> et le <a href='JointCommands1.htm#Utilisation de textures'>Case à cocher Utilisation de textures.</a>");
	else
		document.write ('The dialog box also has the following joint commands: <a href="JointCommands1.htm#ok">OK Button,</a> <a href="JointCommands1.htm#Preview">Preview Button,</a> <a href="JointCommands1.htm#Cancel">Cancel Button,</a> <a href="JointCommands1.htm#Help">Help Button,</a> <a href="JointCommands1.htm#Advanced">Advanced Button</a> (<a href="JointCommands1.htm#Opacity">Opacity Slider,</a> <a href="JointCommands1.htm#BlendMode">Blend Mode Dropdown,</a> <a href="JointCommands1.htm#Normal">Normal Button</a>), <a href="JointCommands1.htm#AutoPreview">Auto Preview Checkbox,</a> and the <a href="JointCommands1.htm#UseTexture">Use Texture Checkbox.</a>');
}

function CommonLine1(submenuname,menuname)
{
 	if (GlblLanguage=='Fr')
	   document.write ("<Couleurs de police de caractères='#330099'><i>Afin d'activer la fonction, appuyez sur " + submenuname + " sub-menu sous " + menuname + " menu.</i></font>")
	else
		document.write ('<font color="#330099"><i>In order to activate the function press on the ' + submenuname + ' sub-menu under the ' + menuname + ' menu.</i></font>')	
}

function CommonLine2()
{
 	if (GlblLanguage=='Fr')
	   document.write ("La boîte de dialogue de la fonction est dotée d'un nombre de commandes permettant de contrôler les opérations s'y afférant :")
	else	   
	 document.write ("The function's dialog box has a number of commands which enable the control of the function's operations:")	
}

function CommonLine3(submenuname,menuname)
{
 	if (GlblLanguage=='Fr')
	   document.write ("<Couleurs de police de caractères='#330099'><i>Afin d'accéder à ce sous-menu,sélectionnez le " + menuname + " menu et ensuite sélectionnez le " + submenuname + " sous-menu.</i></police de caractères>")
	else	   
	   document.write ('<font color="#330099"><i>To get to this sub-menu, select the ' + menuname + ' menu and then select the ' + submenuname + ' sub-menu.</i></font>')	
}

function CommonOkCancel1()
{
 	if (GlblLanguage=='Fr')
	   document.write ("Afin de terminer l'opération, appuyez sur le bouton OK. Pour annuler l'opération, appuyez sur le bouton Annuler.")
	else
		document.write ("In order to complete the process, you must press the OK button. In order to cancel the process, press the Cancel button.")		   
}

function CommonTools1()
{
 	if (GlblLanguage=='Fr')
	   document.write ("<u>Propriétés de l'outil</u><br><br>La fenêtre Propriétés de l'outil comporte un nombre de commandes permettant de contrôler les propriétés de l'outil. Afin de visualiser cette fenêtre, appuyez sur la touche F2.")
	else
		document.write ("<u>The tool's properties</u><br><br>The tool's properties window contains a number of commands through which it is possible to control the tool's properties. To view the tool's properties window press F2 or <img src='images/Tools1.gif' BORDER=1 Align='Center'>")		                                
}

function CommonTools2(toolname)
{
 	if (GlblLanguage=='Fr')
	   document.write ("Afin d'activer cet outil, appuyez sur  " + toolname + " bouton sur la barre d'outils Outils.")
	else	   
	   document.write ("In order to activate the tool, press the " + toolname + " button in the Tools Toolbar.")	
}

function CommonToolsAutoStyleToolbar(AutoStyleImg_FileName)
{ 
//v1.41
 	if (GlblLanguage=='Fr')
	   document.write ("<li><a href='ToolbarAutoStyles.html'><img src='" + AutoStyleImg_FileName + "' align=center border=0><br><u>Auto Styles Toolbar</a></u> - cette barre d'outils vous permet de sélectionner une couleur/un style parmi un nombre de styles standards prédéfinis (lorsque la couleur/le style automatique sera sélectionné,toutes les commandes reprendront leurs valeurs prédéfinies).<br><br>")
	else	   
	document.write ("<li><a href='ToolbarAutoStyles.html'><img src='" + AutoStyleImg_FileName + "' align=center border=0><br><u>Auto Styles Toolbar</a></u> - With this toolbar it is possible to select a color/style out of the number of standard automatic style  that have been pre-defined (selecting an auto color/style will cause, in effect, all of the commands to set themselves to their pre-defined values).<br><br>")	
}

function CommonToolsColorAndStyle()
{ 
//v1.41
 	if (GlblLanguage=='Fr')
	   document.write ("<li><u>Fichier Couleurs & Styles </u><br> Les commandes de ce fichier vous permettent de définir la couleur de l'outil, ainsi que les styles, etc. utilisés par l'outil de peinture.<ul><li><b>Auto Colors Mode</b> - L'outil utilisera le <a href='ToolbarAutoStyles.html'>style automatique </a> sélectionné (bouton gauche de la souris) ou le <a href='ToolbarAutoStyles.html'>sytle automatique inversé</a> (bouton gauche de la souris) afin d'effectuer des opérations de peinture.<li><b>Style personnalisé (Avancé)</b> - permet de sélectionner <a href='StylePicker.htm'un style personnalisé</a> pour des opérations de peintre. Pour plus d'informations sur les styles <a href='StylePicker.htm'> cliquez ici.</a></ul>")
	else
		document.write ("<li><u>Colors & Style card-index</u><br>With the commands in this card-index it is possible to set the tool's colors, style/s and etc. with which the paint tool will make use.<ul><li><b>Auto Colors Mode</b> - The tool will make use of the <a href='ToolbarAutoStyles.html'>Auto Style</a> selected (left mouse button) or the <a href='ToolbarAutoStyles.html'>invert Auto Style</a> (right mouse button) for painting.<li><b>Custom Style (Advanced)</b> - Allows you to select <a href='StylePicker.htm'>custom style</a> for painting. For more info about styles please <a href='StylePicker.htm'>click here.</a></ul>")		   
}

function CommonFunctionsColorAndStyle()
{ 
//v1.41
 	if (GlblLanguage=='Fr')
	   document.write ("Boîte Couleurs/Styles :<ul><li><b>Option Couleurs</b> - affiche une boîte de sélection permettant de choisir ou sélectionner la couleur de l'effet.<li><b>Option Style (Avancé)</b> - vous permet de sélectionner <a href='StylePicker.htm'>un style personnalisé</a> de l'effet. Pour plus d'informations sur les styles, veuillez <a href='StylePicker.htm'>cliquez ici.</a> </ul>")
	else
		document.write ("Color/Style Box:<ul><li><b>Color Option</b> - Shows a selection box through which it is possible to select the color of the effect.<li><b>Style (Advanced) Option</b> - Allows you to select <a href='StylePicker.htm'>custom style</a> of the effect. For more info about styles please <a href='StylePicker.htm'>click here.</a> </ul>")		      
}

function TutorialsHome1()
{ 
//v1.41
 	if (GlblLanguage=='Fr')
	   document.write ("<br><a href='TutorialsIndex.htm'>Page d'accueil (Index Tutoriaux)</a><br>")
	else
		document.write ("<br><a href='TutorialsIndex.htm'>Home (Tutorials Index)</a><br>")		      
}