/* simple script to toggle between four states or rotations *//* each image REQUIRES four states with suffixes _A, _B, _C and normal/empty before the extension */function rotate(sticker_ID) {	var thisimg = dd.elements[sticker_ID];	var root = 'images/stickers/halloween/gifs/';	if (thisimg.src.indexOf("flowersandsquids") > -1) {		alert("1");		root = 'images/stickers/flowersandsquids/gifs/';	}	//alert(root);	if (thisimg.src.indexOf("_A") > -1) {   // replaces "_A" with "_B" to its source		source = root+sticker_ID+'_B.gif';		thisimg.swapImage(source);	} else if (thisimg.src.indexOf("_B") > -1)	 {  //replaces "_B" with "_C" to its source  		source = root+sticker_ID+'_C.gif';		thisimg.swapImage(source);	} else if (thisimg.src.indexOf("_C") > -1)	 {  //replaces "_C" with the default source  	 	source = root+sticker_ID+'.gif';		thisimg.swapImage(thisimg.defsrc);	} else {		source = root+sticker_ID+'_A.gif';		//alert(source);		thisimg.swapImage(source);	}}function makeBig(imgID) {	// makes a selected stickers via its ID to change size by the given dimensions	i = 0;	dd.elements[imgID].copies[i].resizeTo(200,200);	return false;}