//Copyrights by SCB USA, Inc., scbUSA.net, iDacota.com, iPlexOS.com and 
//Gunter H Schubert, Ph.D. in Computer Science and Information Technology
//Copyrights for Content Delivery by DentalEDU.TV, Dr. Bradley J Engle
//All rights reserved

//API Settings for Generating the iDacota Web Application Service for only approved Websites
//API Settings Example for Test Button in Layer Mode

var iDacotaAPI = [];

//Show Test Buttons: 0=no(default); 1=yes
iDacotaAPI.ghsTestButtons=1;

//Display Mode of application: 0=Direct Mode(default); 1=Layer Mode
iDacotaAPI.iDacotaMode=1;

//Autostart of Web Application Service: 0=no; 1=yes(default)
iDacotaAPI.iAutoMode=0;

//Your assigned DentalEDU Provider ID
iDacotaAPI.iDacotaID=47;

//Your assigned Public Key
iDacotaAPI.pubkey='K8swuZiipmt7';

//Your assigned Private Key
iDacotaAPI.prvkey='yVt3vgyotKsn';


//for Direct Mode only necessary
//Pixel Height Offset of Browser Window Height  - Here 25px for button height; default=0
iDacotaAPI.iPixelHeightOffset=25;

//Test Buttons
if(iDacotaAPI.ghsTestButtons){
	if(iDacotaAPI.iDacotaMode){
		//Layer Mode
		document.write(''+
			'<div align="center" id="ghsButton" style="height:25px">'+ //;position:absolute;left:200px;top:200px;">'+
				'<button '+
				'onclick="SBiPlexOS();" '+
				'style="font-size:x-small;background-color: #E6E6FA;color: #660066;">'+
				'View Courses'+
				'</button>'+
			'</div>');
	}
	else{
		//Direct Mode
		document.write(''+
			'<div align="center" id="ghsButton" style="height:25px;">'+
				'<button '+
				'onclick="ghsShowHide(1);" '+
				'style="font-size:x-small">'+
				'Show MDE Direct Mode'+
				'</button>'+
				'&nbsp;'+
				'<button '+
				'onclick="ghsShowHide(0);" '+
				'style="font-size:x-small">'+
				'Hide MDE Direct Mode'+
				'</button>'+
			'</div>');
	}
}
else{
	//No Buttons assigned with any onclick Functionality; default=1
	iDacotaAPI.iAutoMode=1;
}

document.write(''+
	'<sc'+'ript type="text/javasc'+'ript" src="ht'+'tp://ww'+'w.iPlex'+'OS.c'+'om/iDacotaDentalCE.a'+'sp?'+
	'iDacotaID='+iDacotaAPI.iDacotaID+
	'&pubkey='+iDacotaAPI.pubkey+
	'&prvkey='+iDacotaAPI.prvkey+
	'&iAutoMode='+iDacotaAPI.iAutoMode+
	'&iPixelHeightOffset='+iDacotaAPI.iPixelHeightOffset+
	'&iDacotaMode='+iDacotaAPI.iDacotaMode+
	'"></sc'+'ript>');


