
$(document).ready(function() { 

  $('#test').rssfeed('http://wereallmadhere.com/category/technophilia/feed', {
    limit: 2,
	header: false,
	linktarget: '_blank',
	date: false
  });
  
	if ( location.hash === "#seeds" ) { $( "#message_box" ).show(); }

    $("#close_message").click(function () {
      $("#message_box").hide("slow");
    }); 
	
	$('#ohnoesli1, #ohnoesli2, #ohnoesli3, #ohnoesli4, #ohnoesli5, #ohnoesli6, #ohnoesli7, #ohnoesli8, #ohnoesli9, #links').tipsy({gravity: 'e', fade: true, html: true});
	
 
	var animateDuration = 700;
	$('#home').click(function() {
	  $('.maincontent').scrollTo( '.intro', 1000, {axis: 'x'}).animate({ height: '560px'}, animateDuration);
	  $('.blurbs').animate({ paddingTop: '0px' }, animateDuration);
	});
	$('#resume').click(function() {
	  $('.maincontent').animate({ height: '460px'}, animateDuration).scrollTo( '.resumemain', 1000, {axis: 'x'});
	  $('.blurbs').animate({ paddingTop: '0px' }, animateDuration);
	});
	$('#casestudy').click(function() {
	  $('.maincontent').scrollTo( '.casestudies', 1000, {axis: 'x'}).animate({ height: '560px'}, animateDuration);
	  $('.blurbs').animate({ paddingTop: '20px' }, animateDuration);
	  //$('#ohnoes1').show();
	});
	/*$('#clients').click(function() {
	  $('.blurbs').animate({ paddingTop: '20px' }, animateDuration);
	  $('.maincontent').scrollTo( '.clients', 1000, {axis: 'x'}).animate({ height: '560px'}, animateDuration);;
	});*/
   $('#testimonials').click(function() {
	  $('.maincontent').scrollTo( '.testimonials', 1000, {axis: 'x'}).animate({ height: '560px'}, animateDuration);
	  $('.blurbs').animate({ paddingTop: '20px' }, animateDuration);
	});
	$('#contact').click(function() {
	  $('.maincontent').animate({ height: '560px'}, animateDuration).scrollTo( '.contact', 1000, {axis: 'x'});
	  $('.blurbs').animate({ paddingTop: '20px' }, animateDuration);
	});
	
	$('.blurbs').animate({ paddingTop: '0px' }, animateDuration);

	/* This is basic - uses default settings */
	
	/*$("a#iframe").fancybox();*/
	
	/* Using custom settings */
	
	$("a.single_image").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.iframe").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'width'			:	850,
		'height'		:	500,
		'overlayShow'	:	false
	});
	
		$("a#page_wrap").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'width'			:	850,
		'height'		:	500,
		'overlayShow'	:	false
	});
	
	//$('#ssnavigation').tabs();
	$('.slideshow div').each(function(){
		if(this.id){
			if(this.id.indexOf("Sections") > -1){
				$('#' + this.id).addClass('ohSections');
			}
			else{
				$('#' + this.id).hide();
			}
		}
	});
	$('#ohnoes1').show();
	
	$('#ohnoes1').serialScroll({
		target: '#oh1Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	$('#ohnoes2').serialScroll({
		target: '#oh2Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	$('#ohnoes3').serialScroll({
		target: '#oh3Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	$('#ohnoes4').serialScroll({
		target: '#oh4Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	$('#ohnoes5').serialScroll({
		target: '#oh5Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	$('#ohnoes6').serialScroll({
		target: '#oh6Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	$('#ohnoes7').serialScroll({
		target: '#oh7Sections',
		items: 'li',
		prev: '.prev',
		next: '.next',
		cycle: false,
		duration: 700
	});
	
	//requires jQuery Validate Plugin
	$('#contactForm').validate({
		rules: {
			name: "required",
			email: {
				required: true,
				email: true
			},
			note: "required"
		},
		message: {
			name: "Please enter a valid name.",
			email: "Please enter a valid email address.",
			note: "Please enter a valid comment."
		},
		submitHandler: function(form){
			$.post('include/mail.php', {name: $('[name=name]').val(), email: $('[name=email]').val(), note: $('[name=note]').val()}, function(){
				$('#resumeDialog').html('Thank you for the love note.  I take all correspondence seriously and will get back to you as soon as time permits.').attr('title', 'Thanks').dialog({
					modal: true
				});      
			});
		}
	});
	
	if (isIE) {
	  try {
	  	document.execCommand("BackgroundImageCache",false,true);
	  } catch(e) {
	  // just in case this fails .. ?
	  }
	}
	
	$('.innerTest').jScrollPane({showArrows:true, scrollbarWidth: 12, arrowSize: 16});
	
});

