/*<![CDATA[*/
/*****************************************************************************
//-> START General Functions
*****************************************************************************/
// --> Start Cufon
	Cufon.replace('h1.heading', {hover: true, textShadow: '1px 1px white'});
	Cufon.replace('h2.heading', {hover: true});
	Cufon.replace('h3.heading', {hover: true, textShadow: '1px 1px white'});
	Cufon.replace('h4.heading', {hover: true, textShadow: '1px 1px white'});
	Cufon.replace('h5.heading', {hover: true, textShadow: '1px 1px white'});
	Cufon.replace('div.desc em', {hover: true});


/*****************************************************************************
//-> END General Functions
*****************************************************************************/

/*****************************************************************************
//-> START Window Load
*****************************************************************************/

$(window).load(function () {

// --> init Work Thumbs Animation
	$("div.team").each(function(){
		//if ($.browser.className != "msie6") $(this).find("img").stop().animate({"opacity": 0.8}, {duration:200})
		$(this).find("div.desc, div.desc2").css({"bottom": "-35px"})
		$(this).hover(
			function () {
				$(this).find("div.desc, div.desc2").stop().animate({"bottom": "0px"}, {duration:200})
				//if ($.browser.className != "msie6") $(this).find("img").stop().animate({"opacity": 1}, {duration:200})
			},
			function () {
				$(this).find("div.desc, div.desc2").stop().animate({"bottom": "-35px"}, {duration:200, easing:"linear"})
				//if ($.browser.className != "msie6") $(this).find("img").stop().animate({"opacity": 0.8}, {duration:200})
			}
		);
	});

// --> Start Print page
/*
	$('div.print').click(function() {
		window.print();
		return false;
	});
*/
// --> Start Print page
	$('div.print a.print_me').popupWindow({
		centerScreen:1,
		height:600,
		width:650
	});

// --> Start Disable '#' links from being clicked
	$("a[href^='#']").click(function() {
		return false;
	});

// --> Init External Links
	$("a[rel*='external']").attr("target","_blank");

// --> Init SPAM Email links
	$("a[href^='mailto:']").each(function(){
		var mail = $(this).attr("href").replace("mailto:","");
		var replaced = mail.replace("/at/","@");
		$(this).attr("href","mailto:"+replaced);
		if($(this).text() == mail){
			$(this).text(replaced);
		}
	});

	// Init Tree View
	$("#browser").treeview({
		animated: "fast",
		collapsed: false,
		unique: true
	});

// --> init Slider
	$(".slider").cycle({
		fx:     'fade',
		speed:  2500,
		timeout: 5000,
		sync:1
	});



});

/*****************************************************************************
//-> END Window Load
*****************************************************************************/

/*]]>*/

