/**
 * @copyright Anchor Marketing
 * @author Evan Hammond
 * 
 * @comments:
---



---
**/

$(document).ready(function() {
	/* slide-in */
    $('#mynameis').cycle({ 
        fx: 'custom', 
        sync: 0, 
        cssBefore: {  
            top:  0, 
            left: 350, 
            display: 'block' 
        },
        animIn:  { 
            left: 0 
        }, 
        animOut: {  
            left: 350 
        },
        speed:1800,
        delay:-2000,
		timeout:6000,
        random:1
    });
    
    function addMega(){
    	$(this).addClass("hovering");
    };
    
    function removeMega(){
    	$(this).removeClass("hovering");
    };
    
    var megaConfig = {
    	interval: 50,
    	sensitivity: 1,
    	over: addMega,
    	timeout: 50,
    	out: removeMega
    };
    
    $("li.mega").hoverIntent(megaConfig);
    
    $('.locationLeft').qtip({ 
    	style: {
    		name: 'green', 
    		tip: true,
    		background:'#FFF',
    		textAlign: 'center',
    		padding: 5,
    		color: '#2d684d',
    		border: {
    			width: 3,
    			radius: 0,
    			color: '#c2b59b'
    		}
    	},
    	position: {
    		corner: {
    		   target: 'rightMiddle',
    		   tooltip: 'leftMiddle'
    		}
    	}    			
    });
    
    $('.locationRight').qtip({ 
    	style: {
    		name: 'green', 
    		tip: true,
    		background:'#FFF',
    		textAlign: 'center',
    		padding: 5,
    		color: '#2d684d',
    		border: {
    			width: 3,
    			radius: 0,
    			color: '#c2b59b'
    		}
    	},
    	position: {
    		corner: {
    		   target: 'leftMiddle',
    		   tooltip: 'rightMiddle'
    		}
    	}    			
    });
    
    $('.locationTop').qtip({ 
    	style: {
    		name: 'green', 
    		tip: true,
    		background:'#FFF',
    		textAlign: 'center',
    		padding: 10,
    		color: '#2d684d',
    		border: {
    			width: 5,
    			radius: 0,
    			color: '#c2b59b'
    		}
    	},
    	position: {
    		corner: {
    		   target: 'bottomMiddle',
    		   tooltip: 'topMiddle'
    		}
    	}    			
    });
	
	$('.gallery-icon a').click(function() {
		return false;
	});
	
});
