
		$(document).ready(function(){	
		
			$('img#bgimage,div#main, div#mainmenu, div#submenu,div#maincontentwrapper ,div#maincontentwrapper div,div#signup').css("display", "none");
			//$('div#main, div#mainmenu, div#submenu, div#maincontent').css("display", "none");

			$('img.bgimage').maxImage({
				isBackground: true,
				verticalAlign: 'top',
				maxFollows: 'both'
			});
			
		
			$('div#main').fadeIn(1500);
			$('div#mainmenu').fadeIn(2000);
			$('div#submenu').fadeIn(3000);
            $('div#signup').fadeIn(4000);
            $('div#maincontentwrapper').fadeIn(4000);
			$('div#maincontentwrapper div').fadeIn(4000);
            
            
      
			intdivtotalheight=$('div#submenu').height()+$('div#mainmenu').height()+$('div#maincontentwrapper div#maincontent').height();
           
			intdivheight=$(document).height()-$('div#submenu').height()-$('div#mainmenu').height();
			intdivheight=intdivheight-75;
          
			if($(document).height()<intdivtotalheight)
			{
				
				$('div#maincontentwrapper').height(intdivheight+10);
				$('div#maincontent').height(intdivheight);
			}
			else
			{
				$maincont=$('div#maincontent').parent();
				dummyDiv='<div style="{height:'+intdivheight+'px;clear:both;}">&nbsp;</div>'
				$(dummyDiv).insertAfter($maincont);
			}
			$('#maincontent').jScrollPane({showArrows:true, scrollbarWidth:14, scrollbarMargin:0});

			//$('div#maincontent').fadeIn(4000);
			//$('div#more, ul#hidden-tracks').fadeIn(2000);
//			$('div#pane1, div#page-1, div#page-0').fadeIn(2500);
//	
			

		
			
		
//	
		});
		
		
		function fnShowContent(item,strparentid,strchildId)
		{
			
		
				intdivheight=$(document).height()-$('div#submenu').height()-$('div#mainmenu').height();
				intdivheight=intdivheight-120;
			
				itemid="img#SubMenu_"+strchildId;
				submenuid='table#'+strparentid+"_"+"SubMenu";
				contentid='div#'+strparentid+"_"+strchildId;
				$('div#maincontent').height(intdivheight);
			
				$('div#maincontent').hide();
				$('div#maincontent').find('div').hide();
				$('div#maincontentwrapper').fadeIn(1500);
				$('div#maincontent').fadeIn(1500);
				$(contentid).fadeIn(1500);
			
				strimg=$(itemid).attr('imgsrc');
				strimg='gui/'+strimg.replace('.','-o.');
			
				$(submenuid).find('img').each(
					function(i)
					{
						$(this).attr('src','gui/'+$(this).attr('imgsrc'));
						$(this).attr('selected','no');
					});
					
				$(itemid).attr('src',strimg);
				$(itemid).attr('selected','yes');
				$('#maincontent').jScrollPane({showArrows:true, scrollbarWidth:14, scrollbarMargin:0});
		}
		
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}








function check()
{
	

if (document.feed.FirstName.value == ""){
    alert("Please enter your first name.");
    document.feed.FirstName.focus();
    return (false);
}
  

	 
  
  	 
if (echeck(document.feed.Emailfull.value) == false)
	{
		 
		document.feed.Emailfull.focus();
		  return (false);
	}


 

 
  

  
return (true);
}


/**
 * DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */

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					
	}
