

			stepcarousel.setup({
				galleryid: 'mygallery', //id of carousel DIV
				beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
				panelclass: 'panel', //class of panel DIVs each holding content
				autostep: {enable:true, moveby:1, pause:3000},
				panelbehavior: {speed:500, wraparound:false, persist:true},
				statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
				contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
				
			})

        

            var prev_step = 1;
			

            function do_step_display(step)
            {
                document.getElementById('step_' + step).style.color = "#ffffff";
                document.getElementById('step_' + prev_step).style.color = "#b2b2b2";	
				document.getElementById('title_' + prev_step).style.display='none';
				document.getElementById('title_' + step).style.display='inline';

            }


            function step_andam(step)
            {
                if (step != prev_step) {
                    real_step = step - prev_step;		
                    //alert(document.getElementById('step_' + step).id);
                    do_step_display(step);
                    prev_step = step;
                    stepcarousel.stepTo('mygallery', step);
                }
            }
            
            function next_step()
            {
                step = prev_step + 1;
                do_step_display(step);
                prev_step = step;
                stepcarousel.stepBy('mygallery', 1);
            }

			function showhide(step,disp) {

				if (disp=='none') {
				document.getElementById('slide_container').style.display='inline';
				document.getElementById('title_' + step).style.display='none';
				document.getElementById('thumbs').style.display='none';
				document.getElementById('full_title_' + step).style.display='inline';

				} else {
				document.getElementById('slide_container').style.display='inline';
				document.getElementById('title_' + step).style.display='inline';
				document.getElementById('thumbs').style.display='inline';
				document.getElementById('full_title_' + step).style.display='none';
				}
			}
			
			function showhideissue(step,disp) {

				if (disp=='none') {
				document.getElementById('slide_container').style.display='inline';
				document.getElementById('slide').style.display='none';
				document.getElementById('slide_next').style.display='none';
				document.getElementById('title_' + step).style.display='none';
				document.getElementById('full_title_' + step).style.display='inline';

				} else {
				document.getElementById('slide_container').style.display='inline';
				document.getElementById('slide').style.display='inline';
				document.getElementById('slide_next').style.display='inline';
				document.getElementById('title_' + step).style.display='inline';
				document.getElementById('full_title_' + step).style.display='none';
				}
			}
			
			function showPopup(callbackFunc) {
			  s = '';
			  s += '';
			  s += '<div id="formDiv">';
			  s += '  <a href="javascript:void(0);" name="btnCancel" id="btnCancel">x</a>';
			  s += '  <form name="newSubscribeForm" id="newSubscribeForm" method="post">';
			  s += '  Name: <input id="n" name="n" type="text" maxlength="30"/><br />';
			  s += '  Email: <input id="e" name="e" type="text" maxlength="30" onblur="return echeck(this.value);"/><br />';
			  s += '  <a href="javascript:void(0);" name="btnSave" id="btnSave">Subscribe</a>';
			  s += '  </form>';
			  s += '</div>';
			  s += '';
			  
			  s += '<script type="text/javascript">';
			  s += '  formInfo = "";';
			  s += '  $("#btnCancel").click(function(){';
			  s += '    $("#formDiv").remove();';
			  s += '  });';
			  s += '  $("#btnSave").click(function(){';
			  s += '    formInfo = new Object;';
			  s += '    formInfo.n = $("#n").val();';
			  s += '    formInfo.e = $("#e").val();';
			  s += '    returnResponse(formInfo);';
			  s += '  });';
			  s += '  function returnResponse(fI){';
			  s += '    $("#formDiv").remove();';
			  s += '    ' + callbackFunc + '(fI);';
			  s += '  }';
			  s += '</script>';
			  $("body").append(s);
			}

    function processData(formData){
	
      n = formData != "Cancelled" ? formData.n : formData;
	  e = formData != "Cancelled" ? formData.e : formData;
	  $('#AjaxResult').load("ajax/subscribe.php?n="+n+"&e="+e);
	  alert("Thank you for subscribing!");
    }
	
	function echeck(str) {
	
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}
	
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}
	
		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
			alert("Invalid E-mail ID")
			return false
		}
	
		 if (str.indexOf(at,(lat+1))!=-1){
			alert("Invalid E-mail ID")
			return false
		 }
	
		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
			alert("Invalid E-mail ID")
			return false
		 }
	
		 if (str.indexOf(dot,(lat+2))==-1){
			alert("Invalid E-mail ID")
			return false
		 }
		
		 if (str.indexOf(" ")!=-1){
			alert("Invalid E-mail ID")
			return false
		 }
	
		 return true					
	}

