
$(document).ready(function() {

	// RollOver images
	
	$("#news").corner();
	$("#ecommerceBox").corner();
	$('#showcase').corner();
	$('#hostingBox').corner();
	$('#systemsBox').corner();
	$('#commsBox').corner();
	$('#webBox').corner();
	$("#twitter-content").corner();
	
	$('.roundedCorners').corner();
	
	$(".over img").hover(
	 function()
	 {
	  this.src = this.src.replace("_normal","_hover");
	 },
	 function()
	 {
	  this.src = this.src.replace("_hover","_normal");
	 }
	);
	
	$("#findUs").fancybox({
		'width'				: '75%',
		'height'			: '80%',
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	$(".gallery").fancybox();
	

});

	 	
function add_flash(file, width, height, title) {
    param = width+height;
    document.write('<div id="flash_'+param+'" style="width:'+width+';height:'+height+'px; padding-bottom: 20px;"></div>');
        document.getElementById('flash_'+param).innerHTML = ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + width + '" height="' + height + '" id="txt_title" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="wmode" value="transparent"><param name="movie" value="' + file + '?txt_title=' + title + '" /><param name="quality" value="high" /><embed wmode="transparent" src="' + file + '?txt_title=' + title + '" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="txt_title" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}



