var fsg
var openac
var chess
var chesstran
var auth,deed,eto,collat;
 var properties="";
 function loader(){
  fsg = new Draggable('fsg', {revert:'failure',docselect:'false',docfilename:'FormsFSG.pdf',onEnd:Possie});
  openac = new Draggable('openac', {revert:'failure',docselect:'false',docfilename:'FormOpenAccount.pdf',onEnd:Possie});
  chess = new Draggable('chess', {revert:'failure',docselect:'false',docfilename:'Chess_SponsForm.pdf',onEnd:Possie});
  chesstran = new Draggable('chesstran', {revert:'failure',docselect:'false',docfilename:'ChessTransForm.pdf',onEnd:Possie});
  collat = new Draggable('collat', {revert:'failure',docselect:'false',docfilename:'FormCollateral.pdf',onEnd:Possie});
  eto = new Draggable('eto', {revert:'failure',docselect:'false',docfilename:'FormETO.pdf',onEnd:Possie});
  deed = new Draggable('deed', {revert:'failure',docselect:'false',docfilename:'DeedForm.pdf',onEnd:Possie});
  auth = new Draggable('auth', {revert:'failure',docselect:'false',docfilename:'AuthorisedForm.pdf',onEnd:Possie});
 

  Droppables.add('droppable_demo', {accept: 'draggable',hoverclass: 'hover',onDrop:fart});
  
  }
  function fart(DRAGGABLE,DROPPABLE,MOUSEEVENT){
     }
  function Possie(DRAGGABLE,MOUSEEVENT){
    
   }
  function GetEm(){
  
  var base =  document.getElementsByTagName('base');
  var basehref = base[0].href;

  var page1 = basehref + "section05/bacDownloadV2.cfm?";
  
  	   if (fsg.options['docselect']==true){
	   	  	page1 += "fsg="+ fsg.options['docfilename']+ "&";
	   }
	   if (openac.options['docselect']==true){
	   	  	page1 += "openac="+ openac.options['docfilename']+ "&";
	   }
	    if (chess.options['docselect']==true){
	   	  	page1 += "chess="+ chess.options['docfilename']+ "&";
	   }
	   if (chesstran.options['docselect']==true){
	   	  	page1 += "chesstran="+ chesstran.options['docfilename']+ "&";
	   }
	   if (collat.options['docselect']==true){
	   	  	page1 += "collat="+ collat.options['docfilename']+ "&";
	   }
	   if (eto.options['docselect']==true){
	   	  	page1 += "eto="+ eto.options['docfilename']+ "&";
	   }
	   if (deed.options['docselect']==true){
	   	  	page1 += "deed="+ deed.options['docfilename']+ "&";
	   }
	  if (auth.options['docselect']==true){
	   	  	page1 += "auth="+ auth.options['docfilename']+ "&";
	   }
	  
	 	   	
	window.location.href = page1;
	
  
  }
  function Oops(){
  		 
  var  restter = new Array(fsg,openac,chess,chesstran,collat,eto,deed,auth);
  
  	   for (var i = 0; i<restter.length;i++){
	   	   		
    	   	    var d = restter[i].currentDelta();
					if (restter[i].delta){
					   			restter[i].options.reverteffect(restter[i].element,d[1]-restter[i].delta[1], d[0]-restter[i].delta[0]);
						}
				}
    			/*var d = fsg.currentDelta();
				fsg.options.reverteffect(fsg.element,d[1]-fsg.delta[1], d[0]-fsg.delta[0]);*/
  
  }
