﻿// JavaScript Document

jQuery.fn.loading = function() {
  var loadTargetIndex = 0
  return this.each(function(){
							
	var loadingDiv = $(document.createElement("div"))
	loadingDiv.addClass("loading")
	$(this).css("display","block")
	$(this).after(loadingDiv)
	
	loadingDiv.width($(this).outerWidth()).height($(this).outerHeight())
	
	var targetPosition = $(this).position()
	
	$(this).css("visibility","hidden")
	
	var browser = jQuery.browser
	
	loadingDiv.css({left:targetPosition.left-(browser.msie&&browser.version<7 ? $(this).outerWidth() : 0)+"px",top:targetPosition.top+"px",display:"block"})
	
	$(this).bind("remove_loading",function() {
								   
		$(this).css({"visibility":"visible","display":"block"})
		loadingDiv.remove()									   
										   
	})
	
	
  });
};



$(function() {
		   
	$(".featureSub h1").each(function() {
	
		if($(this).find("img").size()<1) {
		
			$(this).flash(
				{ 
				  src: '/swf/h1.swf',
				  width: 800,
				  height: 32,
				  flashvars: { txt:$(this).text() },
				  wmode: 'transparent'
				},
				{ 
				  version: 8,
				  update:false
				}
			);
			
		}
	})
	
	
	
})

  $(document).ready(function(){
    $('.rounded2').corners("2px");
    $('.rounded3').corners("3px");
    $('.rounded5').corners("5px");
    $('.rounded10').corners("10px");
    $('.rounded10Top').corners("10px top");
    $('.rounded10Bot').corners("10px bottom");
    $('.rounded20').corners("20px");
    $('.rounded20L').corners("20px left");
  });


