function openWindow(url,width,height) {day = new Date();id = day.getTime();window.open(url, id, "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+",left="+((screen.width - width)/2)+",top="+((screen.height - height)/2));return false;}
function externalLinks() {if (!document.getElementsByTagName) return;var anchors = document.getElementsByTagName("a");for (var i=0; i<anchors.length; i++) {var anchor = anchors[i];if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")anchor.target = "_blank";}}
function href(url) {window.location = url;return false;}
jQuery.noConflict();

jQuery(document).ready(function() {
	browserDetection();
	fixIE6alphaTransparency();
	externalLinks();
    if (jQuery('#home-swf').length > 0) {
        jQuery('#home-swf').flashembed({
            src: "assets/media/slide2.swf",
            wmode: 'transparent'
        });
    }
    if (jQuery('#team-tabs').length > 0) {
        jQuery("ul#team-tabs").tabs("div#team-panes > div", {
            effect: 'fade',
            tabs: 'a'
        }).history();
    }
    if (jQuery('.accordion').length > 0) {
        jQuery(".accordion").tabs(".accordion div.pane", {
            tabs: 'h3.head',
            effect: 'slide'
        });
    }
});