// ROLL OVER FUNCTIONS
		function rollOver(image, sfx) {
			var active = image.parentNode.getAttribute("activelink");
			if (active=="" || active==null) {
				var imgSrc = image.src;
				var imgFile = new Array();
				var imgFile = imgSrc.split("/");
				var ix = imgFile.length-1;
				var myRegExp = new RegExp("\\..+", "gi");
				var imgExt = myRegExp.exec(imgFile[ix]);
				var newImgSrc = imgSrc.replace(imgExt, sfx+imgExt);
				image.src = newImgSrc;
			} else {
				image.parentNode.removeAttribute("href");
			}
		}

		function rollOut(image, sfx) {
			var active = image.parentNode.getAttribute("activelink");
			if (active=="" || active==null) {
				var imgSrc = image.src;
				var imgFile = new Array();
				var imgFile = imgSrc.split("/");
				var ix = imgFile.length-1;
				var myRegExp = new RegExp("\\..+", "gi");
				var imgExt = myRegExp.exec(imgFile[ix]);
				var newImgSrc = imgSrc.replace(sfx+imgExt, imgExt);
				image.src = newImgSrc;
			} else {
				image.parentNode.removeAttribute("href");
			}
		}
////////////

		function okMessage(testo){
			Shadowbox.open({
				player:     'html',
				content:    '<div style="background-color: #fff; height: 160px; width: 300px; text-align:center;"><br \/><br \/>'+testo+'<\/div>',
				height:     160,
				width:      300
			});
		}

		function pleaseWait(wait_msg,wx,hx){
			Shadowbox.open({
				player:     'html',
				content:    '<div style="background-color: #fff; height: '+(hx-2)+'px; width: '+(wx-2)+'px; text-align:center; font-size: 12px; color: #047391; text-transform: uppercase; border: 1px solid #047391;"><br \/><br \/>'+wait_msg+'<br \/><br \/><img src="img\/loader_wheel.gif" \/></div>',
				height: hx,
				width: wx,
				options: {
					modal: true,
					displayNav: false
				} 
			});
		}
		
		function ShadowPost(tform,ww,hh){
			var getAction = tform.getAttribute('action');
			var params = '';
			for ( i = 0; i < tform.length; i++ ) {
				if (tform[i].name != undefined && tform[i].name != '') {
					params = params + ((params!='') ? "&" : "") + tform[i].name + "=" + tform[i].value;
				}
			}
			Shadowbox.open({
				player:     'iframe',
				content:    getAction+'?'+params,
				width:	ww,
				height:	hh
			});
			return false;
		}


