$(document).ready(function() {
	
	placeFeature();
	placeProjects();
	
});

function placeFeature(){
	$('#slideshow')
	.cycle({
		fx: 'fade' ,
		speed: 700,
		timeout: 0
	});
	
	$('#slideshowHolder #next').click(function() { $('#slideshow').cycle('next'); });
	$('#slideshowHolder #prev').click(function() { $('#slideshow').cycle('prev'); });
}

function placeProjects(){
	
}

function placeTitel( t , w ){
	
	if( !w ){
		w = 300;
	}

	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', w,
			'height', '23',
			'src', './flash/titel',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'headerFont',
			'bgcolor', '#ffffff',
			'name', 'headerFont',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', './flash/titel',
			'flashVars' , ('titel=' + t ),
			'salign', ''
			); //end AC code
	}
}

function placeItem( t , i , l ){
	
	var fv = "titel=" + t + "&thumb=" + i + "&linkTo" + l;

	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '960',
			'height', '160',
			'src', './flash/thumb',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'headerFont',
			'bgcolor', '#ffffff',
			'name', 'headerFont',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', './flash/thumb',
			'flashVars' , fv ,
			'salign', ''
			); //end AC code
	}
}
