		

		$(document).ready(function(){
					   
				var useScript = true;
				var prevImg = "";
				var timeOut = "";
				$('.showcaseImage').fadeTo(5, 0.7);

				//$('.menuitem.last.selected').children('a').css('background-image','url('+root+'template/ImageGenerator.php?barwidth='+$('.menuitem.last.selected').attr('id')+'&state=over)')
				$('.last.menuitem').children('a').hover(function(){
					if (!$(this).is('.selected')){
					 barwidth = $(this).parent().attr('id');
					 imgURL = 'url('+root+'template/ImageGenerator.php?barwidth='+barwidth+'&state=over)'

					 $(this).css('background-image', imgURL);
					}
				},
				function(){
					if (!$(this).is('.selected')){
						barwidth = $(this).parent().attr('id');
						imgURL = 'url('+root+'template/ImageGenerator.php?barwidth='+barwidth+')'
						 $(this).css('background-image', imgURL);
					}
				});
			/*
				$('.menuitem.mid').mouseover( function(){
					   if (!$(this).is('.selected')){		
						 imgURL = 'url('+root+'template/images/t_content_subMenu_bar_mid_over.gif)'
						 $(this).css('background-image', imgURL);
					   }
				}).mouseout(
				function(){
					if (!$(this).is('.selected')){		
						imgURL = 'url('+root+'template/images/t_content_subMenu_bar_mid.gif)'
						 $(this).css('background-image', imgURL);
					}
				});
				$('.menuitem.first').mouseover( function(){
						if (!$(this).is('.selected')){														 
							 imgURL = 'url('+root+'template/images/t_content_subMenu_bar_left_over.gif)'
							 $(this).css('background-image', imgURL);
						}
				}).mouseout(
				function(){
						if (!$(this).is('.selected')){	
							imgURL = 'url('+root+'template/images/t_content_subMenu_bar_left.gif)'
							 $(this).css('background-image', imgURL);
						}
				});
			*/
				$(".midContainer_mid_description").fadeTo(0, 0.7);

				if ($.browser.msie) {	
					if($.browser.version.substr(0,1)<7){
						useScript = false;		
					}
				}
				
								//	$(".midContainer_mid_description").css('top',$(".midContainer_mid_description").css('height'));

				$(".descriptionTab_closeButton").click(function(){

							uniqueClass = $(this).attr('class').split(' ').slice(-1); 
							uniqueSubject = $('.midContainer_mid_description.'+uniqueClass);
						
							usetop = parseInt(uniqueSubject.css("top"));
						if(parseInt(uniqueSubject.css("top")) <= 16){
									uniqueSubject.animate({
									top: parseInt(uniqueSubject.height()) + "px"
								}, {queue:true, duration:(parseInt(uniqueSubject.height())*5)} );
									$(this).attr("id", "descriptionTab_expand");
						}else{
									uniqueSubject.animate({
									top: "16px"
									//top: "0px"
								}, {queue:true, duration:(parseInt(uniqueSubject.height())*5)} );	
									$(this).attr("id", "descriptionTab_collapse");
						}

						
				});	
			if(useScript){
			
						$(".childProject").mouseover(function(){	
						if (!$(this).is('.dummyPlaceholder')){
						  $(this).animate( {
							marginTop: ($(this).attr("prj_margin")-10)+"px"
					
							}, {

							queue:false, duration:200 
							} );
						}
						}).mouseout(function(){
						if (!$(this).is('.dummyPlaceholder')){
							  $(this).animate( {
								marginTop: $(this).attr("prj_margin")+"px"
			
								}, {
								
								queue:false, duration:200 
								} );
						}
						});
					
						$(".projectContainer").mouseover(function(){		
							if (!$(this).is('.dummyPlaceholder')){
							  $(this).animate( {
								marginTop: ($(this).attr("prj_margin")-10)+"px"
						
								}, {
								
								queue:false, duration:200 
								} );
							}
						}).mouseout(function(){
							if (!$(this).is('.dummyPlaceholder')){
							  $(this).animate( {
								marginTop: $(this).attr("prj_margin")+"px"
			
								}, {
								
								queue:false, duration:200 
								} );
							}
						});
				}
	
});
				function loadProject(formName){
					$("."+formName).submit();
				}		

