
//		function lib_bwcheck(){ 
//			this.ver=navigator.appVersion
//			this.agent=navigator.userAgent
//			this.dom=document.getElementById?1:0
//			this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
//			this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
//			this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
//			this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
//			this.ie=this.ie4||this.ie5||this.ie6
//			this.mac=this.agent.indexOf("Mac")>-1
//			this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
//			this.ns4=(document.layers && !this.dom)?1:0;
//			this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
//			return this
//		}

//		var bw=lib_bwcheck()

//		var myScroller_Speed = 3;
//		var myScroller_Looping = true;
//		var myScroller_Timer;
//		
//// kayan yazı uzunluğu belirle

//		var count_news = 3;
//		var myScroll_width = 900 * count_news;

//		function myScroller_makeObj(obj,nest){
//			nest=(!nest) ? "":'document.'+nest+'.'
//			this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
//			this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
//			this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
//			this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth
//			this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
//			this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth
//			this.scroll=myScroller_scroll; this.moveIt=myScroller_moveIt;
//			this.x=0; this.y=0;
//			this.obj = obj + "Object"
//			eval(this.obj + "=this")

//			this.scrollWidth = myScroll_width;

//			return this
//		}

//		var px = bw.ns4||window.opera?"":"px";

//		function myScroller_moveIt(x,y){
//			this.x = x
//			this.y = y
//			this.css.left = this.x+px
//			this.css.top = this.y+px
//		}

//		function myScroller_scroll()
//		{
//			var moved_through = 0;
//			if (myScroller_Looping)
//			{

//				if (this.x>-this.scrollWidth)
//				{
//					this.moveIt(this.x-4,0);
//				}
//				else
//				{
//					moved_through = 1;
//					this.moveIt(0,0);
//				}
//			}

////yazı başlangıcı belirle

//			if (((this.x%984) == 0) && (moved_through==0) )
//			{
//				setTimeout(this.obj+".scroll()",5000);
//			}
//			else
//				setTimeout(this.obj+".scroll()",myScroller_Speed);
//		}

//		function myScroller_scrolltextInit(){
//			oCont = new myScroller_makeObj('divScrollerTextCont')
//			oScroll = new myScroller_makeObj('divScrollerText','divScrollerTextCont')
//			oScroll.moveIt(0,0)
//			oCont.css.visibility = "visible"

//			setTimeout("oScroll.scroll()",4000);

//}

function changePicture(url) {
    $(".currentPicture").attr("src", url); 
}

function megaPicture() {

    var picture = $(".currentPicture").attr("src"); 
    popThisExVideo("ShowPicture.aspx?Picture="+picture, 815, 615);
}

function popThis(url) {
    window.open(url, '', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=250')
}
function popThisEx(url, w, h) {
    window.open(url, '', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + w + ',height=' + h)
} 
function popThisExVideo(url, w, h) {
    window.open(url, '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h)
}
