﻿/// <reference path="~/Js/jquery/1.5.1/jquery-1.5.1.js" />
jQuery.noConflict();

$j = jQuery; // Reassign jQuery to another shortcut

// Yacht namespace
(function( window, undefined ){
	var Yacht = (function() {
	});
	
	Yacht = {
		IsDialog: false,
		ParentWindow: function() {
			if (this.IsDialog == true && top != self)
			{
				return window.parent;
			}
		},
		Frames: function(frameName) {
    		if (window.frames[frameName] !== undefined) {
				return window.frames[frameName];
			}
		}
	}

	window.Yacht = window.$y = Yacht;
})(window);

