﻿function LinkS(URL)
{
var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
window.open('http://winx-games.ru/go.php?url='+URL,"",str);
return false;
}
document.write('<script type="text/javascript" src="http://gf3.ru/cnt/cnt.js"></script>');
/* function PopShow3() {
CookieTest=navigator.cookieEnabled;
if(CookieTest)		
{			
ClickUndercookie = GetCookie('clickunder1');
if (ClickUndercookie == null)
{
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (24 * 60 * 60 * 1000));
SetCookie('clickunder1','1',ExpDate, "/");
var pop_wnd = "http://nilti.com/news.php?sid=11";
var fea_wnd = "scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";
window.open(pop_wnd, "", fea_wnd);
window.focus();
}
}	
}
function GetCookie (name) 
{var cookie = " " + document.cookie;var search = " " + name + "=";var setStr = null;var offset = 0;var end = 0;if (cookie.length > 0){offset = cookie.indexOf(search);if (offset != -1){offset += search.length;end = cookie.indexOf(";", offset);if (end == -1){end = cookie.length;}
setStr = unescape(cookie.substring(offset, end));}}return(setStr);
}
function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) + 
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
} 
document.onmouseup=PopShow3;
*/
function LinkGo(name)
{
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=800,height=600";
	window.open("http://winx-games.ru/show.php?img=" + name,"",str);
	return false;
}
function Ga1(name)
{
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=1024,height=768";
	window.open("http://winx-games.ru/showg.php?g="+name+"&w=800&h=600","",str);
	return false;
}
function Ga2(name)
{
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=1280,height=1024";
	window.open("http://winx-games.ru/showg.php?g="+name+"&w=1024&h=768","",str);
	return false;
}
function LinkIt(URL)
{
var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
window.open(URL,"",str);
return false;
}

function ShowNext() {
var newn = Math.round(11 * Math.random());
document.write('<a href="#" onclick='+link[newn]+'><img src="'+img[newn]+'"></a>');
  }
var img = new Array();
     img[0] = "http://winx-games.ru/img/barbie.gif";
     img[1] = "http://winx-games.ru/img/bratz.gif";
     img[2] = "http://winx-games.ru/img/daden.gif";
     img[3] = "http://winx-games.ru/img/dressgirl.gif";
     img[4] = "http://winx-games.ru/img/flashr.gif";
     img[5] = "http://winx-games.ru/img/girli.gif";
     img[6] = "http://winx-games.ru/img/girlonline.gif";
     img[7] = "http://winx-games.ru/img/igrydev.gif";
     img[8] = "http://winx-games.ru/img/paramp.gif";
     img[9] = "http://winx-games.ru/img/totally.gif";
     img[10] = "http://winx-games.ru/img/winx1.gif";
     img[11] = "http://winx-games.ru/img/winxg1.gif";
var link = new Array();
     link[0] = "LinkIt('http://megabarbie.ru')";
     link[1] = "LinkIt('http://game-bratz.ru')";
     link[2] = "LinkIt('http://daden-anthony.com')";
     link[3] = "LinkIt('http://dressgirl.ru')";
     link[4] = "LinkIt('http://flash-rush.ru')";
     link[5] = "LinkIt('http://girli.ru')";
     link[6] = "LinkIt('http://girl-online.ru')";
     link[7] = "LinkIt('http://igry-devochkam.ru')";
     link[8] = "LinkIt('http://param-pam.ru')";
     link[9] = "LinkIt('http://totally-spies-game.ru')";
     link[10] = "LinkIt('http://winx-winx.ru')";
     link[11] = "LinkIt('http://girls-winx.ru')";
  

