/* Modified by Alex Spooner, 2009-10-27 04:27:21 EST */

function startFlashVid() {
	flashembed("loading", { src: "/flashes/loading.swf", wmode: 'transparent'});
	flashembed("video", { src: "/flashes/video_normal.swf", wmode: 'transparent'});
	$("#videopanel").show();
}

function stopFlashVid() {
	$("#videopanel").hide();
}

$(document).ready(function(){
						   
	$('img, ul, li, input, div, a, span, .button').ifixpng();
	$(".scroll-pane").jScrollPane();

  $("#iQ").focus(function(){
    if ($(this).val()=="Search by keyword") $(this).val("");
    else $(this).select();
  });

  $("#iQ").blur(function(){
    if ($(this).val()=="") $(this).val("Search by keyword");
  });

  $("#iSearchForm").submit(function(){
    var q = $("#iQ").val();
    if (q>"" && q!="Search by keyword") {
      document.location = "http://shop.glamrockwatches.com/?q=" + encodeURI(q);
    }
    return false;
  });

  $("a[rel='fancybox']").fancybox({
    'overlayShow'			: true,
    'zoomSpeedIn'			: 600,
    'zoomSpeedOut'		: 500,
    'easingIn'				: 'easeOutBack',
    'easingOut'				: 'easeInBack'
  }); 
	
  $("a.howto").fancybox({
    'overlayShow'     : true,
    'frameWidth'      : 620,
    'frameHeight'     : 500,
    'zoomSpeedIn'			: 600,
    'zoomSpeedOut'		: 500,
    'easingIn'				: 'easeOutBack',
    'easingOut'				: 'easeInBack',
    'hideOnContentClick' : false,
    'type'            : 'inline'
  });

  $("a.sendtofriend").fancybox({
    'overlayShow'     : true,
    'frameWidth'      : 870,
    'frameHeight'     : 300,
    'zoomSpeedIn'			: 600,
    'zoomSpeedOut'		: 500,
    'easingIn'				: 'easeOutBack',
    'easingOut'				: 'easeInBack'
  });
  
});

