
	$(document).ready(function(){		
		$('#photos').galleryView({
			panel_width: 560,
			panel_height: 390,
			frame_width: 113,
			frame_height: 75,
			transition_speed: 1200,
			background_color: 'transparent',
			border: 'none',
			easing: 'easeInOutBack',
			pause_on_hover: true,
			nav_theme: 'custom',
			overlay_height: 52,
			filmstrip_position: 'top',
			overlay_position: 'bottom'
		});
	});

function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

Spry.Utils.addLoadListener(function() {

			$(document).ready(function(){
				// Menu home Fade Down
					$("li.togglehome").hover(function() {
						{
						$("#sub_menuhome").slideDown(300);
    					$(".submenuhome").css("opacity", 0).animate({opacity:1},400);
						}
				});
					$("li.togglehome").mouseleave(function() {
						{
						$("#sub_menuhome").slideUp(300);
    					$(".submenuhome").css("opacity", 1).animate({opacity:0},400);
						}
				});
					// Menu shop Fade Down
					$("li.toggleshop").hover(function() {
						{
						$("#sub_menushop").slideDown(300);
    					$(".submenushop").css("opacity", 0).animate({opacity:1},400);
						}
				});
					$("li.toggleshop").mouseleave(function() {
						{
						$("#sub_menushop").slideUp(300);
    					$(".submenushop").css("opacity", 1).animate({opacity:0},400);
						}
				});
					
					// Overlay Customize
					$("img#close").click(function() {
						{
						$("#overlay").slideUp(300);
    					$("#insideoverlay").css("opacity", 1).animate({opacity:0},400);
						}
				});
					
					
					
				// Cart Drop Down
				$("div.cartshow").click(function() {
					if ($("#cartbox").is(":hidden"))
						{
						$("#cartbox").slideDown(300);
    					$("#cartcontent").css("opacity", 0).animate({opacity:1},400);
						$("#checkoutbox").slideUp(300);
    					$("#checkoutcontent").css("opacity", 1).animate({opacity:0},400);
						}
					else 
						{
						$("#cartbox").slideUp(300);
    					$("#cartcontent").css("opacity", 1).animate({opacity:0},400);
						}
				});
				$("span.addCart").click(function() {
					if ($("#cartbox").is(":hidden"))
						{
						$("#cartbox").slideDown(300);
    					$("#cartcontent").css("opacity", 0).animate({opacity:1},400);
						}
					else 
						{
						$("#checkoutbox").slideUp(300);
    					$("#checkoutcontent").css("opacity", 1).animate({opacity:0},400);
						}
				});
				
				// Albumtoggle
				$("div.albumtoggle").click(function() {
					if ($("#albums").is(":hidden"))
						{
						$("#albums").slideDown(600);
    					$("#albumfade").css("opacity", 0).animate({opacity:1},600);
						$("#gallery").css("opacity", 1).animate({opacity:.10},600);
						}
					else 
						{
						$("#albums").slideUp(600);
    					$("#albumfade").css("opacity", 1).animate({opacity:0},600);
						$("#gallery").css("opacity", .10).animate({opacity:1},600);
						}
				});
				
				// Hide albums
					$("div.gallerythumbdiv").click(function() {
						{
						$("#albums").slideUp(600);
    					$("#albumfade").css("opacity", 1).animate({opacity:0},600);
						$("#gallery").css("opacity", .10).animate({opacity:1},600);
    					$(".albumtoggle").toggleClass("hidealbums")
						}
				});
					
				
				// Twittertoggle
				$("#twitterlogo, img#closetweets").click(function() {
					if ($("#tweetcontainer").is(":hidden"))
						{
						$("#tweetcontainer").slideDown(1000);
    					$("#subtweetcont").css("opacity", 0).animate({opacity:1},1000);
						}
					else 
						{
						$("#tweetcontainer").slideUp(1000);
    					$("#subtweetcont").css("opacity", 1).animate({opacity:0},1000);
						}
				});
			});
		

});

$(document).ready(function(){

	$("div.button").click(function(){
		$(this).toggleClass("active").next().slideToggle("fast");
	});
	$("div.albumtoggle").click(function(){
		$(this).toggleClass("hidealbums");
	});
});

function message(form)

{
if (document.getElementById('selectcust').options[document.getElementById('selectcust').selectedIndex].value=='none')

{
	alert('Please select a size');
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function ImageOk(img) {
		// Body has finished loading so if img is not complete then
		// you  have a broken image so return false - image is not ok
		if (!img.complete) return false;

		// if naturalWidth is undefined or zero then the image failed to load
		// so return false - image is not ok
		if (typeof img.naturalWidth != "undefined" && img.naturalWidth == 0) return false;

		// Passed all checks - image succeeded in loading - image is ok
		return true;
	}

	function BrokenImageCheck() {
		// Name of image to replace broken image icon with
		var replacementImg = "/images/NoPhotoOnFile.gif";

		// Loop through all images in the document
		for (var i = 0; i < document.images.length; i++) {
			// If image did not finish loading
			if (!ImageOk(document.images[i])) {
				// document.images[i].src = replacementImg;
				document.images[i].style.display = "none";
			}
		}
	}
	
	 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19307225-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
 
var allHTMLTags = new Array();
function hideclass(theClass) {
//Create Array of All HTML Tags
var allHTMLTags=document.getElementsByTagName("*");
//Loop through all tags using a for loop
for (i=0; i<allHTMLTags.length; i++) {
//Get all tags with the specified class name.
if (allHTMLTags[i].className==theClass) {
//Place any code you want to apply to all
//pages with the class specified.
//In this example is to "display:none;" them
//Making them all dissapear on the page.
allHTMLTags[i].style.display='none';
}
}
}

var allHTMLTags = new Array();
function showclass(theClass) {
//Create Array of All HTML Tags
var allHTMLTags=document.getElementsByTagName("*");
//Loop through all tags using a for loop
for (i=0; i<allHTMLTags.length; i++) {
//Get all tags with the specified class name.
if (allHTMLTags[i].className==theClass) {
//Place any code you want to apply to all
//pages with the class specified.
//In this example is to "display:none;" them
//Making them all dissapear on the page.
allHTMLTags[i].style.display='inline';
}
}
}


