// JavaScript Document

<!--SHARE LINK-->
function mailpage(){
	//var h1_str = document.getElementById('title').innerHTML;
	//var trimmed = h1_str.split("txt=");
	var mail_str = "mailto:?subject=I saw this work and thought you might be interested.";
	mail_str += "&body=I saw this work on Creative Strategy Group's website and thought you might be interested:%0D%0A" + location.href;
	location.href = mail_str;
}

<!--START SLIDESHOW-->
$(function(){
	$.fn.supersized.options = {  
	startwidth: 852,  
	startheight: 320,
	vertical_center: 0,
	slideshow: 1,
	navigation: 1,
	transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
	pause_hover: 0,
	slide_counter: 0,
	slide_captions: 0,
	slide_interval: 3000  
	};
	$('#supersize').supersized();
});

<!--FLASH SWITCHER-->
function flashswitcher(type){
	var part1=window.location.href.split("work/");
	var part2 = part1[1].split(".php");
	var path = part2[0];
	
	if(type == 1){
		var flashvars = false;
		var params = {allowfullscreen: "true", scale: "noscale"};
		var attributes = {};
		swfobject.embedSWF("../flash/work/" + path + ".swf", "work_content", "854", "360", "9.0.0", "../flash/expressInstall.swf", flashvars, params, attributes);
	}else if(type == 2){
		location.reload(true);
	}
}
