﻿/*

	Copyright 2010 Cevican AB. www.SolidComponents.com
	Do not modify.

	-	*** Please note that no functions in SCToolbox.js may be called directly.
		*** Only Commands in this JavaScript file may be called.

	-	Toolbox Light™ is free software and in order to use it, the customer 
		must include proper credits on each web page that utilizes the software.
		“CAD support powered by SolidComponents™ technology.
		
	-	Toolbox Light™ is intellectual property of Cevican AB and may under no 
		circumstances be copied, modified, distributed, “de-compiled” or disclosed 
		to third parties. Toolbox Light™ is equipped with monitoring functions that 
		will detect possible misuse.
		
	-	Only customers of Cevican AB may implement and use Toolbox Light™.
		
	-	Toolbox Light™ may only be included into one web site to support one company 
		only. This means only one domain.
				
	-	Toolbox Light™ may only be used as specified in the manual and Toolbox library 
		functions not specified in the public API may under no circumstances be called 
		directly.
		
	-	Toolbox Light™ should be considered a “constant Beta” product that is 
		continuously developed. Functionality may be changed or modified.
		
	-	The customer understands that the latest version of Toolbox Light™ must always 
		be used and that the customer may only include the Toolbox library directly from 
		SolidComponents URL. By using the SolidComponents Toolbox URL, the use of the 
		latest version will be ensured.
		
	-	Toolbox Light™ is provided free of charge without any warranties and is used on 
		the customers own risk. Reasonable care has been taken and the software has been 
		rigorously tested in order to minimize the risk for critical errors.
		
	-	It is strictly forbidden to bypass the Toolbox Light™ communication manager to 
		call SolidComponents servers directly. All communication with SolidComponents 
		must be handled directly by the communication manager which is ensured by using 
		the provided API.
		
	-	Cevican AB takes no responsibility for any consequences, direct or indirect, by 
		using Toolbox Light™.
		
	-	Toolbox Light™ utilizes existing well-known and accepted IT-technology to 
		communicate between client and server. As the Internet is a constantly changing 
		environment, it is though still not possible to completely guarantee exactly the 
		same functionality in the future.
		
	-	Toolbox Light™ has been developed with future compatibility as a guiding rule. 
		Though, the customer understands that Cevican AB has the right to require the 
		customer to implement modifications to their current implementation in order to 
		continue using Toolbox Light™.
		
	-	The general conditions for using Toolbox Light™ may be modified without prior 
		notification. It is the customers’ responsibility to stay informed. The general 
		conditions are accessible from the customers’ administrative system at their 
		SolidComponents product catalogue.
		
	-	The customer understands that activity will be logged in order to provide 
		statistics, error control and to provide support as well as to prevent fraud and 
		possible misuse.
		
	-	Identification will be required using a digital security key that may be changed 
		over time in order to certify that Toolbox Light™ is used properly.
		
	-	In the case of certain reasons, such as but not limited to, security issues 
		Cevican AB has the right to deactivate features of Toolbox Light™.
		
	-	Toolbox Light™ may only be used to support manual user interaction through mouse 
		and keyboard activity and all attempts to programmatically access or utilize 
		server resources is strictly prohibited.

*/

/*
	2011-04-19	v.1.1.0		Added support for Ajax updates of part numbers in product tables. Added command SCRefresh().
	2011-04-19	v.1.1.0		Added version check.
*/

var SCToolboxApiVersion = "1.1.0";

/*
Initialize SCToolbox with:

<Xscript language="javascript">SCInit("SCCC");</Xscript>

SCCC specified from SolidComponents.

Add in <head>
*/
function SCInit(SCCC)		{ SCToolbox.Init(SCCC); }

/*
To refresh toolbox. For example after an Ajax call that replaces CAD links on page.

<Xscript language="javascript">SCRefresh();</Xscript>
*/
function SCRefresh()		{ SCToolbox.Refresh(); }

/*
Use toolbox with other Class than those specified below:

<Xscript language="javascript">SCTranslateClass("SCCADLink", "CAD");</Xscript>

This creates CAD-Links of HTML-objects with classname "CAD".

Add in <head> after SCInit.
*/
function SCTranslateClass(SCClassName, MyClassName)		{ SCToolbox.TransformManager.SetObjectClassName(SCClassName, MyClassName); }


/*
Add debug box:

Insert first in <body>

<div id="SCToolboxDebug"></div>


Add PartNo CAD Link:

<span class="SCCADLink">PartNo</span>


Add PartNo CAD Link with icon:

<span class="SCIconCADLink">PartNo</span> 


Add Text CAD Link:

<span class="SCAttrCADLink" partno="PartNo">Text</span>


Add Text CAD Link with icon:

<span class="SCAttrIconCADLink" partno="PartNo">Text</span>


Add Configurator

<span class="SCConfigurator">ConfiguratorName</span>


Add Progress

<span class="SCProgress"></span>


Add Progressbar

<div class="SCProgressbar" style="width: 100px; hegiht: 20px;"></div>


Add Format Selector

<span class="SCCADFormatMenu"></span>


Add Download Icon

<span class="SCDownloadcontainerIcon"></span>


Add Download Thumbnail

<span class="SCDownloadcontainerThumbnail"></span>
*/
