jQuery.noConflict();

var proj = "";


function dimThumbs(exception){
	jQuery(".p_img_holder").attr("style","-moz-opacity:.50; filter:alpha(opacity=50); opacity:.50;");
	jQuery("#"+exception).attr("style","	-moz-opacity:1; filter:alpha(opacity=100); opacity:1;");
}

function hideVideo(){
		jQuery("#video-wrap").hide();	
		jQuery("#content").slideToggle("slow");
}


jQuery(document).ready(function(){


jQuery(".thumb-container a:nth-child(odd) img").css("margin-left", "0px");

// sliding panels
	jQuery(".btn-slide").click(function(){
		jQuery("#video-wrap").hide();
		jQuery("#content").slideToggle("slow");
		jQuery(this).toggleClass("active"); return false;
	});
	
	jQuery(".quick-btn-slide").click(function(){
		jQuery(".quick-content").slideToggle(300);
		jQuery(".quick-slide").toggleClass("qs-down"); return false;
	});
// end sliding panels

	
// working PNG fix

jQuery(document).pngFix();

// end PNG fix


// VIDEO PANEL
jQuery("#video-p").click(function(){
		addDiv()
		jQuery("#video-wrap").fadeIn("slow");
		var closer = jQuery("#content").css("display");
		if(closer == "none"){
		
		}else{
		jQuery("#content").slideToggle("slow");
		}
});

jQuery("#video-close").click(function(){
		removeDiv()
		jQuery("#video-wrap").hide();	
		jQuery("#content").slideToggle("slow");					   
});

function removeDiv(){
	jQuery('#video').empty();
}

function addDiv(){
	jQuery('#video').html("<OBJECT WIDTH='698' HEIGHT='367' ID='simplemovie'CODEBASE='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab'><PARAM NAME='MOVIE' VALUE='flash/video.swf' ><PARAM NAME='PLAY' VALUE='false'><PARAM NAME='LOOP' VALUE='false'><PARAM NAME='QUALITY' VALUE='high'><PARAM NAME='SCALE' VALUE='SHOWALL'><EMBED SRC='flash/video.swf' WIDTH='698' HEIGHT='367' wmode='transparent' swLiveConnect='true' NAME='simplemovie'></EMBED></OBJECT>");
}


// IMAGE THUMBNAILS









jQuery(function() {
	jQuery(".jMyCarousel").jMyCarousel({
		visible: '100%'
	});
});


}); 
  
 
 
 // IMAGE PRELOAD
 
jQuery(document).ready(function(){
								
	
	
// IMAGE ROLLOVERS
		
		
		// Navigation rollovers
		jQuery(".img_holder").mouseover(function(){
			imgsrc = jQuery(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_over.jpg"); // strip off extension
			jQuery(this).children("img").attr("src", imgsrcON);
			}
			
		});
		jQuery(".img_holder").mouseout(function(){
			jQuery(this).children("img").attr("src", imgsrc);
		});
//

// other rollovers
		jQuery(".ro").mouseover(function(){
			imgsrc = jQuery(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_over.jpg"); // strip off extension
			jQuery(this).children("img").attr("src", imgsrcON);
			}
			
		});
		jQuery(".ro").mouseout(function(){
			jQuery(this).children("img").attr("src", imgsrc);
		});
//

jQuery(".p_img_holder img").each(function() {
			// Set the original src
			rollsrc = jQuery(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_over.jpg");
			jQuery("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		jQuery(".p_img_holder").mouseover(function(){
			imgsrc = jQuery(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_over.jpg"); // strip off extension
			jQuery(this).children("img").attr("src", imgsrcON);
			}
			
		});
		jQuery(".p_img_holder").mouseout(function(){
			jQuery(this).children("img").attr("src", imgsrc);
		});
//

		jQuery(".f-img a img").each(function() {
			// Set the original src
			rollsrc = jQuery(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_over.jpg");
			jQuery("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		jQuery(".f-img a").mouseover(function(){
			imgsrc = jQuery(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_over.jpg"); // strip off extension
			jQuery(this).children("img").attr("src", imgsrcON);
			}
			
		});
		jQuery(".f-img a").mouseout(function(){
			jQuery(this).children("img").attr("src", imgsrc);
		});
//

});


// CONTACT FORM

jQuery(document).ready(function(){

<!-- contact -->

jQuery("#contactform").submit(function(){

var str = jQuery(this).serialize();
   jQuery.ajax({
   type: "POST",
   url: "contactForm.php",
   data: str,
   success: function(amsg){
jQuery("#error").ajaxComplete(function(event, request, settings){
if(amsg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
jQuery('#error').hide();
jQuery('#pform').hide();
jQuery('#thanks').show();
}
else
{
jQuery('#error').show();
result = amsg;
}
jQuery(this).html(result);
});
}
});
return false;
});
<!-- end contact -->
});

jQuery(document).ready(function(){
	
	jQuery('input[type="text"]').addClass("idleField");
       		jQuery('input[type="text"]').focus(function() {
       			jQuery(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		jQuery('input[type="text"]').blur(function() {
    			jQuery(this).removeClass("focusField").addClass("idleField");
    		    if (jQuery.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
			
	jQuery('textarea').addClass("idleField");
       		jQuery('textarea').focus(function() {
       			jQuery(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		jQuery('textarea').blur(function() {
    			jQuery(this).removeClass("focusField").addClass("idleField");
    		    if (jQuery.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});


						   
jQuery('#reset').click(function(){
	jQuery('#note').hide();	
});
});


jQuery(document).ready(function () {
  //jQuery('input:text.autoclear').autoclear();
  
  
});




