/*
<div id="Tag_containing_FORMS_Home_All">
<div  class="Tag_containing2_FORMS_All">
<div id="Home_All_FORMS_ID"  class="Home_All_FORMS_ID"></div><!--  <div  class="Home3_All_FORMS_ID">  -->
<div   class="close_ICON"></div><!--  <div  class="close_ICON">  -->
</div><!--  <div  class="Home2_All_FORMS_ID">  -->
</div><!--   <div id="Home_All_FORMS_ID">  -->

*/

function Tag_containing_FORMS_Home_AllWidth()
{
//$('div#Tag_containing_FORMS_Home_All').show(); 
//$('div#Tag_containing_FORMS_Home_All').fadeIn("slow");
var Win_width  =$(window).width() //1004
//VALU =$(window).innerWidth() //NaN
var Win_height =$(window).height()//581
//VALU =$(window).innerHeight()//NaN
var Home_All_FORMS_ID = $("#Tag_containing_FORMS_Home_All");
$("div#Home_opacity_Tag_containing").css({
left:(-20) +'px',
top:(-20)+'px',			 
width:(Home_All_FORMS_ID.innerWidth() + 40)+'px',
height:(Home_All_FORMS_ID.innerHeight()+ 40)+'px',
});


var close_ICON_width1  = Home_All_FORMS_ID.width(); 
var close_ICON_height1 = Home_All_FORMS_ID.height();

var close_ICON_width  =   $("div#Tag_containing_FORMS_Home_All div.Tag_containing2_FORMS_All .close_ICON").width(); 
var close_ICON_height =   $("div#Tag_containing_FORMS_Home_All div.Tag_containing2_FORMS_All .close_ICON").height();

var Tag_containing_width  =$("div#Home_opacity_Tag_containing").width() //1004
//var Tag_containing_width  =$("div#Home_opacity_Tag_containing").innerWidth() //NaN
var Tag_containing_height = $("div#Home_opacity_Tag_containing").height()//581
//var Tag_containing_height =$("div#Home_opacity_Tag_containing").innerHeight()//NaN
var L_left =  ((Win_width) - (Tag_containing_width))/2;
var T_top = ((Win_height) - (Tag_containing_height))/2;


var close_ICON_right =  -(((Tag_containing_width - close_ICON_width1)/2) + (close_ICON_width/2) );

var close_ICON_top =  -(((Tag_containing_height - close_ICON_height1)/2) + (close_ICON_height/2));


//$("#Home_All_FORMS_ID_Win_width").html('<BR>W '+Tag_containing_width );
Home_All_FORMS_ID.css({
left:Math.floor(L_left) +'px',
top:Math.floor(T_top)+'px'
}).find('.close_ICON').css({
//left:(close_ICON_left) +'px',
right:Math.floor(close_ICON_right) +'px',
top:Math.floor(close_ICON_top)+'px'
   });;
//$('div#Tag_containing_FORMS_Home_All').hide();
//length_mm = $("div#Tag_containing_FORMS_Home_All").length ;
//alert(length_mm)

$("div#Tag_containing_FORMS_Home_All :input").focus( function() { 
					   
					  clearInterval(autoRotate);
								 
								 } );
$(":input").unbind('focus');
$(":input").focus( function() { 

//alert('helo');
//$(this).val().select();
	this.select();							 
  } );

 }//Tag_containing_FORMS_Home_AllWidth()




function Dept_Show_itemSAJAX_cont_show()
{

$("div#Dept_Show_itemSAJAX_cont_show div.Dept_Show_itemSAJAX_div_table_td_IMG_DIV img").click( function() {
 window.clearInterval(autoRotate);																										
																										
//$('div#Tag_containing_FORMS_Home_All').fadeOut("slow"); 
//$('div#Tag_containing_FORMS_Home_All').hide(); 
Id_D = $(this).attr("rel");
//length_img = $("div#Dept_Show_itemSAJAX_cont_show div.Dept_Show_itemSAJAX_div_table_td_IMG_DIV img").length;																																																				
V_html =  $(Id_D).html();																										
$('div#Home_All_FORMS_ID').html(V_html);
$('div#Tag_containing_FORMS_Home_All').eq(0).fadeIn("slow");
Tag_containing_FORMS_Home_AllWidth();																										
} );//$("div#Dept_Show_itemSAJAX_cont_show div.Dept_Show_itemSAJAX_div_table_td_IMG_DIV img").click( function() {
}//function Dept_Show_itemSAJAX_cont_show()

$(document).ready(function() {


var Home_All_FORMS_ID__No_Opacity = 0.4;

 //var Home_opacity_All_FORMS_ID = $('<div id="Home_opacity_All_FORMS_ID"></div>');
// $("body").prepend(Home_opacity_All_FORMS_ID);
 
var Tag_containing_opacity = $('<div id="Home_opacity_Tag_containing"></div>');
 $("#Tag_containing_FORMS_Home_All .Tag_containing2_FORMS_All").prepend(Tag_containing_opacity);
 
 $("div#Home_opacity_Tag_containing").css({
border:'#FF0000 solid 0px',	
background:'#333',
//background:'#FF0000',
position:'absolute',
zIndex:'1',				 
opacity:Home_All_FORMS_ID__No_Opacity
}).addClass('Shadow_ADD_FX');
 
 

 Tag_containing_FORMS_Home_AllWidth();
 $('div#Tag_containing_FORMS_Home_All').hide(); 
  
  $("div#Tag_containing_FORMS_Home_All div.Tag_containing2_FORMS_All .close_ICON").click( function() {
 clearInterval(autoRotate);
 //length_mm = $("div#Tag_containing_FORMS_Home_All div.Tag_containing2_FORMS_All .close_ICON").length ;
//alert(length_mm)

$('div#Tag_containing_FORMS_Home_All').eq(0).fadeOut("slow"); 

} );// $("div#Tag_containing_FORMS_Home_All div.Tag_containing2_FORMS_All .close_ICON").click( function() {





Dept_Show_itemSAJAX_cont_show();
//var overlayTITLE = $('<div class="overlayTITLE"></div>');
//$('div#MOVE_JQ_Home_ALL').append(overlayTITLE);


/*
$('#Dept_Show_itemSAJAX_cont_show_home_page').css({
zIndex:'10000',				 
width:($(this).innerWidth())+'px',
height:($(this).innerHeight())+'px',
opacity: 0.4
});
*/
});//$(document).ready(function() {