function ourTabs(theID){
	var newID = theID.replace("li", "");
	$('.slideshow div').each(function(){
		if(this.id){
			if(this.id == newID){
				$('#' + this.id).show();
			}
			else{
				if(this.id.indexOf("Sections") > -1){
					
				}
				else{
					$('#' + this.id).hide();
				}
			}
		}
	});
}

function openDia(id){
	if(id == "rec1"){
		$('#dialog').html('<img id="pic" alt="Photo of gee" src="imgs/gee.png" align="right"><p>In working with Michelle Greenier, I feel like I\'ve been spoiled in having such an aggressive, thorough, and artistic creative coordinator.  Her attention to detail, determination to provide the best possible product to the consumer, and ability change focus and adapt to new assignments has been unmatched by anyone else I\'ve worked with in the past.  Juggling multiple projects with varying degrees of depth and timelines have never been an issue for her.  Being a web developer, nothing is more refreshing than having someone who understands the business and can thoroughly outline what needs to be done in a timely manner.  I\'ve rarely had to come back to her with questions on a project and in the instances where I did, her responses were always prompt and accurate, leaving no room for uncertainty.  She has an eye for design, a solid understanding of online and offline marketing, and the knowledge and ambition to merge it together to make a company and their websites successful.</p><p>As to her character, she has an outgoing personality and is a joy to be around.  She is always courteous and friendly to everyone she meets.  She also mixes the right amount of sarcasm with a nice touch of grace.  But when it\'s crunch time, she is all business.  She works well under pressure, in fact, I think she enjoys the challenges that pressure can bring.  When she gets in a groove, she is unstoppable.</p><p>I would hate to be clique and say the typical, "Michelle Greenier will thrive and be successful in any position awarded to her" or "Any company would be lucky to have someone like Michelle Greenier on their staff", but it really is true.  I believe that she can accomplish anything set before her and if given that chance, she will not disappoint.  I believe in Michelle Greenier.</p><p>-Chris Williams, Web Developer, Bridgevine, Inc., (772) 205-9303</p>');	
		$('#dialog').attr('title', 'Spoiled Web Developer');
	}
	else if(id == "rec2"){
		$('#dialog').html('<img id="pic" alt="Photo of gee" src="imgs/gee.png" align="right"><p>I have worked with Michelle Greenier on various projects, most recently web design associated with a series of web delivered videos I am producing.  Michelle\'s work always surpasses expectations; her sense of design is excellent but just as important is her grasp of the overall project and understanding of the strategic role that graphic design must play.  Michelle is an excellent graphic designer with the mind of a first class marketer.</p><p>I can recommend Michelle to your organization without hesitation and I am certain she will quickly prove to be an invaluable asset. If it were an option I would hire her myself.  If I can answer any other questions or assist in any way, please do not hesitate to contact me.</p><p>-Nathan Wagoner, Director of New Media Communications, Juniata College<br />814.641.5327 (office) ; 814.599.2005 (mobile) ; wagonen@juniata.edu</p>');
		$('#dialog').attr('title', 'Understanding of Strategic Role');
	}
	else if(id == "rec3"){
		$('#dialog').html('<img id="pic" alt="Photo of gee" src="imgs/gee.png" align="right"><p>Bridgevine employed Michelle Greenier full-time as an Online Marketing Coordinator. Michelle managed a large number of our projects, including design, content, collateral, launch and delivery.</p><p>Michelle is an intelligent, creative and highly motivated employee. She has proven to be more than capable of managing a large number of projects at once while maintaining a high level of quality. As our Marketing Coordinator, Michelle worked closely with and managed both our creative design team and out overseas programming team. With her experience, creativity, research and great work ethic, she produced high-quality web sites, banners and online campaigns.</p><p>Many of the projects Michelle was involved in required a wide range of complex requirements to consider. The successful management of these requirements highlights her ability to adapt, overcome and problem solve to make things work.</p><p>Michelle\'s consistent contributions have been a driving force in our marketing department and our company.</p><p>If you would like additional information, you can telephone me at (772) 577-8774.</p><p>-Jay Whiddon, Director of Merchandising, Bridgevine, Inc.');
		$('#dialog').attr('title', 'Great Work Ethic');
	}
	else if(id == "rec4"){
		$('#dialog').html('<img id="pic" alt="Photo of gee" src="imgs/gee.png" align="right"><p>I highly recommend Michelle Greenier as a candidate for employment with your company.  I have worked very closely with Ms. Greenier over the past several years on numerous projects and recognize that she excels at every task she has undertaken.  While maintaining one of the highest levels of productivity, she is still able to preserve unquestionable standards for quality and accuracy.</p><p>Ms. Greenier possesses the ultimate "can do" attitude while taking on all tasks with a positive energy and a smile. Her upbeat personality and engaging personal style enables her to interact effectively with clients and staff.</p><p>Ms. Greenier would be a tremendous asset for your company and has my highest recommendation. If you have any further questions with regard to her background or qualifications, please do not hesitate to call me at 724-513-4881.</p><p>-Vivian Allen, Founder, Heavenly Solutions Computer Co.</p>');
		$('#dialog').attr('title', 'Quality and Accuracy');
	}
		else if(id == "rec5"){
		$('#dialog').html('<img id="pic" alt="Photo of gee" src="imgs/gee.png" align="right"><p>Finding yourself able to work with Michelle is like winning the lottery. Her design sense, marketing savvy, and ability to multitask without missing that important detail here and an extra something there make her the ideal person to come to when you just don\'t know what to do to make your business work. Her rates are low, her standards high, and she\'s not afraid to tell you - gently - if something is not going to work. Michelle is always outgoing and positive while seeking the best solutions for your particular needs. With her unique understanding of graphic design, traditional and interactive marketing, and business, you\'d be hard pressed to find a better person to deliver the solutions your business is looking for.</p><p>-Laur Gravel, Photographer</p>');
		$('#dialog').attr('title', 'Winning');
	}
		else if(id == "subjects"){
		$('#dialog').html('<img id="pic" alt="Photo of gee" src="imgs/gee.png" align="right"> <dt></dt><dd><h2>Marketing Management</h2><p>Branding and Identity, Industry and Consumer Research, Project Management, Resource Budgeting, Management and Leadership, Copyright Laws and Licensing, Strategic Planning</p><h2>Writing & Editorial</h2><p>Copyediting, Proof Reading, Content Creation for Promotional Copy, Newspapers, Web Based Media, Business and Training Materials, etc.</p><h2>Web Design & Development</h2><p>HTML, PHP, DHTML, CSS, XML, AIML, ActionScript, JavaScript, MYSQL, Apache, Dreamweaver, FTP Clients, Various Content Management Applications, HCI analysis and GUI development, E-mail Marketing, Search Engine Optimization, Analytics and Metrics, Interactive Media Design, Flash and PowerPoint, Social Networking; Twitter, Facebook, LinkedIn, Second Life development, texturing, some SLS</p><h2>Digital Video Production</h2><p>Storyboarding, Pre-Production Planning, Independent Production, Film Crew Management, Digital Video Cameras and Audio Equipment, Pinnacle DV Video Systems, Data Capturing, Final Cut Pro, Adobe Premier, Microsoft Movie Maker, Non-linear Editing, Green Screen Technology, Sound Editing, DVD Authoring Software, DVD Interfaces, Streaming Video, Web Compression</p><h2>Print Design</h2><p>Adobe Photoshop, Illustrator, CS5, QuarkXPress, Adobe Acrobat/Distiller, Poster Design, Apparel Design, Brochures, Reports, Newspaper, Magazine and Yellow Page Advertisements, Book Cover/Jacket Design and Page Layout, Identity Packages for Professional/Corporate, Logo Development, CD/DVD Package Design, Newspaper Layout, etc., Digital Photography, Image Manipulation and Restoration, Vector, Digital & Traditional Mixed Media Illustrations</p><h2>Production</h2><p>Offset Lithographic, Digital, Die Cut, and Miscellaneous Print Methods, Registration, Mechanicals, Bleeds, Crops, Various Bindery, File Anatomy, Formats and Management, Color Separations, Pantone Color Systems/Spot, CMYK, RGB, Duotone and Grayscale Usage, Negative and Plate Production</p><h2>Office & Information Technology Skills</h2><p>Mac & Windows Operating Environments, Microsoft Office & Open Office Suites, QuickBooks& CRMs (Access, Relationals, Rally, etc.), Advanced Administrative Duties and Office Equipment, Basic Troubleshooting, Updating, and Maintenance</p></dd>');
		$('#dialog').attr('title', 'Common Session Topics');
	}
	
	else{
		
	}
	
	$('#dialog').dialog({
		show: 'blind',
		hide: 'fold',
		modal: true,
		width: 700,
		height: 555
	});
	
	var fnames = new Array();var ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';
try {
    var jqueryLoaded=jQuery;
    jqueryLoaded=true;
} catch(err) {
    var jqueryLoaded=false;
}
var head= document.getElementsByTagName('head')[0];
if (!jqueryLoaded) {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js';
    head.appendChild(script);
    if (script.readyState && script.onload!==null){
        script.onreadystatechange= function () {
              if (this.readyState == 'complete') mce_preload_check();
        }    
    }
}
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'http://downloads.mailchimp.com/js/jquery.form-n-validate.js';
head.appendChild(script);
var err_style = '';
try{
    err_style = mc_custom_error_style;
} catch(e){
    err_style = 'margin: 1em 0 0 0; padding: 1em 0.5em 0.5em 0.5em; background: ERROR_BGCOLOR none repeat scroll 0% 0%; font-weight: bold; float: left; z-index: 1; width: 80%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: ERROR_COLOR;';
}
var head= document.getElementsByTagName('head')[0];
var style= document.createElement('style');
style.type= 'text/css';
if (style.styleSheet) {
  style.styleSheet.cssText = '.mce_inline_error {' + err_style + '}';
} else {
  style.appendChild(document.createTextNode('.mce_inline_error {' + err_style + '}'));
}
head.appendChild(style);
setTimeout('mce_preload_check();', 250);

var mce_preload_checks = 0;
function mce_preload_check(){
    if (mce_preload_checks>40) return;
    mce_preload_checks++;
    try {
        var jqueryLoaded=jQuery;
    } catch(err) {
        setTimeout('mce_preload_check();', 250);
        return;
    }
    try {
        var validatorLoaded=$("#fake-form").validate({});
    } catch(err) {
        setTimeout('mce_preload_check();', 250);
        return;
    }
    mce_init_form();
}
function mce_init_form(){
    $(document).ready( function($) {
      var options = { errorClass: 'mce_inline_error', errorElement: 'div', onkeyup: function(){}, onfocusout:function(){}, onblur:function(){}  };
      var mce_validator = $("#mc-embedded-subscribe-form").validate(options);
      options = { url: 'http://shellgreenier.us1.list-manage1.com/subscribe/post-json?u=4416e291a0a53917cb2040820&id=34e675b691&c=?', type: 'GET', dataType: 'json', contentType: "application/json; charset=utf-8",
                    beforeSubmit: function(){
                        $('#mce_tmp_error_msg').remove();
                        $('.datefield','#mc_embed_signup').each(
                            function(){
                                var txt = 'filled';
                                var fields = new Array();
                                var i = 0;
                                $(':text', this).each(
                                    function(){
                                        fields[i] = this;
                                        i++;
                                    });
                                $(':hidden', this).each(
                                    function(){
                                    	if ( fields[0].value=='MM' && fields[1].value=='DD' && fields[2].value=='YYYY' ){
                                    		this.value = '';
									    } else if ( fields[0].value=='' && fields[1].value=='' && fields[2].value=='' ){
                                    		this.value = '';
									    } else {
	                                        this.value = fields[0].value+'/'+fields[1].value+'/'+fields[2].value;
	                                    }
                                    });
                            });
                        return mce_validator.form();
                    }, 
                    success: mce_success_cb
                };
      $('#mc-embedded-subscribe-form').ajaxForm(options);      
      
    });
}
function mce_success_cb(resp){
    $('#mce-success-response').hide();
    $('#mce-error-response').hide();
    if (resp.result=="success"){
        $('#mce-'+resp.result+'-response').show();
        $('#mce-'+resp.result+'-response').html(resp.msg);
        $('#mc-embedded-subscribe-form').each(function(){
            this.reset();
    	});
    } else {
        var index = -1;
        var msg;
        try {
            var parts = resp.msg.split(' - ',2);
            if (parts[1]==undefined){
                msg = resp.msg;
            } else {
                i = parseInt(parts[0]);
                if (i.toString() == parts[0]){
                    index = parts[0];
                    msg = parts[1];
                } else {
                    index = -1;
                    msg = resp.msg;
                }
            }
        } catch(e){
            index = -1;
            msg = resp.msg;
        }
        try{
            if (index== -1){
                $('#mce-'+resp.result+'-response').show();
                $('#mce-'+resp.result+'-response').html(msg);            
            } else {
                err_id = 'mce_tmp_error_msg';
                html = '<div id="'+err_id+'" style="'+err_style+'"> '+msg+'</div>';
                
                var input_id = '#mc_embed_signup';
                var f = $(input_id);
                if (ftypes[index]=='address'){
                    input_id = '#mce-'+fnames[index]+'-addr1';
                    f = $(input_id).parent().parent().get(0);
                } else if (ftypes[index]=='date'){
                    input_id = '#mce-'+fnames[index]+'-month';
                    f = $(input_id).parent().parent().get(0);
                } else {
                    input_id = '#mce-'+fnames[index];
                    f = $().parent(input_id).get(0);
                }
                if (f){
                    $(f).append(html);
                    $(input_id).focus();
                } else {
                    $('#mce-'+resp.result+'-response').show();
                    $('#mce-'+resp.result+'-response').html(msg);
                }
            }
        } catch(e){
            $('#mce-'+resp.result+'-response').show();
            $('#mce-'+resp.result+'-response').html(msg);
        }
    }
}
	
}
		
function isIE(){return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);}


