
//Cufon.replace(
//		'#col-center h1',{fontSize:'24px',color:'#669bc3'}
//	); 
	

$(document).ready(function() {
	
	$('a.zoom').fancybox();

});

function openVideo(link)
	{
		$('.'+link+' a.zoom').trigger('click');
	}
	
var flashvars = {
	xmlUrl: base+"index.php/en/flash_xml",
	curTarget: curr,
	curLang:"0", //z xmla cyferki
	linkUp1:base+"index.php/en/",
	linkUp2:"mailto:shelfcompanies@trinitycs.com",
	linkUp3:base+"index.php/en/sitemap"
};
var params = {
	menu: "false",
	scale: "default",
	bgcolor: "#ffffff",
	allowsciptaccess: "always",
	wmode:"transparent"
};
swfobject.embedSWF(base+"flash/top.swf", "top_flash", "1003", "303", "9.0.0", false, flashvars, params);


var flashvars = {
	img1: base+'flash/img/film1_1.jpg',
	img2: base+'flash/img/film1_2.jpg',
	img3: base+'flash/img/film1_3.jpg',
	text1: 'Trinity at work',
	text2: 'Trinity at work',
	videoURL: 'box-2'

};
var params = {
	menu: "false",
	scale: "default",
	bgcolor: "#ffffff",
	allowsciptaccess: "always",
	wmode:"transparent"
};
swfobject.embedSWF(base+"flash/video_ad.swf", "b-1", "219", "162", "9.0.0", false, flashvars, params);


var flashvars = {
	img1: base+'flash/img/1.jpg',
	img2: base+'flash/img/2.jpg',
	img3: base+'flash/img/3.jpg',
	text1: 'Trinity at the CEEQA',
	text2: 'Trinity at the CEEQA',
	videoURL: 'box-3'

};
var params = {
	menu: "false",
	scale: "default",
	bgcolor: "#ffffff",
	allowsciptaccess: "always",
	wmode:"transparent"
};
swfobject.embedSWF(base+"flash/video_ad.swf", "b-2", "219", "162", "9.0.0", false, flashvars, params);


var flashvars = {
				tgt1:base+'en/contact-us/wroclaw',
				tgt2:base+'en/contact-us/warsaw',
				tgt3:base+'en/contact-us/krakow',
				tgt4:base+'en/contact-us/bucharest',
				tgt5:base+'en/contact-us/sofia',
				tgt6:base+'en/contact-us/praha',
				txt: 'Please click to view the location details'
                
			};
var params = {
	menu: "false",
	scale: "noScale",
	bgcolor: "#000000",
	allowScriptAccess: "always",
	wmode:"transparent"
	};
		
var attributes = {};
	swfobject.embedSWF(base+"flash/map.swf", "contact_map", "282", "220", "9.0.0", false, flashvars, params, attributes);

function changeFontSize(letterSize){
	switch(letterSize){
		case 'small': $('#col-center').children(':not(.font-resize)').children().css({'font-size':'11px','line-height':'13px'});
		break;
		
		case 'medium': $('#col-center').children(':not(.font-resize)').children().css({'font-size':'13px','line-height':'15px'}) ;
		break;
		
		case 'big': $('#col-center').children(':not(.font-resize)').children().css({'font-size':'15px','line-height':'17px'});
		break;
	}
}


