// Rotaug Javascript trick box

var univers = {
  src: '/fileadmin/rotaug/swf/univers57.swf'
};

sIFR.activate(univers);

sIFR.replace(univers, {
  selector: 'div.csc-header h1',
  css: [
      '.sIFR-root {color: #000000; text-transform: uppercase; leading: 0; kerning: 1; font-size: 14px; letter-spacing: -0.5;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ff8a00; }'
      ,'a:hover { color: #ff8a00; }'
    ],
  tuneHeight: -2,
  wmode: "transparent",
  thickness: 50,
  sharpness: -100
});

sIFR.replace(univers, {
  selector: '.posttitle h1',
  css: [
      '.sIFR-root {color: #000000; text-transform: uppercase; leading: 0; kerning: 1; letter-spacing: -0.5;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ff8a00; }'
      ,'a:hover { color: #ff8a00; }'
    ],
  thickness: 50,
  sharpness: -100
});

sIFR.replace(univers, {
  selector: 'div.featured h1',
  css: [
      '.sIFR-root {color: #000000; text-transform: uppercase; leading: 0; kerning: 1; font-size: 14px; letter-spacing: -0.5;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ff8a00; }'
      ,'a:hover { color: #ff8a00; }'
    ],
  tuneHeight: -2,
  thickness: 50,
  sharpness: -100
});

sIFR.replace(univers, {
  selector: 'div.projectheader h1',
  css: [
      '.sIFR-root {color: #000000; text-transform: uppercase; leading: 0; kerning: 1; font-size: 14px; letter-spacing: -0.5;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ff8a00; }'
      ,'a:hover { color: #ff8a00; }'
    ],
   wmode: "transparent",
  thickness: 50,
  sharpness: -100
});

sIFR.replace(univers, {
  selector: 'div.projectinfo h1',
  css: [
      '.sIFR-root {color: #000000; text-transform: uppercase; leading: 0; kerning: 1; font-size: 14px; letter-spacing: -0.5;}'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ff8a00; }'
      ,'a:hover { color: #ff8a00; }'
    ],
   wmode: "transparent",
  thickness: 50,
  sharpness: -100
});


function init (){

}


$(document).ready(function(){
		$('.media').media({width: 300, height: 20 });
		$('.mov').media({width: 320, height: 256 });
		$('.projectdata .mp3').media({width: 300, height: 20, bgColor: '#EBEAE8' });
		$('.mp3').media({width: 300, height: 20 });
		
		//project scripts
		$('#project_videoplayer').hide();
		$("#videolink").html('<span><a href="#project_video">View Video</a></span>');
		//hide the slideshow
		$("#videolink").toggle(
			function () { 
      			$('.project_slideshow').hide(); 
    			$('#project_videoplayer').show();
				$("#videolink").html('<span><a href="#project_slideshow">View Slideshow</a></span>');
			},
			function () { 
      			$('#project_videoplayer').hide();
				$('.project_slideshow').show(); 
				$("#videolink").html('<span><a href="#project_video">Show Video</a></span>');
			}	
		);
	}
);
