﻿var flasher = new function(){
	var _conf =
	{
		_Flasher_Img_ClsN:"IntroPic",
		_Normal_Layer_CSS:{
			position:'absolute',
			'background-color':'#000',
			opacity:0.5,
			width:'277px',
			height:'200px',
			'margin-top':'12px',
			'margin-left':'12px',
			'z-index':5,
			display:'block'
		},
		_Flash_Layer_CSS:{
			opacity:1,
			'background-color':'#fff'
		},
		_Sensor_ClsN:'PicBorder',
		_Fade_Delay:500
	}
	this.conf=_conf
	
	$(function(){
		with(_conf){
			var jqFlasherImgs=$('.'+_Flasher_Img_ClsN),
				jqSensors=$('.'+_Sensor_ClsN)
			jqFlasherImgs.after('<div></div>')
			jqFlasherImgs.next().css(_Normal_Layer_CSS)
			jqSensors.mouseover(function(){
				with(_conf){
					var jqThis=$(this)
						jqLayer=jqThis.siblings('.'+_Flasher_Img_ClsN).next()
					jqLayer.css(_Flash_Layer_CSS)
					jqLayer.fadeOut(_Fade_Delay)
				}
			})
			jqSensors.mouseout(function(){
				with(_conf){
					var jqThis=$(this)
						jqLayer=jqThis.siblings('.'+_Flasher_Img_ClsN).next()
					jqLayer.stop()
					jqLayer.css(_Normal_Layer_CSS)
				}
			})
		}
	})
}
/*
.PicOverLayer
{
 }

*/
