// JavaScript Document
function ApplyCufon() {
Cufon.now();
Cufon.replace('#mininav a, a.link, h2.title, h3.title', { fontFamily: 'ContextInseratSSi', hover: true });
Cufon.replace('h2.pagetitle', { fontFamily: 'ContextLightSSi', hover: true });
Cufon.replace('#navigation a', { fontFamily: 'ContextCondSSi', hover: true });
}

/* SWF Embed Area
================================================================*/
function flashswf(file, target, Width, Height) {
    var flashvars = {
    }
    var params = {
        allowfullscreen: "true",
        allowscriptaccess: "always",
		menu: "false",
        wmode: "transparent"
    }
    var attributes = {
        id: "swf1",
        name: "swf1"
    }
    swfobject.embedSWF(file, target, Width, Height, "9.0.115", false, flashvars, params, attributes);
}

/* JWPlayer Area
================================================================*/
//this function using code based on swobject 2.1
function CreatePlayer(file, target, Img, Width, Height) {
    var flashvars = {
        file: file,
        image: Img,
        autostart: "false",
        fullscreen: "true",
        skin: "Streaming/cs.swf",
        stretching: "fill",
        controlbar: "over"
    }
    var params = {
        allowfullscreen: "true",
        allowscriptaccess: "always",
        wmode: "transparent"
    }
    var attributes = {
        id: "player1",
        name: "player1"
    }
    swfobject.embedSWF("Streaming/player.swf", target, Width, Height, "9.0.115", false, flashvars, params, attributes);
}

/* jQuery stuff
================================================================*/
$(function() {
	// Place jQuery inside this
	
	$('#primary').masonry({
		columnWidth: 10,
		itemSelector: '.box'
	});

});
