/*-----------------------
* jQuery Plugin: Scroll to Top
* by Craig Wilson, Ph.Creative (http://www.ph-creative.com)
* Bring to you by Zen from http://zenplate.blogspot.com
* Copyright (c) 2009 Ph.Creative Ltd.
* Description: Adds an unobtrusive "Scroll to Top" link to your page with smooth scrolling.
* For usage instructions and version updates to go http://blog.ph-creative.com/post/jquery-plugin-scroll-to-top.aspx
* Do not delete these infomation
* Version: 1.0, 12/03/2009
-----------------------*/

$(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="0"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:0},"slow")})}});

$(function() {
$("#toTop").scrollToTop();
});


// SLIDER HOMEPAGE //
$(document).ready(function(){
	$("#slider").jFlow({
		slides: "#slider_img",
		controller: ".jFlowControl", // must be class, use . sign
		slideWrapper : "#jFlowSlide", // must be id, use # sign
		selectedWrapper: "jFlowSelected",  // just pure text, no sign
		width: "940px",
		height: "228px",
		easing: "swing",
		duration: 400,
		prev: ".jFlowPrev", // must be class, use . sign
		next: ".jFlowNext" // must be class, use . sign
	});
});



// DROPDOWN MENU EFFECT //
	$(document).ready(function() {
		$("#portfolio").hover(function() {
			$('#portover').addClass("hover").stop()
		}, function() {
		$('#portover').removeClass("hover").stop()
	});
	});
	$(document).ready(function() {
	$("#portfolio li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginLeft: "10" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginLeft: "0" //Move the span back to its original state (0px)
		}, 250);
	});
	});
	
// DROPDOWN MENU EFFECT //
	$(document).ready(function() {
		$("#services").hover(function() {
			$('#servover').addClass("hover").stop()
		}, function() {
		$('#servover').removeClass("hover").stop()
	});
	});
	$(document).ready(function() {
	$("#services li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginLeft: "10" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginLeft: "0" //Move the span back to its original state (0px)
		}, 250);
	});
	});



// TWITTER DISPLAY // 
    getTwitters('loverTweets', {
        id: 'HebTech', 
        prefix: '',  // If you want display your avatar and name <img height="16" width="16" src="%profile_image_url%" /><a href="http://twitter.com/%screen_name%">%name%</a> said:<br/>
        clearContents: false, // leave the original message in place
        count: 1, 
        withFriends: true,
        ignoreReplies: false,
        newwindow: true
    });
	