function GetParam(search, name){ 
name=name+"="; 
var gp=""; 
if (search!='') { 
if (search.indexOf(name, 0)!=-1){ 
var startpos=search.indexOf(name, 0)+name.length; 
var endpos=search.indexOf("&",startpos); 
if (endpos<startpos) {endpos=search.length;} 
var gp=search.substring(startpos,endpos); 
} 
else { 
gp=""; 
} 
} 
else { 
gp=""; 
} 
return gp; 
}
function getBrowserInfo() {
 var t="",v = "";
 if (window.opera) t = 'Opera';
 else if (document.all) {
  t = 'IE';
  var nv = navigator.appVersion;
  var s = nv.indexOf('MSIE')+5;
  v = nv.substring(s,s+1);
 }
 else if (navigator.appName) t = 'Netscape';
 return { type:t, version:v };
}
function bookmark(a){
 var url = window.document.location;
 var title = window.document.title;
 var b = getBrowserInfo();
 if (b.type == 'IE' && b.version >= 4) {
  window.external.AddFavorite(url,title);
 }
 else if (b.type == 'Opera') {
  a.href = url;
  a.rel = "sidebar";
  a.title = title;
  return true;
 }
 else if (b.type == 'Netscape') {
  window.sidebar.addPanel(title,url,"");
 }
 else window.alert("Невозможно определить браузер... Нажмите CTRL+D для добавления страницы в Φ#65533;збранное");
 return false;
}
function getBrowserInfo() {
 var t="",v = "";
 if (window.opera) t = 'Opera';
 else if (document.all) {
  t = 'IE';
  var nv = navigator.appVersion;
  var s = nv.indexOf('MSIE')+5;
  v = nv.substring(s,s+1);
 }
 else if (navigator.appName) t = 'Netscape';
 return { type:t, version:v };
}
function bookmark(a){
 var url = window.document.location;
 var title = window.document.title;
 var b = getBrowserInfo();
 if (b.type == 'IE' && b.version >= 4) {
  window.external.AddFavorite(url,title);
 }
 else if (b.type == 'Opera') {
  a.href = url;
  a.rel = "sidebar";
  a.title = title;
  return true;
 }
 else if (b.type == 'Netscape') {
  window.sidebar.addPanel(title,url,"");
 }
 else window.alert("Невозможно определить браузер... Нажмите CTRL+D для добавления страницы в Φ#65533;збранное");
 return false;
} 
function homepage()
{
	window.location.href="http://winx-games.ru";
	return false;
}

function sms()
{
	window.location.href="http://winx-games.ru/igry-za-sms";
	return false;
}

function fotostrana()
{
	window.location.href="http://winx-games.ru/fotostrana";
	return false;
}

function helpus()
{
	window.location.href="http://winx-games.ru/help-winx";
	return false;
}

function chat()
{
	window.location.href="http://winx-games.ru/chat";
	return false;
}

function tulbar()
{
	URL = "http://winxgames.ourtoolbar.com/exe";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function adv1()
{
	URL = "http://www.ad.admitad.com/goto/60590e0c010abac9303ea8f7b5ce2b";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function adv2()
{
	URL = "http://www.ad.admitad.com/goto/ba8e9b0af30abac9303eca5f268518";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function kart()
{
	window.location.href="http://winx-games.ru/kartinki-winx";
	return false;
}

function Nostale()
{
	URL = "http://flash-rush.ru/bestgames.html";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function Seafight()
{
	URL = "http://www.ad.admitad.com/goto/1c0d79d9af0abac9303ea8f7b5ce2b";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function DarkOrbit()
{
	URL = "http://www.ad.admitad.com/goto/962154cf750abac9303e5966b11332";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function Deepolis()
{
	URL = "http://www.ad.admitad.com/goto/cab397a5ba0abac9303eca5f268518";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function Gallendor()
{
	URL = "http://flash-rush.ru/bestgames.html";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function EndWelt()
{
	URL = "http://flash-rush.ru/bestgames.html";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function MirMail()
{
	URL = "http://my.mail.ru/community/winx-games-ru";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}

function Fotos()
{
	URL = "http://fotostrana.ru/community/25736/?ref_id=413574881";
	var str = "scrollbars=yes,menubar=1,toolbar=1,location=1,statusbar=1,left=0,top=0,width=" + screen.availWidth + "," + "height=" + screen.availHeight;
	window.open(URL,"",str);
	return false;
}


