function tiled() {
			var tile = flashMovie.addTiled();
		};
		function single(which) {
			var single = flashMovie.removeTiled(which);
		};
		function displayPosition(xpos,ypos,action) {
		var holdTimer;
			var changeValue = function(){
                var showimgpos = flashMovie.moveImage(xpos,ypos,action);
				$('customFieldPosition').value = showimgpos;
				holdTimer = setTimeout(changeValue, 100);
             }			
			 changeValue();
			 document.onmouseup = function(){
                                clearTimeout(holdTimer);
                        }
		};
		
		function shapemod(action,val) {
		var holdTimer;
			var changeValue = function(){
                var showshape = flashMovie.shapeMod(action,val);
				$('customFieldUrl').value = showshape;
				holdTimer = setTimeout(changeValue, 100);
             }			
			 changeValue();
			 document.onmouseup = function(){
                                clearTimeout(holdTimer);
                        }
		};
		
		function changingColor(stm,el) {
			var chgcolor = flashMovie.updateColor(stm,el);
			$('customFieldColor').value = chgcolor;
		};
		
		function changingImg(type,urlImage) {
			var showimg = flashMovie.changeImg(type,urlImage);
			$('customFieldUrl').value = showimg;
		};
function uplImg(type,urlImage) {
			var showimg = flashMovie.uplImg(type,urlImage);

		};
		function displayTxt(items, speedx, speedy) {
			var showtxt = flashMovie.moveTxt(items, speedx, speedy);
			$('customFieldTxt').value = showtxt;
		};
		function displaytxtRot(items, rotation) {
			var showtxtRot = flashMovie.rotateTxt(items, rotation);
			$('customFieldTxtRot').value = showtxtRot;
		};
		function displaytxtSec(items, Scale) {
			var showtxtSec = flashMovie.scaleTxt(items, Scale);
			$('customFieldTxtSec').value = showtxtSec;
		};
		
		function modPattern(items, types, values) {
		if(items == 0){
			var modPatterns = ptrnMovie.ptrnModSmall(types, values);
			$('pattersend').value = modPatterns;
		}else {
			var modPatterns2 = ptrnMovie.ptrnModBig(types, values);
			$('pattersend').value = modPatterns2;
		}};
		
		function loadptrn(purl) {
	  var ptrn = new SWFObject(purl, "ptrnMov", "100", "100", "8.0.15", "#ffffff", true);
      ptrn.write("ptrncontent");
	  ptrnMovie = $('ptrnMov');
	  ptrn.addParam("wmode", "transparent");
	  };