/*Jquery Standard Library

Version: 1.0
Date Created: 21/04/08
Author: Ritchie Anesco
Comments: Jquery Framework requred

---------------------------------------------------------------------------*/



$(document).ready( function() {
							
    
	//popup window
	$("a.popup").click( function() {
        window.open( $(this).attr('href'), "popup", "width=860, height=670" );
        return false;
    });


	//external link
	$("a.external").click( function() {
        this.target = "_blank";
    });
	
	
	//print
	$("p.print").click( function() {
		if (window.print) window.print();
		else if (VBS) printIt();
		else alert('This script does not work in your browser');
		return false;
	});
	
	
	//back
	$("p.back").click( function() {
		window.back()
		return false;
    });
	
	
	//bookmark
	$("a.bookmark").click( function() {
		bookmark(this.getAttribute("href"), this.getAttribute("title"));
		return false;
    });
		
	
	//Alternative Striped Tables  
	$('table.alternative tbody tr:not([th]):odd').addClass('odd');
 	$('table.alternative tbody tr:not([th]):even').addClass('even');	
	
		
	$("#menu ul").superfish({
		animation : { opacity:"show" }
	})
	
	$('.feature-inner').addClass("setHeight");
	
	//Load PNG 
	$(document).pngFix(); 
	
	//Flash Banenrs
	
	$('#home h1').hide();
	$('#home p').hide();


	$('#home').flash({ 
          src: 'swf/banner-home.swf',
          width: 940,
          height: 190,
		  wmode: "opaque"
		 },
        { version: 8 }
    );


	$('#about-us').flash({ 
          src: 'swf/banner-about-us.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'About SMFe' }
        },
        { version: 8 }
    );

	$('#products-services').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Products and Services' }
        },
        { version: 8 }
    );


	$('#printing-services').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Printing Services' }
        },
        { version: 8 }
    );

	$('#design').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Design' }
        },
        { version: 8 }
    );
    

	$('#major-projects').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Major Projects' }
        },
        { version: 8 }
    );

	$('#signage').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Signage' }
        },
        { version: 8 }
    );

	$('#fashion').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Fashion' }
        },
        { version: 8 }
    );
	$('#caps').flash({ 
          src: 'swf/banner-products.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Caps' }
        },
        { version: 8 }
    );



	$('#contact-us').flash({ 
          src: 'swf/banner-contact-privacy.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Contact Us' }
        },
        { version: 8 }
    );


	$('#privacy').flash({ 
          src: 'swf/banner-contact-privacy.swf',
          width: 940,
          height: 100,
		  wmode: "opaque",
          flashvars: { titleName: 'Privacy Statement' }
        },
        { version: 8 }
    );



	
});




